Jump to content


Photo

Need help coding update for mod

BGEE BG: EE Classic Movies WeiDU

  • Please log in to reply
3 replies to this topic

#1 Sam.

Sam.
  • Administrator
  • 1292 posts

Posted 11 November 2013 - 11:44 AM

Several people have requested that I update BG: EE Classic Movies now that WeiDU is BGEE compatible, and with WeiDU 235 (which will have the variable USER_DIRECTORY with which you can access BGEE's baldur.ini) it will be possible to have WeiDU update Baldur.ini instead of having the user do it manually as is currently the case for the mod. Could someone please code this for me? Every movie that is added to (or is already in) the game should have its corresponding entry added to Baldur.ini:

	'MOVIES',	'BEREGOST',	'1',
	'MOVIES',	'BG4LOGO',	'1',
	'MOVIES',	'BGENTER',	'1',
	'MOVIES',	'BGSUNRIS',	'1',
	'MOVIES',	'BGSUNSET',	'1',
	'MOVIES',	'BHAAL',	'1',
	'MOVIES',	'BILOGO',	'1',
	'MOVIES',	'BIOWBOTH',	'1',
	'MOVIES',	'BLACKPIT',	'1',
	'MOVIES',	'BWDRAGON',	'1',
	'MOVIES',	'CAMP',	'1',
	'MOVIES',	'CNDLKEEP',	'1',
	'MOVIES',	'CREDITS',	'1',
	'MOVIES',	'DAYNITE',	'1',
	'MOVIES',	'DEATHAND',	'1',
	'MOVIES',	'DUNGEON',	'1',
	'MOVIES',	'DURLAG',	'1',
	'MOVIES',	'ELDRCITY',	'1',
	'MOVIES',	'ENDCRDIT',	'1',
	'MOVIES',	'ENDMOVIE',	'1',
	'MOVIES',	'FRARMINN',	'1',
	'MOVIES',	'GNOLL',	'1',
	'MOVIES',	'INFELOGO',	'1',
	'MOVIES',	'INTRO',	'1',
	'MOVIES',	'IRONTHRN',	'1',
	'MOVIES',	'MINEFLOD',	'1',
	'MOVIES',	'NASHKELL',	'1',
	'MOVIES',	'NITEDAY',	'1',
	'MOVIES',	'PALACE',	'1',
	'MOVIES',	'REST',	'1',
	'MOVIES',	'RESTDUNG',	'1',
	'MOVIES',	'RESTINN',	'1',
	'MOVIES',	'SEWER',	'1',
	'MOVIES',	'TAVERN',	'1',
	'MOVIES',	'TSRLOGO',	'1',
	'MOVIES',	'WOTC',	'1',
	'MOVIES',	'WRECK',	'1',
	'MOVIES',	'WYVERN',	'1',


I have tested on my machine, and if Baldur.ini does not exist, a "blank" Baldur.ini file can be created and only the necessary entries for the mod need to be added. When the game is run the first time, it will add the default entries to the existing Baldur.ini file (and not overwrite it).

E.g. if Baldur.ini does not exist and all of the movies were installed , the following can be saved as Baldur.ini:

CREATE TABLE options (
	section string,
	name string,
	value string
);
INSERT INTO options ROWS (
	'MOVIES',	'BEREGOST',	'1',
	'MOVIES',	'BG4LOGO',	'1',
	'MOVIES',	'BGENTER',	'1',
	'MOVIES',	'BGSUNRIS',	'1',
	'MOVIES',	'BGSUNSET',	'1',
	'MOVIES',	'BHAAL',	'1',
	'MOVIES',	'BILOGO',	'1',
	'MOVIES',	'BIOWBOTH',	'1',
	'MOVIES',	'BLACKPIT',	'1',
	'MOVIES',	'BWDRAGON',	'1',
	'MOVIES',	'CAMP',	'1',
	'MOVIES',	'CNDLKEEP',	'1',
	'MOVIES',	'CREDITS',	'1',
	'MOVIES',	'DAYNITE',	'1',
	'MOVIES',	'DEATHAND',	'1',
	'MOVIES',	'DUNGEON',	'1',
	'MOVIES',	'DURLAG',	'1',
	'MOVIES',	'ELDRCITY',	'1',
	'MOVIES',	'ENDCRDIT',	'1',
	'MOVIES',	'ENDMOVIE',	'1',
	'MOVIES',	'FRARMINN',	'1',
	'MOVIES',	'GNOLL',	'1',
	'MOVIES',	'INFELOGO',	'1',
	'MOVIES',	'INTRO',	'1',
	'MOVIES',	'IRONTHRN',	'1',
	'MOVIES',	'MINEFLOD',	'1',
	'MOVIES',	'NASHKELL',	'1',
	'MOVIES',	'NITEDAY',	'1',
	'MOVIES',	'PALACE',	'1',
	'MOVIES',	'REST',	'1',
	'MOVIES',	'RESTDUNG',	'1',
	'MOVIES',	'RESTINN',	'1',
	'MOVIES',	'SEWER',	'1',
	'MOVIES',	'TAVERN',	'1',
	'MOVIES',	'TSRLOGO',	'1',
	'MOVIES',	'WOTC',	'1',
	'MOVIES',	'WRECK',	'1',
	'MOVIES',	'WYVERN',	'1',
);

 

Just to specify, the contents of Baldur.ini can be accessed via:

COPY "%USER_DIRECTORY%/baldur.ini" "%USER_DIRECTORY%/baldur.ini"


Attached File  Setup-BGEEClassicMovies.tp2   3.03K   461 downloads

 

TIA,

Sam.


"Ok, I've just about had my FILL of riddle asking, quest assigning, insult throwing, pun hurling, hostage taking, iron mongering, smart-arsed fools, freaks, and felons that continually test my will, mettle, strength, intelligence, and most of all, patience! If you've got a straight answer ANYWHERE in that bent little head of yours, I want to hear it pretty damn quick or I'm going to take a large blunt object roughly the size of Elminster AND his hat, and stuff it lengthwise into a crevice of your being so seldom seen that even the denizens of the nine hells themselves wouldn't touch it with a twenty-foot rusty halberd! Have I MADE myself perfectly CLEAR?!"

--<CHARNAME> to Portalbendarwinden

--------------------

post-10485-0-15080600-1348188745.jpg
___________Old pen and paper modules of the 70s and 80s.___________

CA Forums CA Homepage


#2 Isaya

Isaya
  • Modder
  • 294 posts

Posted 16 November 2013 - 03:11 AM

Here is a code that worked when I added it at the end of the first component of your mod.

// Patch Baldur.ini

ACTION_IF FILE_EXISTS ~%USER_DIRECTORY%/Baldur.ini~ BEGIN
  // Add entries one by one
  ACTION_PHP_EACH movidesc_map AS m => s BEGIN
    COPY "%USER_DIRECTORY%/baldur.ini" "%USER_DIRECTORY%/baldur.ini"
      REPLACE_TEXTUALLY ~INSERT INTO options ROWS (~ ~INSERT INTO options ROWS (%LNL%	'MOVIES',	'%m%',	'1',~
    UNLESS ~%TAB%'MOVIES',%TAB%'%m%',~
  END
END ELSE
BEGIN
  COPY "BGEEClassicMovies/lib/baldur.ini" "%USER_DIRECTORY%/baldur.ini"
END

The baldur.ini I put in lib has the content you gave. The game launched properly with the "empty" ini file you provided and I had acces to the videos.

When the file is present, the patch only adds movies that are not already referenced in the file.

 

Are you interested in including other languages?

I extracted and converted to WBM movies that had either voices or texts in French (only 6). I didn't upscale them as you did as I don't know which converter to use while maintaining good quality. I could send them to you.

With the V1.2 patch, it's enough to copy them in lang/fr_FR/movies to override the others.



#3 Sam.

Sam.
  • Administrator
  • 1292 posts

Posted 16 November 2013 - 09:16 AM

Thank you so much!

 

Are you interested in including other languages?
I extracted and converted to WBM movies that had either voices or texts in French (only 6). I didn't upscale them as you did as I don't know which converter to use while maintaining good quality. I could send them to you.
With the V1.2 patch, it's enough to copy them in lang/fr_FR/movies to override the others.


I would love to include them as long as you don't mind coding whatever is necessary to go along with them.  Just send them my way :).  Do you want them upscaled?


"Ok, I've just about had my FILL of riddle asking, quest assigning, insult throwing, pun hurling, hostage taking, iron mongering, smart-arsed fools, freaks, and felons that continually test my will, mettle, strength, intelligence, and most of all, patience! If you've got a straight answer ANYWHERE in that bent little head of yours, I want to hear it pretty damn quick or I'm going to take a large blunt object roughly the size of Elminster AND his hat, and stuff it lengthwise into a crevice of your being so seldom seen that even the denizens of the nine hells themselves wouldn't touch it with a twenty-foot rusty halberd! Have I MADE myself perfectly CLEAR?!"

--<CHARNAME> to Portalbendarwinden

--------------------

post-10485-0-15080600-1348188745.jpg
___________Old pen and paper modules of the 70s and 80s.___________

CA Forums CA Homepage


#4 Isaya

Isaya
  • Modder
  • 294 posts

Posted 17 November 2013 - 01:33 PM

You're welcome. And thank you for your offer. I would indeed like them to be upscaled so that they don't look different from the rest.

 

I wanted to edit the intro movie in order to add the Nietzsche quote that is missing, but I'm facing an issue when trying to combine the beginning of your converted file from V0.03 (so that it's still small size) with my export of the french version. There is a tiny difference in frame rate that makes Virtual Dub complain, it seems. Or maybe it's the converter I had to use to convert your WBM to AVI in order to edit it that causing.

Maybe I need to grab codec to allow me to edit directly the WBM/WBEM file in Virtual Dub. I'll spend a bit more time on that before giving up.

 

Anyway, I noticed the version in your tp2 was increased to V0.05 so you were probably preparing a release. Please don't delay it and I'll get back to you about the translation once I fix my problem.







Also tagged with one or more of these keywords: BGEE, BG: EE Classic Movies, WeiDU