@ Sergey - Thanks, I'll keep that in mind.
@ FireIndy - Thank you!
@ haliop - Thanks.
Just a tip for your signature, change
[URL] http://forum.thegamecreators.com/?m=forum_view&t=198467&b=22[/URL]
to
[href] http://forum.thegamecreators.com/?m=forum_view&t=198467&b=22[/href]
for it to work.
@ all
The scripts used to be "parsed" on the fly which was pretty slow. Now they are compiled to byte code when you load them and interpreted by the game. It's funny to think that I've written a small compiler in DBP...
There won't be much to show in the next few updates because I'm working on the scripts. I want to add support for variables, conditions (if...endif), counting loops (for...next), boolean operations and parenthesis. Here's my to-do list:
- Scripts
--> Compile scripts to byte code
--> Byte code interpreter
--> Dynamic registers to store values in
----> Bind script variables to registers
----> Integer registers
----> Float registers
----> String registers
----> Write register content to open file
----> Read register content from open file
----> Move register to register
----> Swap register contents
--> Conditional commands in scripts (if/endif)
----> operators: < / > / <= / >= / =
----> boolean: and / or
----> Support for parenthesis
--> "goto" command with user defined labels
--> Counter loop (for...next)
Still a lot to do! I'll be happy when this is all over because it's pretty hard!
TheComet
Your mod has been erased by a signature, please reduce him [overall] to no larger than 120 kg please.