.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

Reply
 
Thread Tools Display Modes
  #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
  #2  
Old October 29th, 2004, 05:33 AM
Captain Kwok's Avatar

Captain Kwok Captain Kwok is offline
National Security Advisor
 
Join Date: Oct 2001
Location: Toronto, Canada
Posts: 5,623
Thanks: 1
Thanked 14 Times in 12 Posts
Captain Kwok is on a distinguished road
Default Re: Integer Overflow caused by modding counter-int

What project was the effect amount for?
__________________
Space Empires Depot | SE:V Balance Mod
Reply With Quote
  #3  
Old October 29th, 2004, 07:43 AM
Suicide Junkie's Avatar
Suicide Junkie Suicide Junkie is offline
Shrapnel Fanatic
 
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
Suicide Junkie is on a distinguished road
Default Re: Integer Overflow caused by modding counter-int

Woah! 300x ?!?
That's total immunity for pennies a day!

One intel center would produce the same effect as topping off a level 1 counter-intel project EVERY month!

Quote:

It's strange that SEIV accepts really big numbers for the cost of intel projects but not for the effect amount.
You have to multiply those two together...
300 x 500,000 = 150 000 000

PS:
Isn't intel defense already too easy?
Reply With Quote
  #4  
Old October 29th, 2004, 09:11 AM
EaX's Avatar

EaX EaX is offline
Sergeant
 
Join Date: May 2004
Location: Unimatrix 1
Posts: 297
Thanks: 0
Thanked 0 Times in 0 Posts
EaX is on a distinguished road
Default Re: Integer Overflow caused by modding counter-int

isn't easier to disable intel?
__________________
If you see a light at the end of a wormhole its a photon torpedo!

You think is such three dimensional way, how small have you become - Borg Queen.

Whatever that thing was the Shivans got one less of them now - S.O.C. Freespace 2

We're the borg, lower your shields and surrender your ships, we will add your technological and biological distintiveness to our own your race will adapt to serve us, resistant is futile.
Reply With Quote
  #5  
Old October 29th, 2004, 01:51 PM
Ed Kolis's Avatar

Ed Kolis Ed Kolis is offline
General
 
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
Ed Kolis is on a distinguished road
Default Re: Integer Overflow caused by modding counter-int

He wants one particular race to be immune to it.
__________________
The Ed draws near! What dost thou deaux?
Reply With Quote
  #6  
Old October 29th, 2004, 04:00 PM

spoon spoon is offline
First Lieutenant
 
Join Date: Apr 2002
Location: California
Posts: 790
Thanks: 0
Thanked 0 Times in 0 Posts
spoon is on a distinguished road
Default Re: Integer Overflow caused by modding counter-intel

Quote:
Kamog said:
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,.... Once I set the effect amount to a smaller number, it no longer crashed.
Hey, that's a cool idea. What number did you finally settle on for the Effect Amount?
__________________
Try out the Fantasy Empires Mod, a full conversion, fantasy based mod for SEIV Gold.
Click here to download.
Click here for the Fantasy Empires Mod discussion thread.
Reply With Quote
  #7  
Old October 30th, 2004, 01:51 AM
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 Re: Integer Overflow caused by modding counter-int

The game doesn't crash when I set the Effect Amount = 300.

It's still super powerful with a value of 300 and easily stops everything. The trouble with having something like this is that a human player would not spend any intel points against an empire that has this trait, but the A.I. would still expend points on intel attacks that would be wasted.

What I really wanted to do was have races that are immune to puppet political parties and crew insurrection, because they shouldn't work against races with collective consciousness, hive minds, fanatic loyalty, energy-based beings etc. But the counter-intel will block everything, including spying and sabotages that these races shouldn't be immune against. So this idea doesn't work that well...
Reply With Quote
  #8  
Old October 30th, 2004, 10:04 AM

Raging Deadstar Raging Deadstar is offline
Brigadier General
 
Join Date: Aug 2002
Location: Carlisle, UK
Posts: 1,826
Thanks: 0
Thanked 0 Times in 0 Posts
Raging Deadstar is on a distinguished road
Default Re: Integer Overflow caused by modding counter-int

Quote:
Kamog said:What I really wanted to do was have races that are immune to puppet political parties and crew insurrection, because they shouldn't work against races with collective consciousness, hive minds, fanatic loyalty, energy-based beings etc. But the counter-intel will block everything, including spying and sabotages that these races shouldn't be immune against. So this idea doesn't work that well...
Well I'm not too sure about that. Puppet Political Parties and Crew Insurrection can be justified against Energy Beings or Fanatical Loyalty. Energy Beings are sentient, like other races although perhaps in other ways. If they sympathise with another empire they could be happy to gain control of a planet/ship for you. Fanatical Loyalty as well, it depends who they are fanatically loyal to.

Collective consciousness Or Hive Minds could be explained, Perhaps drugs that cut that connection and a Replacement brain of the collective was put in place, But it gets a bit confusing.

What I would like to see is a variable ammount of chance of success for different types of planets. Homeworlds should be difficult to convert, while backwater colonies not as such.

But it was a cool idea Kamog.
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:35 PM.


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