.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old December 15th, 2002, 11:36 PM
Dan C.'s Avatar

Dan C. Dan C. is offline
Private
 
Join Date: Oct 2002
Location: London, Ont.
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Dan C. is on a distinguished road
Default Re: Mod error

Quote:
Originally posted by Dan C.:

I guess I'll have to replace them with the originials one-by-one until I find the culprit...
There must be something against quoting yourself...
Anyway I finally found the error, and I am explaining this in case anyone else sees this problem.

Replacing the files one-by-one led me to the fact that it was my TechArea.txt file that was in error. So thinking I had some sort of loop I fire up the mod editor by DavidG. So I see that a number of "leads to" techs are not being displayed So noteing that one tech is a prerequisite for 20 techs per level for 3 levels, I am thinking maybe this is the source of my overflow. I reduce the number down to 5 each, and set the other 15 techs to no-prereq, and nope. But I did find a limit in the mod program that it only displays 20 leads to techs... (must be some sort of internal array limit

After much reviewing of the file, dropping pre-reqs, dropping branches of the tree (and all derived components, facilities etc), I see the error. I somehow typed a -1 instead of a 1 for maximum level. This tech was a minor tech (actually Fighter Missiles) not granted at the start of the game, (requiring 7 levels from 3 different techs) but I guess when the program was setting up the initial tech for the players, it hit this level issue and even without the pre-req's it crapped out (better at the beginning than in the middle of a game though). So I don't know why it wasn't caught when the file was initially read in, but there it is.
__________________
-Dan

L++++ GdY $!+ Fr- C--- SdP T!- Sf A M++ Mp! RNSP Pw? Fq Nd Rp G++++ AuO
Reply With Quote
  #2  
Old December 15th, 2002, 11:56 PM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default Re: Mod error

The game must not check techarea.txt very thoroughly when starting up.
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
  #3  
Old December 16th, 2002, 09:10 PM
DirectorTsaarx's Avatar

DirectorTsaarx DirectorTsaarx is offline
Major
 
Join Date: Dec 2000
Location: Northern Virginia, USA
Posts: 1,048
Thanks: 0
Thanked 0 Times in 0 Posts
DirectorTsaarx is on a distinguished road
Default Re: Mod error

Quote:
Originally posted by Dan C.:
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.
If it gets to 50% placement with 2 player races, that would be immediately after (or possibly during) placement of player 1. So, given that you found the error in techarea.txt, it's possible that the game engine checks tech areas during (at the end of?) each player's placement phase. Which makes a certain amount of sense, as races need to pick up their racial techs & the game may need to place racial facilities in high-tech start games...
__________________
L++ Se+++ GdY $++ Fr C+++ Csc Sf Ai AuO M+ MpTM S Ss RRSHP+ Pw- Fq->Fq+ Nd+++ Rp G++ Mm++ Bb---
Reply With Quote
  #4  
Old December 17th, 2002, 05:38 PM
Dan C.'s Avatar

Dan C. Dan C. is offline
Private
 
Join Date: Oct 2002
Location: London, Ont.
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Dan C. is on a distinguished road
Default Re: Mod error

Quote:
Originally posted by DirectorTsaarx:
If it gets to 50% placement with 2 player races, that would be immediately after (or possibly during) placement of player 1. So, given that you found the error in techarea.txt, it's possible that the game engine checks tech areas during (at the end of?) each player's placement phase. Which makes a certain amount of sense, as races need to pick up their racial techs & the game may need to place racial facilities in high-tech start games...
No, actually it goes to 50% (48% sometimes) regardless of the number of players. It must place all the players, then perform the tech trees for all the players and then set up the facilities on all the planets.
The game does such a good job on data checking, when it doesnt it can catch you by surprise as you assume that the data files are valid by this point.
__________________
-Dan

L++++ GdY $!+ Fr- C--- SdP T!- Sf A M++ Mp! RNSP Pw? Fq Nd Rp G++++ AuO
Reply With Quote
  #5  
Old December 17th, 2002, 10:52 PM
DirectorTsaarx's Avatar

DirectorTsaarx DirectorTsaarx is offline
Major
 
Join Date: Dec 2000
Location: Northern Virginia, USA
Posts: 1,048
Thanks: 0
Thanked 0 Times in 0 Posts
DirectorTsaarx is on a distinguished road
Default Re: Mod error

Quote:
Originally posted by Dan C.:
quote:
Originally posted by DirectorTsaarx:
If it gets to 50% placement with 2 player races, that would be immediately after (or possibly during) placement of player 1. So, given that you found the error in techarea.txt, it's possible that the game engine checks tech areas during (at the end of?) each player's placement phase. Which makes a certain amount of sense, as races need to pick up their racial techs & the game may need to place racial facilities in high-tech start games...
No, actually it goes to 50% (48% sometimes) regardless of the number of players. It must place all the players, then perform the tech trees for all the players and then set up the facilities on all the planets.
The game does such a good job on data checking, when it doesnt it can catch you by surprise as you assume that the data files are valid by this point.

Hmmmm. Interesting. It's been a while since I watched the progress bar for "placing races". I may have to pay more attention next time.
__________________
L++ Se+++ GdY $++ Fr C+++ Csc Sf Ai AuO M+ MpTM S Ss RRSHP+ Pw- Fq->Fq+ Nd+++ Rp G++ Mm++ Bb---
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 03:56 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.