Jump to content
Einlander

Pass command line options from editor

Recommended Posts

I am requesting an input box or a separate tab that will allow devs to add command line arguments that will be passed to the game when launched from the editor.

 

This will allow us to use the System:GetProperty without having to hardcode the values into the game.

Share this post


Link to post

I would still need to pass arguments to the script though. I want the editor to pass '+fullscreen' when I debug, but I don't want to have the game start as fullscreen the first time it's run. I want to have it start windowed, have the player set the screen resolution and then write it to file. Then the next run it will be fullscreen. But while I debug I want to be able to just say, ignore the games settings and be fullscreen.

Share this post


Link to post

Oh, I thought you wanted to phrase arguments as concommands. I don't know what I was thinking, I'm sorry.

 

Yeah, I also had times where a param box would be useful. I got around this by using batches, and checking if debughostname was not nil to check if the app was running from the editor.

 

function LSystem:LaunchedFromEditor()
if System:GetProperty("debuggerhostname") ~= "" then return true end
return false
end

 

TBH, running fullscreen in debug is like asking your game to run as slow as possible unless you're testing shaders. I had the game always ran in a case where I could close it in case something bad happened. To make sure that my "full experience" settings didn't load when I was just testing/developing, I'd use that function up above.

 

Again, thought this was in the Programming section about turning properties into concommands. >>

Share this post


Link to post

I give up using debug mode after I start populating levels. I just use release mode and lots of print statements.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...