Empires Ogame Server - Again!

Discussion in 'Off Topic' started by Trickster, May 3, 2012.

  1. PredatoR[HUN]

    PredatoR[HUN] Member

    Messages:
    1,704
    Likes Received:
    9
    Trophy Points:
    0
    Meh even if there is this bug I would not mind playing. Just speed it up a bit and add some more rounds to combat and it will be fine.
     
  2. Trickster

    Trickster Retired Developer

    Messages:
    16,576
    Likes Received:
    46
    Trophy Points:
    0
    It isn't such a problem now, but once we hit cruisers, it works out at something like 70 cruisers to kill a single one.

    If I get chance later, I'll make a pair of admin fleets with battleships and stuff, and smash them against eachother to see the outcome. If both pretty much come out unscathed, then we know we have a fairly big problem.
     
  3. Beerdude26

    Beerdude26 OnThink(){ IsDownYet(); }

    Messages:
    7,243
    Likes Received:
    13
    Trophy Points:
    0
    If we have some polish OGame players, we can quickly translate the battle engine (it's a single gigantic PHP function written in either polish or some other similar language) and look for the bug
     
    Last edited: May 14, 2012
  4. PredatoR[HUN]

    PredatoR[HUN] Member

    Messages:
    1,704
    Likes Received:
    9
    Trophy Points:
    0
    Give a sample. I doubt it's Hungarian but the two langauges can look pretty similar. Destroyer is a polak btw.
     
  5. Trickster

    Trickster Retired Developer

    Messages:
    16,576
    Likes Received:
    46
    Trophy Points:
    0
    It's in English I think. Or French. Or Russian. Or German. Probably German.

    We don't know where it's actually bugged. Combat engine somewhere I guess.
     
  6. flasche

    flasche Member Staff Member Moderator

    Messages:
    13,299
    Likes Received:
    168
    Trophy Points:
    0
    you cant tell if its either english or german? :p
     
    Last edited: May 14, 2012
  7. complete_

    complete_ lamer

    Messages:
    6,438
    Likes Received:
    144
    Trophy Points:
    0
    umm we didnt find the bug in the warm up?
    woah wahts this (its close enough)

    there was a reason why i stopped playing after i figured out i couldnt rush light cargos
     
  8. D.D.D. Destroyer

    D.D.D. Destroyer Member Staff Member Moderator

    Messages:
    9,509
    Likes Received:
    111
    Trophy Points:
    0
    If it's in Polish I can translate it. Just send the thing to me, and remember my coding knowledge is sub-zero.
     
  9. Grantrithor

    Grantrithor Member

    Messages:
    9,820
    Likes Received:
    11
    Trophy Points:
    0
    I have the biggest fleet in the game and have done all this research which has taken like a whole week to do and now we have to restart? Non-english programming languages? are we in communist Sweden? dam polaks.
     
  10. D.D.D. Destroyer

    D.D.D. Destroyer Member Staff Member Moderator

    Messages:
    9,509
    Likes Received:
    111
    Trophy Points:
    0
    Canada beginning to be enlightened
     
  11. Trickster

    Trickster Retired Developer

    Messages:
    16,576
    Likes Received:
    46
    Trophy Points:
    0
    We're not looking at a restart, we're looking at a game-over we're done etc. Just keep your economy ticking over a for a few days whilst we work out if there's anything that can be done. If we're lucky, we might find that applying one of the newer beta/SVN versions over the top of ours fixes it. If not, we're shit out of luck I think.
     
  12. CyberKiller

    CyberKiller Nyooks!

    Messages:
    1,107
    Likes Received:
    8
    Trophy Points:
    0
    Its actual programming is in english, but it looks like some of the comment lines are in different languages but nothing google translate won't solve.
    I think \includes\classes\missions\calculateAttack.php is the battle engine, here is the download for it if you want to have a look.
    http://2moons.googlecode.com/files/2Moons v1.6.1.zip
    I bet it's just one line of code that's wrong or something retarded like that.
     
    Last edited: May 15, 2012
  13. Beerdude26

    Beerdude26 OnThink(){ IsDownYet(); }

    Messages:
    7,243
    Likes Received:
    13
    Trophy Points:
    0
    Pouring through it now. GOD I HATE PHP SO MUCH

    EDIT: Wow, I forgot how mind-bendingly horrid that code is. It might be clearer to annotate the code with echo statements to see wtf is happening. Still, I don't think you'll be able to fix this issue quickly.
     
    Last edited: May 15, 2012
  14. CyberKiller

    CyberKiller Nyooks!

    Messages:
    1,107
    Likes Received:
    8
    Trophy Points:
    0
    Awww I was hoping it would be like, *changes one line of code instantly* "I fixed it!".
    But these things never work that way because programming is EVIL.......
     
    Last edited: May 16, 2012
  15. RetroFade

    RetroFade Member

    Messages:
    469
    Likes Received:
    0
    Trophy Points:
    0
    Grant, one word.

    DENIED.
     
  16. Grantrithor

    Grantrithor Member

    Messages:
    9,820
    Likes Received:
    11
    Trophy Points:
    0
    I did not expect for you to suddenly have a crapload of defenses like that.
     
  17. Candles

    Candles CAPTAIN CANDLES, DUN DUN DUN, DUN DUN DUN DUN.

    Messages:
    4,251
    Likes Received:
    10
    Trophy Points:
    0
    So if I try and explore the edge of the galaxy, it says:
    Any idea what this means?
     
  18. CyberKiller

    CyberKiller Nyooks!

    Messages:
    1,107
    Likes Received:
    8
    Trophy Points:
    0
    It means its stupid and derpy.
     
  19. Candles

    Candles CAPTAIN CANDLES, DUN DUN DUN, DUN DUN DUN DUN.

    Messages:
    4,251
    Likes Received:
    10
    Trophy Points:
    0
    Looking at line 75 with throws the error and line 73 which is defining the array which is throwing the error:
    Code:
    $ActualFleets = $db->countquery("SELECT COUNT(*) FROM ".FLEETS." WHERE `fleet_owner` = '".$_SESSION['id']."' AND `fleet_mission` = '15';");
    
    if ($ActualFleets['state'] >= floor(sqrt($_SESSION['USER'][$resource[124]])))
    I suppose it doesn't like strings in arrays?
     
  20. D.D.D. Destroyer

    D.D.D. Destroyer Member Staff Member Moderator

    Messages:
    9,509
    Likes Received:
    111
    Trophy Points:
    0
    -₪EPIC₪- D.D.D. Destroyer: spying on my beautiful planet are we?
    ¦Ģ¦rantrithor: not just any spying
    -₪EPIC₪- D.D.D. Destroyer: some exquisite spying?
    ¦Ģ¦rantrithor: exquisite spying, the one where you better take covar in two hours from now
    ¦Ģ¦rantrithor is now Offline.


    Threats :o
     

Share This Page