Hodor88 Posted November 24, 2015 Share Posted November 24, 2015 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 Quote Link to comment Share on other sites More sharing options...
thehankinator Posted November 24, 2015 Share Posted November 24, 2015 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 1 Quote Link to comment Share on other sites More sharing options...
Hodor88 Posted November 24, 2015 Author Share Posted November 24, 2015 Hey, yes, thats directly was i was looking for Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.