Jump to content


Photo

Cosmetic bugs of the DSotSC (icon BAMs)

bug icon bam

  • Please log in to reply
16 replies to this topic

#1 EvilMax

EvilMax
  • Member
  • 145 posts

Posted 12 April 2019 - 01:25 PM

Hi,

I can see a lot of minor but a bit annoying cosmetic bugs in DSotSC. Problem is in icons that are too big for BGT and player can see their fragments. I can describe by example.

 

Spell scroll: Thunderslap

ITM: SCRLDS21.itm

Scroll icon: DSSPW21A.BAM

 

Problem: in game user can see right bottom corner of this icon.

Reason: wrong/inconsistent BAM file (?)

 

DSSPW21A.BAM contains 2 different frames.

 

1. 32x32 with center at (0; 0) - suggested for BGT

2. 40x31 with center at (17; 17) (this is for EE ? )

 

Frame 1 is normal for IE icon that is suggested to be displayed, but instead displayed Frame 2 that is too big and shifted start. 

So there are two problems:

1) We can see generic scroll for a lot of spells instead of normal icons that are present

2) All DS spell scrolls look the same: generic and wrong.

 

Also similar bug is present in several items, but it looks just like icon that is too big and cropped.

 



#2 jastey

jastey
  • Administrator
  • 3219 posts

Posted 13 April 2019 - 12:05 AM

Please specify the version of the mod for which you are reporting.



#3 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 5155 posts

Posted 13 April 2019 - 02:26 AM

Please specify the version of the mod for which you are reporting.

Aka, EvilMax, is it v3.1.1 ? From here.


Edited by The Imp, 13 April 2019 - 02:27 AM.

Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#4 EvilMax

EvilMax
  • Member
  • 145 posts

Posted 13 April 2019 - 10:27 AM

Nope, it isn't NTotSC at all, it is DSotSC v3.0 beta (08/08/2017) installed via MegaMod v18.1.2

 

If this is critical to know, I use it with NTotSC v2.3.0. But as I described, the issue is related to DSotSC resources.


Edited by EvilMax, 13 April 2019 - 10:41 AM.


#5 jastey

jastey
  • Administrator
  • 3219 posts

Posted 13 April 2019 - 12:15 PM

So this would be k4thos' version (here). Thank you for the report, this won't be lost, although currently noone is updating the mod.



#6 EvilMax

EvilMax
  • Member
  • 145 posts

Posted 13 April 2019 - 12:32 PM

Jastey, thank you for the link. It seems that you've already raised this issue here  I've just added more detail.


Edited by EvilMax, 13 April 2019 - 12:33 PM.


#7 jastey

jastey
  • Administrator
  • 3219 posts

Posted 13 April 2019 - 02:07 PM

Oh wow, totally forgot about that, haha. Thanks!



#8 Gwendolyne

Gwendolyne
  • Administrator
  • 1016 posts

Posted 13 April 2019 - 02:33 PM

@jastey

 

A couple of years ago, I wrote a routine process which converts classic games inventory icons (2 cycles and 2 frames) to EE format (one single large frame) on the fly. Sam polished it and added it to Bam batcher (a new component). It might be useful if it solves the glitch.


CARPE DIEM ....
 

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


#9 jastey

jastey
  • Administrator
  • 3219 posts

Posted 13 April 2019 - 11:23 PM

That is good to know! Thanks!



#10 Sam.

Sam.
  • Administrator
  • 1339 posts

Posted 14 April 2019 - 02:59 AM

If that is the issue, PS BAM can also do this conversion in batch.

"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


#11 jastey

jastey
  • Administrator
  • 3219 posts

Posted 14 April 2019 - 03:16 AM

Cool!

#12 EvilMax

EvilMax
  • Member
  • 145 posts

Posted 14 April 2019 - 03:36 AM

Great!

@Sam. , Will it detect correct icon frame by selecting ItemIcon BAM profile or it is required to tell it somehow which frame to drop and which to leave?

If not, how can we tell this tool to:

a) Drop frame which size is larger than 32x32 if we have anoter? I.e. to drop frame for EE and leave another frame containing icon for classic game?

b) Resize all frames to 32x32 size


Edited by EvilMax, 14 April 2019 - 03:42 AM.


#13 Sam.

Sam.
  • Administrator
  • 1339 posts

Posted 14 April 2019 - 04:09 PM

Great!
@Sam. , Will it detect correct icon frame by selecting ItemIcon BAM profile or it is required to tell it somehow which frame to drop and which to leave?
If not, how can we tell this tool to:
a) Drop frame which size is larger than 32x32 if we have anoter? I.e. to drop frame for EE and leave another frame containing icon for classic game?
b) Resize all frames to 32x32 size

Assuming the Item Icon was formatted properly for non-EE games,

"PS BAM.exe" --ItemIcon2EE 1 --CompressionProfile "Recommended" --LogFile "PS BAM Log.txt" *.bam

should do the trick. If it doesn't, send me the log file and the BAMs, and I'll figure out which of the other settings need to be tweaked.

 

FYI, the item icon BAMs in the original game had the larger frame in Sequence 0 and the smaller frame in Sequence 1.  To work the same way in the recent EEs, the smaller frame in Sequence 1 needs to be added as the 2nd frame in Sequence 0.  This is what PS BAM and BAM Batcher both do.


"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


#14 EvilMax

EvilMax
  • Member
  • 145 posts

Posted 17 April 2019 - 01:00 AM

@Sam.

It did help with the icon size and offset. Now scroll is resized and positioned well. But second problem is still left: spell scrolls are displayed as generic scrolls. Problem is that those BAMs from DSotSC contain two DIFFERENT frames. frame 0 contains classic icon and frame 1 contains image of the generic scroll (which offset was wrong and now it is fixed). My classic game uses second frame as icon. First frame containing correct icon is ignored and all DSotSC spell scrolls have visually identical view of generic scrolls and are different by the name only.

 

Anyway, thank you, Sam. Your solution can fix glitched view of the bunch of icons, not only spells. 'Generic' view of spell scrolls is just a minor issue.



#15 Sam.

Sam.
  • Administrator
  • 1339 posts

Posted 03 May 2019 - 12:41 PM

Sorry for the delayed response.  I've been busy and replying to this kept getting bumped down the queue.

 

@Sam.

It did help with the icon size and offset. Now scroll is resized and positioned well. But second problem is still left: spell scrolls are displayed as generic scrolls. Problem is that those BAMs from DSotSC contain two DIFFERENT frames. frame 0 contains classic icon and frame 1 contains image of the generic scroll (which offset was wrong and now it is fixed). My classic game uses second frame as icon. First frame containing correct icon is ignored and all DSotSC spell scrolls have visually identical view of generic scrolls and are different by the name only.

 

Anyway, thank you, Sam. Your solution can fix glitched view of the bunch of icons, not only spells. 'Generic' view of spell scrolls is just a minor issue.

Maybe the frames are assigned to the wrong sequences?  If you're feeling a bit more ambitious, you can try switching them yourself.

 

"PS BAM.exe" --CompressionProfile Recommended --AdvancedFLTCompression 0 --AdvancedZlibCompress 0 --IntelligentRLE 0 --Compress 1 --OrderOfOperations PCE --LogFile "PS BAM Log.txt" --OutPath "C:\Path\To\Save\BAMDs" --Save BAMD *.bam

Then in the BAMD files, switch which frames are assigned to each sequence and then recompile them to BAMs via something like:

"PS BAM.exe" --ItemIcon2EE 1 --CompressionProfile Recommended --Compress 1 --OrderOfOperations PCE --LogFile "PS BAM Log.txt" --OutPath "C:\Path\To\Save\BAMs" --Save BAM "C:\Path\To\Save\BAMDs\*.bamd"

Alternatively, you could extract the frames as sequences of images using:

"PS BAM.exe" --CompressionProfile Recommended --AdvancedFLTCompression 0 --AdvancedZlibCompress 0 --IntelligentRLE 0 --Compress 1 --ExportFramesAsSequences 1 --ExportFrames "BMP,32V5" --OrderOfOperations PCE --LogFile "PS BAM Log.txt" --OutPath "C:\Path\To\Save" --Save "" *.bam

Then rename them (essentially swapping Sequence_0000 with Sequence_0001 and vice versa).  Then recompile them to BAMs with something like

"PS BAM.exe" --ItemIcon2EE 1 --CompressionProfile Recommended --Compress 1 --OrderOfOperations PCE --LogFile "PS BAM Log.txt" --OutPath "C:\Path\To\Save\BAMs" --Save BAM "C:\Path\To\Save\*_Sequence_0000_Frame_0000.bmp"

Note that I strung these together from memory and haven't actually tested them, and you will need to adjust the paths to whatever is appropriate for you.


"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


#16 Sergio

Sergio
  • Member
  • 954 posts

Posted 04 May 2019 - 06:34 AM

Did any of you read the reports by Lilura?

https://lilura1.blog...t-Overview.html

Spoiler

Just curious, maybe the older versions do not have the issues you are facing in this topic, and relevant files can be used\extracted.


Low hung brow, dazed look on your face..... It appears that you are correct, my friend. You are indeed a complete imbecile.


#17 jastey

jastey
  • Administrator
  • 3219 posts

Posted 11 December 2019 - 09:32 AM

Unfortunately, I am totally lost here, even with the BAM Batcher tool I don't know what I'd have to do to fix the BAM glitches.

Does some helpful soul feel like providing fixed BAMs for the items listed here? Any help would be appreciated.