Author Topic: Unique problem with --list-components-json and Almateria's Restoration Project  (Read 268 times)

Offline AL|EN

  • Planewalker
  • *****
  • Posts: 320
  • Gender: Male
Hi,

it seems that there is a problem with "Almateria's Restoration Project" mod when I use  --list-components-json. This is the only mod which has such problem:

Quote
17 [ALIEN-PC]ALIEN G:\Mods-Extracted\ARPv8-4 > .\setup-arestorationp.exe --nogame --no-exit-pause --list-components-json .\arestorationp\arestorationp.tp2 1
[G:\Mods-Extracted\ARPv8-4\setup-arestorationp.exe] WeiDU version 24600
ERROR: No translation provided for @100

FATAL ERROR: Not_found

Strange thing: the mod can be installed just fine. What it could be? A bug with --list-components-json? This is partial tp2 (full https://pastebin.com/raw/YK89eZv7)
Quote
BACKUP ~arestorationp/backup~
AUTHOR ~Almateria (bukato@icloud.com)~
VERSION ~v8.4~
README "arestorationp/language/%LANGUAGE%/readme.html" "arestorationp/language/english/readme.html"
AUTO_TRA ~arestorationp/language/%s~
//%


ALWAYS
  ACTION_IF GAME_IS ~eet~ BEGIN
    OUTER_SET bg2_chapter = 12
    OUTER_SET wmp_xCoordAdd_SoA = 0
    OUTER_SET wmp_yCoordAdd_SoA = 2283
    OUTER_SET wmp_xCoordAdd_ToB = 893
    OUTER_SET wmp_yCoordAdd_ToB = 3011
    OUTER_SPRINT wmp_name_ToB "worldmap"
  END ELSE BEGIN
    OUTER_SET bg2_chapter = 0
    OUTER_SET wmp_xCoordAdd_SoA = 0
    OUTER_SET wmp_yCoordAdd_SoA = 0
    OUTER_SET wmp_xCoordAdd_ToB = 0
    OUTER_SET wmp_yCoordAdd_ToB = 0
    OUTER_SPRINT wmp_name_ToB "worldm25"
  END
  OUTER_FOR (i=1; i<=10; i=i+1) BEGIN
    OUTER_SET bg2_chapter = bg2_chapter + 1
    OUTER_SPRINT name_source ~bg2_chapter_%i%~
    OUTER_SET EVAL ~%name_source%~ = bg2_chapter
  END
  OUTER_SPRINT tra_path ~%MOD_FOLDER%/language~
  ACTION_DEFINE_ARRAY l-noconvert BEGIN setup setup-osx setup-unix setup-win32 END
  ACTION_DEFINE_ARRAY l-reload BEGIN game END
  ACTION_DEFINE_ASSOCIATIVE_ARRAY charset_table BEGIN
    english => cp1252
    italian => cp1252
    dutch => cp1252
    latin => cp1252
    faroese => cp1252
    polish => cp1250
    schinese => cp936
    french => cp1252
      german => cp1252
      ptbr => cp1252
  END
  LAF HANDLE_CHARSETS
    INT_VAR
      infer_charset = 0
    STR_VAR
      tra_path = EVAL ~%MOD_FOLDER%/language~
      noconvert_array = l-noconvert
      reload_array = l-reload
     charset_table = charset_table
      default_language = ~english~
  END
END


LANGUAGE ~Polski~
       ~polish~
         ~arestorationp/language/english/game.tra~
         ~arestorationp/language/english/setup.tra~
         ~arestorationp/language/polish/game.tra~
         ~arestorationp/language/polish/setup-%WEIDU_OS%.tra~
LANGUAGE ~English~
       ~english~
       ~arestorationp/language/english/game.tra~
       ~arestorationp/language/english/setup-%WEIDU_OS%.tra~
LANGUAGE ~Italiano (by Sergio)~
       ~italian~
         ~arestorationp/language/english/game.tra~
         ~arestorationp/language/english/setup.tra~
         ~arestorationp/language/italian/game.tra~
         ~arestorationp/language/italian/setup-%WEIDU_OS%.tra~
LANGUAGE ~Nederlands (by Tzarnal)~
       ~dutch~
         ~arestorationp/language/english/game.tra~
         ~arestorationp/language/english/setup.tra~
         ~arestorationp/language/dutch/game.tra~
         ~arestorationp/language/dutch/setup-%WEIDU_OS%.tra~
LANGUAGE ~lingua latina (by Sleep of Bronze)~
       ~latin~
         ~arestorationp/language/english/game.tra~
         ~arestorationp/language/english/setup.tra~
         ~arestorationp/language/latin/game.tra~
         ~arestorationp/language/latin/setup-%WEIDU_OS%.tra~
LANGUAGE ~Foeroyskr (BG2EE) (by inscrutable horse)~
       ~faroese~
         ~arestorationp/language/english/game.tra~
         ~arestorationp/language/english/setup.tra~
         ~arestorationp/language/faroese/game.tra~
         ~arestorationp/language/faroese/setup-%WEIDU_OS%.tra~
LANGUAGE ~Simplified Chinese (by Sebastian C)~
       ~schinese~
         ~arestorationp/language/english/game.tra~
         ~arestorationp/language/english/setup.tra~
         ~arestorationp/language/schinese/game.tra~
         ~arestorationp/language/schinese/setup-%WEIDU_OS%.tra~
LANGUAGE ~Francais (by Isaya and the d'Oghmatiques)~
       ~french~
         ~arestorationp/language/english/game.tra~
         ~arestorationp/language/english/setup.tra~
         ~arestorationp/language/french/game.tra~
         ~arestorationp/language/french/setup-%WEIDU_OS%.tra~
LANGUAGE ~Deutsch (by Dachrisma)~
       ~german~
         ~arestorationp/language/english/game.tra~
         ~arestorationp/language/english/setup.tra~
         ~arestorationp/language/german/game.tra~
         ~arestorationp/language/german/setup.tra~
LANGUAGE ~Portugues brasileiro (by Felipe)~
       ~ptbr~
         ~arestorationp/language/english/game.tra~
         ~arestorationp/language/english/setup.tra~
         ~arestorationp/language/ptbr/game.tra~
         ~arestorationp/language/ptbr/setup.tra~


BEGIN @100
ACTION_IF FILE_EXISTS_IN_GAME ~clck28.itm~ BEGIN
COPY_EXISTING ~clck28.itm~ ~override/l-clck.itm~END
« Last Edit: March 05, 2019, 08:10:43 PM by AL|EN »
You cannot have progress without committing changes...A Basic Modder's Guide to Git and Github

Offline AL|EN

  • Planewalker
  • *****
  • Posts: 320
  • Gender: Male
It's %WEIDU_OS% being undefined:
Quote
10 [ALIEN-PC]ALIEN ~\Downloads\ARPv8-4 > .\setup-arestorationp.exe  --nogame --debug-assign --skip-at-view --list-components-json .\arestorationp\arestorationp.tp2 0
[C:\Users\ALIEN\Downloads\ARPv8-4\setup-arestorationp.exe] WeiDU version 24600
SET %TP2_AUTHOR% = ~Almateria (bukato@icloud.com)~
SET %TP2_FILE_NAME% = ~.\arestorationp\arestorationp.tp2~
SET %TP2_BASE_NAME% = ~.\arestorationp\arestorationp.tp2~
SET %MOD_FOLDER% = ~arestorationp~
GET ~arestorationp/language/english/game.tra~ = ~arestorationp/language/english/game.tra~
GET ~arestorationp/language/english/setup.tra~ = ~arestorationp/language/english/setup.tra~
GET ~arestorationp/language/polish/game.tra~ = ~arestorationp/language/polish/game.tra~
GET ~arestorationp/language/polish/setup-%WEIDU_OS%.tra~ = ~arestorationp/language/polish/setup-%WEIDU_OS%.tra~
ERROR: No translation provided for @100

FATAL ERROR: Not_found

but it is suppose to be fixed: https://github.com/WeiDUorg/weidu/blob/b26ebf21541dc722485b4948b5b058b19c8a28c7/README-WeiDU-Changes.txt#L44
yet git log -S WEIDU_OS doesn't show any relevant commit (or I fail to see it)
« Last Edit: March 07, 2019, 02:13:55 AM by AL|EN »
You cannot have progress without committing changes...A Basic Modder's Guide to Git and Github

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1051
This is the same problem in different code. I committed the fix yesterday (but did not push it until just now), but ideally it should be refactored into some sort of minimal_variable_state common function, so these things do not happen over and over.

Offline AL|EN

  • Planewalker
  • *****
  • Posts: 320
  • Gender: Male
Thank you for quick fix. Lovely.
You cannot have progress without committing changes...A Basic Modder's Guide to Git and Github

 

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.

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)?: