Jump to content


Photo

NearInfinity


  • Please log in to reply
1153 replies to this topic

#941 Argent77

Argent77
  • Administrator
  • 1397 posts

Posted 14 August 2018 - 02:35 PM

I'm not yet really happy with the current implementation, but it would have been too much work to make palette sorting available in another way. I'll see if I can improve the situation in a future update.



#942 Mad Mate

Mad Mate
  • Member
  • 191 posts

Posted 29 September 2018 - 08:41 AM

Hi Argent!

Sorry if it is stupid question, but I want to edit an item and I can see its icon, description image and ground icon, but is there a way to see equipped appearance from NI?



#943 Argent77

Argent77
  • Administrator
  • 1397 posts

Posted 29 September 2018 - 09:42 AM

Hi Argent!

Sorry if it is stupid question, but I want to edit an item and I can see its icon, description image and ground icon, but is there a way to see equipped appearance from NI?

Not directly. "Equipped appearance" is set as two-letter code in the ITM resource (at offset 22 h). This code is part of the filename for BAM animations, that will be applied to the creature animation while the item is equipped. These files usually start with WP or WQ, followed by a letter that indicates creature size, followed by the equipped appearance code. For example, the code for helmets can be 'J6', so the associated BAM animation overlays may start with WQLJ6, WQMJ6 or WQSJ6 for large, medium or small creatures.



#944 Sam.

Sam.
  • Administrator
  • 1292 posts

Posted 29 September 2018 - 11:14 AM

Hi Argent!

Sorry if it is stupid question, but I want to edit an item and I can see its icon, description image and ground icon, but is there a way to see equipped appearance from NI?

My PaletteGenerator can sort of do this.


"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


#945 Mad Mate

Mad Mate
  • Member
  • 191 posts

Posted 29 September 2018 - 03:47 PM

Not directly. "Equipped appearance" is set as two-letter code in the ITM resource (at offset 22 h). This code is part of the filename for BAM animations, that will be applied to the creature animation while the item is equipped. These files usually start with WP or WQ, followed by a letter that indicates creature size, followed by the equipped appearance code. For example, the code for helmets can be 'J6', so the associated BAM animation overlays may start with WQLJ6, WQMJ6 or WQSJ6 for large, medium or small creatures.
 

 

Thank you! This is helpful. I didn't know how to find right one between all of BAMs. I would change code and then enter a game, and all over again until I found right one.  :doh: It would be nice feature if we could see all changes from within NI. At least inventory look, if not in-game.

 

My PaletteGenerator can sort of do this.

 

Nice tool, thanks. It shows inventory looks and I like zoom feature. I think it is missing few 1pp looks. Ie, first item I tried to edit was Flail of Ages (BLUN14) and with 1pp in my game flails have 4 looks (FL, F0, F1 and F3). In your tool I only found FL. Can I import appearances from my game?



#946 Sam.

Sam.
  • Administrator
  • 1292 posts

Posted 29 September 2018 - 05:25 PM

My PaletteGenerator can sort of do this.

 

Nice tool, thanks. It shows inventory looks and I like zoom feature. I think it is missing few 1pp looks. Ie, first item I tried to edit was Flail of Ages (BLUN14) and with 1pp in my game flails have 4 looks (FL, F0, F1 and F3). In your tool I only found FL. Can I import appearances from my game?

You can, but you have to put the exported, "paletted" frames into the <.\PaletteGenerator\res\paperdolls> folder.  IIRC, I have only included the BG1 (non-EE) ones with the tool.  If you send me the *INV.bam files (the inventory paperdoll BAMs) of those animations or direct me to which 1PP mod they came from, I will be happy to extract the proper frames for you and include them in the tool.


Edited by Sam., 29 September 2018 - 05:27 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


#947 Mad Mate

Mad Mate
  • Member
  • 191 posts

Posted 29 September 2018 - 08:18 PM

You can, but you have to put the exported, "paletted" frames into the <.\PaletteGenerator\res\paperdolls> folder.  IIRC, I have only included the BG1 (non-EE) ones with the tool.  If you send me the *INV.bam files (the inventory paperdoll BAMs) of those animations or direct me to which 1PP mod they came from, I will be happy to extract the proper frames for you and include them in the tool.
 

If you can, it would be great. I'm using Erephine's 1pp V4, and all new *INV.bam & *OIN.bam files are here.
I tried exporting as graphic file with NI, but I get two files and nothing like your files in paperdolls folder.
Thank you!



#948 Sam.

Sam.
  • Administrator
  • 1292 posts

Posted 30 September 2018 - 01:33 PM

You can, but you have to put the exported, "paletted" frames into the <.\PaletteGenerator\res\paperdolls> folder.  IIRC, I have only included the BG1 (non-EE) ones with the tool.  If you send me the *INV.bam files (the inventory paperdoll BAMs) of those animations or direct me to which 1PP mod they came from, I will be happy to extract the proper frames for you and include them in the tool.
 

If you can, it would be great. I'm using Erephine's 1pp V4, and all new *INV.bam & *OIN.bam files are here.
I tried exporting as graphic file with NI, but I get two files and nothing like your files in paperdolls folder.
Thank you!

Here you go:

Attached File  1pp paperdolls extracted.rar   360.4K   194 downloads


"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


#949 Mad Mate

Mad Mate
  • Member
  • 191 posts

Posted 30 September 2018 - 03:13 PM

Here you go:
Thank you Sam!!!!
It works great in your tool. Off to make same new items.
I hope it didn't take a lot of your time.

#950 Sam.

Sam.
  • Administrator
  • 1292 posts

Posted 30 September 2018 - 04:29 PM

Here you go:
Thank you Sam!!!!
It works great in your tool. Off to make same new items.
I hope it didn't take a lot of your time.

Like 20 minutes, most of which was diagnosing an idiotic copy/paste error in my PS BAM tool.


"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


#951 Sam.

Sam.
  • Administrator
  • 1292 posts

Posted 27 October 2018 - 02:58 PM

@Argent77
When converting BAMs from palette-based to PVRZ-based, what approach do you take to the packing problem?

"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


#952 Argent77

Argent77
  • Administrator
  • 1397 posts

Posted 28 October 2018 - 02:21 AM

@Argent77
When converting BAMs from palette-based to PVRZ-based, what approach do you take to the packing problem?

NearInfinity uses a bin packing algorithm to optimize the packing. (Implementation)



#953 CamDawg

CamDawg

    ALL GLORY TO THE HYPNOTOAD

  • Modder
  • 1505 posts

Posted 28 October 2018 - 06:03 PM

Feature request: I find myself, when editing a script/item/whatever, frequently bouncing back and forth between NI and the game as I test stuff. It would be nice to save a few clicks by having a 'Launch game' in NI direct, rather than having to open up an Explorer window or find the shortcut in my menu bar.


Why is this Hypnotoad video so popu... ALL GLORY TO THE HYPNOTOAD.
____
The Gibberlings Three - Home of IE Mods

The BG2 Fixpack - All the fixes of Baldurdash, plus a few hundred more. Now available, with more fixes being added in every release.


#954 jastey

jastey
  • Administrator
  • 3218 posts

Posted 28 October 2018 - 11:15 PM

Wait - the game can run while NI is open? I always tried to prevent this from happening.



#955 Argent77

Argent77
  • Administrator
  • 1397 posts

Posted 29 October 2018 - 02:34 AM

Feature request: I find myself, when editing a script/item/whatever, frequently bouncing back and forth between NI and the game as I test stuff. It would be nice to save a few clicks by having a 'Launch game' in NI direct, rather than having to open up an Explorer window or find the shortcut in my menu bar.

Launching executables has to be handled in a very platform-specific way, which is usually a nightmare to code for a platform-agnostic application such as NI. I'll see if it can be implemented without too much effort.

 

Wait - the game can run while NI is open? I always tried to prevent this from happening.

Yes, that should work fine with all IE games. However, changes made in NI while the game is open are usually not registered until you restart the game.


Edited by Argent77, 29 October 2018 - 02:34 AM.


#956 CamDawg

CamDawg

    ALL GLORY TO THE HYPNOTOAD

  • Modder
  • 1505 posts

Posted 29 October 2018 - 07:44 AM


Feature request: I find myself, when editing a script/item/whatever, frequently bouncing back and forth between NI and the game as I test stuff. It would be nice to save a few clicks by having a 'Launch game' in NI direct, rather than having to open up an Explorer window or find the shortcut in my menu bar.

Launching executables has to be handled in a very platform-specific way, which is usually a nightmare to code for a platform-agnostic application such as NI. I'll see if it can be implemented without too much effort.
 



Cheers. I'll live without, but it would be nice.
 

Wait - the game can run while NI is open? I always tried to prevent this from happening.

Yes, that should work fine with all IE games. However, changes made in NI while the game is open are usually not registered until you restart the game.
 
 


 Also, it depends on the game--the original BG locks the tlk file, so NI can't read any of the strings while BG runs. BG2(EE) + NI is just fine but, as argent says, changes generally won't show up until you restart the game.

Why is this Hypnotoad video so popu... ALL GLORY TO THE HYPNOTOAD.
____
The Gibberlings Three - Home of IE Mods

The BG2 Fixpack - All the fixes of Baldurdash, plus a few hundred more. Now available, with more fixes being added in every release.


#957 Argent77

Argent77
  • Administrator
  • 1397 posts

Posted 29 October 2018 - 09:50 AM

 

Wait - the game can run while NI is open? I always tried to prevent this from happening.

Yes, that should work fine with all IE games. However, changes made in NI while the game is open are usually not registered until you restart the game.

 

 Also, it depends on the game--the original BG locks the tlk file, so NI can't read any of the strings while BG runs. BG2(EE) + NI is just fine but, as argent says, changes generally won't show up until you restart the game.

You're right. I think all engine revisions before (original) BG2 will lock the dialog.tlk, which also includes PST and IWD.



#958 Creepin

Creepin
  • Administrator
  • 1676 posts

Posted 12 November 2018 - 05:40 AM

Whenever I try to put bam into resource field of #215 opcode (Graphics: Play 3D Effect), if there's vvc with the same name NI changes resource from bam to that vvc upon saving. Either a bug or intended behaviour which I disagree with :)


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


#959 CamDawg

CamDawg

    ALL GLORY TO THE HYPNOTOAD

  • Modder
  • 1505 posts

Posted 12 November 2018 - 06:30 AM

Whenever I try to put bam into resource field of #215 opcode (Graphics: Play 3D Effect), if there's vvc with the same name NI changes resource from bam to that vvc upon saving. Either a bug or intended behaviour which I disagree with :)

If I'm not mistaken, this is simply a reflection of engine behavior--if you specify "foo" as the resource the engine will play foo.vvc if it exists, and will only play foo.bam if foo.vvc does not exist*. If you want to play a BAM file directly you'll have to specify one that doesn't have an identically-named VVC.

The resource field is only eight characters, so you're actually specifying "filename" not "filename.bam". NI is simply adding the file extension for your edification.

* Should note that 'foo.vef' would also take priority, but VEFs are used pretty much nowhere.

Edited by CamDawg, 12 November 2018 - 06:31 AM.

Why is this Hypnotoad video so popu... ALL GLORY TO THE HYPNOTOAD.
____
The Gibberlings Three - Home of IE Mods

The BG2 Fixpack - All the fixes of Baldurdash, plus a few hundred more. Now available, with more fixes being added in every release.


#960 Creepin

Creepin
  • Administrator
  • 1676 posts

Posted 12 November 2018 - 06:37 AM

Ah, I wasn't aware of that, great to know, and thanks for the explanation :)


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