• Galactic Dynasty error

    From klunk@21:1/124 to Apam on Sunday, November 17, 2024 22:30:40
    Hi Apam,
    Avon says I should contact you here.
    My co-sysop reports that there is an lua error and the maths are completely out of wak on galactic dynasty. If I could have your email address i can send you the screen shot. The game reports you have insufficent planets even though you have just bought 1 million of the required type. Is this a 32 bit overflow error of the program or something else?
    Regards
    Andy
    (Klunk)

    --- Mystic BBS v1.12 A48 (Windows/64)
    * Origin: Who Dares Wins Amiga BBS (21:1/124)
  • From Apollo@21:1/236 to klunk on Sunday, November 17, 2024 18:50:18
    My co-sysop reports that there is an lua error and the maths are
    completely out of wak on galactic dynasty. If I could have your email address i can send you the screen shot. The game reports you have insufficent planets even though you have just bought 1 million of the required type. Is this a 32 bit overflow error of the program or
    something else?

    First off, here's the gitlab repos, so you could make an issue there

    https://gitlab.com/apamment/galactic-dynasty
    or
    https://gitlab.com/apamment/galactic-dynasty-2

    Second, the uint_t for plants he uses in GD v1 can hold 4,294,967,295
    So at only 1,000,000 no overflow is occuring at least on C or C++ side,
    Lua should be using 64-bit unless Apam explicitly tells it to only use
    32-bit. (If Lua uses a signed integer (int32_t) then 2,147,483,647 which
    still wouldn't overflow at 1,000,000)

    I would make an issue there, maybe add @apamment so it pings him
    (assuming he has gitlab setup with some email or something to push a notification to)


    --- Talisman v0.54-dev (Linux/x86_64)
    * Origin: Lunar Mod (21:1/236)
  • From apam@21:4/158.1 to klunk on Monday, November 18, 2024 11:02:20
    Hi Apam,
    Avon says I should contact you here.
    My co-sysop reports that there is an lua error and the maths are completely out
    of wak on galactic dynasty. If I could have your email address i can send you the screen shot. The game reports you have insufficent planets even though you have just bought 1 million of the required type. Is this a 32 bit overflow error of the program or something else?

    I think the lua error has been fixed - if it's the one I'm thinking of, it's not really a problem, but you can get the latest at https://gitlab.com/apamment/galactic-dynasty/

    The other thing does sound like a 32 bit overflow. Perhaps I should have put a maximum number of planets you can buy.. I think most people win the game and reset it before hitting the max.

    Galactic Dynasty is pretty old now, and I probably did a ton of things wrong when I wrote it. You could fork it and fix it if you want to. I don't really have any motivation left to fix it.

    Andrew

    --
    |09apam |08(|11Andrew Pamment|08)
    |15Starlight |07:: |15starlight.zapto.org|07


    --- Noddy git-27636aa
    * Origin: Starlight :: starlight.zapto.org:2323 (21:4/158.1)