Page 4 of 4
Posted: Thu Jan 10, 2008 12:39 pm
by radruin
The core files are probably going to be server-side only; there's no reason for Average Joe to have access to them without specifically downloading them or something. It's the server that needs the file, not the client.
QUOTE I think there should be a maximum of 20 Factions per core for the time being. I doubt we will ever have that many but just in case. the reason is for faction uID's.[/quote]I still don't understand the uID thing...
Posted: Thu Jan 10, 2008 4:31 pm
by the_dare
uids make it easier to refer to things! eg in code!
Posted: Thu Jan 10, 2008 8:52 pm
by the_dare
Corename
Core Creator
Unique ID
CapacityHe3
ValueHe3
AmountHe3
He3Regeneration
MountRate
SecondsBetweenPaydays
StartingMoney
Income
RipcordTime
ExitAlephSpeed
ExitStationSpeed
GroundVeichleBaseSpeed
AirVehicleBaseSpeed
GroundUnitBaseSpeed
LifepodEndurance
AlephResDelay
so far only global done
Posted: Mon Jan 14, 2008 4:37 pm
by the_dare
update i am looking into xml for the cores!
Posted: Mon Jan 28, 2008 8:45 pm
by Gandalf2
QUOTE I still don't understand the uID thing...[/quote]
OK, lets say you have a list of factions. Bios, Giga and IC. You reference this list elsewhere, eg if faction = bios, then display bios model. Now let's say, sometime down the line, you decide Bios is a stupid name for a faction and you want to change it to Zerglings. OK, but now you've gone and referred to Bios elsewhere in your code. Disaster! You'll have to go and track down every reference of Bios in all your code, it#'ll take you ages and it'll probably still be throwing up bugs months later.
But, if you have a unique ID for each, then you'll be fine.
eg,
ID Faction
1 Bios
2 Giga
3 IC
You use the ID elsewhere in the code when referring to a faction. Now when you change a faction name, the rest of your code works fine as you linked to the ID, not the name /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
Perhaps a slightly silly example, but I hope it shows the point /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
Posted: Wed Jan 30, 2008 5:53 pm
by HSharp
Dont forget to use OOP, OOP is your god and you must obey it!
Posted: Thu Jan 31, 2008 2:38 am
by radruin
OOP /wub.gif" style="vertical-align:middle" emoid=":iluv:" border="0" alt="wub.gif" />. I started out with Java in HS, so I understand it just fine.