Go Back   Champions of Regnum > English > Technical Support

Technical Support Questions about game technical support to the users of the community

Reply
 
Thread Tools Display Modes
Old 06-01-2012, 11:30 PM   #1
Tigerious
Banned
 
Tigerious's Avatar
 
Join Date: Nov 2008
Location: France
Posts: 496
Tigerious is an unknown quantity at this point
Default quickro.sh - bash script to avoid launcher when it fails

Code:
#!/bin/bash

REGNUM_DIR="/home/${USER}/regnum"
REGNUM_EXE_DIR="${REGNUM_DIR}/live"
REGNUM_EXE_FILE="game"

if [[ $1 == '' || $2 == '' ]];then
  echo "Usage : ./quickro.sh <username> <pass>\n"
  exit 0
fi

HASH_PASSWD="`echo -n $2|md5sum|sed s/\ -$//`"

echo "Running game as $1 with hash password $HASH_PASSWD ..."

cd $REGNUM_EXE_DIR && ./$REGNUM_EXE_FILE $1 $HASH_PASSWD &
You can call it directly in your /home/${USER}/bin with a proper $PATH.
Tigerious no ha iniciado sesión   Reply With Quote
Old 06-02-2012, 02:17 AM   #2
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

This helps buts avoid patching so it should be used only in emergencies.
__________________
Surak Remember... this is just a game! - Xephandor existe y Miriya es su profeta!
surak 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 04:24 AM.


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