Post reply

Warning - while you were reading 3 new replies have been posted. You may wish to review your post.
Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.
Name:
Email:
Subject:
Message icon:

Verification:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?:

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: AL|EN
« on: November 26, 2017, 12:06:51 PM »

Does %MOD_FOLDER% is case-sensitive?
Posted by: Argent77
« on: October 27, 2017, 07:12:50 AM »

BACKUP requires the real folder name to make %MOD_FOLDER% work everywhere else in the code. I guess WeiDU sets %MOD_FOLDER% to the folder name specified in the BACKUP directive.
Posted by: jastey
« on: October 27, 2017, 03:13:33 AM »

How is %MOD_FOLDER% supposed to work? EDIT: using v242, is that the problem?
in my case (bg1npc), these fail and have to be replaced by the mod folder name (bg1npc):

Code: [Select]
README ~%MOD_FOLDER%/readme-bg1npc-%LANGUAGE%.html~ ~%MOD_FOLDER%/readme-bg1npc.html~
Code: [Select]
ALWAYS
INCLUDE ~%MOD_FOLDER%/lib/bg1npc_always.tpa~
END /* ALWAYS */

Code: [Select]
LANGUAGE ~English~ ~english~ ~%MOD_FOLDER%/tra/english/setup.tra~
And also this and all other instances after BEGIN for calling a file:
Code: [Select]
BEGIN @1005 DESIGNATED 0
/* Tells other mods BG1NPC Core is installed */
COPY ~%MOD_FOLDER%/Core/X#component.xx~ ~override/X#BG1NPCCore.G3~
("ERROR: error loading [%MOD_FOLDER%/Core/X#component.xx]")

This created a folder %MOD_FOLDER% in my game folder and put the backup there:
Code: [Select]
BACKUP ~%MOD_FOLDER%/backup~
So, basically, it's not working. Is the error on my side somewhere?
Posted by: Wisp
« on: October 08, 2017, 02:56:26 PM »

The second parameter to language should only be "english" in your case. It's only the subdirectory (see readme).
Posted by: Angel
« on: September 12, 2017, 03:36:26 PM »

If I make a language declaration like this:

Code: [Select]
LANGUAGE "American English" "%MOD_FOLDER%/tra/english" "%MOD_FOLDER%/tra/english/setup-mih.tra"
Then this command will fail to find proper translation strings:

Code: [Select]
EXTEND_BOTTOM "baldur.bcs" "%MOD_FOLDER%/item_pack/bgt/scripts/planar_sword.baf" USING "%LANGUAGE%/item_pack/bgt/scripts/planar_sword.tra"
If I replace the %MOD_FOLDER% in the language declaration with a hard-coded path, things work normally.

Further testing reveals that the LANGUAGE directive does not properly resolve the variables; "%MOD_FOLDER%" gets copied verbatim into the %LANGUAGE% variable instead of being evaluated, and then the EXTEND_BOTTOM command fails to find the translation file.