Sanny Builder Bug Tracker - Sanny Builder
View Issue Details
0000035Sanny Builder[All Projects] compilerpublic2015-11-11 18:552017-04-22 15:55
loominati 
Seemann 
normalminoralways
closedno change required 
3.2.2 
 
0000035: Compiler creates wrong bytecode
I am using 0618 opcode in my script:

0618: assign_actor $PLAYER_ACTOR to_AS_pack 18@

Compiler translates it into "18 06 02 08 00 03 12 00" but it is wrong because $PLAYER_ACTOR is "02 0C 00", not "02 08 00". So the game crashes when this code is executed.
No tags attached.
Issue History
2015-11-11 18:55loominatiNew Issue
2015-11-11 18:55loominatiStatusnew => assigned
2015-11-11 18:55loominatiAssigned To => Seemann
2015-11-13 01:10SeemannNote Added: 0000033
2015-11-13 01:11SeemannStatusassigned => feedback
2017-04-22 15:55SeemannNote Added: 0000043
2017-04-22 15:55SeemannStatusfeedback => closed
2017-04-22 15:55SeemannResolutionopen => no change required

Notes
(0000033)
Seemann   
2015-11-13 01:10   
Check out CustomVariables.ini which location is defined in the SB\data\games.xml file for your edit mode. The compiler uses ids for the custom variables from this file. If there's no $PLAYER_ACTOR then the compiler compiles it to the first available index, not necessarily 0x0C ($3).
(0000043)
Seemann   
2017-04-22 15:55   
Closed in Spring 2017 Cleanup.