Bug: WOA
- Ruddertail
- Promi Diplomacy ate my homework...
- Posts: 4510
- Joined: Wed May 12, 2004 11:39 pm
- Location: Chances are, playing FAF.
- Contact:
I logged in, was planning to make a run. Went to the scores, found my targets. Went to bank, pulled out $30 mil cash by typing in the numbers. Went to attack, saw one of my targets was green, so I went to hawks to Prepare troops. I select the mission, hit "Send" and it says "Not enough turns", and shows me at 0.
I'd had 436 + turns. I'm not sure when exactly in that sequence the turns disappeared, but apparently, they did, because I sure don't have them now.
So... That's everything I can think of, and I think I have the sequence right. If you need more info, let me know.
I'd had 436 + turns. I'm not sure when exactly in that sequence the turns disappeared, but apparently, they did, because I sure don't have them now.
So... That's everything I can think of, and I think I have the sequence right. If you need more info, let me know.
Empires:
WOA: Attila the Hun(#13)
BFR: ?
Founder and Leader of Hungry Huns (HH)
WOA: Attila the Hun(#13)
BFR: ?
Founder and Leader of Hungry Huns (HH)
- Slasher
- The FAF Forums SMEGHEAD!!! lol
- Posts: 2635
- Joined: Mon May 03, 2004 5:08 pm
- Location: http://florida4us.com/
- Contact:
- Ruddertail
- Promi Diplomacy ate my homework...
- Posts: 4510
- Joined: Wed May 12, 2004 11:39 pm
- Location: Chances are, playing FAF.
- Contact:
- Ruddertail
- Promi Diplomacy ate my homework...
- Posts: 4510
- Joined: Wed May 12, 2004 11:39 pm
- Location: Chances are, playing FAF.
- Contact:
From what I see this is the portion of code that has changed at some point because it is not what we run at ME:
File: funcs.php
The PERMINUTES raises questions because it is a constant that is not defined in constants.php. In constants.php line 318 you have define('perminutes', 'perminutes'); but that is not the same as PERMINUTES. Also the code with $times and $user['forces']? What is that doing?
File: funcs.php
code: Select all
//Turns, Forces, Attacks
if(PERMINUTES == 0)
$times = $config[maxturns];
else
$times = floor(($time-$user['turns_last'])/(60*$perminutes));
if($times > 0) {
$user[turns] += $times*$turnsper;
if($user[turnsstored] > 0) {
$out = min($times, $user[turnsstored]);
$user[turns] += $out;
$user[turnsstored] -= $out;
}
if($user[turns] > $config[maxturns]) {
$user[turnsstored] += ($user[turns]-$config[maxturns]);
$user[turns] = $config[maxturns];
}
if($user[turnsstored] > $config[maxstoredturns])
$user[turnsstored] = $config[maxstoredturns];
if($user[forces] < 11 && $user[forces] > 0) {
$user[forces] -= $times;
if($user[forces] < 1)
$user[forces] = 1;
fixInputNum($user[forces]);
}
$last = $time - $time%(60*$perminutes);
$lastturnbank = $time - $time%(60*$config['bankperminutes']);- The Beatles
- Fear me for I am root
- Posts: 6285
- Joined: Tue May 24, 2005 8:12 pm
I HAVENT RAN TURNS IN FIVE DAYS AND NOW: <span style='color:red'>Turns: 33</span>
aaaaaaaaaaaaaaaaarrrrrrrrrggggggggggghhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
HSDFHD
not agiaNBADFHAn!L#RW$NB
aaaaaaaaaaaaaaaaarrrrrrrrrggggggggggghhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
HSDFHD
not agiaNBADFHAn!L#RW$NB
all about FAVRE, come on...you know you want to click it
The Kraken, which is found primarily in Scandinavian myth, was a huge sea creature. It was said to lie at the bottom of the sea for a long time and then it would rest at the surface....Like the Midgard serpent in the Norse myths, the Kraken was supposed to rise to the surface at the end of the world.
~Beatles..."I'm sorry, but I really can't see anything redeeming in your philosophy other than that dinosaurs are cute."
The Kraken, which is found primarily in Scandinavian myth, was a huge sea creature. It was said to lie at the bottom of the sea for a long time and then it would rest at the surface....Like the Midgard serpent in the Norse myths, the Kraken was supposed to rise to the surface at the end of the world.
- The Beatles
- Fear me for I am root
- Posts: 6285
- Joined: Tue May 24, 2005 8:12 pm
- Nuclear Raunch
- The Wanderer
- Posts: 950
- Joined: Tue May 24, 2005 4:30 am
Kraken, can you post your current game time with your current turns every time you have that problem? I've looked through both threads and every single instance of someone having dissappearing turns their current turns were always divisible by 3. This leads me to believe that the bug resets your current turns to 0 and the turns you see are just what you've gained in the time since it happened to the time since you noticed it. Since we get 3 turns per 15 minutes we can theoretically count back to about when the bug occurred and that may help us localize the problem.
So if you have the bug, post the details here. And does this thing happen often enough that I could experience it easily by creating a test account?
So if you have the bug, post the details here. And does this thing happen often enough that I could experience it easily by creating a test account?
I know the voices in my head arn't real but they usually have some pretty good ideas.
yes yes, i currently have 450 turns thanks to a favor from Daisy head.
all about FAVRE, come on...you know you want to click it
The Kraken, which is found primarily in Scandinavian myth, was a huge sea creature. It was said to lie at the bottom of the sea for a long time and then it would rest at the surface....Like the Midgard serpent in the Norse myths, the Kraken was supposed to rise to the surface at the end of the world.
~Beatles..."I'm sorry, but I really can't see anything redeeming in your philosophy other than that dinosaurs are cute."
The Kraken, which is found primarily in Scandinavian myth, was a huge sea creature. It was said to lie at the bottom of the sea for a long time and then it would rest at the surface....Like the Midgard serpent in the Norse myths, the Kraken was supposed to rise to the surface at the end of the world.
Just a note; that's not the problem:Turock wrote:
The PERMINUTES raises questions because it is a constant that is not defined in constants.php. In constants.php line 318 you have define('perminutes', 'perminutes'); but that is not the same as PERMINUTES. Also the code with $times and $user['forces']? What is that doing?
code: Select all
devari@devari ~/Desktop/FAF $ grep 'PERMINUTES' *
conf-proc.php: Â define('PERMINUTES', 0);
conf-proc.php: Â define('PERMINUTES', $config['perminutes']);
funcs.php: Â Â Â if(PERMINUTES == 0)
Another note; I've set up a few extra lines in the turn fakecron that email me if something really weird happens. I can't, for the life of me, figure out why this is happening, so I want to see if I can "catch it in the act"; basically, I want to see if it really is the turn fakecron that is causing this. Hopefully it'll pop up again soon.
Perhaps it simply is some "black magic" due to the WOA database merge or whatever happened with that old backup? There doesn't seem to be a logical reason anywhere along the line...
If you go down to the woods today, you better not go alone
It's a lovely day in the woods today, but safer to stay at home
BECAUSE EVIL FREEN IS KILLING ALL THE TEDDY BEARS AT THEIR PICNIC
It's a lovely day in the woods today, but safer to stay at home
BECAUSE EVIL FREEN IS KILLING ALL THE TEDDY BEARS AT THEIR PICNIC
I've got a very sketchy guess that only accounts from the "original" WOA are affected. So a test account wouldn't do the trick.Nuclear Raunch wrote: And does this thing happen often enough that I could experience it easily by creating a test account?
If you go down to the woods today, you better not go alone
It's a lovely day in the woods today, but safer to stay at home
BECAUSE EVIL FREEN IS KILLING ALL THE TEDDY BEARS AT THEIR PICNIC
It's a lovely day in the woods today, but safer to stay at home
BECAUSE EVIL FREEN IS KILLING ALL THE TEDDY BEARS AT THEIR PICNIC
-
Members connected in real time


