lefreut Posted December 17, 2023 Posted December 17, 2023 Hello, On a clean BG2EE install, the component "Require speciality mages to memorize at least one spell per level from their speciality school" generates a UI.menu file with syntax errors. There are 3 instances of STR_EQ instead of ==. greyscale lua "bookMode STR_EQ 0 and not dwSpellEnabled(bookSpells[rowNumber])" enabled "chargen.extraSpells STR_EQ 0 and not dwChargenSpecialistRequirementsSatisfied(mageSpells)" enabled "chargen.extraSpells STR_EQ 0 and not dwChargenSpecialistRequirementsSatisfied(priestSpells)" There is also two text_lua instead of text lua. text_lua "dwSpecialistMemoMessage()" Quote
DavidW Posted December 17, 2023 Posted December 17, 2023 Thanks. That’s subtler than it looks: it’s my function library doing an illicit substitution. Quote
DavidW Posted December 18, 2023 Posted December 18, 2023 OK, tracked this one down. That component is loading two function libraries the wrong way (which leads to the variable substitution that puts STR_EQ into lua code). It doesn't show up in a full install because in that situation those libraries are loaded (the right way) already, which is why I didn't see it in testing. A hotfix is to open dw_talents/class_race/specialist_mages.tph and delete the first two function calls (the ones with 'locbase=lua' as an argument). Thanks for catching (The text_lua is just a typo; fixed locally.) Quote
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.