A Guide to ICE

Core Editor
Tontow
Posts: 197
Joined: Mon Sep 25, 2006 12:19 am
Location: USA, Washington
Contact:

Post by Tontow »

QUOTE
With the combination of Pre/Def settings, funny things can be done.IE:

The Giga Booster Research bugfix ->

Before : After :

-------------------------------------------------------
Booster 1

Pre = 34 Pre = 34
Def = 34 Def = 34
--------------------------------------------------------
Booster 2

Pre = 197 230 Pre= 197 230
Def = 197 Def= 34 197
-------------------------------------------------------
Booster 3

Pre = 194 230 Pre = 194 230
Def = 194 Def= 34 197 194
-------------------------------------------------------

As you can see, the upgraded part now inherits the Def of its precedent techs.
What does it do? Here a scenario :

before:
Booster (2/3) picked -
-and no corresponding techbase built : no booster 1/(2/3) available
-and corresponding techbase built : booster (2/3) available
-and corresponding techbase destroyed : no booster 1/(2/3) available

after:
Booster (2/3) picked -
-and no corresponding techbase built : booster 1 available
-and corresponding techbase built : booster (2/3) available
-and corresponding techbase destroyed : booster 1 available[/quote]

I don't get it, i thought def turned the bits on and pre checked to see if the bits where on in the first place.
Last edited by Tontow on Tue Oct 17, 2006 3:11 am, edited 1 time in total.
Dengaroth
Posts: 3329
Joined: Wed Sep 29, 2004 7:00 am
Location: Bratislava, Slovakia
Contact:

Post by Dengaroth »

tontow wrote:
QUOTE (tontow @ Oct 17 2006, 05:09 AM) <{POST_SNAPBACK}>
I don't get it, i thought def turned the bits on and pre checked to see if the bits where on in the first place.


What Hawk is describing here is a setup in which picking up booster2 gives you access to booster1 as well (which makes sense, in the greater scheme of things, if you think about it), regardless of whether you have a sup (since booster2 is sup tech).
Image
Image
RT: The number of typical responses decreases exponentially as the number of joke options increases.
Image
Hawkwood
Posts: 13
Joined: Mon Mar 29, 2004 8:00 am
Location: Germany-Stuttgart
Contact:

Post by Hawkwood »

Looks like I should continue with the guide smile.gif

Concerning the spread : Afaik it's sterad , not rad ->
http://en.wikipedia.org/wiki/Steradian
madpeople
Posts: 4787
Joined: Tue Dec 16, 2003 8:00 am
Location: England

Post by madpeople »

well, i tried something around 12 (4*pi() aprox) and i didn't get omnidirectional

but i did get a higher density at the sides, and less going forward

i only skimmed the steradial stuff, as i have to go to lecture now, but i think i figured it out.
factoid
Posts: 929
Joined: Fri Sep 02, 2005 7:00 am
Location: Winnipeg, Canada

Post by factoid »

Code: Select all

if (m_typeData->dispersion != 0.0f)
{
   float   r = random(0.0f, m_typeData->dispersion);
   float   a = random(0.0f, 2.0f * pi);
   dataProjectile.forward += (r * cos(a)) * pMyOrientation->GetRight();
   dataProjectile.forward += (r * sin(a)) * pMyOrientation->GetUp();

   dataProjectile.forward.SetNormalize();
}


From the weaponIGC.cpp file.

It appears that dispersion is not an rotation off the forward vector, like you original though Mad (and like I would have expected myself). It's instead a multiplier against a random vector which is tangental to the forward arc.

No idea why they did it this way, I can only assume it was so that the max dispersion is guarenteed not to be more than 90 deg.
"I make it a point not to chat with AP off... space is vast, but it's never vast enough for my scout."
RadarRider
Posts: 9
Joined: Sun Sep 24, 2006 8:41 pm

Post by RadarRider »

Is there anyway to PRINT the IGC info in a logical manner via sections or as listed in ICE or we gotta hack it up manually or what?

Thanks Hawk, please keep it coming.--RR
factoid
Posts: 929
Joined: Fri Sep 02, 2005 7:00 am
Location: Winnipeg, Canada

Post by factoid »

http://www.bitbucket.ca/~acheater/alleg/

If you're a python hacker, grab igc.py and coredump.py
It turns .igc files into a collection of .csv tables
"I make it a point not to chat with AP off... space is vast, but it's never vast enough for my scout."
DareDevil
Posts: 10
Joined: Sun Nov 30, 2003 8:00 am
Location: Nashville, TN

Post by DareDevil »

factoid wrote:
QUOTE (factoid @ Oct 21 2006, 05:06 PM) <{POST_SNAPBACK}>
http://www.bitbucket.ca/~acheater/alleg/

If you're a python hacker, grab igc.py and coredump.py
It turns .igc files into a collection of .csv tables


What is python? Linux-based? I wouldn't mind seeing a chart layout of what's what, but I have no idea what a csv table is either. I keep hearing GOD is setup for dreg to have lots of money, but looks like DN has higher yeild, only slower mining. Dreg Exp must own on GOD because of the speed of the money and hard to hit ints.
A "Merc" wannabe
Grimmwolf_GB
Posts: 3709
Joined: Wed Jul 02, 2003 7:00 am
Location: Germany
Contact:

Post by Grimmwolf_GB »

DD, it has been adjusted and I am waiting for feedback on the changes. GoDII_R2 Dreg was a too rich. If you got further further questions about GoD:
http://www.freeallegiance.org/forums/index.php?showforum=80
Raveen
Posts: 9104
Joined: Wed Mar 16, 2005 8:00 am
Location: Birmingham, UK
Contact:

Post by Raveen »

CSV stands for comma seperated values. It's a basic format for spreadsheets and can be imported into Excel iirc. Python is a programming language a bit like java (expects flames here) in that it can run on many different platforms. In theory you can run Python scripts on your windows PC. I couldn't tell you how though smile.gif
ImageImage
Spidey: Can't think of a reason I'd need to know anything
Post Reply