Qhimm.com Forums
Miscellaneous Forums => Scripting and Reverse Engineering => Topic started by: Akari on 2006-10-02 13:11:04
-
In wiki it redirects me to PRTYE opcode that has 3 parameters, but PRTYP has only one.
Can someone tell me what it do?
-
I couldn't delete it, I don't have admin permissions. :-D I realised I put one of the other opcodes where that should be and moved it, but it wouldn't delete the original. Never went back to figure out what it did.
-
Hold on, what goes to who now?
I can fix it, but I don't quite understand what's wrong
-
Just delete the redirect that's at PRTYP.
-
Shouldn't this be in the Q-gears section?
-
No, since FF7 opcodes aren't a Q-Gears related problem, but a FF7 reverse engineering problem, so they do belong here.
- Alhexx
- Edit -
<off-topic>
Nice avatar, halkun.
</off-topic>
-
1) What will happened if we give 0xFE as parameter?
2) What will happened if we try to add character that already in the party?
-
1) Initially there's no effect, when the script is executed, but if you try to open the menu the game crashes.
2) No effect; nothing changes.
-
1) Initially there's no effect, when the script is executed, but if you try to open the menu the game crashes.
What about 0xFF as parameter?
-
No effect for 0xFF. I did try an arbitrary non-character ID to see what happened; it crashes on menu, as per 0xFE.
-
Ok. Then this opcode has been implemented =)
-
Even the crashes? ^_^
-
Speaking of crashes do we have a sanity check system for the script intpretor?
Cyb
-
Speaking of crashes do we have a sanity check system for the script intpretor?
What kind of sanity check do you want? And what part of scrypt: in game one or from xml?
-
Sanity checks
1) variable within range of the particular script opcode
2) a movie has been set to play
3) valid enumerated types (party ID entity etc.)
4) defined variable
etc. etc.
If something weird is thrown to the script engine likely should capture it before it tries to execute it, and throw it to some debugging output. Then reset engine/script execution to a safe point. (IE reinitialize the field location, or if it's the initialization sequence stop execution etc.)
#4 is something for use of XML data about known temporary and global variables
Cyb