Matrix Games Forums

Command Rommels Panzers in Battle Academy!Servers UpdateThe Deal goes Fourth!Command Ops gets a Massive Update!Lost Battles AAR: Smolensk 41War in the East: Lost Battles is here!Conflict of Heroes: Awakening the Bear! Let's Play videoLost Battles Scenario Manual excerpts available!A sneak peek from Allied Corps!Harpoon 3 ANWs Free Ultimate Update!
Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

CTD: Changing the prehex sprite

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Advanced Tactics Series >> Advanced Tactics Support >> CTD: Changing the prehex sprite Page: [1]
Login
Message << Older Topic   Newer Topic >>
CTD: Changing the prehex sprite - 9/22/2011 2:27:04 PM   
Keke


Posts: 3509
Joined: 3/12/2002
From: Finland
Status: offline
Hi,

There's an editor problem with changing the prehex sprite: it causes a CTD. I tried various combos and the only thing that can prevent it is to activate the special layer first, ie. 64 sprites, which shouldn't be always needed. Below is the error message I get:

System.NullReferenceException: Objektin viittaukseksi ei voi määrittää objektiesiintymää.
kohteessa WindowsApplication1.LandscapeTypeWindowClass.HandleMouseClick(Int32 x, Int32 y, Int32 b)
kohteessa WindowsApplication1.MainEditScreenClass.HandleMouseClick(Int32 x, Int32 y, Int32 b)
kohteessa WindowsApplication1.Form1.Form1_Mousedown(Object sender, MouseEventArgs e)
kohteessa System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)
kohteessa System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
kohteessa System.Windows.Forms.Control.WndProc(Message& m)
kohteessa System.Windows.Forms.ScrollableControl.WndProc(Message& m)
kohteessa System.Windows.Forms.ContainerControl.WndProc(Message& m)
kohteessa System.Windows.Forms.Form.WndProc(Message& m)
kohteessa WindowsApplication1.ImmoveableForm.WndProc(Message& m)
kohteessa System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
kohteessa System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
kohteessa System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Ladatut kokoonpanot **************
mscorlib
Kokoonpanon versio: 2.0.0.0
Win32-versio: 2.0.50727.4214 (VistaSP2GDR.050727-4200)
Koodikanta: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
WindowsApplication1
Kokoonpanon versio: 1.0.4237.20726
Win32-versio: 1.0.4237.20726
Koodikanta: file:///D:/Matrix%20Games/Advanced%20Tactics%20Gold/AdvancedTacticsGold.exe
----------------------------------------
System.Windows.Forms
Kokoonpanon versio: 2.0.0.0
Win32-versio: 2.0.50727.4214 (VistaSP2GDR.050727-4200)
Koodikanta: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Kokoonpanon versio: 2.0.0.0
Win32-versio: 2.0.50727.4215 (VistaSP2GDR.050727-4200)
Koodikanta: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Kokoonpanon versio: 2.0.0.0
Win32-versio: 2.0.50727.4016 (NetFxQFE.050727-4000)
Koodikanta: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Microsoft.VisualBasic
Kokoonpanon versio: 8.0.0.0
Win32-versio: 8.0.50727.4016 (NetFxQFE.050727-4000)
Koodikanta: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
Microsoft.VisualBasic.resources
Kokoonpanon versio: 8.0.0.0
Win32-versio: 8.0.50727.4016 (NetFxQFE.050727-4000)
Koodikanta: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic.resources/8.0.0.0_fi_b03f5f7f11d50a3a/Microsoft.VisualBasic.resources.dll
----------------------------------------
mscorlib.resources
Kokoonpanon versio: 2.0.0.0
Win32-versio: 2.0.50727.4214 (VistaSP2GDR.050727-4200)
Koodikanta: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
ICSharpCode.SharpZipLib
Kokoonpanon versio: 0.84.0.0
Win32-versio: 0.84.0.0
Koodikanta: file:///D:/Matrix%20Games/Advanced%20Tactics%20Gold/ICSharpCode.SharpZipLib.DLL
----------------------------------------
irrKlang.NET
Kokoonpanon versio: 1.3.0.0
Win32-versio: 1, 1, 0, 0
Koodikanta: file:///D:/Matrix%20Games/Advanced%20Tactics%20Gold/irrKlang.NET.DLL
----------------------------------------
System.Windows.Forms.resources
Kokoonpanon versio: 2.0.0.0
Win32-versio: 2.0.50727.4016 (NetFxQFE.050727-4000)
Koodikanta: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_fi_b77a5c561934e089/System.Windows.Forms.resources.dll


_____________________________

Jyri

The eternal privilege of those who never act themselves: to interrogate, be dissatisfied, find fault.

- A. Solzhenitsyn

Post #: 1
RE: CTD: Changing the prehex sprite - 9/22/2011 3:40:18 PM   
Vic


Posts: 3412
Joined: 5/17/2004
Status: online
Hi,

thanks for reporting.
Which version are you using 2.08?

best regards,
Vic



_____________________________

Victor Reijkersz Designs
www.vrdesigns.nl

(in reply to Keke)
Post #: 2
RE: CTD: Changing the prehex sprite - 9/22/2011 3:48:25 PM   
Keke


Posts: 3509
Joined: 3/12/2002
From: Finland
Status: offline
...and a question somewhat related to this problem.

Why is it that an added Landscape Clone, with exactly the same attributes as the original, is not properly drawn on a map? It won't use hex borders properly, but is a strict hexagon. You can test it by making a clone out of Plain landscape, and draw it next to sea hexes. Note the disapperance of proper coastline.

This problem seriously limits designing of new landscapes (unless I'm missing something of course...)

_____________________________

Jyri

The eternal privilege of those who never act themselves: to interrogate, be dissatisfied, find fault.

- A. Solzhenitsyn


(in reply to Keke)
Post #: 3
RE: CTD: Changing the prehex sprite - 9/22/2011 3:48:53 PM   
Keke


Posts: 3509
Joined: 3/12/2002
From: Finland
Status: offline

quote:

ORIGINAL: Vic

Hi,

thanks for reporting.
Which version are you using 2.08?

best regards,
Vic




2.08 it is.

_____________________________

Jyri

The eternal privilege of those who never act themselves: to interrogate, be dissatisfied, find fault.

- A. Solzhenitsyn


(in reply to Vic)
Post #: 4
RE: CTD: Changing the prehex sprite - 9/22/2011 3:55:51 PM   
Keke


Posts: 3509
Joined: 3/12/2002
From: Finland
Status: offline
Btw, the first line of my error message in English is something like:

"Object reference cannot be set to an object."

Dunno if this helps or not.

< Message edited by Keke -- 9/22/2011 3:56:19 PM >


_____________________________

Jyri

The eternal privilege of those who never act themselves: to interrogate, be dissatisfied, find fault.

- A. Solzhenitsyn


(in reply to Keke)
Post #: 5
RE: CTD: Changing the prehex sprite - 9/22/2011 8:25:30 PM   
Keke


Posts: 3509
Joined: 3/12/2002
From: Finland
Status: offline

quote:

ORIGINAL: Keke

...and a question somewhat related to this problem.

Why is it that an added Landscape Clone, with exactly the same attributes as the original, is not properly drawn on a map? It won't use hex borders properly, but is a strict hexagon. You can test it by making a clone out of Plain landscape, and draw it next to sea hexes. Note the disapperance of proper coastline.

This problem seriously limits designing of new landscapes (unless I'm missing something of course...)


Just to clarify: obviously this problem doesn't limit the amount of new landscape types one can make, but with it the new landscapes can ruin the looks of an ATG-map... (maybe I'm spoiled, eh?)

_____________________________

Jyri

The eternal privilege of those who never act themselves: to interrogate, be dissatisfied, find fault.

- A. Solzhenitsyn


(in reply to Keke)
Post #: 6
RE: CTD: Changing the prehex sprite - 9/22/2011 9:52:56 PM   
Vic


Posts: 3412
Joined: 5/17/2004
Status: online
I think the actual editor bug will be fixed with v2.09 (will try to get that out soon now) but i will check this issue once more. Not sure if i can reproduce though.

The other issue (clunky look) is not a bug but has probably to do with override rules of the new and the other landscapes.

best,
Vic


_____________________________

Victor Reijkersz Designs
www.vrdesigns.nl

(in reply to Keke)
Post #: 7
RE: CTD: Changing the prehex sprite - 9/22/2011 11:05:31 PM   
Keke


Posts: 3509
Joined: 3/12/2002
From: Finland
Status: offline
Cheers!

I did change some of the override rules for new landscapes, but it was perhaps not enough. I'll try again tomorrow. Thanks!

_____________________________

Jyri

The eternal privilege of those who never act themselves: to interrogate, be dissatisfied, find fault.

- A. Solzhenitsyn


(in reply to Vic)
Post #: 8
RE: CTD: Changing the prehex sprite - 9/23/2011 10:00:57 AM   
Keke


Posts: 3509
Joined: 3/12/2002
From: Finland
Status: offline
quote:

ORIGINAL: Vic
The other issue (clunky look) is not a bug but has probably to do with override rules of the new and the other landscapes.


On a second thought (and after several retries) this doesn't explain why an exact landscape clone, with similar override rules, produces those clunky looks. It is simple to reproduce. There is obviously something buggy here.

< Message edited by Keke -- 9/23/2011 10:02:00 AM >


_____________________________

Jyri

The eternal privilege of those who never act themselves: to interrogate, be dissatisfied, find fault.

- A. Solzhenitsyn


(in reply to Vic)
Post #: 9
RE: CTD: Changing the prehex sprite - 9/23/2011 11:25:18 AM   
Keke


Posts: 3509
Joined: 3/12/2002
From: Finland
Status: offline
Illustrating the latter problem. Here is the Island of Hiiumaa before swamp hexes are replaced with an exact landscape clone:






Attachment (1)

_____________________________

Jyri

The eternal privilege of those who never act themselves: to interrogate, be dissatisfied, find fault.

- A. Solzhenitsyn


(in reply to Keke)
Post #: 10
RE: CTD: Changing the prehex sprite - 9/23/2011 11:26:10 AM   
Keke


Posts: 3509
Joined: 3/12/2002
From: Finland
Status: offline
Here it is after:




Attachment (1)

_____________________________

Jyri

The eternal privilege of those who never act themselves: to interrogate, be dissatisfied, find fault.

- A. Solzhenitsyn


(in reply to Keke)
Post #: 11
RE: CTD: Changing the prehex sprite - 9/24/2011 12:40:25 PM   
Keke


Posts: 3509
Joined: 3/12/2002
From: Finland
Status: offline
A related CTD-crash, when a custom landscape was set to interior drawing style:

System.ArgumentNullException: Arvo ei voi olla Null.
Parametrin nimi: image
kohteessa System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Rectangle srcRect, GraphicsUnit srcUnit)
kohteessa WindowsApplication1.DrawMod.DrawSimplePart2(Graphics& objGraphics, Bitmap& objBitmap, Rectangle srcrect, Rectangle destrect)
kohteessa WindowsApplication1.CustomBitmapClass.DrawHex(Int32 cx, Int32 cy, Int32 cmap, Boolean InfoMode, Boolean NoShader, Boolean ispredrawing, Graphics tempg, Int32 tx, Int32 ty, Int32 counteralpha, Int32 Zoom, Boolean UseRegimeColoring, Boolean neverusehistory)
kohteessa WindowsApplication1.MapPartClass.Paint()
kohteessa WindowsApplication1.MapWindowClass..ctor(GameClass& tGame, Int32 tminheight, Int32 tminwidth, Int32 tZoomLevel)
kohteessa WindowsApplication1.MainEditScreenClass.HandleMouseClick(Int32 x, Int32 y, Int32 b)
kohteessa WindowsApplication1.Form1.Form1_Mousedown(Object sender, MouseEventArgs e)
kohteessa System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)
kohteessa System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
kohteessa System.Windows.Forms.Control.WndProc(Message& m)
kohteessa System.Windows.Forms.ScrollableControl.WndProc(Message& m)
kohteessa System.Windows.Forms.ContainerControl.WndProc(Message& m)
kohteessa System.Windows.Forms.Form.WndProc(Message& m)
kohteessa WindowsApplication1.ImmoveableForm.WndProc(Message& m)
kohteessa System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
kohteessa System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
kohteessa System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

_____________________________

Jyri

The eternal privilege of those who never act themselves: to interrogate, be dissatisfied, find fault.

- A. Solzhenitsyn


(in reply to Keke)
Post #: 12
RE: CTD: Changing the prehex sprite - 9/25/2011 2:36:21 PM   
Keke


Posts: 3509
Joined: 3/12/2002
From: Finland
Status: offline
Argh, just realised how to set overlay graphics for custom landscapes properly.

CTDs are still relevant though.

_____________________________

Jyri

The eternal privilege of those who never act themselves: to interrogate, be dissatisfied, find fault.

- A. Solzhenitsyn


(in reply to Keke)
Post #: 13
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Advanced Tactics Series >> Advanced Tactics Support >> CTD: Changing the prehex sprite Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.640