Allow use of //calc command

Discussion in 'Suggestions and Feedback' started by alven4, Aug 8, 2017.

  1. alven4

    alven4 Well-Known Member

    Messages:
    449
    Likes Received:
    33
    Local Time:
    3:40 PM
    I am playing on Age of Engineering node 3 and I found out that I am not allowed to use command //calc.

    I think it would be useful if players were to be allowed to use this command because it is harmless command for calculating expressions. It would allow players to solve mathematical problems in game without having to open other app or asking in chat for the answer and getting intentionally wrong answer from other players.
     
  2. Aidoneus

    Aidoneus Director Booster

    Messages:
    4,417
    Likes Received:
    1,930
    Local Time:
    7:40 AM
    It COULD be useful. However, there seems to be a lot of posts/threads around WorldEdit threads and issues about this causing crashes on servers or similar issues. As 1.10 is still Experimental, this would probably do more harm than good right now with the current development of 1.10.
     
  3. Rohen

    Rohen The beemaster

    Messages:
    879
    Likes Received:
    170
    Local Time:
    3:40 PM
    I heard it can be used to crash the server or something.
     
  4. mrminesheeps

    mrminesheeps Helper

    Messages:
    973
    Likes Received:
    237
    Local Time:
    6:40 AM
    yeah, there'd be that one dude who puts the most rediculous equation in there, and the server doesn't know what to do so it just crashes.
     
  5. Xfel11

    Xfel11 Consultant

    Messages:
    635
    Likes Received:
    157
    Local Time:
    3:40 PM
    If you really need to solve an equation, just use external tools like wolframalpha.com.
     
  6. Matryoshika

    Matryoshika Well-Known Member

    Messages:
    1,193
    Likes Received:
    606
    Local Time:
    3:40 PM
    AoE contains HammerCore, which adds the Calculatron item.
    It should be able to calculate most things, and is available from Age 0 in AoE.
     
  7. Rohen

    Rohen The beemaster

    Messages:
    879
    Likes Received:
    170
    Local Time:
    3:40 PM
    One of the values would either have to be higher than the max number a 64bit system can process as an actual number and not text, (9,223,372,036,854,775,807) which would cause the server to either crash or return 9,223,372,036,854,775,807 less than what it should. Extremelly poorly coded calculators are also known to crash when dividing by zero.
     
  8. alven4

    alven4 Well-Known Member

    Messages:
    449
    Likes Received:
    33
    Local Time:
    3:40 PM
    If the command //calc would be enabled, it would allow players to solve equations without using any external applications, what would be very convenient for players because they wouldn't need to alt-tab out of the game to solve equations.
     
  9. Matryoshika

    Matryoshika Well-Known Member

    Messages:
    1,193
    Likes Received:
    606
    Local Time:
    3:40 PM
    That max value is actually the max value of a Long.
    The most commonly used Primitive Type is Integer (default value type in Java), which has a max value around 2.14 trillion. (2³²-1)
    Then there's Short (32,767) and Byte (127).

    Then there's things like Big Int which makes all the mentioned numbers look tiny.
    It all depends on what Primitive type the Dev uses, and what failsafes he added.
     
    chugga_fan likes this.
  10. chugga_fan

    chugga_fan ME 4M storage cell of knowledge, all the time

    Messages:
    5,861
    Likes Received:
    730
    Local Time:
    9:40 AM
    Or the could be using a double at all times and have 2^1024-1
     
  11. Rohen

    Rohen The beemaster

    Messages:
    879
    Likes Received:
    170
    Local Time:
    3:40 PM
    I'm almost sure
    999,999,999,999,999,999,999,999,999^999,999,999,999,999,999,999,999,999 will cause an error regardless of the Primitive type.
     

Share This Page