|
|
Linux Technical issues under Linux platform |
|
Thread Tools | Display Modes |
09-05-2009, 08:09 PM | #1 |
Master
Join Date: Jul 2008
Location: South Central USA
Posts: 260
|
Script for Direct RO Login (Bypass Launcher)
Here guys...
This keeps coming up. Create the following script in your RO directory ro-direct.sh Code:
#!/bin/bash case "$1" in --gui) RO_USER="$(cat ~/.ngdstudios/rolauncher |grep user= |sed '{s|user=||}')" PASSWD=$(zenity --entry --hide-text --text=Password) PASS_CRYPT=$(echo -ne $PASSWD | md5sum |awk '{print $1}') PASSWD="" ;; *) if [ -z "$1" -o -z "$2" ]; then echo "" echo "Usage: $0 <user> <password>" echo " $0 --gui" exit 1 else if [ ! -f ./live/game ]; then echo "Regnum Live folder not found! Running from the correct directory?" exit 2 fi fi RO_USER=$1 PASS_CRYPT=$(echo -ne $2 | md5sum |awk '{print $1}') ;; esac cd ./live ./game $RO_USER $PASS_CRYPT & RO_USER="" PASS_CRYPT="" exit 0 Take care, -onemyndseye
__________________
RA/Syrtis Hunter LVL50: Elusis RA/Syrtis Barba LVL50: Artemisia RA/Syrtis Conju Lvl45: Nellas Miriel Last edited by onemyndseye; 09-16-2009 at 07:42 AM. |
09-05-2009, 08:23 PM | #2 | |
Apprentice
Join Date: Jan 2007
Location: Mexicali, Mx
Posts: 76
|
Quote:
FOR CP NOBSS like me... can you tell me how can i program this on my pc???? faunito
__________________
El Fauno Centinelas Nocturnos Syrtis |
|
09-05-2009, 09:21 PM | #3 |
Baron
Join Date: Aug 2007
Location: Here, there and everywere.....
Posts: 890
|
How do you use it?
Like: # ro-direct.sh user pass |
09-05-2009, 11:41 PM | #4 |
Duke
Join Date: Nov 2006
Location: 0x00CAFE
Posts: 3,366
|
Exactly, just like any other parameterized command or script.
./script.sh --gui or ./script.sh user password Nice one!
__________________
I don't have a solution, but I admire the problem. |
09-07-2009, 05:09 AM | #5 |
Master
Join Date: Jul 2008
Location: South Central USA
Posts: 260
|
Thanks
Sorry.. I guess I assumed everyone would see the pararm's in the script while reading the post Yes, Exactly as ArcticWolf posted. A little more info about this script: 1. It will always launch a session connecting to the last server you played on 2. In gui mode it will "ask" for the password with a zenity dialog box. In this mode it will always use the last user that you connected with. (from the launcher) 3. If your client isnt completely up to date it WILL cause problems for you. 4. Not sure how NGD feels about this login method and as such they may decide to break it at any moment.
__________________
RA/Syrtis Hunter LVL50: Elusis RA/Syrtis Barba LVL50: Artemisia RA/Syrtis Conju Lvl45: Nellas Miriel |
11-04-2009, 08:01 PM | #6 |
Baron
Join Date: Jun 2008
Location: Brazil
Posts: 622
|
Mine script is not working anymore.
|
11-04-2009, 10:33 PM | #7 |
Master
Join Date: Aug 2007
Posts: 303
|
its also possible to make a direct starter on your desktop.
if u use XFCE just make a starter at one of your bars, choose as working directory the live folder and put ./game <your accountname> <md5-hash> into the command line. Its probably also possible with gnome and kde somehow. And dont forget to change the line sv_game_server_host =... to sv_game_server_host = 91.123.197.138 of the game.cfg file. |
11-04-2009, 11:31 PM | #8 |
Legend
Join Date: Mar 2006
Location: Oslo
Posts: 2,176
|
I have to say... this is not the recommended way to enter the game. The launcher is there for a reason :P
The login process will be improved and this wont be possible anymore, but I can't tell you when right now.
__________________
Surak Remember... this is just a game! - Xephandor existe y Miriya es su profeta! |
11-05-2009, 09:48 AM | #9 |
Master
Join Date: Jul 2008
Location: South Central USA
Posts: 260
|
thanks for the input surak
__________________
RA/Syrtis Hunter LVL50: Elusis RA/Syrtis Barba LVL50: Artemisia RA/Syrtis Conju Lvl45: Nellas Miriel |
11-05-2009, 09:54 AM | #10 |
Banned
Join Date: Feb 2007
Location: Under your skin Posts: 1337
Posts: 2,490
|
yeah I've noticed that when I write the wrong password the serverlist does not show up didn't before
|
|
|