Pocket Plane Group

Friends and Neighbors => Weimer Republic (WeiDU.org) => WeiDU => Topic started by: Wisp on June 03, 2017, 08:34:32 AM

Title: Beta 240.02
Post by: Wisp on June 03, 2017, 08:34:32 AM
No new features will be added until after 241 has been released.

Changes since 240.01:

Plus some additional compatibility fixes for PST: EE (accounting for the fact monkfist.2da does not exist in PST: EE and was used for some pan-EE checks) and a change to the LANGUAGE variable that should be transparent for all supported use cases (the variable is defined after TRA files are loaded, instead of before).
Title: Re: Beta 240.02
Post by: Wisp on June 03, 2017, 05:01:23 PM
Binaries for MacOS are now up, with thanks to Argent77.
Title: Re: Beta 240.02
Post by: c4_angel on June 13, 2017, 07:24:39 AM
Report:

Just before "SUCCESSFULLY INSTALLED",  shows

"ERROR: No translation provided for @-10000
Continuing despite error."

and no @-10000 found in prompts.tra.
Title: Re: Beta 240.02
Post by: Wisp on June 14, 2017, 11:09:40 AM
Report:

Just before "SUCCESSFULLY INSTALLED",  shows

"ERROR: No translation provided for @-10000
Continuing despite error."

and no @-10000 found in prompts.tra.

WeiDU does not use @-10000. It's probably your mods.
Title: Re: Beta 240.02
Post by: c4_angel on June 15, 2017, 06:27:18 PM
Errrr...You are right...

Sorry for that...

Edit:
I think I know what's wrong. Another mod I installed before uses @-10000 as mod name which logged in weidu.log.
Title: Re: Beta 240.02
Post by: c4_angel on July 23, 2017, 09:13:53 PM
Issue update:

With v242, if a previous installed use component name use tra line included in prompts.tra(e.g., ToBEx, BGT...), the error message appears when install any other mod later.
Title: Re: Beta 240.02
Post by: Wisp on July 28, 2017, 01:21:57 PM
Using the negative range of numbers is unsupported because it's for WeiDU's use. If the problem persists with a non-negative tra number, please provide a test case because I can't reproduce the issue based on the information you have provided.
Title: Re: Beta 240.02
Post by: c4_angel on July 28, 2017, 05:57:41 PM
After more test, the real issue is  %WEIDU_OS% in name of .tra file include in LANGUAGE block.
My test:

1.
Code: [Select]
LANGUAGE ~Chinese~ ~schinese~ ~test/schinese/prompts-win32.tra~2.
Code: [Select]
LANGUAGE ~Chinese~ ~schinese~ ~%MOD_FOLDER%/schinese/prompts-win32.tra~3.
Code: [Select]
LANGUAGE ~Chinese~ ~schinese~ ~test/schinese/prompts-%WEIDU_OS%.tra~
No error message both 1 and 2, only using code 3 there is one like

ERROR: No translation provided for @100
Continuing despite error.
Title: Re: Beta 240.02
Post by: Wisp on August 06, 2017, 08:17:19 AM
Fixed. Sorry about that.
If you want a workaround in the meantime, you can use something like this:
Code: [Select]
LANGUAGE ~Chinese~ ~schinese~
~test/english/prompts.tra~
~test/schinese/prompts-%WEIDU_OS%.tra~
This way the component names will be in Chinese while installing, but in English when written to the log file. Here English is used as the default language in situations when the Chinese tra file cannot be loaded (it's not intrinsically necessary to use English as default, but it is perhaps easiest). The problem is caused by the log being written inside a minimal variable scope, which erroneously did not include variables like %WEIDU_OS%.
Title: Re: Beta 240.02
Post by: c4_angel on August 09, 2017, 10:30:15 AM
Fixed. Sorry about that.
If you want a workaround in the meantime, you can use something like this:
Code: [Select]
LANGUAGE ~Chinese~ ~schinese~
~test/english/prompts.tra~
~test/schinese/prompts-%WEIDU_OS%.tra~
This way the component names will be in Chinese while installing, but in English when written to the log file. Here English is used as the default language in situations when the Chinese tra file cannot be loaded (it's not intrinsically necessary to use English as default, but it is perhaps easiest). The problem is caused by the log being written inside a minimal variable scope, which erroneously did not include variables like %WEIDU_OS%.

OK, it has been resolved. Thank you for your patience and instructions.