Jump to content


Photo

[RELEASE] BAM Batcher


  • Please log in to reply
83 replies to this topic

#61 Creepin

Creepin
  • Administrator
  • 1676 posts

Posted 15 May 2017 - 01:04 AM

Thanks a lot Sam., the update is much appreciated.

The Old Gold - v0.2 WIP (mod for BGT/BWP/BWS)


#62 Gwendolyne

Gwendolyne
  • Administrator
  • 1016 posts

Posted 15 May 2017 - 06:32 AM

Hi, Sam.

 

Nice update. :shifty: :new_thumbs:

 

Many years go, I wrote a French translation for BAM batcher. Are you interested? If yes, I could dig up my old DDs, look for it and update it to this new version.


CARPE DIEM ....
 

In progress : Menace sur le Royaume de Diamant Éternel there.


#63 Sam.

Sam.
  • Administrator
  • 1335 posts

Posted 15 May 2017 - 01:28 PM

Hi, Sam.

 

Nice update. :shifty: :new_thumbs:

 

Many years go, I wrote a French translation for BAM batcher. Are you interested? If yes, I could dig up my old DDs, look for it and update it to this new version.

Sure :).  I'm not particularly experienced with this sort of thing, so if you see anything I've messed up or that could be improved, please speak up.

 

Here's the English TRA for comparison:

setup.tra


"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


#64 Gwendolyne

Gwendolyne
  • Administrator
  • 1016 posts

Posted 16 May 2017 - 12:00 AM

Thanks. But the longest part will be the readme, even If I have already translated the previous technical section. ;)

 

Do you want that I add the Languages selection to the tp2 and traify it?


CARPE DIEM ....
 

In progress : Menace sur le Royaume de Diamant Éternel there.


#65 Sam.

Sam.
  • Administrator
  • 1335 posts

Posted 16 May 2017 - 08:16 AM

Thanks. But the longest part will be the readme, even If I have already translated the previous technical section. ;)

Wow, that's more ambition than I expected, but I am pleasantly surprised :).

 

Do you want that I add the Languages selection to the tp2 and traify it?

The TP2 has already been traified, it (the TRA linked to above) just needs to be translated, added to the bambatch/translations folder, and another LANGUAGE line added to the TP2 (unless I'm missing something?). Once the Readme has been translated, the README line in the TP2 can be updated using the %LANGUAGE% variable also.  You are welcome to do this and make a pull request with Git if you want.


"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


#66 Gwendolyne

Gwendolyne
  • Administrator
  • 1016 posts

Posted 16 May 2017 - 09:27 AM

The readme is done and is proofread by new French modders : if they understand the technical parts, my job will be OK. ;)

I am an old bear and did not learn how to use github (despite I signed in and open an account many years ago). So I will PM you the files.

I added the readme line : to make it work, you will have to rename your English readme file to bambatch-readme-english.html. Another tip is to move all the readme files into their respectives folders.

With these changes in the tp2 file, you must modify the line numbers noticed in the readme : line 10 becomes line 16 (component 1) and line #127 becomes line #133 (FAQ : Can I get that in-game background look like the icons below?).

Last, I noticed two glitches in your setup :

1. If I well understood your coding, line 284 (my updated tp2 file) or 280 (v2.2.1), @11 = ~Bitmap %bs% is not 8-bit or is compressed - check the file.~ should be @11 = ~Bitmap %bf%s is not 8-bit or is compressed - check the file.~

2. in the Fix spell BAM coordinates and Fix description BAM coordinates components, you use the same reference string (@23 = ~%SOURCE_FILE% has %fc% frames (spell BAMs need 1) - check source file.~). I think you might add a new one for component 7 (@nn = ~%SOURCE_FILE% has %fc% frames (description BAMs need 1) - check source file.~)
 


Edited by Gwendolyne, 16 May 2017 - 06:10 PM.

CARPE DIEM ....
 

In progress : Menace sur le Royaume de Diamant Éternel there.


#67 Sam.

Sam.
  • Administrator
  • 1335 posts

Posted 16 May 2017 - 01:36 PM

Lastly, I noticed two glitches in your setup :

1. If I well understood your coding, line 284 (my updated tp2 file) or 280 (v2.2.1), @11 = ~Bitmap %bs% is not 8-bit or is compressed - check the file.~ should be @11 = ~Bitmap ¿%s is not 8-bit or is compressed - check the file.~

2. in the Fix spell BAM coordinates and Fix description BAM coordinates components, you use the same reference string (@23 = ~%SOURCE_FILE% has ü% frames (spell BAMs need 1) - check source file.~). I think you mifgt add a new one for component 7 (@nn = ~%SOURCE_FILE% has ü% frames (description BAMs need 1) - check source file.~)

Fixed in local repo, thanks!

 

Another tip is to move all the readme files into their respective folders.

Done on local repo.

 

So I will PM you the files.
[...]
With these changes in the tp2 file, you must modify the line numbers noticed in the readme : line 10 becomes line 16 (component 1) and line #127 becomes line #133 (FAQ : Can I get that in-game background look like the icons below?).

Awaiting PM :)


"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


#68 Sam.

Sam.
  • Administrator
  • 1335 posts

Posted 18 May 2017 - 08:22 AM

Readme [English] [French]
 
Version 2.2.2: 18 May 2017

  • Add French translation

Version 2.2.1: 15 May 2017

  • Traify setup-bambatch.tp2

Download from GitHub


"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


#69 Creepin

Creepin
  • Administrator
  • 1676 posts

Posted 21 May 2017 - 12:38 PM

Here's an visual demonstration

I've spent a good part of today trying to figure out why Mazzy looks nothing like CIFF1INV.BAM until I finally realised to check CIFF1INV.PLT :crazy:

Sadly, NI doesn't tell me what are X/Y offsets of PLT paperdoll, is there any way I could check it?


Edited by Creepin, 21 May 2017 - 01:20 PM.

The Old Gold - v0.2 WIP (mod for BGT/BWP/BWS)


#70 Sam.

Sam.
  • Administrator
  • 1335 posts

Posted 21 May 2017 - 02:19 PM

Here's an visual demonstration

I've spent a good part of today trying to figure out why Mazzy looks nothing like CIFF1INV.BAM until I finally realised to check CIFF1INV.PLT :crazy:

Sadly, NI doesn't tell me what are X/Y offsets of PLT paperdoll, is there any way I could check it?

A quick look indicated that PLTs don't have offsets:  every one has a width of 128 pixels and a height of 160 pixels.  IIRC, 1PP forces the game to use the BAM paperdolls by adding a zero-byte file to the override folder that has the same name as the PLT file you do NOT want to use.  Basically overwriting the PLT file with a blank file forces the engine to skip it and use the corresponding BAM instead.  I recommend this since working with BAMs is generally much easier than working with PLTs, largely due to the availability of tools involved.


"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


#71 Fiann of the Silver Hand

Fiann of the Silver Hand
  • Member
  • 286 posts

Posted 25 May 2017 - 11:27 PM

A bit of an aside here, but if a bam for this is functionally the same as plt, why did Bioware invent this file type?



#72 Sam.

Sam.
  • Administrator
  • 1335 posts

Posted 26 May 2017 - 03:17 AM

A bit of an aside here, but if a bam for this is functionally the same as plt, why did Bioware invent this file type?

If Bardez's postulations about the PLT file format are correct (and I believe they are), the PLT file format has a built-in layer of obfuscation that allow them to reference something like 65,281 different colors, compared to the 256 color limitation of the BAM format.


"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


#73 Fiann of the Silver Hand

Fiann of the Silver Hand
  • Member
  • 286 posts

Posted 27 May 2017 - 01:20 PM

Thanks.  I wonder how much of a difference that made back on my 800x600 CRT back in '98.



#74 Sam.

Sam.
  • Administrator
  • 1335 posts

Posted 30 June 2017 - 07:25 AM

Readme [English] [French]

Version 2.3: 30 June 2017
  • Added "Convert inventory BAMs to EE" component (special thanks to Gwendolyne)
  • Update Readme
  • Update WeiDU
Download from GitHub

"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


#75 Sam.

Sam.
  • Administrator
  • 1335 posts

Posted 22 October 2017 - 05:13 PM

Readme [English] [French]

Version 2.4: 22 October 2017

  • Modify "Convert BMPs to inventory BAMs" to no longer require identical palettes in small and large frames
  • Modify "Convert BAMs to BMPs" to properly handle multiple BAMs
  • Added 'Fix BAMWorkshop colors' component
  • Fix 'Convert BMPs to description BAMs' to properly handle multiple images at a time
  • Update Readme

Download from GitHub


"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


#76 Miloch

Miloch

    Barbarian

  • Modder
  • 6579 posts

Posted 31 October 2017 - 09:08 AM

Modify "Convert BMPs to inventory BAMs" to no longer require identical palettes in small and large frames

What black magic is this? He's a witch! Burn him!


Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle


#77 K4thos

K4thos
  • Modder
  • 315 posts

Posted 17 May 2019 - 04:58 PM

Regarding the "Convert inventory BAMs to EE" component - if I understand correctly icons converted to EE style are not supported by the old engine. If that is the case then I'd like to request an option to completely remove unused small icon and cycle to make the file smaller and due to wrong icon showing up in Near Infinity with the current code. I can't think about any benefits at all in keeping the unused data.


Edited by K4thos, 18 May 2019 - 01:05 AM.


#78 Sam.

Sam.
  • Administrator
  • 1335 posts

Posted 18 May 2019 - 06:34 PM

Regarding the "Convert inventory BAMs to EE" component - if I understand correctly icons converted to EE style are not supported by the old engine. If that is the case then I'd like to request an option to completely remove unused small icon and cycle to make the file smaller and due to wrong icon showing up in Near Infinity with the current code. I can't think about any benefits at all in keeping the unused data.

This component adds the small frame as a second frame to the sequence that has the large frame.  The result is the classic Infinity Engine style of item icons that display the small frame when the item is in the inventory and the large frame when you pick it up.  My tests show this is true (identical behavior with the modified BAM) in vanilla (tested in ToB) and EE games.  If you are experiencing different behavior, please provide me a specific example I can use to reproduce.  Furthermore, IIRC this code does not add a single byte to the the pre-Zlib compressed BAM (Zlib compliant compression is context specific, so it's theoretically possible the modified BAM doesn't compress quite as well, but I doubt the difference could be more than a byte or so).  If you want to perform this modification using PS BAM, you can achieve even better compression and the filesize will shrink compared to the original.

 

Since the modified BAM works as intended in both the vanilla and EE games, and since the modified file is no larger than the unmodified version, I see no reason to depreciate or modify this component.  If you want to keep the EE style item icons (only the large frame is displayed), then you can certainly drop the small frame.  If there is an interest in this capability, I can add the functionality to PS BAM.

 

Note that "Convert inventory BAMs to EE" does NOT convert to BAM V2 files (which is not backwards compatible with vanilla games).


"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


#79 K4thos

K4thos
  • Modder
  • 315 posts

Posted 18 May 2019 - 08:20 PM

Since the modified BAM works as intended in both the vanilla and EE games, and since the modified file is no larger than the unmodified version, I see no reason to depreciate or modify this component.  If you want to keep the EE style item icons (only the large frame is displayed), then you can certainly drop the small frame.  If there is an interest in this capability, I can add the functionality to PS BAM.

understandable, if the outcome icon works correctly on both engines (I assumed otherwise without checking). Thanks for answer.



#80 Salk

Salk
  • Modder
  • 1419 posts

Donator

Posted 18 May 2021 - 08:04 AM

Hello!

 

I have unpacked a description BAM which is made of 4 frames. How can I repack it into a description BAM? Convert BMPs to description BAMs creates four different files rather than putting them together like Convert BMPs to inventory BAMs does using xxxxxxl.bmp and xxxxxxs.bmp as source.

 

Thanks!


Edited by Salk, 18 May 2021 - 08:05 AM.