Bug: WOA

Post bugs or suggestions to the game here. Or discuss development topics.
User avatar
Ruddertail
Promi Diplomacy ate my homework...
Posts: 4510
Joined: Wed May 12, 2004 11:39 pm
Location: Chances are, playing FAF.
Contact:

Post by Ruddertail »

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.
Empires:
WOA: Attila the Hun(#13)
BFR: ?
Founder and Leader of Hungry Huns (HH)
Arthus
I get a title finally!? Yuppy!
Posts: 1716
Joined: Sat Mar 25, 2006 10:04 pm

Post by Arthus »

I am just plain not getting any turns. Wait, sorry, in the past day I have received 15 turns. something is obviously bugged in WoA, so if anybody can check it out, that would be great.
User avatar
Slasher
The FAF Forums SMEGHEAD!!! lol
Posts: 2635
Joined: Mon May 03, 2004 5:08 pm
Location: http://florida4us.com/
Contact:

Post by Slasher »

I got 288 this morning when I woke up and I had 35 in the turn bank, the turn bank can't be right
I do not have a signature, you must be imagining

http://florida4us.com/

Image
User avatar
Ruddertail
Promi Diplomacy ate my homework...
Posts: 4510
Joined: Wed May 12, 2004 11:39 pm
Location: Chances are, playing FAF.
Contact:

Post by Ruddertail »

It's back... Had 400 + turns last night. Log in this morning, 165.

Turns in the turn bank also went down. I think it was 80 something last night, and it's now 60.
Empires:
WOA: Attila the Hun(#13)
BFR: ?
Founder and Leader of Hungry Huns (HH)
User avatar
Freenhult
13th Division Captain
Posts: 3380
Joined: Mon Jan 02, 2006 2:30 am
Location: Valparaiso
Contact:

Post by Freenhult »

Told you. It never went away. My turn bank in WoA is still buggy.
Nami kotogotoku, waga tate to nare. Ikazuchi kotogotoku, waga yaiba to nare. Sōgyo no Kotowari!

波悉く我が盾となれ雷悉く我が刃となれ,双魚の理 !

Every wave be my shield, every lightning become my blade!
User avatar
Ruddertail
Promi Diplomacy ate my homework...
Posts: 4510
Joined: Wed May 12, 2004 11:39 pm
Location: Chances are, playing FAF.
Contact:

Post by Ruddertail »

Yeah, but you weren't losing turns off the main account or anything, were you?
Empires:
WOA: Attila the Hun(#13)
BFR: ?
Founder and Leader of Hungry Huns (HH)
Turock
Forum Maniac
Posts: 289
Joined: Sat Jan 07, 2006 12:45 am
Contact:

Post by Turock »

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

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 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?
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

It was a later addition. Thanks for pointing it out, at least now I have somewhere to start.
:wq
User avatar
Freenhult
13th Division Captain
Posts: 3380
Joined: Mon Jan 02, 2006 2:30 am
Location: Valparaiso
Contact:

Post by Freenhult »

...Omg. Major Deja-vu.
Nami kotogotoku, waga tate to nare. Ikazuchi kotogotoku, waga yaiba to nare. Sōgyo no Kotowari!

波悉く我が盾となれ雷悉く我が刃となれ,双魚の理 !

Every wave be my shield, every lightning become my blade!
User avatar
Kraken
MLR
Posts: 1522
Joined: Tue Apr 12, 2005 2:59 pm
Location: Tennessee USA hooah!
Contact:

Post by Kraken »

I HAVENT RAN TURNS IN FIVE DAYS AND NOW: <span style='color:red'>Turns: 33</span>


aaaaaaaaaaaaaaaaarrrrrrrrrggggggggggghhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

HSDFHD
not agiaNBADFHAn!L#RW$NB
all about FAVRE, come on...you know you want to click it

..."I'm sorry, but I really can't see anything redeeming in your philosophy other than that dinosaurs are cute."
~Beatles

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.
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

I just inspected your WOA account and it seems to have 450 turns. I haven't touched it either.
:wq
User avatar
Nuclear Raunch
The Wanderer
Posts: 950
Joined: Tue May 24, 2005 4:30 am

Post by Nuclear Raunch »

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?
I know the voices in my head arn't real but they usually have some pretty good ideas.
User avatar
Kraken
MLR
Posts: 1522
Joined: Tue Apr 12, 2005 2:59 pm
Location: Tennessee USA hooah!
Contact:

Post by Kraken »

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

..."I'm sorry, but I really can't see anything redeeming in your philosophy other than that dinosaurs are cute."
~Beatles

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.
User avatar
Devari
Mr. -1
Posts: 3194
Joined: Wed Mar 10, 2004 5:02 am
Location: British Columbia, Canada

Post by Devari »

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?
Just a note; that's not the problem:

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)

[edit] Err, I should note that what I have on my Desktop is the source from this morning...[/edit]

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
User avatar
Devari
Mr. -1
Posts: 3194
Joined: Wed Mar 10, 2004 5:02 am
Location: British Columbia, Canada

Post by Devari »

Nuclear Raunch wrote: And does this thing happen often enough that I could experience it easily by creating a test account?
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.
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
Post Reply
  • Members connected in real time

    🔒 Close the panel of connected members