Jump to content


Photo

BG2EE area adding weidu bug


  • Please log in to reply
5 replies to this topic

#1 Almateria

Almateria

    most garbage person

  • Modder
  • 969 posts

Posted 01 June 2014 - 03:26 AM

Hi! My mod is using  the standard procedure to add an area to the worldmap. It doesn't work on BG2EE. Everything shows up as correct, up to the point after "Adding wmp area" message is shown, then I get three error messages and this:

 

ERROR: Unix.Unix_error(Unix.ENOENT, "opendir", "save")

idk wth



#2 Wisp

Wisp
  • Modder
  • 1353 posts

Posted 01 June 2014 - 04:14 AM

You are probably using an old version of sc#addWmpAre which is not compatible with BG2: EE.



#3 Almateria

Almateria

    most garbage person

  • Modder
  • 969 posts

Posted 01 June 2014 - 04:50 AM

And how does it differ from the new version? I use the exact same code before in the tp2, but without defining the associative array. Is this it?



#4 Wisp

Wisp
  • Modder
  • 1353 posts

Posted 01 June 2014 - 05:12 AM

And how does it differ from the new version?

I couldn't say without knowing how old your version is. But frankly, I don't care to support old versions. If you want to use it, you are mostly on your own. Oh, yeah, no support is another reason not to use non-standard versions of standard functions.

 

The particular error you posted happens because sc#addWmpAre is trying to patch saved games (inclSv is not set to 0), but BG2: EE keeps its saved games elsewhere and no directory called "saves" exists. You may as well set inclSv to 0, because patching saved games is a bad idea and sc#addWmpAre can't patch EE saves anyway (because the EEs move the saved WMP into the SAV file and I haven't updated the latest version to be able to unSAV the WMP yet, because patching saves is a bad idea). I can only guess the function was not trying to patch saves when you used it before, or you did not use it on BG2: EE until now.



#5 Almateria

Almateria

    most garbage person

  • Modder
  • 969 posts

Posted 01 June 2014 - 06:24 AM

Well I don't know either. I use weidu 236 if that's what it's all about v:|v I just search the documentation for functions that would be helpful, y'now? sc#addwmpare hasn't been flagged as old or anything like this.

But thanks for your help anyway.

 

e: Also the previous function patched the ToB worldmap  which I guessss acts differently? Maybe?


Edited by Almateria, 01 June 2014 - 06:25 AM.


#6 Wisp

Wisp
  • Modder
  • 1353 posts

Posted 01 June 2014 - 07:49 AM

The version included in WeiDU 236 is current. Is that the version you are using? I.e., are you not redefining sc#addWmpAre anywhere in your mod, for example, via inclusion of worldmap.tph? If so, I apologise for my tone. The current version of sc#addWmpAre is not old or in any way deprecated, but there is a known issue that prevents it from patching saved games on EE games. However, in that case, you shouldn't be having this problem, because the current version of sc#addWmpAre is able to find the EE save directories.

 

The non-EE and the EE worldmaps are structurally identical. The only relevant differences are that the EEs keep their saved WMPs elsewhere.