Author Topic: [n00b] Need help setting up Weidu Install for Portrait Pack  (Read 4705 times)

Offline Rodman49

  • Excellence Incarnate
  • Planewalker
  • *****
  • Posts: 227
  • Gender: Male
  • Nietzschean
So, it's been while since I've been to PPG, but finally got done fighting two wars, running a company in NY city and now have a reasonable job back in the Southeast.  First thing that is up on my modding to do list is convert the ultimate portrait pack to install automatically.  Initially I was going to do this with VBScript however it seems like using Weidu is still the community standard and I should be using it.

The concept is very simple.  I only need to do two things:
1. Copy a portraits directory into the BG:EE or BG2:EE directory.
2. Append BGEE.SQL with a simple insert rows SQL action.

My initial script (tp2) file is available here: https://github.com/Paheej/SuperUltPortraitPack/blob/master/superultportraitpack.tp2

The error message I receive is available here: https://github.com/Paheej/SuperUltPortraitPack/blob/master/error.txt
(Fatal parse error on COPY line)

Could someone help me with setting up the tp2 file so I can get a functional install?  It looks like I am missing critical initialization steps, but even after a BEGIN function it still fails at the copy line.  Here is an image link of the directory: http://i.imgur.com/gJnTbgG.png

Offline Mike1072

  • Planewalker
  • *****
  • Posts: 298
  • Gender: Male
Re: [n00b] Need help setting up Weidu Install for Portrait Pack
« Reply #1 on: August 27, 2015, 01:50:16 AM »
You need BEGIN ~Component Name~.  If it still fails there, post the updated code and error message.

Offline Rodman49

  • Excellence Incarnate
  • Planewalker
  • *****
  • Posts: 227
  • Gender: Male
  • Nietzschean
Re: [n00b] Need help setting up Weidu Install for Portrait Pack
« Reply #2 on: August 27, 2015, 09:49:20 PM »
Mike,

Thanks for the reply and this seems to have at least installed the mod correctly however I am now having the following issue:
Installing [Super Ultimate Portrait Pack]
Copying 1 file ...
ERROR: COPY ~SuperUltPortraitPack/portraits/FDWBA00L.bmp~ ~portraits/FDWBA00L.bm
p~ FAILED: cannot open target
Appending to files ...
[./DATA/GUIBGEE.BIF] 42480436 bytes, 331 files, 0 tilesets
Appended text to [BGEE.SQL]


Full error message is available at: https://github.com/Paheej/SuperUltPortraitPack/blob/master/error_postbegin.txt
Second version of code is available at: https://github.com/Paheej/SuperUltPortraitPack/blob/master/superultportraitpackv2.tp2

How do I tell Weidu to create a "portraits" folder?  I didn't see a create directory or folder command when searching through Weidu documentation.

Offline Mike1072

  • Planewalker
  • *****
  • Posts: 298
  • Gender: Male
Re: [n00b] Need help setting up Weidu Install for Portrait Pack
« Reply #3 on: August 27, 2015, 10:38:30 PM »
It's REALLY hard to find it in the WeiDU readme.  I knew it was there somewhere and it still took me a while.  The command is called MKDIR.  If the specified directory already exists, nothing happens. Otherwise, it creates the directory.

If you want the mod to be compatible with the Enhanced Editions (which store the portrait folder and other settings in a folder associated with the current user), you should use MKDIR ~%USER_DIRECTORY%/portraits~ and copy your portraits to that directory.
« Last Edit: August 27, 2015, 10:40:09 PM by Mike1072 »

Offline Rodman49

  • Excellence Incarnate
  • Planewalker
  • *****
  • Posts: 227
  • Gender: Male
  • Nietzschean
Re: [n00b] Need help setting up Weidu Install for Portrait Pack
« Reply #4 on: August 31, 2015, 12:06:43 AM »
Wow, I cannot believe I did not realize it is the same command as normal command prompt.  Thanks Mike!

In the end I have decided to not use the portrait directory and instead install straight to override which keeps the custom window from appearing.  I also did some minor bugfixes and will create an installer later this week; tested and works fine with BG:EE though.  Now I just need to figure out how to make the mod figure out if the game is bgee or bg2ee

Looks like I just need to use the following commands in order to do that:
REQUIRE_PREDICATE GAME_IS

Thanks a ton Mike1072.  I appreciate the help.

 

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.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

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