So you want to use MQ2 autologin?

Third party software discussion goes here.
User avatar
Alulien
Posts: 283

Re: So you want to use MQ2 autologin?

Post#21 » Mon Apr 21, 2014 5:03 pm

Indeed, since it hasn't been working properly I'm launching (using WinEQ shortcuts, same syntax that Nilbus showed us) 1 by 1: I wait until the character is loaded all the way in before launching the next instance.
Malistari (SHD) | Daggar (ROG) | Sarda (BST) | Gurneyman (BRD) | Glamd (SHM) | Wrunken (CLR)

<Muffins>

Letow (PAL) | Feydakin (MAG) | Corpselight (NEC) | Mallyal (ENC) | Thomel (BRD) | Araer (DRU)

Cilraaz
Posts: 14

Re: So you want to use MQ2 autologin?

Post#22 » Tue Jul 01, 2014 8:57 pm

I'm having issues getting this to work for me. I created a batch file to auto-update my MQ2AutoLogin.ini for me (the server ID). The way it would work is that I would log into my primary character, then run the batch file to auto-login to the remainder. Here's my stuff:

MQ2AutoLogin.ini:

Code: Select all

[Settings]
KickActiveCharacter=1
InstantCamp=0
UseStationNamesInsteadOfSessions=1
UseINIServerList=1
Debug=1

[ServerList]
HiddenForest=13

[account2]
Password=xxxxxx
Server=HiddenForest
Character=xxxxxx

[account3]
Password=xxxxxx
Server=HiddenForest
Character=xxxxxx

[account4]
Password=xxxxxx
Server=HiddenForest
Character=xxxxxx

[account5]
Password=xxxxxx
Server=HiddenForest
Character=xxxxxx

[account6]
Password=xxxxxx
Server=HiddenForest
Character=xxxxxx


I then created 5 links to eqgame (2.lnk through 6.lnk), appending "patchme /login:accountname" as appropriate.

login.bat:

Code: Select all

@echo off
setlocal EnableDelayedExpansion

REM START Run THF Downloader
cd \THF
start "THF Downloader" THFDownloader.exe
pause

REM START eqbcs/MQ2 Check
cd "\THF\Killians' MQ2"

tasklist /FI "IMAGENAME eq eqbcs.exe" 2>NUL | find /I /N "eqbcs.exe">NUL
if "%ERRORLEVEL%"=="1" (
    start "eqbcs" eqbcs.exe
)

tasklist /FI "IMAGENAME eq MacroQuest2.exe" 2>NUL | find /I /N "MacroQuest2.exe">NUL
if "%ERRORLEVEL%"=="1" (
    start "MQ2" MacroQuest2.exe
)
REM   END eqbcs/MQ2 check

REM START Open Controller Session
cd \WinEQ2
start "Controller" WinEQ2.exe /plugin:WinEQ2-EQ.dll "Xrekt"
echo Starting controller EQ session
pause
REM   END Open Controller Session

REM START Server ID Check/Update
cd "\THF\Killians' MQ2"

set s=regex.replace(wscript.stdin.readall,"HiddenForest=99")
move MQ2AutoLogin.ini MQ2AutoLogin.ini.bak

for /f "tokens=1-2 delims==" %%I in (C:\THF\eqlsPlayerData.WinEQProfile0.ini) do (
    if "%%I" == "LastServerID" (
   for /f "tokens=1-2 delims==" %%A in (MQ2AutoLogin.ini.bak) do (
       if "%%A" == "HiddenForest" (
      set new=HiddenForest=%%J
      set s=!s:99=%%J!
       >_.vbs echo set regex=new regexp
      >>_.vbs echo regex.global=false
      >>_.vbs echo regEx.IgnoreCase=TRUE
      >>_.vbs echo regex.pattern="!new!"
      >>_.vbs echo wscript.stdOut.write !s!
      cscript /nologo _.vbs < "MQ2AutoLogin.ini.bak" > "MQ2AutoLogin.ini"
      del _.vbs
       )
   )
    )
)
REM   END Server ID Check/Update

REM START Open Bot Sessions
cd \WinEQ2
start "Bot1" WinEQ2.exe /plugin:WinEQ2-EQ.dll "Ledhia"
timeout /t 30
start "Bot2" WinEQ2.exe /plugin:WinEQ2-EQ.dll "Galah"
timeout /t 30
start "Bot3" WinEQ2.exe /plugin:WinEQ2-EQ.dll "Finneg"
timeout /t 30
start "Bot4" WinEQ2.exe /plugin:WinEQ2-EQ.dll "Xeldaria"
timeout /t 30
start "Bot5" WinEQ2.exe /plugin:WinEQ2-EQ.dll "Cilraaz"
timeout /t 30
REM   END Open Bot Sessions


I'm including the full code in case anyone wanted the automatic update code for the ini, as well as the code to ensure MQ2 and eqbcs are running. I only have the batch file opening one session for the time being until I can get the auto-login working.

eqgame.exe opens properly and has the appropriate Station Name filled in. However, it proceeds no further. It won't input any password. I'm using the Underfoot client. If I log into the server and run "/plugin mq2autologin unload", I receive a simple unloaded message. If I then run "/plugin mq2autologin", I receive a simple loaded message. I can't figure out why it won't log in. Anyone have any ideas?

Edit: I checked out the debug log (didn't realize it had dumped to root C:\) and it states:

Code: Select all

[07/02/2014 01:03:01] SetGameState(GAMESTATE_PRECHARSELECT): !bInGame
[07/02/2014 01:03:01] SetGameState(GAMESTATE_PRECHARSELECT): creating LoginThread (bLogin = true)
[07/02/2014 01:03:01] bLogin loop: waiting for eqmain
[07/02/2014 01:03:02] bLogin loop: waiting for eqmain
[07/02/2014 01:03:02] bLogin loop: waiting for eqmain
[07/02/2014 01:03:03] bLogin loop: waiting for eqmain
[07/02/2014 01:03:03] bLogin loop: waiting for eqmain
[07/02/2014 01:03:04] bLogin loop: waiting for eqmain
[07/02/2014 01:03:04] bLogin loop: waiting for eqmain
[07/02/2014 01:03:05] bLogin loop: waiting for eqmain
[07/02/2014 01:03:05] bLogin loop: waiting for eqmain
[07/02/2014 01:03:06] bLogin loop: Setting up offsets
[07/02/2014 01:03:07] Error: !dwSidlMgr
[07/02/2014 01:03:07] bLogin loop: Error in SetOffsetsUI()


Anyone have any idea?

Edit2: I pulled an updated copy from mqemulator.net and it seems to be working now.

Edit3: Updated the login.bat code above to be the latest one that I'm using, which has been verified working (pauses may need to be adjusted if you wanted to use it, depending on your computer).
Xrekt | Ledhia | Galah | Finneg | Xeldaria | Cilraaz
<Honor Before Glory>

User avatar
Alulien
Posts: 283

Re: So you want to use MQ2 autologin?

Post#23 » Mon Sep 08, 2014 6:46 am

Figured out what my issue was (after all this time): my eqlsPlayerData.WinEQProfile# had the incorrect Username= value. I see based on how I set things up I think what happened was the very first time I tried to use autologin those profiles were created. I changed the Username= field to corresponding the profile # (the numbering starts at 0) in the Options menu within WinEQ, and it works. Hurrah!
Malistari (SHD) | Daggar (ROG) | Sarda (BST) | Gurneyman (BRD) | Glamd (SHM) | Wrunken (CLR)

<Muffins>

Letow (PAL) | Feydakin (MAG) | Corpselight (NEC) | Mallyal (ENC) | Thomel (BRD) | Araer (DRU)

Dukkman
Posts: 3

Re: So you want to use MQ2 autologin?

Post#24 » Tue May 24, 2016 1:47 pm

Hi.

Im using the UF client and MQ2. ive followed all the steps and trippelchecked all the lines for the autologin. My problem is that when i click the shortcut for a toon to log in, it halts the process and wont fill in the PW.
Any ideas on what i might have done wrong?

pender
Posts: 2

Re: So you want to use MQ2 autologin?

Post#25 » Wed Jul 13, 2016 4:08 pm

I just tried to set it up and am having the same problem. The account name is entered but the password line is left blank and so it stops there.

Midori
Posts: 13

Re: So you want to use MQ2 autologin?

Post#26 » Wed Jul 13, 2016 6:03 pm

If it makes you feel any better, I get the same thing. I've just been doing it manually until I saw a new post in this thread. Could be something I'm doing wrong too. First time I have used this and would be great to be able to auto login everyone at once.

User avatar
Belvino
Posts: 218

Re: So you want to use MQ2 autologin?

Post#27 » Wed Jul 13, 2016 6:34 pm

Check and make sure you have the Username correct It is Case Sensitive. When i ran into that problem that what i had wrong. ( a space after the Username will make it incorrect as well.)

User avatar
Demental
Posts: 111

Re: So you want to use MQ2 autologin?

Post#28 » Thu Jul 14, 2016 2:58 am

I would echo what Belvino said.

I've never tried using AutoLogin but decided to give it a go once I saw this thread resurrected. I followed Nilbus instructions and got everything working through WinEQ2.

Somewhat of a walkthrough of what I did...
1) Edited my AutoLogin.ini as follows:
[Settings]
KickActiveCharacter=1
InstantCamp=0
UseStationNamesInsteadOfSessions=1
UseINIServerList=1

[ServerList]
HiddenForest=1 {Note, my file is showing server "1"}

[Demental]
Password=******
Server=HiddenForest
Character=Name

2) Created new Profiles for each character login in WinEQ and named them after the character (IE: Daelun) then created a shortcut on my desktop of each Profile. I did NOT make any changes to "Properties" of these shortcuts.

3) Manually logged in each profile initially. I had to do this step as each time I tried, mine was not populating the Station Name. Once I did a manual login for each profile, the shortcuts on my desktop for each character worked perfectly. (Perfectly except for that damned "VOTE NOW" pop-up after the server select... I had to click it before it would go any further but the AutoLogin kicked in again after that :evil: it's slowly going away for some characters)

I'll help anywhere I can, but the above worked fine for me.

User avatar
Enrikk
Posts: 389

Re: So you want to use MQ2 autologin?

Post#29 » Thu Jul 14, 2016 8:05 am

Holy Hannah!

Thanks for resurrecting this thread! With a little tweaking I was able to get it to work for my crew. Gotta love all you smart people, making it easier for me to do amazing things!

/bow
Lead, Follow, or get out of My Way!

Enrikk of the Few

With MANY voices Also in my head

Midori
Posts: 13

Re: So you want to use MQ2 autologin?

Post#30 » Thu Jul 14, 2016 1:49 pm

No luck for me on the case-sensitivity. I have the account all lower-case which works manually, but when I launch, it goes right to the login screen with a blank password. It saves a couple steps for sure. Is WinEQ a requirement? My laptop doesn't like running the client outside of full screen unfortunately.

Return to “Third party software”

Who is online

Users browsing this forum: No registered users and 1 guest

cron