Releases: DevKevYT/devscript
DevScript 1.9.13
See "changelog.txt"
- The "import" command got very few love the last updates:
- Relative paths (*/lib.jar for example) can either be:
The folder of a script file that is being executed
OR the folder of the script host, if no file is being loaded
- Relative paths (*/lib.jar for example) can either be:
- The editor now looks a little more fancier with some additional options to rerun scripts or terminate a script without closing the window
- Added some additional commands to resize the console window or to clean the window
- gui.clear
- gui.setSize [sizeX] [sizeY]
- gui.fullscreen [$true/$false]
(The command "clearConsole" is still available but will be replaced in future releases by the "gui.clear" command)
- Started to make some plans to implement a simple graphics library to control java awt elements ;)
- Try statements can now have a catch block that executes when an error occured so you actually know when something went wrong!
Example:
try { unknown command goes here for example; } catch ex { println "Exception was: " $ex; }; - Added error handling tutorial/examples for try/catch stuff and more examples
- Added a small welcome message for the GUI editor to prevent confusion
DevScript 1.9.12
See "changelog.txt"
- DevScript can now property handle the null variable $null. (="undefined")
- Added an explanation for the "wait" command
- Added an overloaded command "push [value] [array] [index]" to insert values at a specified index into an array
- Added some tips (On how to create "classes", for example) and improved the tutorials
- The variable PI should now be recognized as an actual number
- More examples
- Fixed a profanity in an error message
- Division by zero now throws a readable error message (It previously resultet in "Infinity" which was not recognized as a number before, causing confusing errors
- Added an ascii raycast example to show off the script capabilities (Take a look! Examples -> demos -> raycast)
- Added a snake game as example
- Fixed an issue where 0.000 == 0 would return false
- Added a "keyPressed" event function to the devscript editor library so you can create simple games.
- Improved performance
- More minor fixes
DevScript 1.9.10
See "changelog.txt" under 1.9.10
DevScript 1.9.6
See "changelog.txt" under 1.9.6
Devscript 1.9.4
See changelog.txt "1.9.4"
DevScript GUI Editor 1.9.3
See changelog.txt under "1.9.3"
DevScript GUI Editor
- Major performance and memory usage improvements
DevScript GUI Editor
From changelog.txt:
1.9.0:
- This big Update gives you an Editor GUI! It runs, if you run the program without arguments. However, if you specify arguments inside the
command line this will happen: -e or --execute: Loads this script into the editor. -f or --file Loads the file into the editor.
To launch the jar file without a GUI, you need to put an --nogui argument.
Example: java -jar devscript_1.9.0.jar --file "path_to_file" --nogui -> Executes the file inside the command line
java -jar devscript_1.9.0.jar --execute "println foo;" -> Opens the editor window with "println foo;" as the content.
- Easier input setting. Before 1.9.0, it is very complicated to implement a custom InputStream. This update provides an abstract
com.devscript.raw.ApplicationInput class, to make it easier to create inputs other than the System.in: process.setInput(new ApplicationInput() {...});
- Application Input class: It is now easier to implement custom InputStreams!
- Fixed a bunch of bugs and created some new to fix later...
Devscript 1.8.3
From changelog.txt:
1.8.3:
- New Command: use [STRING]; This command replaces the location of the command with code from the given string as the first argument.
This command is especially useful, if you want to include code from a separate file without creating a whole new library.
- New Command: long [ANY]; This command casts a given value into java.lang.Long.
- New Command: [STRING] % [STRING]; Modulo command.
- New Command: readFileLines [OBJ]; Reads the file and returns an array containing all the lines.
- Arithmetic operators (+, -, *, /, %) are now able to handle Long.MAX_VALUE values and java.lang.Integers, java.lang.Floats and java.lang.Long not just Strings
as numbers before. (println ((int 10) + 4); is now possible)
- The random command now returns only floating points with 4 decimals and the issue with scientific notation is fixed.
- Floating point notation supports now both US ('.') and European (',') notation.
Also please take a look inside the README to get an overview of the syntax.
DevScript 1.8.2
Stable release of the DevScript script. Take a look inside the README