1. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

Quickest way to recompile .as and continue testing

Discussion in 'Modding Help' started by -Q, Mar 28, 2015.

  1. -Q

    -Q Donator

    Messages:
    153
    I have a really aggressive style of development, and find myself opening up localhost.bat to make sure something works very often. Is there any console command or angelscript function I can use to recompile the gamemode and run it again, quickly?

    As of now I have to exit completely out and reload manually, which is tedious to do for every major change.

    Ah, nevermind, it's "/restartserver" in the console. I'll leave this here for people looking for the same topic.
     
    BlueLuigi likes this.
  2. Verrazano

    Verrazano Flat Chested Haggy Old Souless Witchy Witch Witch THD Team Global Moderator Forum Moderator Tester
    1. Practitioners of War Extreme Revolution - POWER

    Messages:
    477
    You can also use /rebuild or setup dynamic script reloading
     
    -Q, BlueLuigi and norill like this.
  3. automatic reloading (with g_reloadfiles_count=30 and g_reloadfiles_wait=2 in autoconfig) is absolutely the fastest way. unfortunately those vars are set to 0 every time you start release client (but it might change in the future)
     
    -Q and BlueLuigi like this.
  4. -Q

    -Q Donator

    Messages:
    153
    You guys are both wizards! Thanks, this is exactly what I was thinking of.

    I can't get it to work, even manually editing autoconfig.cfg. If I do get it to work, can't I just design a batch file to patch autoconfig.cfg, then run the local server?
     
    Last edited: Mar 29, 2015
  5. meh, i just checked - it doesnt work at all on release client
     
    Asu likes this.
  6. Verrazano

    Verrazano Flat Chested Haggy Old Souless Witchy Witch Witch THD Team Global Moderator Forum Moderator Tester
    1. Practitioners of War Extreme Revolution - POWER

    Messages:
    477
    Set them in the home console when running the game not in afaik (also make sure sv test is on aswell).
     
  7. Fernegulus

    Fernegulus Bison Rider

    Messages:
    400
    mfw got hope for a second and then it went back to usual
    so this was done on purpose?
    i remember JIT being a thing in the early versions
    in the earliest it was auto enabled
     
  8. -Q

    -Q Donator

    Messages:
    153
    Oh, you can easily enable it after the fact either using console, or embedding it in your gamemode. But, I dislike it; it makes it not easy to know exactly what version you're currently running.