SpellholdStudios / BP-BGT-Worldmap

This mod replaces the ingame worldmap with a large, new worldmap. It is used especially for the Megamodification (BGT, TDD, SOS, CtB, TS, DSotSC, NTotSC, SoBH, Drizzt Saga...) or partial installations of the Megamodification. It also includes a full set of coloured map icons. The mod offers the choice between two different worldmap sizes: large and huge. Either of these two worldmaps can be used for BG1, BG2 and ToB. Alternatively, a smaller, specially prepared worldmap can be used for ToB.
15 stars 5 forks source link

Can't install Worldmap 12 [Tileconv on Linux] #66

Closed jcvignoli closed 11 months ago

jcvignoli commented 11 months ago

I'm getting the following error when installing worldmap 12 on linux:

Huge worldmap 8000x6300 is required and will be installed Copying and patching 1 file ... Copying and patching 1 file ... Copying and patching 1 file ... Copying and patching 1 file ... FAILURE: ERROR: tileconv not found: "" Stopping installation because of error. Stopping installation because of error. Stopping installation because of error. Stopping installation because of error. Stopping installation because of error. Stopping installation because of error. Stopping installation because of error.

I'm installing the French version, but the English results in same error. With version 11 I can install flawlessly.

Weidu log is attached. setup-bp-bgt-worldmap.zip

I'm using infinity_ui, could it be related?

Roberciiik commented 11 months ago

Version 12 introduced a new tool for tile conversion. I'm not sure if it supports Linux. Will check, In the meantime I suggest to use v11. Should work with all your modification that you are using.

jcvignoli commented 11 months ago

I confim it works with v11. Will wait to use v12, the new icons you added will fit perfectly with my new mods.

thanks,

Roberciiik commented 11 months ago

Ok so from the code I can see that Linux version is attached. Could you try to edit lib.tpa lines from:

    LAF HANDLE_TILECONV
      STR_VAR
        input_path = EVAL "%path%"
        output_path   = EVAL "bp-bgt-worldmap/language"
    END

to

    LAF HANDLE_TILECONV
      STR_VAR
        input_path = EVAL "%path%"
                tileconv_path = "bp-bgt-worldmap/tools/tileconv/linux/x86_64"
        output_path   = EVAL "bp-bgt-worldmap/language"
    END

or play with this variable a bit to match proper path to the binary.

jcvignoli commented 11 months ago

I did as you recommended, but I get a new error:

Huge worldmap 8000x6300 is required and will be installed Copying and patching 1 file ... Creating 1 directory /bin/sh: 1: bp-bgt-worldmap/tools/tileconv/linux/x86_64: Permission denied Creating 1 directory /bin/sh: 1: bp-bgt-worldmap/tools/tileconv/linux/x86_64: Permission denied Creating 1 directory /bin/sh: 1: bp-bgt-worldmap/tools/tileconv/linux/x86_64: Permission denied Copying 1 file ... Stopping installation because of error. Stopping installation because of error. Stopping installation because of error. Stopping installation because of error.

ERROR Installing [Worldmap for Baldur's Gate - including colored Baldur's Gate map icons], rolling back to previous state Will uninstall 32 files for [bp-bgt-worldmap/setup-bp-bgt-worldmap.tp2] component 0. Uninstalled 32 files for [bp-bgt-worldmap/setup-bp-bgt-worldmap.tp2] component 0. ERROR: Unix.Unix_error(Unix.ENOENT, "stat", "bp-bgt-worldmap/language/english/mbc/worldmap_large.mos") Please make a backup of the file: setup-bp-bgt-worldmap.debug and look for support at: www.shsforums.net/forum/401-worldmap/

I tried to chmod 777 tileconv, no luck. If I change the "tileconv_path", it says not found, so it is actually found but can't be executed.

Roberciiik commented 11 months ago

Are you able to run tileconv tool from the console? By yourself without the modification?

jcvignoli commented 11 months ago

Absolutely, I can run it (as long as I make it executable)

Roberciiik commented 11 months ago

Unfortunately, I don't have a Linux to resolve this issue now. I will ask for some help on the forum.

jcvignoli commented 11 months ago

It may help to know that Sirines Call and TDDz include tileconv too. I could install both mods, which apparently have the same needs as worldmap.

Roberciiik commented 11 months ago

I copied binaries structure from Sirines' Call mod. Could you verify it using this branch: https://github.com/Roberciiik/BP-BGT-Worldmap/archive/refs/heads/tileconv-linux.zip

Let me know if this is helpful. I can try with older version of the a7tools script.

jcvignoli commented 11 months ago

I have to run extra tests with proper vanilla BG install, but so far it's good. But now I get an extra question that interrupts automatized installation:

Which size of the worldmap do you want?

  1. Large Worldmap 4900x3500
  2. Huge Worldmap 8000x6300

Is there a way to bypass the question? I didn't get such question previously.

Roberciiik commented 11 months ago

It can detect automatically that you need a huge version of the map if you have installed some mods that require distant regions. Then the question is not showing up.

jcvignoli commented 11 months ago

Correct, I installed a fully modded version, and it didn't ask the question. I also confirm the latest version of worldmap installed flawlessly, thanks! I however noticed a small glitch: the area map is not centered, see the screenshot (can't remember if with Worlmap 11 it Screenshot from 2023-11-15 07-23-03

Roberciiik commented 11 months ago

Great to hear that installtion goes fine. However, I don't think Worldmap touches this view. I can see that you are using some UI mod(s). Maybe it is causing this issue from the screenshot.

jcvignoli commented 11 months ago

Very good, I'll try to investigate further what mod may be responsible for the issue. Thanks again for your help, can't wait for playing my moded game and benefit from the very extensive worldmap I now get.

Roberciiik commented 11 months ago

It might be worth to check if this is reproducible on clean installation only with Worldmap. If not, it is probably some compatibility issues with other UI mod. Thanks for the help with investigation.

jcvignoli commented 11 months ago

I've just tested on a vanilla BGII (so not the very same map, but a BGII map), and it works out. I could test on a vanilla BGT (so BGI + EET) if you think it's worth it.

Roberciiik commented 11 months ago

Only if you test both scenarios: Worldmap and Worldmap+Your UI mod to see if there is a glitch.

jcvignoli commented 11 months ago

I tested both scenarios: one with (BGII EET) dragon ui, one without. The later doesn't have the bug, the former does. I installed worldmap with dragon ui compatibliity option.