CE Scripter BETA 2 for Windows/Linux Released!
Posted: Sun Nov 19, 2006 9:31 pm
After a few days of massive working on the CE Scripter for RnD, it's now time to release a BETA-version.
It feels like I've forgot to mention something here, but hopefully I haven't.
Current limitations:
- Editing descriptions and name/author descriptions
- Modifying Group Elements
- Linux executable is quite big, I will try to shrink it later using UPX.
CE Scripter uses Pascal Language.
You can get some information about the Pascal Language here:
http://en.wikipedia.org/wiki/Pascal_%28 ... anguage%29
I will try to write a better documentation about CE Scripter later. Remember that many things that's possible in the Pascal language isn't possible in CE Scripter. Suggest something and I'll see what I can do to implement it in the scripter.
10 (more) things to remember
1. I am not responsible for the scripts you create, neither for the scripts you run.
2. Make Backups, backups, backups! In case things goes wrong
3. Don't try to access or change element_info[359] and below or element_info[655] and above, those might result in errors in your level, in the program, or elsewhere on your computers memory.
4. Handling custom element's change conditions and change page actions can be difficult. Even though you set the CE action parameter in RnD to 1000, doesn't mean that you can set it to 1000 in a script and expect the same result.
5. If you feel insecure, start without actually changing anything, try write a script which just gets tons of information from a level.
6. Variables and constants do not define themselves. level and element_info are already defined, use them to manipulate levels.
7. The string '1000' is not equal to the integer 1000. Use typecasting - StrToInt and IntToStr are useful functions.
8. Repetition is the mother of all knowledge.
9. Repetition is the mother of all knowledge.
10. Feel free to contact me for any kind of support or chatting.
Contact information for author of RnD Scripter, Simon Forsberg:
E-mail: zomis2k@hotmail.com
Website: http://www.zomis.net/rnd
Discussion forum for Rocks'n'Diamonds: http://www.artsoft.org/forum
What you cannot do with scripts:
- Interact directly with the Rocks'n'Diamonds executable
- Use Dynamic-Link Libraries (DLL's)
- Use pointers and pointer types
Some basic functions and procedures you can use in scripts include:
procedure Mess(const S: string); - Outputs a line of text to the log
function Its(const i: integer): String; - Short version of IntToStr, convert an integer to string
procedure Messi(const S: String; const i: array of integer); - Instead of typing Mess('text' + IntToStr(int) + ', ' + IntToStr(int2)...., use this procedure to show the string contained in S and all integers of the array i.
function CE(const cenumber: integer): integer; - Get the element number of a Custom Element, CE(1) = 360.
And last but not least,
Download CE Scripter for Linux: http://www.zomis.net/rnd/download.php?id=476
Download CE Scripter for Windows: http://www.zomis.net/rnd/download.php?id=597
Here is a list of stuff you can use in CE Scripter: http://www.zomis.net/rnd/download.php?id=599
As an example, you can use this level: http://www.zomis.net/rnd/download.php?id=595
And this script: http://www.zomis.net/rnd/download.php?id=598
The script will, the first time you run it, output all the rooms to the playfield for easier modification. When you run the script again, it sets the playfield to the custom element targets.
It feels like I've forgot to mention something here, but hopefully I haven't.
Current limitations:
- Editing descriptions and name/author descriptions
- Modifying Group Elements
- Linux executable is quite big, I will try to shrink it later using UPX.
CE Scripter uses Pascal Language.
You can get some information about the Pascal Language here:
http://en.wikipedia.org/wiki/Pascal_%28 ... anguage%29
I will try to write a better documentation about CE Scripter later. Remember that many things that's possible in the Pascal language isn't possible in CE Scripter. Suggest something and I'll see what I can do to implement it in the scripter.
10 (more) things to remember
1. I am not responsible for the scripts you create, neither for the scripts you run.
2. Make Backups, backups, backups! In case things goes wrong
3. Don't try to access or change element_info[359] and below or element_info[655] and above, those might result in errors in your level, in the program, or elsewhere on your computers memory.
4. Handling custom element's change conditions and change page actions can be difficult. Even though you set the CE action parameter in RnD to 1000, doesn't mean that you can set it to 1000 in a script and expect the same result.
5. If you feel insecure, start without actually changing anything, try write a script which just gets tons of information from a level.
6. Variables and constants do not define themselves. level and element_info are already defined, use them to manipulate levels.
7. The string '1000' is not equal to the integer 1000. Use typecasting - StrToInt and IntToStr are useful functions.
8. Repetition is the mother of all knowledge.
9. Repetition is the mother of all knowledge.
10. Feel free to contact me for any kind of support or chatting.
Contact information for author of RnD Scripter, Simon Forsberg:
E-mail: zomis2k@hotmail.com
Website: http://www.zomis.net/rnd
Discussion forum for Rocks'n'Diamonds: http://www.artsoft.org/forum
What you cannot do with scripts:
- Interact directly with the Rocks'n'Diamonds executable
- Use Dynamic-Link Libraries (DLL's)
- Use pointers and pointer types
Some basic functions and procedures you can use in scripts include:
procedure Mess(const S: string); - Outputs a line of text to the log
function Its(const i: integer): String; - Short version of IntToStr, convert an integer to string
procedure Messi(const S: String; const i: array of integer); - Instead of typing Mess('text' + IntToStr(int) + ', ' + IntToStr(int2)...., use this procedure to show the string contained in S and all integers of the array i.
function CE(const cenumber: integer): integer; - Get the element number of a Custom Element, CE(1) = 360.
And last but not least,
Download CE Scripter for Linux: http://www.zomis.net/rnd/download.php?id=476
Download CE Scripter for Windows: http://www.zomis.net/rnd/download.php?id=597
Here is a list of stuff you can use in CE Scripter: http://www.zomis.net/rnd/download.php?id=599
As an example, you can use this level: http://www.zomis.net/rnd/download.php?id=595
And this script: http://www.zomis.net/rnd/download.php?id=598
The script will, the first time you run it, output all the rooms to the playfield for easier modification. When you run the script again, it sets the playfield to the custom element targets.