Page 1 of 1

Dev Chat: 9/27/2013 - VGClientLauncher

Posted: Fri Sep 27, 2013 1:46 pm
by John Adams
This was one of the first chat on the new IRC, so for nostalgia I posted it

[quote][14:59] ->> Channel created on 9/27/2013 1:46:28 PM
[17:16] <~john> are there any other --command line params for the VGClient.exe I should be passing, so the player has the least amount of system/ini changing to do? like, loginserver address or something
[17:16] <~john> i remember passing IP or something
[17:17] <~john> VGClient.exe 68.98.218.5:10101
[17:17] <~john> we got that to work before, no?
[17:18] <@Xinux_Work> yea there is a few things we will have to do or can do
[17:18] <~john> i'd like the least amount of file hacking. no Hosts, no ini's unless it is absolutely necessary.
[17:22] <~john> right on, it worked.
[17:22] <@Xinux_Work> nice
[17:29] <@Xinux_Work> i know we got the address to work before
[17:29] <~john> of course, the dummy login from long ago isn't responding but I do see network hits on that port.
[17:35] <@Xinux_Work> if we have to create a .ini it shouldn't be a big deal if you are going to have a patcher built in
[17:36] <@Xinux_Work> can play with the command line more later once we have something in place to responde to the packets
[17:36] <~john> Yeah, true.
[17:36] <@Xinux_Work> should be easy to add in more commands to the launcher
[17:37] <~john> Aye, building the Options dialog now so I can save out a config.
[17:38] <@Xinux_Work> for instance i know you can create a loginserver.txt file and drop it in the bin folder and it will use that ip
[17:39] <~john> your old post said something about internalip.txt too or something. seems so weird of them to do that.
[17:40] <@Xinux_Work> in the root folder launchpad-internal.ini will redirect launchpad
[17:41] <@Xinux_Work> yea i messed around with InternapIP.txt in my bin folder can't remeber if i ever got it to work
[17:41] <@Xinux_Work> InternalIP.txt
[17:42] <@Xinux_Work> i know it still looks for it but i don't think i ever got the format right in that file
[17:43] <@Xinux_Work> wow not sure how but i got my dll file auto collecting logs again lol
[17:44] <~john> magic
[17:44] <@Xinux_Work> i did abunch of crap to my registry awhile back trying to get it to work i guess it did lol
[17:46] <@Xinux_Work> it pretty much just collects on it's own and creates a wireshark log in my vanguard folder without me having to do anything
[17:46] <@Xinux_Work> it doesn't break anything apart tho just the raw packets
[17:47] <~john> nice. readable?
[17:48] <@Xinux_Work> yea but not broken apart and formated
[17:48] <~john> what about your vg collector? that still worth pursuing?
[17:48] <~john> that was kinda exciting.
[17:48] <@Xinux_Work> that is the best thing we have right now
[17:49] <@Xinux_Work> since it will format the packets
[17:49] <~john> well let me know if I should be running all over Telon with collector yet figured you had more work to do still.
[17:50] <@Xinux_Work> we can once we get the login/character server working
[20:45] <~john> I'm actually kinda proud of this little launcher
[22:37] <~john> viewtopic.php?f=11&t=36[/quote]

Dev Chat: 9/29/2013 - VGClientLauncher

Posted: Fri Sep 27, 2013 1:46 pm
by John Adams
09-29-2013 - continuing launcher discussions
[quote]Session Start: Sun Sep 29 00:19:42 2013
[22:45] <@Xinux> so from what i can make outof the exe it look's for the text file then if it doesn't find it it is hardcoded to go to vanguardlogin1.soe.sony.com and vanguardlogin2.soe.sony.com
[22:45] <~john> weird. i passed my url and got hits on my firewall.
[22:45] <@Xinux> passed it by name or ip?
[22:45] <~john> either, but name the last time. login.vgemulator.net:10101
[22:46] <@Xinux> could have swore i tried that
[22:46] <~john> oop vgoemulator.net keep forgetting some dumbass registered our project as VGOemulator lol
[22:46] <~john> still no idea why I did that.
[22:47] <@Xinux> what was the paramter you used?
[22:47] <~john> no --thing. just the first param on the line, before --sessionid
[22:47] <~john> VGClient.exe login.vgoemulator.net:10101 --session_id=blah
[22:48] <~john> without that url, the client responds differently, that i need to close and relaunch with the launchpad.
[22:48] <~john> i put that url in, and it waits at "connecting" and I saw bits slamming into my sonicwall. or so I thought.
[22:49] <@Xinux> humm i'm not seeing anything
[22:50] <@Xinux> i wonder
[22:50] <~john> i was extremely busy, so i could have misinterpreted what was hitting me. or it was on loopback.
[22:51] <~john> either way, dropping a login txt file is not a biggie, as you said. launcher could write it.
[22:51] <@Xinux> yea i'm not seeing anything hit the sudio server on those ports
[22:51] <~john> yeah that ramsey server no longer gets anything.
[22:52] <~john> i was looking at the actual packets coming in from the outside.
[22:52] <~john> i thought it was because the client was so new.
[22:56] <@Xinux> yea i can't get it to hit my other box no matter what i do
[22:57] <~john> no matter. txt file it is then
[22:58] <@Xinux> yea that or i hex edit the exe
[22:58] <@Xinux> which i did and it works
[22:58] <@Xinux> but i think the txt file would be safer
[22:58] <@Xinux> since we wouldn't be editing there files
[23:06] <~john> yeah. odd that you can edit the exe and it still works. just a string?
[23:06] <@Xinux> yup
[23:07] <~john> if you want, take a stab at adding that to the launcher app. I already give you a place to put the URL you want to connect to, just need it to be in a different file/location.
[23:10] <@Xinux> here it is in the exe
[23:10] <@Xinux> %.s.....loginserver.txt.
[23:10] <@Xinux> v.a.n.g.u.a.r.d.l.o.g.i.n.2...s.o.e...s.o.n.y...c.o.m...
[23:10] <@Xinux> v.a.n.g.u.a.r.d.l.o.g.i.n.1...s.o.e...s.o.n.y...c.o.m...
[23:32] <@Xinux> seems like lslogin would be aparamater
[23:32] <@Xinux> if ( sub_7A2C20(dword_14648B0, (int)szHeaders, (int)"--sessionid", -1, -1)
[23:32] <@Xinux> && (*((_BYTE *)v27 + 80) || sub_7A2C20(dword_14648B0, (int)szHeaders, (int)"LSLOGIN", -1, -1)) )
[23:33] <~john> oh yeah, totally clear to me too
[23:33] <~john> btw, are their sessionid's int's? because I am using alphanumeric ...
[23:36] <@Xinux> yea that is fine
[23:36] <@Xinux> fyi with your launcher is it vreating a account on your server currently?
[23:36] <@Xinux> creating
[23:37] <@Xinux> fyi this is the sessionid for buying stuff which get's passed also
[23:37] <@Xinux> sub_7A4C50(dword_14648B0, (int)szHeaders, (int)"--commercesessionid", (int)szHeaders, (void *)(a1 + 2744), 0, -1, -1);
[23:39] <~john> yes, it is talking to the login.php on launcher.vgoemulator.net, and inserting accounts/sessions on my tables.
[23:40] <@Xinux> i can only login once then it says bad password
[23:40] <~john> yeah, i have some bugs with the md5 shit. thought I got them all.
[23:41] <~john> if you start hammering the buttons, it will md5 the md5'd password
[23:41] <@Xinux> lol
[23:41] <~john> i just noticed it's also storing your workstation IP address, not your WAN IP. Hmm.
[23:41] <~john> That's Scat's ANAL code I stole, so it's his bug!
[23:42] <~john> i guess rather than take the IP from the player, I should just get it from the php script.
[23:42] <~john> i'll delete your test accts.
[23:43] <@Xinux> more paramaters
[23:43] <@Xinux> if ( *(_BYTE *)(v1 + 80) && sub_7A2C20(dword_14648B0, (int)szHeaders, (int)"autoplay_world", -1, -1) )
[23:43] <@Xinux> sub_7A4C50(dword_14648B0, (int)szHeaders, (int)"autoplay_char", (int)szHeaders, &v9, 0, -1, -1);
[23:43] <~john> yeah, remember that huge header I posted? lots of stuff in it.[/quote]

NOTE: Some launcher command line parameters here to consider for VGClientLauncher.exe

Dev Chat: 10/18/2013 - VGClientLauncher

Posted: Fri Sep 27, 2013 1:46 pm
by John Adams
Finalizing format of the loginserver.txt file in the VGClient /bin folder

[quote][15:29] <~john> and yo X-man
[15:33] <@Xinux_Work> sup
[15:33] <~john> Xinux, did you finally convince me that an fqdn:port on the command line WILL NOT work, and that I have to change the launcher to write a loginserver.txt file instead?
[15:35] <@Xinux_Work> yes
[15:36] <~john> so in the /bin folder, it's called "loginserver.txt" and just has the url : port? or paste me exactly what you want.
[15:36] <@Xinux_Work> all it needs is the ip
[15:36] <~john> off to get my 2nd quad-shot of espresso.
[15:38] <~john> how do we set the LoginServer listening port then?
[15:43] <@Xinux_Work> don't need to
[15:43] <@Xinux_Work> the client knows what port it is suppose to use
[15:44] <~john> oh, so like the EQ2 client aimed at eq2emulator.net, and we happen to be on 9100, it just knows? ok, cool.
[15:47] <~john> hah holy balls, it worked. and just as slow as the real game!
[15:47] <@Xinux_Work> haha
[15:48] <~john> what sucks is this means I have to give out my public IP... not like anyone doesn't already know it lol... but still
[15:49] <@Xinux_Work> can try a url in there instead
[15:49] <@Xinux_Work> i never did
[15:49] <~john> just did, nada connect. pings to the same addy too.
[21:22] <~john> viewtopic.php?p=312#p312
[21:23] <~john> give that a try when you have time.[/quote]