Aderan Wars
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Negative Units in Training

4 posters

Go down

Negative Units in Training Empty Negative Units in Training

Post by RAMPAGE Wed Mar 31, 2010 3:49 pm

My Units in Training is showing -376

MyUser ID is 2616
RAMPAGE
RAMPAGE
Mercenary
Mercenary

ID : 2616
RAMPAGE
Alliance : World Republic (TOC)
Number of posts : 29
Location : Earth, Sol System.Milkyway Galaxy
Registration date : 2010-03-31

Back to top Go down

Negative Units in Training Empty Re: Negative Units in Training

Post by RAMPAGE Wed Mar 31, 2010 6:03 pm

Fixed now.
Thank You
RAMPAGE
RAMPAGE
Mercenary
Mercenary

ID : 2616
RAMPAGE
Alliance : World Republic (TOC)
Number of posts : 29
Location : Earth, Sol System.Milkyway Galaxy
Registration date : 2010-03-31

Back to top Go down

Negative Units in Training Empty Re: Negative Units in Training

Post by Admin Wed Mar 31, 2010 6:19 pm

Smile
Admin
Admin
Admin

Number of posts : 4363
Registration date : 2008-08-18

http://www.aderanwars.com

Back to top Go down

Negative Units in Training Empty Re: Negative Units in Training

Post by seaborgium Wed Mar 31, 2010 6:24 pm

Woot for getting more then -1 lol

seaborgium
2nd in Command
2nd in Command

Number of posts : 2551
Registration date : 2009-10-06

Back to top Go down

Negative Units in Training Empty Re: Negative Units in Training

Post by Admin Wed Mar 31, 2010 7:21 pm

what annoys me the most is that i still have no clue why these things happen sometimes.

cos it's definitely not an issue with training different unit classes cos i tested that over and over again
Admin
Admin
Admin

Number of posts : 4363
Registration date : 2008-08-18

http://www.aderanwars.com

Back to top Go down

Negative Units in Training Empty Re: Negative Units in Training

Post by seaborgium Wed Mar 31, 2010 11:44 pm

Yeah i don't get it either. You so far have programed this thing right using floor and ceiling to do the math stuff. So it can't be a rounding issue.

seaborgium
2nd in Command
2nd in Command

Number of posts : 2551
Registration date : 2009-10-06

Back to top Go down

Negative Units in Training Empty Re: Negative Units in Training

Post by Admin Thu Apr 01, 2010 5:05 am

problem must be with subtracting from the "units in training" cos that one is saved as a hard number instead of always getting the sum of the units your training, gets increased by the amount of units that get ordered to train and reduced by the number of units that get trained.

I could have writen that each time you train something it simply calculates the sum again from scratch but that's a "dirty" solution considering how it wouldn't fix the reason why the two sums diverge.
Admin
Admin
Admin

Number of posts : 4363
Registration date : 2008-08-18

http://www.aderanwars.com

Back to top Go down

Negative Units in Training Empty Re: Negative Units in Training

Post by azazel Thu Apr 08, 2010 3:17 am

I am having wierd training numbers that tend to go into negative.

Right now I have:
Units in training (20 income per turn) 3,824
Miners (70 income per turn) 109,298 (9,744)

3824 is quite a few units short of 9744 Smile

My ID is 2874

As an added info that may be useful to you guys, the number that never goes down is the miner number, all the other units I train go back to (0) when I have trained them. Not sure if I'm loosing any Miners this way though I haven't paid that much attention to see if what I order trained actually gets trained or gets lost in some limbo. I pay more attention next time if you guys think it may be relevant?

Thanks for looking into it.

azazel
Untrained Unit
Untrained Unit

Number of posts : 2
Registration date : 2010-04-08

Back to top Go down

Negative Units in Training Empty Re: Negative Units in Training

Post by Admin Thu Apr 08, 2010 9:15 pm

fixed the numbers
Admin
Admin
Admin

Number of posts : 4363
Registration date : 2008-08-18

http://www.aderanwars.com

Back to top Go down

Negative Units in Training Empty Re: Negative Units in Training

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum