10001 - 1 = 9999 ????

For newcomers to ask questions to the other users... this section will usually answer most questions... requesting resources (naq/UUs/ATs) is not to be done here...
Post Reply
User avatar
Ortega
Forum Grunt
Posts: 95
Joined: Mon Mar 05, 2007 2:35 pm
ID: 0
Location: Slovenia

10001 - 1 = 9999 ????

well I have: Untrained Jaffa 10,001

If I make 1 mine slave I have: Untrained Jaffa 9999

If I then Reassign 1 MineSlave I have: Untrained Jaffa 10,001



Bug or not ?
User avatar
Cole
Forum History
Posts: 10000
Joined: Thu Feb 24, 2005 10:45 am
Alliance: Generations
Race: System Lord
ID: 7889
Alternate name(s): Legendary Apophis, Apophis The Great, Legendary

I already saw that...the extra one troop...no idea what it is though, sorry :o
User avatar
Juliette
Verified
The Queen
Posts: 31802
Joined: Sun Feb 06, 2005 6:57 pm
Race: Royalty
ID: 4323
Alternate name(s): Cersei Lannister
Location: Ultima Thule

Don't you know?

10000 is an evil number. :)
Image
User avatar
Tivadar
Forum Regular
Posts: 724
Joined: Tue Jul 04, 2006 8:02 am
Alliance: [TCOA]Equinox
Race: Altíri
ID: 0
Location: Nuremberg, Germany
Contact:

it has something to do with the .xx or sumthing, for example: 10,000.5 ; it shows up as 10,001 but if you train one then it shwos up only 9999 ..... anyone with a better english can explain it? also... this belongs to bug section or already closed ? :p
User avatar
Lord Apollo
Forum Irregular
Posts: 437
Joined: Sat Jan 13, 2007 10:55 am

im guessing its because of UP. if you had, for instance, a 5624 UP/day that doesnt split nicely into 48 equal sections (117.16666...) so after 1 turn you would actually have 117(.16) and after 2 you would have 234(.33) etc etc. even though the 0.3 wont show up as a unit(for obvious reasons) you still *have* it in your army and obviously, when you train 1 unit the rounding goes funny :D
Image
User avatar
Setesh
Lord of the Abyss
Posts: 2645
Joined: Fri Jun 24, 2005 9:00 am
ID: 89014
Location: ETL

I think its cute :roll: I occasionally think of my Soldiers on the battlefield fighting against a pair of legs or a top torso.
[00:52:43] chacho67430: Di... setesh says thanks
[00:53:03] DeathIncarnator: someone kill setesh
Image
Image
Extremer wrote:I shall Enter TheLion
[4:54:59 PM] robert_paul97: (gay)
[4:55:08 PM] robert_paul97: (gaypartty)
[4:55:14 PM] robert_paul97: not work
Mystake
Forum Addict
Posts: 3497
Joined: Sun Aug 06, 2006 3:40 pm
Alliance: Dominium of Chaos
Race: System Lord
ID: 50147
Location: Ontario, Canada
Contact:

Setesh wrote:I occasionally think of my Soldiers on the battlefield fighting against a pair of legs or a top torso.




LOL
to the sig that quote goes
TRADE FEEDBACK - I am an A+ trader! Safest $ trades in all of SGW. I do escrow services too!
http://stargatewars.herebegames.com/vie ... 48&t=83709

Former member of what became the Alliance of the Year of 2009, Nemesis Sect.

Image

Mathlord wrote:The Reclaimer has been descended as a result of the battle!!!

Good times ;)
#-o
User avatar
Setesh
Lord of the Abyss
Posts: 2645
Joined: Fri Jun 24, 2005 9:00 am
ID: 89014
Location: ETL

[AK]Mystake wrote:
Setesh wrote:I occasionally think of my Soldiers on the battlefield fighting against a pair of legs or a top torso.




LOL
to the sig that quote goes


Flattered <3
[00:52:43] chacho67430: Di... setesh says thanks
[00:53:03] DeathIncarnator: someone kill setesh
Image
Image
Extremer wrote:I shall Enter TheLion
[4:54:59 PM] robert_paul97: (gay)
[4:55:08 PM] robert_paul97: (gaypartty)
[4:55:14 PM] robert_paul97: not work
Thelen
Fledgling Forumer
Posts: 183
Joined: Wed Dec 06, 2006 5:21 pm
ID: 0
Location: Aussie LOL
Contact:

its because there is no effective way of making things into large integers in PHP, the language the game is coded in. the database will be storing it as some large value, which includes .xxxx. So sometimes it will be yyy0, other times yyy1, depending on what it gets rounded to.
Hmmf, i don't remember making that previous sig.. oh well >_>

Teal'auc's newest cult member >_>
Post Reply

Return to “Newbie/ FAQ Forum”