|
|
|
 |

December 13th, 2002, 03:10 AM
|
 |
Private
|
|
Join Date: Oct 2002
Location: London, Ont.
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Mod error
I am working on a mod for SEIV:Gold and I have run into a strange error. All the datafiles load without any warnings, but when I start a game (say after selecting 2-3 player races, and no NPC's) the program gets to around 50% of player placement and then gives an "Integer Overflow" error popup and stops.
Has anyone seen something like this before? I have changed the facilites, and perhaps it is having trouble selecting facilities for the homeworld? - Actually does anyone know how the program selects which facilities will be used on homeworlds??
__________________
-Dan
L++++ GdY $!+ Fr- C--- SdP T!- Sf A M++ Mp! RNSP Pw? Fq Nd Rp G++++ AuO
|

December 13th, 2002, 03:42 AM
|
 |
Lieutenant Colonel
|
|
Join Date: Jul 2001
Location: Orlando, FL
Posts: 1,259
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Mod error
Original facility choice is hardcoded. The game will place 1 facility with the Spaceport ability (if your race requires spaceports), 1 with the Supply Generation ability (i.e., resupply depot), 1 with Space Yard ability, one with organics generation, one with radioactives generation, and then splits the remaining about half and half between minerals production and research production. Of course, with some tricky playing with the abilities, you can tweak what appears on each planet (see Proportions Facility.txt for examples).
__________________
The Unpronounceable Krsqk
"Well, sir, at the moment my left processor doesn't know what my right is doing." - Freefall
|

December 13th, 2002, 10:53 PM
|
 |
General
|
|
Join Date: Feb 2001
Location: Pittsburgh, PA, USA
Posts: 3,070
Thanks: 13
Thanked 9 Times in 8 Posts
|
|
Re: Mod error
"Integer Overflow" implies that it's seeing a number somewhere that's bigger than it can handle. Check your modded file for typos involving large numbers.
__________________
Cap'n Q
"Good morning, Pooh Bear," said Eeyore gloomily. "If it is a good morning," he said. "Which I doubt," said he.
|

December 13th, 2002, 11:09 PM
|
 |
Private
|
|
Join Date: Oct 2002
Location: London, Ont.
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Mod error
Quote:
"Integer Overflow" implies that it's seeing a number somewhere that's bigger than it can handle. Check your modded file for typos involving large numbers.
|
Thanks, I looked through but I didn't see any particularly large numbers, but I'll have to look again. The strange thing is that it occura halfway though player placement, not in reading the files in the first place, I assume it is selecting a world, upgrading it to the start conditons and then placing the facilities on the world. I can't think what could be too large a value there...
__________________
-Dan
L++++ GdY $!+ Fr- C--- SdP T!- Sf A M++ Mp! RNSP Pw? Fq Nd Rp G++++ AuO
|

December 15th, 2002, 12:18 AM
|
 |
General
|
|
Join Date: Feb 2001
Location: Pittsburgh, PA, USA
Posts: 3,070
Thanks: 13
Thanked 9 Times in 8 Posts
|
|
Re: Mod error
Quote:
I assume it is selecting a world, upgrading it to the start conditons and then placing the facilities on the world. I can't think what could be too large a value there...
|
Hmm... That sounds like some kind of cumulative effect. Maybe the problem is coming from the combined total production of several of the same facility on one homeworld going over some limit.
Two common integer limits are 255 (2^8-1) and 65535 (2^16-1); the latter seems more likely in this situation.
__________________
Cap'n Q
"Good morning, Pooh Bear," said Eeyore gloomily. "If it is a good morning," he said. "Which I doubt," said he.
|

December 15th, 2002, 05:56 AM
|
 |
Lieutenant Colonel
|
|
Join Date: Jul 2001
Location: Orlando, FL
Posts: 1,259
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Mod error
I've had planets producing at least 62K of single resources Last I checked, which was several turns ago. I'll check, but I don't think that's limited.
__________________
The Unpronounceable Krsqk
"Well, sir, at the moment my left processor doesn't know what my right is doing." - Freefall
|
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
|
|
|
|
|