Run unchanged Game again without re-compiling

Discussion in 'Programming' started by mX273, Aug 28, 2019.

Tags:
  1. mX273

    mX273 Member

    Joined:
    Jul 31, 2019
    Posts:
    6
    Hi guys

    I dlike to optimize the development time of my game a little bit.
    1. Is there a way to re-run a game without re-compiling the code, if i haven't changed anything? (This would sometimes save a lot time, when im testing the game)
    2. https://forum.yoyogames.com/index.php?threads/how-to-optimize-compile-time.55267/
    3. In the link above i read how to optimize the compile time. There should be an option under preferences called "Enable backup on run/debug/create"... where can I find this in GMS2?

    Thanks a lot!
     
  2. spoonsinbunnies

    spoonsinbunnies Member

    Joined:
    Aug 24, 2018
    Posts:
    115
    as far as Im aware you could save an executable and open multiple instances, Or just set a key to restart your game. Im not aware of any other options.
     
  3. CombatCalamity

    CombatCalamity Member

    Joined:
    Feb 16, 2019
    Posts:
    65
    If you only need to restart the game, why even close the game? Use game_restart() instead.
     
  4. YellowAfterlife

    YellowAfterlife ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ Forum Staff Moderator

    Joined:
    Apr 21, 2016
    Posts:
    2,404
    If you have use of temporary drives disabled in Preferences, you could form the command line string to start up a copy of the game using parameter_* functions;

    If you happen to use GMEdit, builder plugin has this exact option.
     
  5. FrostyCat

    FrostyCat Member

    Joined:
    Jun 26, 2016
    Posts:
    4,539
    You can't game_restart() a game that has crashed or was closed intentionally, and we all know game_restart() is no replacement for a clean start.

    This is why being able to start an unchanged game without rebuilding is so important.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice