thanks Kornman00. so hex editing is a waste of time?
yeah the script works in game.
When h2tool creates a scenario file it put the script (script static unit player0 (unit (list_get (players) 0))) into the file, I then hex edited the scenario file, found the script and edited it to (script startup gravity_hack (physics_set_gravity 0.1)) then went into sapien entered debug_scripting 1 and there it is. I built a cache file and it worked in game. The scripts are stored in text format and every time sapien starts up it recompiles the scripts in the scenario file. just one thing though, the lengh of the script needs to stay the same (58 characters long)
and yes i know that (script static unit player0 (unit (list_get (players) 0))) doesnt show up in the debug scripting menu thing and i dont know why, it might be a global script?
Last edited by Warningshot3; February 5th, 2008 at 09:47 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks