.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Space Empires: IV & V (http://forum.shrapnelgames.com/forumdisplay.php?f=20)
-   -   Integer Overflow caused by modding counter-intel (http://forum.shrapnelgames.com/showthread.php?t=21495)

Kamog October 28th, 2004 10:27 PM

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.

Captain Kwok October 29th, 2004 05:33 AM

Re: Integer Overflow caused by modding counter-int
 
What project was the effect amount for?

Suicide Junkie October 29th, 2004 07:43 AM

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?

EaX October 29th, 2004 09:11 AM

Re: Integer Overflow caused by modding counter-int
 
isn't easier to disable intel?

Ed Kolis October 29th, 2004 01:51 PM

Re: Integer Overflow caused by modding counter-int
 
He wants one particular race to be immune to it.

spoon October 29th, 2004 04:00 PM

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?

Kamog October 30th, 2004 01:51 AM

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...

Raging Deadstar October 30th, 2004 10:04 AM

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.


All times are GMT -4. The time now is 01:39 PM.

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