I have the last version of the source code for IceCC and I decided I would like to update it, but I need to know what to update.
What names in the headers need to be changed and what opcodes need to be renamed or identified? Also, any significant bugs that need to be fixed?
-EDIT-
Updated the tables below with the current ones from the 1.3 source code.
The current animation names from the 1.3 source code:
CODE
char *table_animno_to_name[] = {
"Init",
"Death",
"GndAttkInit",
"AirAttkInit",
"Unused1",
"GndAttkRpt",
"AirAttkRpt",
"CastSpell",
"GndAttkToIdle",
"AirAttkToIdle",
"Unused2",
"Walking",
"WalkingToIdle",
"SpecialState1", // Some sort of category of special animations, in some cases an in-transit animation, sometimes used for special orders, sometimes having to do with the animation when something finishes morphing, or the first stage of a construction animation
"SpecialState2", // Some sort of category of special animations, in some cases a burrowed animation, sometimes used for special orders, sometimes having to do with the animation when canceling a morph, or the second stage of a construction animation
"AlmostBuilt",
"Built",
"Landing",
"LiftOff",
"IsWorking",
"WorkingToIdle",
"WarpIn",
"Unused3",
"StarEditInit",
"Disable",
"Burrow",
"UnBurrow",
"Enable",
NULL,
};
The current opcodes table from the 1.3 source code:
CODE
IsInstrFmt __iscript_instructions[] = {
{"playfram", INSTR_NORMAL, get_uint16, write_uint16},
{"playframtile", INSTR_NORMAL, get_uint16, write_uint16},
{"sethorpos", INSTR_NORMAL, get_byte, write_byte},
{"setvertpos", INSTR_NORMAL, get_byte, write_byte},
{"setpos", INSTR_NORMAL, get_byte_byte, write_byte_byte},
{"wait", INSTR_NORMAL, get_byte, write_byte},
{"waitrand", INSTR_NORMAL, get_byte_byte, write_byte_byte},
{"goto", INSTR_JMP, get_uint16, write_uint16},
{"imgol", INSTR_NORMAL, get_uint16_byte_byte, write_uint16_byte_byte},
{"imgul", INSTR_NORMAL, get_uint16_byte_byte, write_uint16_byte_byte},
{"imgolorig", INSTR_NORMAL, get_uint16, write_uint16},
{"switchul", INSTR_NORMAL, get_uint16, write_uint16},
{"__0c", INSTR_NORMAL, get_none, write_none},
{"imgoluselo", INSTR_NORMAL, get_uint16_byte_byte, write_uint16_byte_byte},
{"imguluselo", INSTR_NORMAL, get_uint16_byte_byte, write_uint16_byte_byte},
{"sprol", INSTR_NORMAL, get_uint16_byte_byte, write_uint16_byte_byte},
{"highsprol", INSTR_NORMAL, get_uint16_byte_byte, write_uint16_byte_byte},
{"lowsprul", INSTR_NORMAL, get_uint16_byte_byte, write_uint16_byte_byte},
{"uflunstable", INSTR_NORMAL, get_uint16, write_uint16},
{"spruluselo", INSTR_NORMAL, get_uint16_byte_byte, write_uint16_byte_byte},
{"sprul", INSTR_NORMAL, get_uint16_byte_byte, write_uint16_byte_byte},
{"sproluselo", INSTR_NORMAL, get_uint16_byte, write_uint16_byte},
{"end", INSTR_TERM, get_none, write_none},
{"setflipstate", INSTR_NORMAL, get_byte, write_byte},
{"playsnd", INSTR_NORMAL, get_uint16, write_uint16},
{"playsndrand", INSTR_NORMAL, get_byte_v_uint16, write_byte_v_uint16},
{"playsndbtwn", INSTR_NORMAL, get_uint16_uint16, write_uint16_uint16},
{"domissiledmg", INSTR_NORMAL, get_none, write_none},
{"attackmelee", INSTR_NORMAL, get_byte_v_uint16, write_byte_v_uint16},
{"followmaingraphic",INSTR_NORMAL, get_none, write_none},
{"randcondjmp", INSTR_COND_JMP, get_byte_uint16, write_byte_uint16},
{"turnccwise", INSTR_NORMAL, get_byte, write_byte},
{"turncwise", INSTR_NORMAL, get_byte, write_byte},
{"turn1cwise", INSTR_NORMAL, get_none, write_none},
{"turnrand", INSTR_NORMAL, get_byte, write_byte},
{"setspawnframe", INSTR_NORMAL, get_byte, write_byte},
{"sigorder", INSTR_NORMAL, get_byte, write_byte},
{"attackwith", INSTR_NORMAL, get_byte, write_byte},
{"attack", INSTR_NORMAL, get_none, write_none},
{"castspell", INSTR_NORMAL, get_none, write_none},
{"useweapon", INSTR_NORMAL, get_byte, write_byte},
{"move", INSTR_NORMAL, get_byte, write_byte},
{"gotorepeatattk", INSTR_NORMAL, get_none, write_none},
{"engframe", INSTR_NORMAL, get_byte, write_byte},
{"engset", INSTR_NORMAL, get_byte, write_byte},
{"__2d", INSTR_NORMAL, get_none, write_none},
{"nobrkcodestart", INSTR_NORMAL, get_none, write_none},
{"nobrkcodeend", INSTR_NORMAL, get_none, write_none},
{"ignorerest", INSTR_NORMAL, get_none, write_none},
{"attkshiftproj", INSTR_NORMAL, get_byte, write_byte},
{"tmprmgraphicstart",INSTR_NORMAL, get_none, write_none},
{"tmprmgraphicend", INSTR_NORMAL, get_none, write_none},
{"setfldirect", INSTR_NORMAL, get_byte, write_byte},
{"call", INSTR_COND_JMP, get_uint16, write_uint16},
{"return", INSTR_TERM, get_none, write_none},
{"setflspeed", INSTR_NORMAL, get_uint16, write_uint16},
{"creategasoverlays",INSTR_NORMAL, get_byte, write_byte},
{"pwrupcondjmp", INSTR_COND_JMP, get_uint16, write_uint16},
{"trgtrangecondjmp", INSTR_COND_JMP, get_uint16_uint16, write_uint16_uint16},
{"trgtarccondjmp", INSTR_COND_JMP, get_uint16_uint16_uint16, write_uint16_uint16_uint16},
{"curdirectcondjmp", INSTR_COND_JMP, get_uint16_uint16_uint16, write_uint16_uint16_uint16},
{"imgulnextid", INSTR_NORMAL, get_byte_byte, write_byte_byte},
{"__3e", INSTR_NORMAL, get_none, write_none},
{"liftoffcondjmp", INSTR_COND_JMP, get_uint16, write_uint16},
{"warpoverlay", INSTR_NORMAL, get_uint16, write_uint16},
{"orderdone", INSTR_NORMAL, get_byte, write_byte},
{"grdsprol", INSTR_NORMAL, get_uint16_byte_byte, write_uint16_byte_byte},
{"__43", INSTR_NORMAL, get_none, write_none},
{"dogrddamage", INSTR_NORMAL, get_none, write_none},
};