Where is the Init directory PLClient?

Announcements and discussion regarding any projects related to Cyan Worlds' Plasma Engine including (but not limited to) CyanWorlds.com Engine, Drizzle, OfflineKI, PyPRP, and libHSPlasma.

Where is the Init directory PLClient?

Postby Scarabee » Tue Aug 04, 2015 9:44 am

Good morning.

Yesterday I compiled a new PLClient. Everything works fine, but I can not find the Init directory where are saved login.dat.
Before, the path was : c:\users\Myname\AppData\Local\Uru Live\Init\login.dat


Does the path has changed?

Thanks.
Image
Mister Magic in Moula 1255010
User avatar
Scarabee
 
Posts: 30
Joined: Wed Sep 08, 2010 1:55 pm

Re: Where is the Init directory PLClient?

Postby Deledrius » Tue Aug 04, 2015 11:53 am

This is correct. By default, the engine will place everything in %LOCALAPPDATA%\Uru Live, but this depends on the Product Name. If you customized that for your client, then you'll need to look for that name instead.
User avatar
Deledrius
Gehn Shard Admin
 
Posts: 1377
Joined: Mon Oct 01, 2007 1:21 pm

Re: Where is the Init directory PLClient?

Postby Christian Walther » Tue Aug 04, 2015 12:17 pm

Also, if you are specifically looking for login.dat, that file is not used anymore. Login credentials are now saved where they belong in the Windows credential store.
Christian Walther
 
Posts: 443
Joined: Sun Jun 08, 2008 3:10 am
Location: Switzerland

Re: Where is the Init directory PLClient?

Postby Scarabee » Wed Aug 05, 2015 4:28 am

Thank you for the answers.

Now I understand why I can't find the login.dat files.

Christian, can you explain me where is the "Windows Credential store ". I'm under windows 10, but I suppose it's the same than windows 8.



EDIT.
In Windows 10 the path is in French : Panneau de configuration\Comptes d’utilisateurs\Gestionnaire d'identification\Modifier des informations d’identification génériques.
In English : Control Panel \ User Accounts \ Identification Manager \ Edit generic credentials.

My problem is this:
I use a .bat file to automatically launch an account with a password. Before I replaced the login.dat file with the one that interested me and I executed the plclient.vbs program.

How to proceed now with this new system?
Is there a parameter that indicates the user name and password to start plclient as is done, for example, with the / ServerIni moulagain.ini to indicate which server use?

Where can I find all valid parameters for PlClient.exe ? (I already know /ServerIni /localdata /SkipPreload /PlayerId and /Age parameters. Is there any other?

Thanks.
Image
Mister Magic in Moula 1255010
User avatar
Scarabee
 
Posts: 30
Joined: Wed Sep 08, 2010 1:55 pm

Re: Where is the Init directory PLClient?

Postby Deledrius » Wed Aug 05, 2015 2:13 pm

Scarabee wrote:My problem is this:
I use a .bat file to automatically launch an account with a password. Before I replaced the login.dat file with the one that interested me and I executed the plclient.vbs program.

How to proceed now with this new system?
Is there a parameter that indicates the user name and password to start plclient as is done, for example, with the / ServerIni moulagain.ini to indicate which server use?

Where can I find all valid parameters for PlClient.exe ? (I already know /ServerIni /localdata /SkipPreload /PlayerId and /Age parameters. Is there any other?

Thanks.


The available command arguments are here: winmain.cpp#L102. Your use case is an interesting one. You can select different avatars with a shortcut, but not separate accounts on the same server. The ability to store multiple accounts is a TODO item, but has not yet been implemented. However, if you're using a VBScript to switch accounts it's possible you could work around it by modifying the credentials, but I see no documentation that isn't for the C++ API.

Our use of the credential store does support multiple servers, though, so if you're using one account per server you should encounter no issues. Just switch your server.ini and the correct credentials will be auto-filled.
User avatar
Deledrius
Gehn Shard Admin
 
Posts: 1377
Joined: Mon Oct 01, 2007 1:21 pm

Re: Where is the Init directory PLClient?

Postby Tsar Hoikas » Wed Aug 05, 2015 4:34 pm

Deledrius wrote:The ability to store multiple accounts is a TODO item, but has not yet been implemented.


You could use separate server.inis that change the only the server's display name to achieve this effect.
Image
Tsar Hoikas
Councilor of Technical Direction
 
Posts: 2180
Joined: Fri Nov 16, 2007 9:45 pm
Location: South Georgia

Re: Where is the Init directory PLClient?

Postby Deledrius » Wed Aug 05, 2015 4:57 pm

Tsar Hoikas wrote:You could use separate server.inis that change the only the server's display name to achieve this effect.

Well, sure if you want to be clever about it. :oops:
User avatar
Deledrius
Gehn Shard Admin
 
Posts: 1377
Joined: Mon Oct 01, 2007 1:21 pm

Re: Where is the Init directory PLClient?

Postby Scarabee » Thu Aug 06, 2015 9:00 am

Thank you both for your explanations.
This allowed me to solve my problem. :)

As you suggested me, I have created an .ini file for each account with a different name and I also created a vbs file to point to the correct .ini file.

Here is an example:

magictreasure.ini file:

Code: Select all
# Keys are Base64-encoded 512 bit RC4 keys, as generated by DirtSand's keygen
# command.  Note that they MUST be quoted in the commands below, or the client
# won't parse them correctly!  Also note that the decoded keys are in OpenSSL
# byte order, which is opposite from the byte order stored in the pnNetBase
# .hpp files in Cyan's original source.

# The following keys and addresses represent the official MOULagain server
Server.Game.N "kEso0EnSJNkgyQtVyUO8IGAzy9cVgtEZG3Dy/s0urdYgu+omUP0/3sQihN5EOJqqXQl2ahI7cifHptdDafekOA=="
Server.Game.X "Pds9j7NYWE9o6WV6o88EhGczzxR/NpNimHn9yLq2X9xoAdiEH1x2R1w/O5nwWv3CPmVEPgm9IalIcr0CvZOy+Q=="

Server.Gate.N "tSNEa6OAIdfDby8p+lW8YOxqDZL1VUwVHPHbx01MuNxQ1Un8tlWYFi5mqzQPIZqjI3rX0YFLJatQUHr45jX6jQ=="
Server.Gate.X "GvO3GWDQaWnK+ZSJxTKCaEfOjWwJxMt85H9vvqC+nA84mw9hpqlezfyz86k5Nfo5BQ+dg5hivAcuK3CQC/+Isw=="
Server.Gate.Host "184.73.198.22"

Server.Auth.N "j1amo5e+ID/FhzgSEm2razSbZjhXEWEKGlTCZstbMU3kt3gMyANeR7mOw0MbRf5y7uV1Q4hhfCmRj3HrQhkXLQ=="
Server.Auth.X "G+nYVfMDb/q8zT1qs7uy2j91jLmesUPq72TVLlUB7OXrWyP77ponIPlZDfSPu8EFVbndJWHONlOtI8AIxh3PIQ=="
Server.Auth.Host "184.73.198.22"

Server.DispName "Magic-Treasure"
Server.Status "http://support.cyanworlds.com/serverstatus/moullive.php"
Server.Signup "http://www.mystonline.com/signup.html"


MagicTreasure.vbs file:

Code: Select all
dim objShell
Set objShell = WScript.CreateObject( "WScript.Shell" )
objShell.Run("PlClient.exe /ServerIni magictreasure.ini /localdata")
Set objShell = Nothing


I am looking to make even more rapid procedure with parameters / SkipLoginDialog and / PlayerID

I'll let you know.
have a good day !
Image
Mister Magic in Moula 1255010
User avatar
Scarabee
 
Posts: 30
Joined: Wed Sep 08, 2010 1:55 pm


Return to Plasma Development

Who is online

Users browsing this forum: No registered users and 0 guests