jastey Posted March 19, 2019 Share Posted March 19, 2019 I'm trying to put REPLACE_ACTION_TEXT_REGEXP to use for an optional component in the Keldorn Romance, but I get the error message: Quote [KELDORN_ROM/KELDORN_ROM.TP2] PARSE ERROR at line 799 column 1-30 Near Text: REPLACE_ACTION_TEXT_REGEXP GLR parse error [KELDORN_ROM/KELDORN_ROM.TP2] ERROR at line 799 column 1-30 Near Text: REPLACE_ACTION_TEXT_REGEXP Parsing.Parse_error ERROR: parsing [KELDORN_ROM/KELDORN_ROM.TP2]: Parsing.Parse_error ERROR: problem parsing TP file [KELDORN_ROM/KELDORN_ROM.TP2]: Parsing.Parse_error FATAL ERROR: Parsing.Parse_error This is what I have. Line 799 is the first line with "REPLACE_ACTION_TEXT_REGEXP". Anything obvious to a second pair of eyes? /* component: ~Select Keldorn's dialogue timer:~ */ BEGIN @50012 /* ~Speed: minimum 10 minutes (SoA)/15 minutes (ToB) real time between dialogues~ */ SUBCOMPONENT @50009 /* ~Select Keldorn's dialogue timer:~ */ REQUIRE_COMPONENT ~setup-keldorn_rom.tp2~ ~0~ @50003 REPLACE_ACTION_TEXT_REGEXP b!timer_tealks ~RealSetGlobalTimer("B!KelTime","GLOBAL",[^)]+)~ ~RealSetGlobalTimer("B!KelTime","GLOBAL",600)~ REPLACE_ACTION_TEXT_REGEXP b!tob_timer_tealks ~RealSetGlobalTimer("B!KelToBTime","GLOBAL",[^)]+)~ ~RealSetGlobalTimer("B!KelToBTime","GLOBAL",900)~ BEGIN @50013 /* ~Speed: minimum 20 minutes (SoA)/30 minutes (ToB) real time between dialogues~ */ SUBCOMPONENT @50009 /* ~Select Keldorn's dialogue timer:~ */ REQUIRE_COMPONENT ~setup-keldorn_rom.tp2~ ~0~ @50003 REPLACE_ACTION_TEXT_REGEXP b!timer_tealks ~RealSetGlobalTimer("B!KelTime","GLOBAL",[^)]+)~ ~RealSetGlobalTimer("B!KelTime","GLOBAL",1200)~ REPLACE_ACTION_TEXT_REGEXP b!tob_timer_tealks ~RealSetGlobalTimer("B!KelToBTime","GLOBAL",[^)]+)~ ~RealSetGlobalTimer("B!KelToBTime","GLOBAL",1800)~ BEGIN @50014 /* ~Speed (Default): minimum 30 minutes (SoA)/45 minutes (ToB) real time between dialogues~ */ SUBCOMPONENT @50009 /* ~Select Keldorn's dialogue timer:~ */ REQUIRE_COMPONENT ~setup-keldorn_rom.tp2~ ~0~ @50003 REPLACE_ACTION_TEXT_REGEXP b!timer_tealks ~RealSetGlobalTimer("B!KelTime","GLOBAL",[^)]+)~ ~RealSetGlobalTimer("B!KelTime","GLOBAL",1800)~ REPLACE_ACTION_TEXT_REGEXP b!tob_timer_tealks ~RealSetGlobalTimer("B!KelToBTime","GLOBAL",[^)]+)~ ~RealSetGlobalTimer("B!KelToBTime","GLOBAL",2700)~ BEGIN @50015 /* ~Speed: minimum 45 minutes (SoA)/60 minutes (ToB) real time between dialogues~ */ SUBCOMPONENT @50009 /* ~Select Keldorn's dialogue timer:~ */ REQUIRE_COMPONENT ~setup-keldorn_rom.tp2~ ~0~ @50003 REPLACE_ACTION_TEXT_REGEXP b!timer_tealks ~RealSetGlobalTimer("B!KelTime","GLOBAL",[^)]+)~ ~RealSetGlobalTimer("B!KelTime","GLOBAL",2700)~ REPLACE_ACTION_TEXT_REGEXP b!tob_timer_tealks ~RealSetGlobalTimer("B!KelToBTime","GLOBAL",[^)]+)~ ~RealSetGlobalTimer("B!KelToBTime","GLOBAL",3600)~ BEGIN @50016 /* ~Speed: minimum 1 hour (SoA)/1.5 hour (ToB) real time between dialogues~ */ SUBCOMPONENT @50009 /* ~Select Keldorn's dialogue timer:~ */ REQUIRE_COMPONENT ~setup-keldorn_rom.tp2~ ~0~ @50003 REPLACE_ACTION_TEXT_REGEXP b!timer_tealks ~RealSetGlobalTimer("B!KelTime","GLOBAL",[^)]+)~ ~RealSetGlobalTimer("B!KelTime","GLOBAL",3600)~ REPLACE_ACTION_TEXT_REGEXP b!tob_timer_tealks ~RealSetGlobalTimer("B!KelToBTime","GLOBAL",[^)]+)~ ~RealSetGlobalTimer("B!KelToBTime","GLOBAL",5400)~ Quote Link to comment
CamDawg Posted March 19, 2019 Share Posted March 19, 2019 REPLACE_ACTION_TEXT_REGEXP is dialogue code--drop it in a .d file and compile it. Quote Link to comment
jastey Posted March 19, 2019 Author Share Posted March 19, 2019 Oh! I feel kinda stupid now. Thanks. Quote Link to comment
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.