Jump to content

UI.menu syntax error


Recommended Posts

Posted

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()"
Posted

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.)

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...