item560:

and item562:





Is adding minor tweaks to ADGE (small programs modifying specified bytes in item560 and item562) possible?
ok. i'll try to support all of them.Is adding minor tweaks to ADGE (small programs modifying specified bytes in item560 and item562) possible?
it seems to be array of RGB palettes. here is an interpretation:offset 1278-1533; "ingame palettes editor" (ingame palettes described in 6th post here http://www.dungeon-master.com/forum/vie ... hp?t=27911 )
Code: Select all
0 1 2 3 4 5 6 7 8 9 a b c d e f
00 00 03 33 04 44 03 10 00 66 04 20 00 40 00 60 07 00 07 50 06 43 07 70 02 22 05 55 00 07 07 77
00 00 02 22 03 33 03 10 00 66 04 10 00 30 00 50 06 00 06 40 05 32 07 60 01 11 04 44 00 06 06 66
00 00 01 11 02 22 02 10 00 66 03 10 00 20 00 40 05 00 05 30 04 21 07 50 00 00 03 33 00 05 05 55
00 00 00 00 01 11 01 00 00 66 02 10 00 10 00 30 04 00 04 20 03 10 06 40 00 00 02 22 00 04 04 44
00 00 00 00 00 00 00 00 00 66 01 00 00 00 00 20 03 00 03 10 02 00 05 30 00 00 01 11 00 03 03 33
00 00 00 00 00 00 00 00 00 66 00 00 00 00 00 10 02 00 02 00 01 00 03 20 00 00 00 00 00 02 02 22
R GB R GB R GB R GB R GB R GB R GB R GB R GB R GB R GB R GB R GB R GB R GB R GB
Code: Select all
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at ADGE.CustomPaletteEditor.init()
at ADGE.WallDecorationGraphicInfoEditor.PaletteInfo_ClickEvent(Object eventSender, EventArgs eventArgs)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Code: Select all
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at ADGE.CustomPaletteEditor.init()
at ADGE.FloorItemGraphicInfoEditor.PaletteInfo_ClickEvent(Object eventSender, EventArgs eventArgs)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
ADGE's palettes are hardcoded.I think that editing the "main" viewport1 palette will also affect already existing ADGE palette swappers: (doorD2, doorD3, monsterD2, monsterD3, ItemsOnFloorD2, ItemsOnFloorD3, WallDecsD2 and WallDecsD3 palette editors).
I`m not sure how does they works. Does they take data from the "graphics.dat item562, offset 1278-1309" and swap it? Or did rain` hardcoded the main viewport1 palette colour order to manipulate?
Code: Select all
************** Exception Text **************
System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
at System.IO.__Error.EndOfFile()
at System.IO.BinaryReader.ReadByte()
at ADGE.file562.read()
at ADGE.Tgraphics.gread()
at ADGE.MainWindow.openfile(String fname)
at ADGE.MainWindow.Open_Click(Object eventSender, EventArgs eventArgs)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)