Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

NATO Counters error

 
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 >> NATO Counters error Page: [1]
Login
Message << Older Topic   Newer Topic >>
NATO Counters error - 3/19/2016 2:20:43 AM   
icym

 

Posts: 152
Joined: 8/15/2013
From: Australia
Status: offline
I recently added a few new NATO counter graphics to my scenario. With TOE enabled this made a total of 144.

Adding graphic 145 however, has caused an error. If when playing the game I click on the model designer button and then select one of the TOE models and then click the NATO 1 button to change the NATO graphics, it generates an unhandled exception error - "Index was outside the bounds of the array".

I did exit ATG and restart each time after adding new NATO graphics.

Suspecting there was a problem with my scenario, I tried a different completely different scenario that also uses TOE. There were fewer NATO graphics in this game. I began adding new ones and could add a few more successfully but eventually the same error occurred.

I probably have more NATO graphics than most, but I thought the manual indicated the maximum number to be 999.

Does anyone have any suggestions on what I am missing or might be doing wrong?
Post #: 1
RE: NATO Counters error - 3/19/2016 6:37:46 AM   
Ormand


Posts: 682
Joined: 2/17/2009
Status: offline
You are not alone. Happened to me as well. I think there is a limit on the number of NATO graphics. I don't know if this limit is the sum of LocType + Countwer graphics or just counters. Hard to say exactly, but if you have too many NATO counters I have found that you will get the "subscript out of bounds error".

(in reply to icym)
Post #: 2
RE: NATO Counters error - 3/19/2016 7:02:47 AM   
icym

 

Posts: 152
Joined: 8/15/2013
From: Australia
Status: offline
OK, thanks for that information. I will make do with the graphics that I have for now.

(in reply to Ormand)
Post #: 3
RE: NATO Counters error - 3/19/2016 3:28:42 PM   
bobarossa

 

Posts: 262
Joined: 6/11/2002
From: Columbus, Ohio USA
Status: offline
The Four Seasons Mod has a large number of NATO counters. You might download it and see how he did it.

(in reply to icym)
Post #: 4
RE: NATO Counters error - 3/19/2016 3:54:34 PM   
Ormand


Posts: 682
Joined: 2/17/2009
Status: offline
I didn't get around this problem. I have a total of 110 graphics in the directory. With, of course, the first 17 being the LocType pictures. Since these are treated differently, one could guess that there is something like a limit of 100 NATO counter symbols. Maybe even 99. I haven't pushed it to verify that, but when I had the same "subscript out of bounds" I reduced the number of counter symbols, and got it to work. I think the issue is counters in the TOE screen, and not the number of counters that you could use for the sfts, but I am not sure.

(in reply to bobarossa)
Post #: 5
RE: NATO Counters error - 3/20/2016 1:11:41 AM   
icym

 

Posts: 152
Joined: 8/15/2013
From: Australia
Status: offline
Ormand, I think you are right about the NATO counter symbol limit. I too have exactly 100 and if I try to add one more I receive the error message. As you suggest it is likely tied to the TOE screen display. 100 really should be plenty anyway. There are a number of duplicates that could be replaced if necessary. Thank you for the help.

(in reply to Ormand)
Post #: 6
RE: NATO Counters error - 3/20/2016 5:40:29 PM   
Ormand


Posts: 682
Joined: 2/17/2009
Status: offline
That was my guess.

Keep in mind that these symbols are used for TOE and thus for marking those units. If you need more symbols for the SFTs, but they won't be used for a TOE unit, you can make a separate directory to hold these NATO counters. The TOE and SFT symbols are technically different, and set up separately. I am currently using the same counters for convenience, but I could see how this could be helpful. For example support units that are part of a composite unit that would likely not be a defined unit in the TOE could be put elsewhere. Some possibilities would MG, mortar, infantry gun. Of course, it depends on scale and how you want to define your game. But, this is an option if you need more symbols for your SFT's, but won't use them in the TOE.

(in reply to icym)
Post #: 7
RE: NATO Counters error - 3/27/2016 7:24:29 AM   
juvilado

 

Posts: 13
Joined: 3/25/2016
Status: offline
quote:

ORIGINAL: icym

I recently added a few new NATO counter graphics to my scenario. With TOE enabled this made a total of 144.

Adding graphic 145 however, has caused an error. If when playing the game I click on the model designer button and then select one of the TOE models and then click the NATO 1 button to change the NATO graphics, it generates an unhandled exception error - "Index was outside the bounds of the array".

I did exit ATG and restart each time after adding new NATO graphics.

Suspecting there was a problem with my scenario, I tried a different completely different scenario that also uses TOE. There were fewer NATO graphics in this game. I began adding new ones and could add a few more successfully but eventually the same error occurred.

I probably have more NATO graphics than most, but I thought the manual indicated the maximum number to be 999.

Does anyone have any suggestions on what I am missing or might be doing wrong?


I have 118 in total (101 graphics) before game crashes at TOE (are you other guys sure you can't have 101,not 100?). I changed original ones with custom, but adding any more is always fatal. How can you have 144? I added the png pics at the correct resolution (76x76, 38x38, 19x19) to the folders:

C:\Matrix Games\Advanced Tactics Gold\graphics\newdawnmodgraphicsSMALL\natocounters
C:\Matrix Games\Advanced Tactics Gold\graphics\newdawnmodgraphics\natocounters
C:\Matrix Games\Advanced Tactics Gold\graphics\newdawnmodgraphicsBIG\natocounters

I didn't find any documentation about how to do it, so i tried and found this way. Is there any other, easier way? This way the counters are changed forever, thats what i was looking for.


< Message edited by juvilado -- 3/27/2016 7:27:01 AM >

(in reply to icym)
Post #: 8
RE: NATO Counters error - 3/27/2016 10:00:13 PM   
icym

 

Posts: 152
Joined: 8/15/2013
From: Australia
Status: offline
As you mentioned, standard size NATO counter images are 38x38. The NATO folder also contains 64x48 pixel images that are used for location types. I have added a number of new location types, which is why I have more files in the NATO folder than standard. The game appears to assume that any 38x38 file in the NATO folder is to be used for NATO symbols. You can have a lot more graphics in the NATO folder as long as they are not 38x38.


(in reply to juvilado)
Post #: 9
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Advanced Tactics Series >> Advanced Tactics Support >> NATO Counters error 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.734