DavidW Posted May 6 Share Posted May 6 My mistake: it was actually right the first time. What makes you think it's a missing strref? Quote Link to comment
MikeX Posted May 6 Author Share Posted May 6 I‘m away from my laptop for a week. But last time I‘ve checked, using NI, the BCS line referenced a dialog.tlk entry which just contained the string ‚carsa_say_strref_8‘ (the name of the variable). Quote Link to comment
DavidW Posted May 6 Share Posted May 6 OK, not sure what's going on there. Let me know when you're back if you can reproduce it. Quote Link to comment
MikeX Posted Friday at 03:08 AM Author Share Posted Friday at 03:08 AM This is the line from carsa.bcs (after installing the carsa/kahrk component from v35.16): DisplayStringHead(Myself,133307) // carsa_say_strref_8 If I understand the code right, %carsa_say_strref_8% should contain an existing strref, which is read from carsa.dlg state 8 here (carsa.tpa): // get strings from the dialog COPY_EXISTING "%tutu_var%carsa.dlg" override GET_OFFSET_ARRAY say_arr 0xc 4 0x8 4 0 0 0x10 PHP_EACH say_arr AS say_ind=>say_off BEGIN READ_LONG say_off strref SET $carsa_say_strref("%say_ind%")=strref GET_STRREF strref string SPRINT $carsa_say("%say_ind%") "%string%" END GET_OFFSET_ARRAY resp_arr 0x14 4 0x10 4 0 0 0x20 PHP_EACH resp_arr AS resp_ind=>resp_off BEGIN READ_LONG (0x4+resp_off) strref SET $carsa_response_strref("%resp_ind%")=strref GET_STRREF strref string SPRINT $carsa_response("%resp_ind%") "%string%" END But instead the name of the variable itself is added to dialog.tlk and referenced. So to me it looks like the variable is not evaluated, otoh I do not understand, what this should accomplish, I mean using this particular strref from carsa.dlg. All the other DisplayStringHead lines in carsa_add.baf have a tra reference (also in carsa_add.d). Sorry for the bother and if I overlooked something obvious... Quote Link to comment
DavidW Posted yesterday at 05:29 PM Share Posted yesterday at 05:29 PM I can't reproduce this, even on a German install of BGT. The string gets correctly substituted. Odd; which version of SCS is this? Quote Link to comment
MikeX Posted yesterday at 06:05 PM Author Share Posted yesterday at 06:05 PM Last attempt with 35.15 (sorry, I thought I was on 35.16), only those two components (...--install-force-list...): Spoiler ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #4 #5900 // Initialise AI components (required for all tactical and AI components): 35.15 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #4 #7150 // Improved Carsa/Kahrk interaction: 35.15 Tried again with 35.16 now, and it is ok: DisplayStringHead(Myself,77341) // NEEEIIIIN!! ... KAHRK!! ... OH MÄCHTIGER KAHRK!!! Quote Link to comment
MikeX Posted 17 hours ago Author Share Posted 17 hours ago On my BGT game v35.16 installed 2 spells (dw#licfi.spl and spin890.spl) with EE-only opcode 328. 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.