Jump to content

Kido

Members
  • Posts

    1445
  • Joined

  • Last visited

  • Days Won

    10

Posts posted by Kido

  1. Hi Kido,

     

    The compile had no issues, that is suppose to be the last line because it completed the compile. The /import folder is filled with empty files, so it has no effect; something you shouldn't worry about.

    thanks! now that i know that i continued and the solution appeared, thanks again!

     

    Try running the command ./configure && make clean && make sql.

     

    I think the configure command is what affects that but I am not 100% sure.

     

    i finally worked properly, in my last topic i tryied many things but they did not work, this solution made my day! finally athena-start is being recognized and lunchs perfectly, plus i can exit and leave online the server with the command 'exit', guess every commands afetr the lunch works fine, than you so much!

     

     

    thanks again!

  2. Hello, after a long way to migrate my eathena to rathena, among the way i got a bunch of errors

    thanks to the help of everyone and of a friend, i managed to put online my server with putty, but with a plety of errors

    i know (or i think i know) that i can correct that errors by myself, the big problem now is the following

     

    I use linux centos

     

    when i go ./athena-start start

    the putty tells me that it does not exist, and that the thing has errors

    here is a pic of the problem

    fqjn.jpg

    i have checked the paths and they are ok, also i have checked that those files exists

    here is my athena-start script

     

    #!/bin/sh
    
    #source var/function
    . ./function.sh
    inst_launch_workaround
    
    PATH=./:$PATH
    print_start() {
      #    more << EOF
      echo "Athena Starting..."
      echo "            (c) 2013 rAthena Project"
      echo ""
      echo ""
      echo "checking..."
      #EOF
    }
    
    get_status(){
       PIDFILE=.$1.pid
       if [ -e ${PIDFILE} ]; then
        ISRUN=$(ps ax | grep $(cat ${PIDFILE}) | grep $1)
        PSRUN=$(echo "$ISRUN" | awk '{ print substr( $0, 0, 7) }')
       fi
       return $PSRUN
    }
    
    #cheking if already started, launch and mark in log
    start_serv(){ 
      LOGFILE="log/$1.log"
      get_status $1
      echo "My logfile=${LOGFILE}"
      if [ -z ${PSRUN} ]; then
        exec ./$1&
        echo $! > .$1.pid
        echo "Server '$1' started at `date +"%m-%d-%H:%M-%S"`"
        echo "Server '$1' started at `date +"%m-%d-%H:%M-%S"`" >> ${LOGFILE}
      else
        echo "Can't start '$1', cause is already running p${PSRUN}"
        echo "Can't start '$1', cause is already running p${PSRUN}" >> ${LOGFILE}
      fi
    }
    
    #experimental
    watch_serv(){
      LOGFILE=./log/$1.log
      ulimit -Sc unlimited
    
      while true; do
       get_status $1
       if [ -z ${PSRUN} ]; then
         $count=$count+1
         echo "server '$1' is down" >> ${LOGFILE}
         echo "restarting server at time at `date +"%m-%d-%H:%M-%S"`">> ${LOGFILE}
         exec ./$1&
         echo $! > .$1.pid   
         if [ $3 ] && [ $3 -lt $count ]; then break; fi
       else sleep $2    
       fi
      done
    }
    
    restart(){
      $0 stop
      for i in ${L_SRV} ${C_SRV} ${M_SRV}
        do
        while true; do
    	get_status ${i}
    	if [ ${PSRUN} ]; then echo "'${i}' is still running p${PSRUN} waiting end"; sleep 2;
            else break; fi
        done
      done
      $0 start
    }
    
    case $1 in
        'start')
            print_start
            check_files
    	echo "Check complete."
    	echo "Looks good, a nice Athena!"
    	for i in ${L_SRV} ${C_SRV} ${M_SRV}
    	    do
    		start_serv $i
    	    done
            echo "Now Started Athena."
    ;;
        'watch')
    	for i in ${L_SRV} ${C_SRV} ${M_SRV}
    	    do		
    		watch_serv $i 10 3
    	    done
     	echo "Now watching Athena."
    ;;	
        'stop')
    	for i in ${L_SRV} ${C_SRV} ${M_SRV}
    	    do
    		PIDFILE=.${i}.pid
    		if [ -e .{PIDFILE} ]; then
    		    kill $(cat ${PIDFILE})
    		    rm ${PIDFILE}
    		fi
    	    done
    ;;
        'restart')
             restart
    ;;
        'status')
    	for i in ${L_SRV} ${C_SRV} ${M_SRV}
    	do
    		get_status ${i}
    		if [ ${PSRUN} ]; then echo "'${i}' is running p${PSRUN}"; else echo "'${i}' seem down"; fi
    	done
    ;;	
        *)
            echo "Usage: athena-start { start | stop | restart | status | watch }"
            read -p "Enter a valid option: " readEnterKey
    		$0 $readEnterKey
    ;;
    esac
    
    

     

    well, that goes for my athena-start, however, here comes the interesting thing ._. i can run char, map and login by opening 3 putties (plural of putty (?)) and in each one run one different _sql, one for login-server_sql, one for char-server_sql and one more for map-server_sql

    when i run them, i can't use any command, such 'exit', typing any command will end like if it was a text document, nothing happens ):

    qsy.png

     

    please help me to fix this out ):

     

    how to fix my athena-start? (if need more information, i will add it)

    how to fix putty? (if need more information, i will add it)

     

    thanks again!

     

    edit: forgot to mention that i use linux centos

  3. sry for late anser i fella asleep again

     

    i did that and this happends then

    vP1oqIE.png

     

    theres another problem too! ): i cant run athena-start. i have to pen 3 putty in order to keep the thing alive

    and i cant use "exit" because nothing happends, so if i close the window, the server will just logoff )):

     

    edit:

    whenever i try to use a command nothing happens ):

    4JZvTTU.png

  4. whilte importing sql files i got this bunch of errors );

     

    upgrade_svn15531_db.sql

    [Err] 1091 - Can't DROP 'ExpPer'; check that column/key exists
    [Err] -- `ExpPer` column removed from `mob_db` and `mob_db2` tables
    
    ALTER TABLE `mob_db` DROP COLUMN `ExpPer`;
    [Msg] Finished - Unsuccessfully
    --------------------------------------------------
    
    

    upgrade_svn15572.sql

    [Err] 1054 - Unknown column 'level' in 'login'
    [Err] -- Rename `level` column to `group_id` in `login` table
    
    ALTER TABLE `login` CHANGE COLUMN `level` `group_id` TINYINT(3) NOT NULL DEFAULT '0';
    [Msg] Finished - Unsuccessfully
    --------------------------------------------------
    
    

    upgrade_svn17014.sql

    [Err] 1054 - Unknown column 'str' in 'elemental'
    [Err] ALTER TABLE `elemental` CHANGE COLUMN `str` `atk1` MEDIUMINT(6) UNSIGNED NOT NULL DEFAULT 0,
     CHANGE COLUMN `agi` `atk2` MEDIUMINT(6) UNSIGNED NOT NULL DEFAULT 0,
     CHANGE COLUMN `vit` `matk` MEDIUMINT(6) UNSIGNED NOT NULL DEFAULT 0,
     CHANGE COLUMN `int` `aspd` SMALLINT(4) UNSIGNED NOT NULL DEFAULT 0,
     CHANGE COLUMN `dex` `def` SMALLINT(4) UNSIGNED NOT NULL DEFAULT 0,
     CHANGE COLUMN `luk` `mdef` SMALLINT(4) UNSIGNED NOT NULL DEFAULT 0,
     CHANGE COLUMN `life_time` `flee` SMALLINT(4) UNSIGNED NOT NULL DEFAULT 0,
     ADD COLUMN `hit` SMALLINT(4) UNSIGNED NOT NULL DEFAULT 0 AFTER `flee`,
     ADD COLUMN `life_time` INT(11) NOT NULL DEFAULT 0 AFTER `hit`;
    [Msg] Finished - Unsuccessfully
    --------------------------------------------------
    
    

    upgrade_svn17176.sql

    [Err] 1060 - Duplicate column name 'character_slots'
    [Err] ALTER TABLE `login` ADD `character_slots` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0';
    [Msg] Finished - Unsuccessfully
    --------------------------------------------------
    
    

    upgrade_svn17183.sql

    [Err] 1060 - Duplicate column name 'pincode'
    [Err] ALTER TABLE `login` ADD COLUMN `pincode` varchar(4) NOT NULL DEFAULT '';
    [Msg] Finished - Unsuccessfully
    --------------------------------------------------
    
    

    the other .sql worked fine (:

     

    edit to answer 

    mrlongshen

     

    rAthena, before i uploaded it to my winscp, i tested it on my laptop end everything seemed to work fine ):

  5. allright, i waited and then it just stoped so i guessed that it finished the recompilation

    the problem presist, this is after your instructions

    same ):

    0k2miwW.png

     

    )):

     

    edit:

    not sure if this has something to do with the whole thing, i just noticed after i tryed to repeat the steps you gave me, totally dunno what to do

    rl8l.png

     

    another edit, i just got this error too, just below the whole thing

    l4GdNTq.png

  6. Hello, i was trying fo lunch my rathena server and did what i have to do, compiled and etc, but when i try to put it online, i get this problems

     

    First i have this directories

    sdri.jpg

     

    but then, when i ./athena-start start

    i get this

     

    7z6c.jpg

     

    (white = path)

     

    here is my athena-start script

    #!/bin/sh
    
    #source var/function
    . ./function.sh
    inst_launch_workaround
    
    PATH=./:$PATH
    print_start() {
      #    more << EOF
      echo "Athena Starting..."
      echo "            (c) 2013 rAthena Project"
      echo ""
      echo ""
      echo "checking..."
      #EOF
    }
    
    get_status(){
       PIDFILE=.$1.pid
       if [ -e ${PIDFILE} ]; then
        ISRUN=$(ps ax | grep $(cat ${PIDFILE}) | grep $1)
        PSRUN=$(echo "$ISRUN" | awk '{ print substr( $0, 0, 7) }')
       fi
       return $PSRUN
    }
    
    #cheking if already started, launch and mark in log
    start_serv(){ 
      LOGFILE="log/$1.log"
      get_status $1
      echo "My logfile=${LOGFILE}"
      if [ -z ${PSRUN} ]; then
        exec ./$1&
        echo $! > .$1.pid
        echo "Server '$1' started at `date +"%m-%d-%H:%M-%S"`"
        echo "Server '$1' started at `date +"%m-%d-%H:%M-%S"`" >> ${LOGFILE}
      else
        echo "Can't start '$1', cause is already running p${PSRUN}"
        echo "Can't start '$1', cause is already running p${PSRUN}" >> ${LOGFILE}
      fi
    }
    
    #experimental
    watch_serv(){
      LOGFILE=./log/$1.log
      ulimit -Sc unlimited
    
      while true; do
       get_status $1
       if [ -z ${PSRUN} ]; then
         $count=$count+1
         echo "server '$1' is down" >> ${LOGFILE}
         echo "restarting server at time at `date +"%m-%d-%H:%M-%S"`">> ${LOGFILE}
         exec ./$1&
         echo $! > .$1.pid   
         if [ $3 ] && [ $3 -lt $count ]; then break; fi
       else sleep $2    
       fi
      done
    }
    
    restart(){
      $0 stop
      for i in ${L_SRV} ${C_SRV} ${M_SRV}
        do
        while true; do
    	get_status ${i}
    	if [ ${PSRUN} ]; then echo "'${i}' is still running p${PSRUN} waiting end"; sleep 2;
            else break; fi
        done
      done
      $0 start
    }
    
    case $1 in
        'start')
            print_start
            check_files
    	echo "Check complete."
    	echo "Looks good, a nice Athena!"
    	for i in ${L_SRV} ${C_SRV} ${M_SRV}
    	    do
    		start_serv $i
    	    done
            echo "Now Started Athena."
    ;;
        'watch')
    	for i in ${L_SRV} ${C_SRV} ${M_SRV}
    	    do		
    		watch_serv $i 10 3
    	    done
     	echo "Now watching Athena."
    ;;	
        'stop')
    	for i in ${L_SRV} ${C_SRV} ${M_SRV}
    	    do
    		PIDFILE=.${i}.pid
    		if [ -e .{PIDFILE} ]; then
    		    kill $(cat ${PIDFILE})
    		    rm ${PIDFILE}
    		fi
    	    done
    ;;
        'restart')
             restart
    ;;
        'status')
    	for i in ${L_SRV} ${C_SRV} ${M_SRV}
    	do
    		get_status ${i}
    		if [ ${PSRUN} ]; then echo "'${i}' is running p${PSRUN}"; else echo "'${i}' seem down"; fi
    	done
    ;;	
        *)
            echo "Usage: athena-start { start | stop | restart | status | watch }"
            read -p "Enter a valid option: " readEnterKey
    		$0 $readEnterKey
    ;;
    esac
    
    
    

    i hope im giving enought information

     

    the files are in the correct directory, i have checked it twice and they are in the correct path

     

    my players are waiting and i don't have much time, my laptop is about to turn off because it's battery life is about to die (it is already connected)

     

    please help ! if this need more information i will show it!

     

    sorry for my bad english

     

    help ;-;

×
×
  • Create New...