Frictional Games Forum (read-only)
Blog: "Tech feature: Scripting upgrade" - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Frictional Games (https://www.frictionalgames.com/forum/forum-3.html)
+--- Forum: Blog (https://www.frictionalgames.com/forum/forum-23.html)
+--- Thread: Blog: "Tech feature: Scripting upgrade" (/thread-8283.html)

Pages: 1 2


Blog: "Tech feature: Scripting upgrade" - Thomas - 05-27-2011

A very brief (but still long) overview of the new scripting system

http://frictionalgames.blogspot.com/2011/05/tech-feature-scripting-upgrade.html


RE: Blog: "Tech feature: Scripting upgrade" - xiphirx - 05-28-2011

Say you were playing, and in the script, an event was called with a function like makeWallsBlue or something. If this event was initiated, and the user saved (without saving in a sleep), when the user loads, does the system know where to pick up from? (in the makeWallsBlue function)


RE: Blog: "Tech feature: Scripting upgrade" - Tottel - 05-28-2011

More scripting functionality! You won't hear me complain when you release the next game (and modtools? :p).
Although I can feel tons of "How does the scripting work"-threads coming right up. Smile


RE: Blog: "Tech featuScripting upgrade" - Thomas - 05-28-2011

(05-28-2011, 12:26 AM)xiphirx Wrote: Say you were playing, and in the script, an event was called with a function like makeWallsBlue or something. If this event was initiated, and the user saved (without saving in a sleep), when the user loads, does the system know where to pick up from? (in the makeWallsBlue function)
Nope, and that is why I did not implement it Smile




RE: Blog: "Tech feature: Scripting upgrade" - xiphirx - 05-28-2011

Hm... well maybe you can handle the script as a sort of state machine and save the progress that the user has done in the script?


RE: Blog: "Tech featuScripting upgrade" - Thomas - 05-29-2011

(05-28-2011, 09:33 PM)xiphirx Wrote: Hm... well maybe you can handle the script as a sort of state machine and save the progress that the user has done in the script?

The idea is to use some special form for these kind of event scripting, eg some kind of state machine. Angel Script has a nice thread feature which would make this super sweet, but I cannot use it because saving a thread state is simply not possible atm.


RE: Blog: "Tech feature: Scripting upgrade" - MrBigzy - 05-29-2011

Definitely love the idea of having the engine classes implemented in scripting. Would definitely have been great if it was part of HPL2, oh well. D:

It would probably be kinda hard to simplify classes in scripting for beginners though, wouldn't it?


RE: Blog: "Tech feature: Scripting upgrade" - nofsky - 05-29-2011

Looks like HPL3 is gonna be great for modders. Keep up the good work guys!


RE: Blog: "Tech feature: Scripting upgrade" - Apjjm - 05-29-2011

This sounds fantastic, should allow for some really awesome mods - It sounds like we should be able to access a whole lot more.

Will a command like "#import RandomScript.hps;" be permitted in scripts too? That is one feature I am really wishing was in amnesia for my next mod.


RE: Blog: "Tech featuScripting upgrade" - Thomas - 05-30-2011

(05-29-2011, 07:06 PM)Apjjm Wrote: Will a command like "#import RandomScript.hps;" be permitted in scripts too? That is one feature I am really wishing was in amnesia for my next mod.

Yes it will!