[REL] Instant Sandbox 2.9.0 [89755]

Discussion in 'Released Mods' started by wondible, February 26, 2014.

  1. wondible

    wondible Post Master General

    Messages:
    3,250
    Likes Received:
    2,056
    One click to start a game with neutered AI (economy rate 0) with cheats enabled.

    I was always creating games against an AI x0 to test my mod, so borrowed a bunch of code from the PAStats matchmaker (after cross-referencing with the game code) to add an item to the main menu.

    Some of the most common settings can be changed in the game settings:

    - Option to spectate or play
    - Option to go into configured lobby to change unsupported settings
    - Land anywhere or in zones
    - Player economy rate
    - AI economy rate
    - AI personality
    - Number of armies (including player)
    - Number AI commanders per army
    - Load a system

    (Titans/classic follows the global active product)

    I've tried to concentrate the settings in once place, so if you're comfortable with text editors it is possible to fully customize things. Changing the `config` property of the `defaults` object to Code will cause it to use the defaults object instead of the user settings.

    - https://github.com/pamods/instant_sandbox (issues)
    - http://wondible.com/pa/instant_sandbox_v2.9.0.zip
    - PAMM

    Changelog

    ## 2.9.0

    - Try to use information from "Favorite Colour" mod for player and first AI
    - Reduce output to debug console
    - Fix mounting server mods in certain circumstances

    ## 2.8.1

    - Fix using preferred commander
    Last edited: March 28, 2016
    trialq, tatsujb, moldez and 3 others like this.
  2. brianpurkiss

    brianpurkiss Post Master General

    Messages:
    7,885
    Likes Received:
    7,440
    That sounds nifty.

    I hope that Uber just gives us their sandbox.

    I'd be really cool to test out units with a few clicks rather than having to build a bunch of stuff.

    There's no reason not to give us their sandbox... right?
  3. cola_colin

    cola_colin Planetary Moderator

    Messages:
    12,114
    Likes Received:
    16,239
    so this is how clean code in js can look like...

    why does it not work together with PA Stats?
  4. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,622
    Likes Received:
    691
    It requires a custom server to run and they don't want to host that so it needs to wait until they release the server.
  5. tatsujb

    tatsujb Post Master General

    Messages:
    12,848
    Likes Received:
    5,369
    by "one click" you mean it'd be a desktop shortcut kinda thing? I'd love that.
    cola_colin likes this.
  6. brianpurkiss

    brianpurkiss Post Master General

    Messages:
    7,885
    Likes Received:
    7,440
    Don't bother me with the details. Just gimme! :p
    LavaSnake likes this.
  7. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,622
    Likes Received:
    691
    Sounds epic! This will be quite useful although I'd love it if you made it compatible with PA Stats and had it turn off stats sending for these matches too.

    That, is a cool word.
  8. cola_colin

    cola_colin Planetary Moderator

    Messages:
    12,114
    Likes Received:
    16,239
    ... don't bother my question about why it does not work with PA Stats.
    Of course it does not. You are just not taking care to place the data PA Stats need in place when setting up the game.

    EDIT:
    Making this a one click thing would be damn awesome, tatsu.
    However we can't handle the loginstuff from outside the game.
  9. wondible

    wondible Post Master General

    Messages:
    3,250
    Likes Received:
    2,056
    Not quite. It's a menu item just Like PAStats 1v1.

    Desktop shortcut is an interesting idea. I'd have to look to see if the command line arguments are exposed to mods.
    tatsujb likes this.
  10. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,196
    Likes Received:
    4,929
    I can't wait... this will save so much time!
  11. wondible

    wondible Post Master General

    Messages:
    3,250
    Likes Received:
    2,056
    Because I'm not stepping gingerly around the handlers yet. Which leads to my next post...
    tatsujb likes this.
  12. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,196
    Likes Received:
    4,929
    Basically none. There are a few command line parameters available, but half of them require dev mode and the other half don't seem to work.
  13. tatsujb

    tatsujb Post Master General

    Messages:
    12,848
    Likes Received:
    5,369
    fair enough and good enough
  14. wondible

    wondible Post Master General

    Messages:
    3,250
    Likes Received:
    2,056
    If you're a bit daring you can run it now - just checkout the repo and copy modinfo.dev.json to modinfo.json.

    Actually, I forgot to ask - should a tool mostly targeted at mod developers go (eventually) in PAMM?
    tatsujb likes this.
  15. tatsujb

    tatsujb Post Master General

    Messages:
    12,848
    Likes Received:
    5,369
    you'll have to edit the Mod.json but then it should work. I think that will simplify your life.
  16. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,196
    Likes Received:
    4,929
    Probably not. I don't think many people read the forum threads before installing a mod and the modders all live in this forum anyway.
  17. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,622
    Likes Received:
    691
    I'd say yes, but make it clear that it is only useful for devs
  18. cola_colin

    cola_colin Planetary Moderator

    Messages:
    12,114
    Likes Received:
    16,239
    Package it up as a pamm mod but only provide the zip file here. No need for pure dev mods on pamm I think.
    wondible likes this.
  19. wondible

    wondible Post Master General

    Messages:
    3,250
    Likes Received:
    2,056
    I actually realized that it's worse than just being careful with handlers - if both of us are responding to server states, we'll both be trying to advance game creation on our respective agendas.
    tatsujb likes this.
  20. cola_colin

    cola_colin Planetary Moderator

    Messages:
    12,114
    Likes Received:
    16,239
    ah... yeah I we probably both end up adding custom handlers for specific events and we both will react to them, creating chaos.

    I guess we both should take care to only react to events when we expect them, so only i.e. when a player clicked "search 1v1". I have not considered this at all while writing the automatch function, so it will probably misbehave.

    An another note if you just launch a game from a mod like you probably do PA Stats will not work correctly as well and probably end up reporting wrong stuff to an old game of yourself. It captures stuff like the lobby id in the lobby or during matchmaking, if that is not done things will go bad as well.
    wondible likes this.

Share This Page