Author Topic: Two tp2 files inside one mod folder  (Read 176 times)

Offline AL|EN

  • Planewalker
  • *****
  • Posts: 354
  • Gender: Male
Two tp2 files inside one mod folder
« on: September 07, 2020, 09:35:27 AM »
Hi, I'm experimenting again:

Mod structure:
Code: [Select]
FearunStuff\
FearunStuff\FearunStuff-Armors.tp2
FearunStuff\FearunStuff-Weapons.tp2
Setup-FearunStuff.exe

I'm aware that weidu won't be able to detect/launch those two files so I'm using two helper commands in order to install two parts of the mod:

Code: [Select]
Setup-FearunStuff.exe FearunStuff\FearunStuff-Armors.tp2and
Code: [Select]
Setup-FearunStuff.exe FearunStuff\FearunStuff-Weapons.tp2
Related part of component code:
Quote
BEGIN "Faerūn Items: Armors" DESIGNATED 1000 LABEL "Armors"
    //doesn't work, weidu can't find FearunStuff\FearunStuff-Armors.tp2
    OUTER_SET num = ID_OF_LABEL "FearunStuff\FearunStuff-Armors.tp2" "Armors"
    PRINT "%num%"

Does weidu supports such non-standard setup? So far, the only thing which I tested is that getting correct "ID_OF_LABEL" doesn't work. A LABEL bug or unsupported dead end?
« Last Edit: September 07, 2020, 09:47:37 AM by AL|EN »
Project Infinity public BETA - mod manager for Infinity Engine games
Modder's Guide to Github - you cannot have progress without committing changes

Offline The Imp

  • Planewalker
  • *****
  • Posts: 288
  • Gender: Male
Re: Two tp2 files inside one mod folder
« Reply #1 on: September 08, 2020, 01:30:19 AM »
Weidu has individual mod components, that you just use BEGIN to start ... so I don't see a reason to have two different .tp2 files... And you can also include a .tp_ files* into the same mods files, so why would you need to have different .tp2 files for one mod ?
*This being a .tpa -files for example that you INCLUDE ... into the same component, or different ones like the BG2 Tweaks Pack does for example with everyone of it's components, today.
« Last Edit: September 08, 2020, 01:31:46 AM by The Imp »

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1108
Re: Two tp2 files inside one mod folder
« Reply #2 on: September 09, 2020, 11:06:00 AM »
If you keep a TP2 inside a directory, it needs to have the same name as the directory or the TP2 look-up won't work. You can have foo/foo.tp2 or foo/setup-foo.tp2, but not foo/bar.tp2. ID_OF_LABEL needs to do TP2 look-up because moving your TP2 from setup-foo.tp2 to foo/foo.tp2 is a supported action. I could have used the log file (like MOD_IS_INSTALLED etc.) except ID_OF_LABEL does not return different results for mods that are not installed (and the log is only useful for installed mods).
« Last Edit: September 09, 2020, 11:25:23 AM by Wisp »

 

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