Allow use of //calc command

Dieses Thema im Forum "Suggestions and Feedback" wurde erstellt von alven4, 8. August 2017.

  1. alven4

    alven4 Well-Known Member

    Beiträge:
    449
    Zustimmungen:
    33
    Ortszeit:
    10:11
    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

    Beiträge:
    4.447
    Zustimmungen:
    1.943
    Ortszeit:
    02:11
    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

    Beiträge:
    879
    Zustimmungen:
    170
    Ortszeit:
    10:11
    I heard it can be used to crash the server or something.
     
  4. mrminesheeps

    mrminesheeps Helper

    Beiträge:
    975
    Zustimmungen:
    237
    Ortszeit:
    01:11
    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

    Beiträge:
    635
    Zustimmungen:
    157
    Ortszeit:
    10:11
    If you really need to solve an equation, just use external tools like wolframalpha.com.
     
  6. Matryoshika

    Matryoshika Well-Known Member

    Beiträge:
    1.193
    Zustimmungen:
    606
    Ortszeit:
    10:11
    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

    Beiträge:
    879
    Zustimmungen:
    170
    Ortszeit:
    10:11
    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

    Beiträge:
    449
    Zustimmungen:
    33
    Ortszeit:
    10:11
    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

    Beiträge:
    1.193
    Zustimmungen:
    606
    Ortszeit:
    10:11
    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 gefällt das.
  10. chugga_fan

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

    Beiträge:
    5.861
    Zustimmungen:
    730
    Ortszeit:
    04:11
    Or the could be using a double at all times and have 2^1024-1
     
  11. Rohen

    Rohen The beemaster

    Beiträge:
    879
    Zustimmungen:
    170
    Ortszeit:
    10:11
    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.
     

Diese Seite empfehlen