Author Topic: Creating Inventory Icons  (Read 7726 times)

0 Members and 1 Guest are viewing this topic.

Offline Solaufein

  • Lord of the Realms
  • Administrator
  • Level 5
  • *****
  • Posts: 5164
  • Karma: +127/-19
  • Gender: Male
  • The night is dark and full of terrors...
    • ICQ Messenger - 251194643
    • Yahoo Instant Messenger - gscott7833
    • View Profile
    • http://teambg.net
Creating Inventory Icons
« on: July 11, 2012, 06:24:08 AM »
Creating Inventory Icons with BAM Workshop by MaxTeamBG

Okay, let’s create a nice inventory icon using BAM Workshop.

Inventory Icon BAMs consist of two sequences, with one frame in each sequence. Sequence 0 contains a frame that can be up to 64x64 pixels—this is the frame that is shown when you’re moving an item around in the inventory. Sequence 1 contains a frame that can be up to 32x32 pixels—this is the frame that is shown when an item is just sitting in your inventory.

Now then… we need to fill those frames in. So, the first thing to do is get/make/find/whatever two images that are the appropriate sizes. Save these images in the BMP format.

Now then, BAM Workshop has some palette control issues, but here’s a workaround to maintain a good palette for your images.

1. Open BAMW.
2. In the Sequence box on the right, right-click and hit Add Sequence.
3. Click the Frames tab.
4. Right-click the box and hit Create Frame.
5. Change the image size to 1x1 (this doesn't really matter, but I think smaller is better).
6. Save your BAM as whatever you want.
7. Close BAMW.
8. Reopen BAMW.
9. Load the BAM you just saved.
10. Click the Manage button.
11. Select the frame you created and hit delete. Hit Close when you're done.

Now that that is done… Click Sequence 0; then hit the Frames Tab. Right-click and hit Import Frame. Select your first image (the one that appears when moving items around in the inventory). That’s one sequence done. Go back to the Sequence tab. Right-click and hit Add Sequence. Click Sequence 1; then hit the Frames Tab. Right-click and hit Import Frame. Select your second image (the one that appears when an item is just sitting in your inventory). Now use File->Save, and you’re done. Yay.

Of course, that’s not ALL there is to it… a few things need explaining; well, mostly just the pink and turquoise colors BAM Workshop uses as shadow and transparency, respectively. Technically for BAM Workshop, the turquoise color (RGB: 0, 151, 151) is always saved as the 0th entry in the BAM palette, and the pink color (RGB: 255, 101, 151) is always saved as the 1st entry in the BAM palette.

Speaking more simply… this means that any part of your BAM you want to be transparent should be the color 0, 151, 151. The pink thing is stupider—probably more of a bug than anything else. Most of the time it just shows up as pink in game… if this happens, use DLTCEP’s BAM editor to modify the palette color.

   
My mods:
Dark Horizons
The Undying
Nikita
IWD2 store

Co-contributor:
Dark Side of the Sword Coast BG1 Weidu
Aurils Bane
Encounters
Saerileth
Baldur's Gate - Enhanced Edition beta tester
Baldur's Gate 2 - Enhanced Edition beta tester
Icewind Dale - Enhanced Edition beta tester