From a002bfc8228d7076d97ef1b953bb6c29efdee818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Wed, 26 Aug 2020 21:49:24 +0200 Subject: [PATCH] chore: add README --- README.md | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..465036c --- /dev/null +++ b/README.md @@ -0,0 +1,58 @@ +# Nostale Gfless + +- More information about how custom launchers for nostale work can be found here: [in morsisko's readme](https://github.com/morsisko/NosTale-Gfless/blob/master/README.md) + +## How to use this library + +- You can see real CLI example in NostaleGfless.Example + +``` +var authenticator = new GameforgeAuthenticator(); +var launcher = await authenticator.Authenticate(email, password); + +launcher.Launch(launcher.Accounts.First()).ContinueWith(data => { + + // This will be called either after NosTale main window was opened or the process was closed + + if (data.Initialized) + { + Console.WriteLine("Yay! NosTale started!"); + } + else + { + Console.WriteLine("Oops! There was an error :("); + } +}); +``` + +## NostaleGfless.Example + +- The example is a simple CLI which can be used to log in to the game + +``` +NostaleGfless.Example 1.0.0.0 +Copyright c 2020 + + -i, --installation Installation guid. Can be obtained from regedit. + + -n, --nostale Required. Path to nostale folder or NostaleClientX.exe + + -a, --account Name of the account to connect to. Otherwise the first + one will be used. For more accounts split them using + coma + + --help Display this help screen. + + --version Display version information. + + Email (pos. 0) Required. Gameforge account email + + Password (pos. 1) Required. Gameforge account password + +``` + +> Example usage: `NostaleGfless.Example.exe -n "C:\Program Files\NosTale\de-DE" -a myAcc1,myAcc2 myemail@asdf.com myPassword` + +## Thanks to + +- **morsisko** and his [Gfless](https://github.com/morsisko/Nostale-Gfless) library \ No newline at end of file -- 2.49.0