112th_Rossi Posted June 27, 2013 Share Posted June 27, 2013 (edited) I've added a function to try and automatically login when DCS multiplayer starts. Heres the function I added: local function doLogin() makeLoginDialog() dlg_login.login:setText('myuser') dlg_login.password:setText('mypw') net.login(dlg_login.login:getText(), dlg_login.password:getText(), dlg_login.savepw:getState()) dlg_login.kill() end And in the init function I changed askLogin() to doLogin() However, when I run DCS multiplayer, nothiong has changed. Am I missing something? Edited June 27, 2013 by 112th_Rossi Link to comment Share on other sites More sharing options...
daribouca Posted June 30, 2013 Share Posted June 30, 2013 I'm also very interested in this, should you ever happen to find a solution. As far as I can tell, the "dcs.exe" process does not even read "uiMaster.lua" when it runs. Also, I could not find the file that writes the line "client has started" in the log. I'm inclined to think "obfuscation" right now, like someone does not want us tinkering with it. But maybe I'm just tired and frustrated =) I've been tracing the startup as far as I could, to no avail. I'll give it another try later, and will post any result here. For the anecdote, I'm trying to gain lua access into the GUI so I can disconnect the monitor from my server, and spare some energy. Its only use right now is during the first two minutes at boot, in order to send mouse commands to run, login and load the mission. Still have one or two ideas, but the lua solution looked so neat ... Link to comment Share on other sites More sharing options...
112th_Rossi Posted June 30, 2013 Author Share Posted June 30, 2013 Yes, I'm trying to create a DCS Server startup script which automatically logs in to the server lobby with credentials and starts a server. Link to comment Share on other sites More sharing options...
Recommended Posts