|
|
|
|
 |

December 10th, 2006, 05:18 AM
|
 |
Brigadier General
|
|
Join Date: Aug 2003
Location: Mictlan
Posts: 1,767
Thanks: 12
Thanked 165 Times in 22 Posts
|
|
Re: Unit array is too small :(
Strange, it should be possible to add 1000 new sprites and it shouldn't crash when you do it anyway.
|

December 10th, 2006, 06:42 AM
|
 |
General
|
|
Join Date: Oct 2006
Posts: 3,445
Thanks: 85
Thanked 79 Times in 51 Posts
|
|
Re: Unit array is too small :(
So it's not that you can't have for instance 12,000 units in the game, except for the fact that the program isn't set up to service 12,000 units. Eh?
__________________
You've sailed off the edge of the map--here there be badgers!
|

December 10th, 2006, 01:19 PM
|
 |
Major General
|
|
Join Date: Feb 2005
Location: Lake of Hali, Aldebaran, OH
Posts: 2,474
Thanks: 51
Thanked 67 Times in 27 Posts
|
|
Re: Unit array is too small :(
It is of course possible that I'm somehow mangling a sprite reference when I combine the mods, but if so, I can't see where I'm doing it - and it seems to effect all sprites after a certain point in the mod script, not just a few. Obviously I don't know how it works internally. Is there anything I can to get debug info beyond the "ddd" flag?
__________________
If you read his speech at Rice, all his arguments for going to the moon work equally well as arguments for blowing up the moon, sending cloned dinosaurs into space, or constructing a towering *****-shaped obelisk on Mars. --Randall Munroe
|

December 10th, 2006, 01:32 PM
|
|
Second Lieutenant
|
|
Join Date: Sep 2004
Posts: 483
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Unit array is too small :(
Just a random guess, but you could try it without my heroes mod.
I made a mistake and used #copysprite instead of #copyspr on some units and that could lead to strange behaviour.
|

December 10th, 2006, 01:53 PM
|
 |
Major General
|
|
Join Date: Feb 2005
Location: Lake of Hali, Aldebaran, OH
Posts: 2,474
Thanks: 51
Thanked 67 Times in 27 Posts
|
|
Re: Unit array is too small :(
Changing every instance of #copysprite to #copyspr doesn't have any effect  .
I still get "sprnbr too high for this file" when I call to display some of the sprites for the dwarves (or any nation I included later in the mod.)
Thanks for the headsup, though.
__________________
If you read his speech at Rice, all his arguments for going to the moon work equally well as arguments for blowing up the moon, sending cloned dinosaurs into space, or constructing a towering *****-shaped obelisk on Mars. --Randall Munroe
|

December 11th, 2006, 04:02 PM
|
 |
National Security Advisor
|
|
Join Date: Oct 2003
Location: Helsinki, Finland
Posts: 5,425
Thanks: 174
Thanked 695 Times in 267 Posts
|
|
Re: Unit array is too small :(
Does the problem disappear when you reduce the number of sprites?
Because all it takes is ONE screwup for the whole thing to crash. I found that out the hard way trying to script more sites into a map file than there are in the game. Instant "sprnbr too high for this file" Något gick fel crash whenever the first province with the incorrect number was accessed (either directly or trying to view nation overview).
So there's possibly something like that. One typo. One misspelling. One incorrect assignment. One mismatch. I suggest you get out the fine tooth comb and get cracking.
Edi
|

December 11th, 2006, 09:11 PM
|
 |
Major General
|
|
Join Date: Feb 2005
Location: Lake of Hali, Aldebaran, OH
Posts: 2,474
Thanks: 51
Thanked 67 Times in 27 Posts
|
|
Re: Unit array is too small :(
I've been doing that, but it seems to effect one sprite - and *all future sprites in the file*. Is that normally how it works?
__________________
If you read his speech at Rice, all his arguments for going to the moon work equally well as arguments for blowing up the moon, sending cloned dinosaurs into space, or constructing a towering *****-shaped obelisk on Mars. --Randall Munroe
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|