Caedwyr Posted October 8, 2007 Share Posted October 8, 2007 I'm attempting to run the installer for my kit mod, and I"m getting the following parse message: [SETUP-DRUIDSOR.TP2] PARSE ERROR at line 143 column 11-62 Near Text: ~override/ca#shm01.itm~ syntax error [SETUP-DRUIDSOR.TP2] ERROR at line 143 column 11-62 Near Text: ~override/ca#shm01.itm~ Parsing.Parse_error ERROR: parsing [SETUP-DRUIDSOR.TP2]: Parsing.Parse_error ERROR: problem parsing TP file [SETUP-DRUIDSOR.TP2]: Parsing.Parse_error FATAL ERROR: Parsing.Parse_error Here is the section of the .tp2 in question. Hopefully some eyes other than mine can spot the typo. Edit: Found the error. I need to repeat the COPY command whenever I have any other type of command in between, such as the SAYs COPY ~DruidSor/ITMs/ca#dsto.itm~ ~override/ca#dsto.itm~ SAY NAME1 @330 SAY NAME2 @330 SAY UNIDENTIFIED_DESC @330 SAY DESC @330 ~DruidSor/ITMs/ca#shm01.itm~ ~override/ca#shm01.itm~ //line 143 SAY NAME1 @207 SAY NAME2 @207 ~DruidSor/ITMs/CA#SHM02.itm~ ~override/CA#SHM02.itm~ SAY NAME1 @207 SAY NAME2 @207 ~DruidSor/ITMs/CA#SHM03.itm~ ~override/CA#SHM03.itm~ Link to comment
Caedwyr Posted October 8, 2007 Author Share Posted October 8, 2007 More issues, it appears that the following code doesn't work: BEGIN OUTER_SET "spell_level" = 1 // Line 553 END COPY_EXISTING ~sppr103.spl~ ~override/CA#DS103.spl~ /*cure light wounds*/ ~sppr104.spl~ ~override/CA#DS104.spl~ /*detect evil*/ ~sppr105.spl~ ~override/CA#DS105.spl~ /*entangle*/ ~sppr109.spl~ ~override/CA#DS109.spl~ /*sanctuary*/ ~sppr110.spl~ ~override/CA#DS110.spl~ /*shillelagh*/ LAUNCH_PATCH_MACRO ~divine_to_arcane~ /*change to level 1 wizard spells*/ It seems to be choking on the following: BEGIN OUTER_SET "spell_level" = 1 END That is needed for the macro DEFINE_PATCH_MACRO ~divine_to_arcane~ BEGIN READ_LONG 0x64 "abil_off" ELSE 0 READ_SHORT 0x68 "abil_num" ELSE 0 READ_LONG 0x34 "spell_level" ELSE 1 WRITE_SHORT 0x1C 1 // sets spell type to wizard (1) WRITE_LONG 0x34 "spell_level" // sets spell level to 1 FOR ( index = 0; index < abil_num; index = index + 1 ) BEGIN WRITE_SHORT ("%abil_off%" + 0x02 + (0x28 * "%index%")) 1 // changes ability icon location to wizard (1) */ END END Where I can set a variable to the level I want, and reuse the macro. I think the issue here is I haven't defined "spell_level" as a LONG variable, but I don't know how to do that. Link to comment
Gort Posted October 9, 2007 Share Posted October 9, 2007 make BEGIN OUTER_SET "spell_level" = 1 END just OUTER_SET "spell_level" = 1 That's what OUTER is needed for. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.