Jump to content


Help: BGT 1.14 on Mac OS X 10.6

BGT-Weidu Mac OS X 1.14 Install Troubleshoot

  • Please log in to reply
68 replies to this topic

#41 GammaLeak

GammaLeak
  • Member
  • 40 posts

Posted 25 February 2012 - 08:31 AM

Progress!!!

I was able to start up the game and create a character with your first TP2 (although I started in the Duchal Palace LOL!).
Attached File  setup-bgt-1-results.7z   164.02K   243 downloads

With you second TP2 I got the same assertions as before.
Attached File  setup-bgt-2-results.7z   156.41K   250 downloads

The zip files above contain the .DEBUG files as well as my baldur.ini and the binaries and scripts in my bgt/install/osx folder
Posted Image

#42 Turambar

Turambar
  • Modder
  • 935 posts

Posted 25 February 2012 - 09:08 AM

Thanks... that's interesting.
Next test: Attached File  setup-bgt.tp2   366.11K   382 downloads
Be aware that what I'm doing is to cut off vital parts of the installation, so that's why you won't be able to play a BGT game with that... But so, I have enormously reduced the range of commands which could cause your issue.
Another thing which could be useful: install with the original .tp2, and post the resulting chitin.key, as well as the chitin.key from your wine installation

If you get assertions, another thing you could try is to uninstall the tests and install the bigg's Generalized biffing instead, and see if you can launch the game after that.

Turambar

Currently supporting: DSotSC for BGT, NTotSC - forum

Turambar's fixes and tweaks for BG2, BGT, DSotSC, NTotSC, SoBH and more!

 

Before posting questions (even regarding posts written by myself), please look at Jarno Mikkola's FAQs for the Megamods!
(how to correctly report CTDs)

 


vipersig.jpg


#43 GammaLeak

GammaLeak
  • Member
  • 40 posts

Posted 25 February 2012 - 10:22 AM

More results:

The new test .tp2 you gave me also loaded and I made a character (which started in the Duchal Palace again)
Attached File  setup-bgt-3-results.7z   204.51K   316 downloads

I've also attached results from the "beta" setup-bgt.tp2 you gave me installed with Weidu for Mac and Weidu for PC via Wine's command shell
Attached File  setup-bgt-beta-results.7z   281.93K   323 downloads
Attached File  setup-bgt-wine-results.7z   282.97K   319 downloads

EDIT: Note that all of these 7z's contain the CHITIN.KEY file.

Edited by GammaLeak, 25 February 2012 - 10:28 AM.

Posted Image

#44 GammaLeak

GammaLeak
  • Member
  • 40 posts

Posted 25 February 2012 - 10:38 AM

I tried the Generalized Biffing mod on a vanilla default installation of BG2 and it caused the exact same assertions that BGT is. I tried both options: only wav&tis&bam and all files.

See the attached results:
Attached File  genbiff-all-files.7z   103.64K   253 downloads
Attached File  genbiff-only-wav-tis-bam.7z   95.37K   259 downloads
Posted Image

#45 Turambar

Turambar
  • Modder
  • 935 posts

Posted 25 February 2012 - 10:58 AM

Wonderful, thanks. Actually, not SO wonderful; I get more and more thinking this is a bug of WeiDU itself.

New test: open the generalized biffing .tp2 (I think it's in the mod's folder); look for all occurrences of wav and delete them; reinstall and see if you get assertions.

The new files I gave you had different BIFF commands commented out. When only area files, tilesets etc were biffed, you did not have assertions. If wav files were biffed, you got them.
This test on generalized biffing should definitely decide whether it's only wavs who create problems, or not.

Edit: no need. I think I've figured out. Inside the chitin.key, all new biffs are listed as DATA:[BIFFNAME].BIF, whereas the original ones are listed as DATA\[BIFFNAME].BIF
That's probably the error.
It would be interesting to know how the chitin.key of the original OSX game looks like, IE, if the : is correct for mac, or if it's wrong. In the first case, I'll need to devise a patch; that should be quite easy, though.
In the second case, I'll report it on the WeiDU forum (actually, I'll probably report it anyway).

I'll build an OSX version of BGT and a patch for the .KEY in some days...

Edited by Turambar, 25 February 2012 - 11:08 AM.

Turambar

Currently supporting: DSotSC for BGT, NTotSC - forum

Turambar's fixes and tweaks for BG2, BGT, DSotSC, NTotSC, SoBH and more!

 

Before posting questions (even regarding posts written by myself), please look at Jarno Mikkola's FAQs for the Megamods!
(how to correctly report CTDs)

 


vipersig.jpg


#46 GammaLeak

GammaLeak
  • Member
  • 40 posts

Posted 25 February 2012 - 11:47 AM

You're right. That worked!

I opened the CHITIN.KEY and replaced every instance of "BIFDATA:" with "BIFDATA\" and now the full BGT install using the Mac version of WeiDU works; no assertions!

OK, so here's what I think is going on. The PC version uses '\' as the separator, as you noticed. The Mac version of BG2:SoA/ToB appears to have used ':' as the separator.

However, in my case (and probably for most people these days), I'm installing the PC version with Wine(skin) and then modifying it with the Mac version of WeiDU. The "problem" in the WeiDU code is in arch_osx.ml.

arch_osx.ml, line 43
let biff_path_separator = ":"

Yet, for those who are still actually installing and using the Mac version of BG2, that's probably correct.

So, somehow the WeiDU code needs to be changed to identify whether or not it's dealing with a PC version of BG2 or a Mac version of BG2 and use the appropriate separator based on that. Right now it assumes WeiDU assumes that if it's running on a Mac it's going to be modifying a Mac version of BG2, but it shouldn't make that assumption.

I'd make the change myself and send it to whoever maintains WeiDU, but I don't know much about the ml programming language or about WeiDU's code base.

Edited by GammaLeak, 25 February 2012 - 11:47 AM.

Posted Image

#47 Turambar

Turambar
  • Modder
  • 935 posts

Posted 25 February 2012 - 01:20 PM

The WeiDU forum is here: http://forums.pocket....php?board=44.0
The mac version, AFAIK, is maintained by DevSin, but I don't know how the work is shared between him and the bigg.
IMO, WeiDU for Mac should somehow detect what version has been installed, and use the correct separator. In fact, not all games have a Mac version; PST must be run on Mac through wine AFAIK (even though it keeps the biffs in the game folder, so there's no need for separators), and I don't know if BG1 and IWD1 for Mac exist...
in the meantime, I could write a patch for Chitin.key, to be installed after all other mods, which makes biffs created with Weidu for Mac wine-compatible.

Something like
COPY ~chitin.key~ ~chitin.key~
  REPLACE_TEXTUALLY CASE_INSENSITIVE EXACT_MATCH ~\(data\):~ ~\1\\~
BUT_ONLY
preceded by the necessary flags and stuff, could work, but it should be tested to check that it doesn't corrupt anything (working on the .key is a bit dangerous...).

Edit: here is the fix, to be installed after any other mod.
I'll still need to edit BGT for Mac, so please test it with generalized biffing: biff first, then install this, then try to play: Attached File  Tu-Mac-Wine fix.7z   608.81K   313 downloads

Edited by Turambar, 25 February 2012 - 01:58 PM.

Turambar

Currently supporting: DSotSC for BGT, NTotSC - forum

Turambar's fixes and tweaks for BG2, BGT, DSotSC, NTotSC, SoBH and more!

 

Before posting questions (even regarding posts written by myself), please look at Jarno Mikkola's FAQs for the Megamods!
(how to correctly report CTDs)

 


vipersig.jpg


#48 GammaLeak

GammaLeak
  • Member
  • 40 posts

Posted 25 February 2012 - 04:05 PM

I tried your fix and unfortunately it didn't work.
Attached File  setup-tu-mac-wine-results.7z   92.89K   242 downloads

An examination of the CHITIN.KEY reveals why that might be. The generalized biffing mod has different casing. Instead of "BIFDATA:" it leaves behind "BIFdata:". I changed the ':' to a '\' and then the game loaded up.

Also, the WeiDU executable (which you had renamed as "setup-tu-mac-wine") didn't want to run right away.
  • The .tp2 was not named correctly. It needs to be named "setup-tu-mac-wine.tp2" and not just "tu-mac-wine.tp2"
  • For some reason it didn't find the tp2 in the subfolder. When I moved the tp2 up to the main bg2 folder than it worked.

Thanks for all your help with this! It's exciting that we've found the problem. A fix to WeiDU would solve the problem for good, I think.
Posted Image

#49 Turambar

Turambar
  • Modder
  • 935 posts

Posted 26 February 2012 - 12:57 AM

I tried your fix and unfortunately it didn't work.
Attached File  setup-tu-mac-wine-results.7z   92.89K   242 downloads

An examination of the CHITIN.KEY reveals why that might be. The generalized biffing mod has different casing. Instead of "BIFDATA:" it leaves behind "BIFdata:". I changed the ':' to a '\' and then the game loaded up.

No, that was not the problem, I had already taken case into account. I just realized... if you look at the .tp2, it says (IIRC) CASE_INSENSITIVE EXACT_MATCH, but then I used a regexp.
So, it should be CASE_INSENSITIVE EVALUATE_REGEXP.
Please try like that

Also, the WeiDU executable (which you had renamed as "setup-tu-mac-wine") didn't want to run right away.

  • The .tp2 was not named correctly. It needs to be named "setup-tu-mac-wine.tp2" and not just "tu-mac-wine.tp2"
  • For some reason it didn't find the tp2 in the subfolder. When I moved the tp2 up to the main bg2 folder than it worked.

Thanks for all your help with this! It's exciting that we've found the problem. A fix to WeiDU would solve the problem for good, I think.

Weidu usually allows a setup-test executable to look for setup-test.tp2, test.tp2, test/test.tp2 and test/setup-test.tp2. Perhaps, if you call the executable setup-test.command, does anything change?

Edited by Turambar, 26 February 2012 - 01:00 AM.

Turambar

Currently supporting: DSotSC for BGT, NTotSC - forum

Turambar's fixes and tweaks for BG2, BGT, DSotSC, NTotSC, SoBH and more!

 

Before posting questions (even regarding posts written by myself), please look at Jarno Mikkola's FAQs for the Megamods!
(how to correctly report CTDs)

 


vipersig.jpg


#50 GammaLeak

GammaLeak
  • Member
  • 40 posts

Posted 26 February 2012 - 05:00 AM

Changing the TP2 to say CASE_INSENSITIVE EVALUATE_REGEXP worked!

As for running the mod, it appears that the Mac version of WeiDU (at the very least) is somewhat finnicky about the naming of the mod.

You have:
setup-tu-mac-wine
tu-mac-wine
-> tu-mac-wine.tp2

It refuses to run that. However, if you change all but one of the '-' to '_' then it works. So for instance, this will run:
setup-tu_mac_wine
tu_mac_wine
-> tu_mac_wine.tp2

Posted Image

#51 Turambar

Turambar
  • Modder
  • 935 posts

Posted 26 February 2012 - 05:42 AM

Thank you for the tests; does this work? Attached File  Tu-Mac-Wine fix.7z   608.82K   286 downloads
If it does, I'll upload it inside "IE modding tools", or some-place like that; I'll build the Mac version of BGT sometimes next week

Edited by Turambar, 26 February 2012 - 05:44 AM.

Turambar

Currently supporting: DSotSC for BGT, NTotSC - forum

Turambar's fixes and tweaks for BG2, BGT, DSotSC, NTotSC, SoBH and more!

 

Before posting questions (even regarding posts written by myself), please look at Jarno Mikkola's FAQs for the Megamods!
(how to correctly report CTDs)

 


vipersig.jpg


#52 GammaLeak

GammaLeak
  • Member
  • 40 posts

Posted 26 February 2012 - 01:34 PM

That new version worked perfectly. :new_thumbs:
Posted Image

#53 Turambar

Turambar
  • Modder
  • 935 posts

Posted 14 March 2012 - 07:54 AM

I thought I had already asked you, but I can't find it; can you please upload the ppc version of the mac binaries for tis2bg2 and mosunpack?
I'm editing BGT for better compatibility on all platforms, and I'd like to include them in the package, if it's possible.

Turambar

Currently supporting: DSotSC for BGT, NTotSC - forum

Turambar's fixes and tweaks for BG2, BGT, DSotSC, NTotSC, SoBH and more!

 

Before posting questions (even regarding posts written by myself), please look at Jarno Mikkola's FAQs for the Megamods!
(how to correctly report CTDs)

 


vipersig.jpg


#54 Turambar

Turambar
  • Modder
  • 935 posts

Posted 14 March 2012 - 02:31 PM

Here's an installer which should work on Mac (only through wine: installing it on BG2 for Mac will delete the game executable at uninstallation due - apparently - to a weidu bug!).
Binaries (tis2bg2, tis/mosunpack): put them into bgt/install/osx/mac/ : the .tp2 will now look for the files inside .../%WEIDU_OS%/%WEIDU_ARCH%, to prepare support for 64-bit binaries (eg, for OSx Lion+).
Attached File  BGT115-beta.7z   13.64MB   317 downloads

Another new feature in this beta: you can (in all OSs) pass system-path as last argument (in --args-list); in that case, weidu will look for the required binaries in the system path instead of %WEIDU_OS%/%WEIDU_ARCH% folder; that could be useful in case you have compiled the files yourself (eg, because your architecture is different from the one of the binaries provided).
Installed correctly on Linux and wine (even though the latter lasted an awful lot of time); does it work on mac too? You'll still need the fix for the key file I posted some time ago

Turambar

Currently supporting: DSotSC for BGT, NTotSC - forum

Turambar's fixes and tweaks for BG2, BGT, DSotSC, NTotSC, SoBH and more!

 

Before posting questions (even regarding posts written by myself), please look at Jarno Mikkola's FAQs for the Megamods!
(how to correctly report CTDs)

 


vipersig.jpg


#55 GammaLeak

GammaLeak
  • Member
  • 40 posts

Posted 15 March 2012 - 07:44 AM

I thought I had already asked you, but I can't find it; can you please upload the ppc version of the mac binaries for tis2bg2 and mosunpack?
I'm editing BGT for better compatibility on all platforms, and I'd like to include them in the package, if it's possible.


Hi Turambar!

Were you able to find these? Your follow up post after this would seem to indicate you did.

Thanks!
Posted Image

#56 Turambar

Turambar
  • Modder
  • 935 posts

Posted 15 March 2012 - 02:51 PM

No, I haven't found those binaries; the package here has all scripts,..., but no mac binaries yet; as I wrote, you'll have to manually add them. Didn't you have them? You said you were able to install it, a part from the problem with the biffs
besides, the archive contains a lot of crap; it's only for testing purpose, if it works, I'll clean it up

edit: I've found tis2bg2 and tisunpack; could you please upload mosunpack again? is it PPC compatible?

Edited by Turambar, 15 March 2012 - 02:57 PM.

Turambar

Currently supporting: DSotSC for BGT, NTotSC - forum

Turambar's fixes and tweaks for BG2, BGT, DSotSC, NTotSC, SoBH and more!

 

Before posting questions (even regarding posts written by myself), please look at Jarno Mikkola's FAQs for the Megamods!
(how to correctly report CTDs)

 


vipersig.jpg


#57 GammaLeak

GammaLeak
  • Member
  • 40 posts

Posted 15 March 2012 - 04:45 PM

edit: I've found tis2bg2 and tisunpack; could you please upload mosunpack again? is it PPC compatible?


If I remember correctly, you gave me the Mac/PPC versions of tis2bg2 and tisunpack earlier in this thread. :)

As for mosunpack... I had to find and build the source myself from Wisp's upload here. It doesn't have any PPC binaries in that package, unfortunately.

Maybe devSin has a PPC-compiled version up somewhere...?
Posted Image

#58 William Imm

William Imm

    Obsessive Penguin Lover

  • Member
  • 486 posts

Posted 15 March 2012 - 06:17 PM

Semi-OT: I wish there were Linux binaries of tizpack/tisunpack/tis2bg2/mospack - mainly for Linux support in mods, but whatever.
At this point, I'm not really doing much Baldur's Gate related. More focused on Skyrim modding and the Born of Legend tabletop roleplaying game. Don't expect much activity here.

#59 GammaLeak

GammaLeak
  • Member
  • 40 posts

Posted 15 March 2012 - 07:21 PM

Semi-OT: I wish there were Linux binaries of tizpack/tisunpack/tis2bg2/mospack - mainly for Linux support in mods, but whatever.


Download Turambar's BGT115-beta.7z file (see the link a few posts above). It's got the "unpack" versions and tis2bg2 compiled for *nix machines. Look under:
bgt/install/unix/x86

It doesn't have the "pack" executables though....

Edited by GammaLeak, 15 March 2012 - 07:21 PM.

Posted Image

#60 Wisp

Wisp
  • Modder
  • 1353 posts

Posted 16 March 2012 - 02:11 AM

I am fairly sure TisPack binaries for Linux are included in the WeiDU-Linux download (or maybe in the TisPack download). The MosPack download includes x86 Linux binaries.





Also tagged with one or more of these keywords: BGT-Weidu, Mac, OS X, 1.14, Install, Troubleshoot