Author Topic: Beta 240.02  (Read 2340 times)

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Beta 240.02
« on: June 03, 2017, 08:34:32 AM »
No new features will be added until after 241 has been released.

Changes since 240.01:
  • WeInstall quotes the name of the mod and should work with e.g., spaces.
  • You can use \n back-references in the destination of COPY_EXISTING_REGEXP.
  • Trying to copy files to a non-existent directory will result in the directory being created instead of an installation failure.
  • Rewrite documentation of READ_2DA_ENTRIES_NOW/FORMER and SET_2DA_ENTRY_LATER/NOW.
  • Add TEXT option for APPEND_FILE.
  • Add WITH_SCOPE and PATCH_WITH_SCOPE.
  • Fix incorrect offsets in WMP_*_LINKS.

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

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: Beta 240.02
« Reply #1 on: June 03, 2017, 05:01:23 PM »
Binaries for MacOS are now up, with thanks to Argent77.
« Last Edit: June 03, 2017, 05:03:05 PM by Wisp »

Offline c4_angel

  • Planewalker
  • *****
  • Posts: 30
Re: Beta 240.02
« Reply #2 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.
« Last Edit: June 13, 2017, 07:25:54 AM by c4_angel »

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: Beta 240.02
« Reply #3 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.

Offline c4_angel

  • Planewalker
  • *****
  • Posts: 30
Re: Beta 240.02
« Reply #4 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.
« Last Edit: June 15, 2017, 11:36:20 PM by c4_angel »

Offline c4_angel

  • Planewalker
  • *****
  • Posts: 30
Re: Beta 240.02
« Reply #5 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.

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: Beta 240.02
« Reply #6 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.

Offline c4_angel

  • Planewalker
  • *****
  • Posts: 30
Re: Beta 240.02
« Reply #7 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.
« Last Edit: July 28, 2017, 06:00:16 PM by c4_angel »

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: Beta 240.02
« Reply #8 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%.

Offline c4_angel

  • Planewalker
  • *****
  • Posts: 30
Re: Beta 240.02
« Reply #9 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.

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal 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:
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)?: