Go Back   Champions of Regnum > English > Technical Support > Linux

Linux Technical issues under Linux platform

Reply
 
Thread Tools Display Modes
Old 09-05-2009, 08:09 PM   #1
onemyndseye
Master
 
onemyndseye's Avatar
 
Join Date: Jul 2008
Location: South Central USA
Posts: 260
onemyndseye is on a distinguished road
Default 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.
onemyndseye no ha iniciado sesión   Reply With Quote
Old 09-05-2009, 08:23 PM   #2
Fauno
Apprentice
 
Join Date: Jan 2007
Location: Mexicali, Mx
Posts: 76
Fauno is on a distinguished road
Default

Quote:
Originally Posted by onemyndseye View Post
Here guys...

This keeps coming. 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


FOR CP NOBSS like me... can you tell me how can i program this on my pc????


faunito
__________________
El Fauno
Centinelas Nocturnos
Syrtis
Fauno no ha iniciado sesión   Reply With Quote
Old 09-05-2009, 09:21 PM   #3
lord_dvl
Baron
 
lord_dvl's Avatar
 
Join Date: Aug 2007
Location: Here, there and everywere.....
Posts: 890
lord_dvl will become famous soon enoughlord_dvl will become famous soon enough
Default

How do you use it?

Like:

# ro-direct.sh user pass
lord_dvl no ha iniciado sesión   Reply With Quote
Old 09-05-2009, 11:41 PM   #4
ArcticWolf
Duke
 
ArcticWolf's Avatar
 
Join Date: Nov 2006
Location: 0x00CAFE
Posts: 3,366
ArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of light
Default

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.
ArcticWolf no ha iniciado sesión   Reply With Quote
Old 09-07-2009, 05:09 AM   #5
onemyndseye
Master
 
onemyndseye's Avatar
 
Join Date: Jul 2008
Location: South Central USA
Posts: 260
onemyndseye is on a distinguished road
Default

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
onemyndseye no ha iniciado sesión   Reply With Quote
Old 11-04-2009, 08:01 PM   #6
Topogigio_BR
Baron
 
Topogigio_BR's Avatar
 
Join Date: Jun 2008
Location: Brazil
Posts: 622
Topogigio_BR is on a distinguished road
Unhappy

Mine script is not working anymore.
Topogigio_BR no ha iniciado sesión   Reply With Quote
Old 11-04-2009, 10:33 PM   #7
Cuchulainn
Master
 
Join Date: Aug 2007
Posts: 303
Cuchulainn is on a distinguished road
Default

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.
Cuchulainn no ha iniciado sesión   Reply With Quote
Old 11-04-2009, 11:31 PM   #8
surak
Legend
 
surak's Avatar
 
Join Date: Mar 2006
Location: Oslo
Posts: 2,176
surak has a spectacular aura aboutsurak has a spectacular aura about
Default

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!
surak no ha iniciado sesión   Reply With Quote
Old 11-05-2009, 09:48 AM   #9
onemyndseye
Master
 
onemyndseye's Avatar
 
Join Date: Jul 2008
Location: South Central USA
Posts: 260
onemyndseye is on a distinguished road
Default

thanks for the input surak
__________________
RA/Syrtis Hunter LVL50: Elusis
RA/Syrtis Barba LVL50: Artemisia
RA/Syrtis Conju Lvl45: Nellas Miriel
onemyndseye no ha iniciado sesión   Reply With Quote
Old 11-05-2009, 09:54 AM   #10
Angelwinged_Devil
Banned
 
Angelwinged_Devil's Avatar
 
Join Date: Feb 2007
Location: Under your skin Posts: 1337
Posts: 2,490
Angelwinged_Devil is on a distinguished road
Default

Quote:
Originally Posted by surak View Post
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.
yeah I've noticed that when I write the wrong password the serverlist does not show up didn't before
Angelwinged_Devil no ha iniciado sesión   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:12 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
NGD Studios 2002-2024 © All rights reserved