Having trouble installing WeiDU mod correctly for both BGEE and BG2EE
fortyseven
Member Posts: 96
I'm making a new mod and am having trouble getting the strings to show up in BGEE. It works perfectly in BG2EE but the strings will not be written into the dialog.tlk for BGEE. I have checked to make sure the file isn't write protected but no luck. Any ideas what I'm doing wrong?
Also how do I script it in weidu to only copy certain files in BGEE but not BG2EE and vice a versa?
Also how do I script it in weidu to only copy certain files in BGEE but not BG2EE and vice a versa?
Post edited by fortyseven on
0
Comments
Concerning your second issue, you want to use ACTION_IF (GAME_INCLUDES bg2ee):
ACTION_IF (GAME_INCLUDES ~bg2ee~) BEGIN
//list of actions, including file copies etc...
END
ACTION_IF (GAME_INCLUDES ~bgee~) BEGIN
//list of actions
END
You may either use GAME_INCLUDES with one game (so GAME_INCLUDES ~bgee~ will return true if you're trying to install your mod on bgee, sod or eet) or GAME_IS with a list of game (so to get the same result you will need GAME_IS ~bgee sod eet~)
Concerning the list of actions, so that your tp2 file doesn't get too messy I would advise making 2 separates tpa files, one for bgee and one for bg2ee and use INCLUDE:
ACTION_IF (GAME_INCLUDES ~bg2ee~) BEGIN
INCLUDE ~filepath/bg2eetpa.tpa~
END
ACTION_IF (GAME_INCLUDES ~bgee~) BEGIN
INCLUDE ~filepath/bgeetpa.tpa~
END
AUTO_TRA ~MyMod/tra/%s~
LANGUAGE ~English~
~English~
~MyMod/tra/english/MyMod.tra~
BEGIN "My Mod" //
COPY ~MMod/itm/x.itm~ ~override~
0
0
SAY DESC @1
The rest is just copying of game files.
What is intersting the weidu programm mentions no additon of strings when installing for BGEE but it does this when installing for BG2EE.
With the second issue, thanks for helping with the code! I have tried your first suggestion, as it is only very few files that differ between the 2 games. And it works they install. But the Weidu programm gives a warning message:
WARNING: GAME_INCLUDES has no rule for BG2EE
Copying 1 file ...
WARNING: GAME_INCLUDES has no rule for BGEE
SUCCESSFULLY INSTALLED
Is this an issue?
Otherwise I don't see any issue, but try:
SAY 0x50 @1
SAY 0x54 @1
As for the other issue, it's actually my mistake, game_includes doesn't take bgee or bg2ee for arguments so I guess you have to use game_is with a list of game.
COPY ~MyMod/itm/x.itm~ ~override~
SAY NAME1 @1
SAY NAME2 @1
SAY DESC @2
And bingo on the second issue. Now works like a charm!
All I need now is to get the strings to work for BGEE.
One question though, the modmerge has changed the UI back to SoD even though I was using the 2.5.15 beta. SoD is not part of the beta release so I'm wondering if the modmerge has garbled up the general game files?