Thanks, looking forward to the update.
I have run into a handful of BAMs that cause my PS BAM utility to crash when trying to read them. When I tried loading one with NI, it wasn't able to handle it either. However, BAMWorkshop, BAMWorkshopII, and DLTCEP seem to be able to read them properly. Contents of the Debug Console:
Exception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException
at java.nio.Buffer.checkIndex(Unknown Source)
at java.nio.HeapByteBuffer.get(Unknown Source)
at org.infinity.resource.graphics.BamV1Decoder.decodeFrame(Unknown Source)
at org.infinity.resource.graphics.BamV1Decoder.frameGet(Unknown Source)
at org.infinity.resource.graphics.BamV1Decoder$BamV1Control.cycleGetFrame(Unknown Source)
at org.infinity.resource.graphics.BamResource.updateCanvas(Unknown Source)
at org.infinity.resource.graphics.BamResource.showFrame(Unknown Source)
at org.infinity.resource.graphics.BamResource.makeViewer(Unknown Source)
at org.infinity.gui.ViewFrame.setViewable(Unknown Source)
at org.infinity.gui.ViewFrame.<init>(Unknown Source)
at org.infinity.gui.OpenFileFrame.openExternalFile(Unknown Source)
at org.infinity.gui.OpenFileFrame.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Apparently the game engine loads them fine. Can you tell exactly where the issues is? I haven't had time to pinpoint the exact issue yet, but maybe the last frame's frame data is simply truncated early? Edit: test BAM seems to indicate this is the case. Loading and saving with DLTCEP adds a single 0x00 to the end of the file.
grnbow.rar 1.23K
351 downloads
Edited by Sam., 16 December 2019 - 07: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
--------------------
___________Old pen and paper modules of the 70s and 80s.___________
CA Forums CA Homepage