Controlling Sim Speed

Discussion in 'Mod Discussions' started by cptconundrum, October 12, 2014.

  1. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    You can control the sim speed if you run a local server. It might be possible to do it through a normal api call, but I haven't figured out how yet. Instead I am using the http api.

    Start the server up with the --http flag and then get into a game. Now go to one of these pages in a browser;

    http://localhost:8080/api/sim_slower
    http://localhost:8080/api/sim_faster
    http://localhost:8080/api/sim_reset_speed

    There are several other interesting api calls in the server exe that I will probably update this post with later when I get a chance to try them out. If you're feeling adventurous, open up server.exe in a text editor and see what else you can find.

    It should be simple enough to mod in + and - hotkeys that just do a jQuery.GET("http://localhost:8080/api/sim_faster"); etc. so that we can control the sim speed from within the game on servers that we host ourselves.
    lokiCML, spicyquesidilla, SXX and 2 others like this.
  2. SXX

    SXX Post Master General

    Messages:
    6,896
    Likes Received:
    1,812
    Now on of most interesting questions it's how to make server not throttle bandwidth at 5Mbps. :)
  3. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    it does? really? xD

    uber? could you please not throttle the network of a server that was given to us for LAN-PLAY? xD
    I'd say fill it as a bug and have uber fix that number :eek:
  4. SXX

    SXX Post Master General

    Messages:
    6,896
    Likes Received:
    1,812
    Yes it's does, but to be fair it's more like 4-4.5Mbps for long time on Uber servers. You can check it on linux server using "ifstat -i ethX".

    Actually it's would be cool if network optimizations would be toggable, e.g there no reason to limit bandwidth for activity on other planets. :rolleyes:
  5. emraldis

    emraldis Post Master General

    Messages:
    2,641
    Likes Received:
    1,843
    Hah, there's an interesting Idea, have the sim go slow-mo as a commander dies!
  6. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,328
    Likes Received:
    2,125
    Neat, that should be interesting for lokiCML:
  7. squishypon3

    squishypon3 Post Master General

    Messages:
    7,971
    Likes Received:
    4,356
    I believe there is a no throttle setting for the server, no?
  8. lokiCML

    lokiCML Post Master General

    Messages:
    1,973
    Likes Received:
    953
    Excellent; now to relearned JavaScript.:)
    cptconundrum likes this.

Share This Page