Jump to content

Published Game Startup Options or ini File


Hodor88
 Share

Recommended Posts

Hi,

 

just searched on web and in the tutorials. Is there a way to pass some parameters to the published game to adjust the resolution, and fullscreen mode? Also setup Antialiasing, Terrain Quality and so on...Alternative would be setting up a ini file for the game.

Is there any prebuild way how to do this or do i have to parse a ini file or startup parameter by myself?

 

The reason is, that i have an custom game launcher which has some login functionality into my gaming portal (not jet online). The Game Launcher will setup the game automatically with a recommended graphics setup, depending on the hardware.

 

Best Regards

Marco

Link to comment
Share on other sites

Have you looked at the top of Main.lua? It has a couple calls like

System:GetProperty("screenwidth","1024")

That code is attempting to get screenwidth from the command line arguments, if nothing is there default to 1024. You can add whatever arguments to the command line and retrieve the value with System:GetProperty. I am pretty sure this is how the Game Launcher does it.

 

http://www.leadwerks.com/werkspace/page/api-reference/_/system/systemgetproperty-r538

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.

 Share

×
×
  • Create New...