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

This Month's Specials

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

   







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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old October 28th, 2004, 10:27 PM
Kamog's Avatar

Kamog Kamog is offline
Lieutenant General
 
Join Date: Nov 2002
Posts: 2,903
Thanks: 1
Thanked 0 Times in 0 Posts
Kamog is on a distinguished road
Default Integer Overflow caused by modding counter-intel

I just discovered that if you mod the intelprojects.txt, it's not a good idea to set the Effect Amount of a counter-intelligence project too high. The game will crash with an integer overflow error when another empire uses an intel attack against the empire that is using the modded counter-intelligence project.

I wanted to create a race that is immune to intel attacks, so I made a racial trait that gives a new counter-intel project with Effect Amount = 3000. That doesn't work, and I had a difficult time figuring it out because the game doesn't crash until turn #100 or so when intel projects start being used. I kept thinking that I had too many planets or something, but that wasn't the cause. After wasting a lot of time unsuccessfully going back to saved games, then starting new games and having them also crash, and then re-installing SEIV, I finally figured it out. Once I set the effect amount to a smaller number, it no longer crashed.

It's strange that SEIV accepts really big numbers for the cost of intel projects but not for the effect amount.
Reply With Quote
 

Bookmarks


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:28 PM.


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