Jump to content


1fx mod server on linux


  • Please log in to reply
8 replies to this topic

#1 m4tteo

m4tteo

    Newcomer

  • Members
  • Pip
  • 5 posts
  • LocationPoland

Posted 11 May 2014 - 08:07 PM

Hi. I try to run server on linux with 1fx mod on Debian 7 x64 (VPS) but i have little problem. When i try to run it i have this error:
Posted Image
Is a missing file sh? Where i can download it?
Posted Image
Posted Image

#2 BoeMan

BoeMan

    Developer

  • Administrators
  • 4018 posts
  • LocationFryslân

Posted 11 May 2014 - 10:35 PM

Try dos2unix start.sh and re-execute it. You should just use the Start linux server.sh instead though.
Kind regards,

BoeMan

#3 m4tteo

m4tteo

    Newcomer

  • Members
  • Pip
  • 5 posts
  • LocationPoland

Posted 12 May 2014 - 11:01 PM

still same issue when i try to run it with Start Linux Server.sh
Posted Image
Posted Image

#4 BoeMan

BoeMan

    Developer

  • Administrators
  • 4018 posts
  • LocationFryslân

Posted 12 May 2014 - 11:09 PM

How do you execute it? Try sh Start Linux Server.sh instead of using ./
Kind regards,

BoeMan

#5 m4tteo

m4tteo

    Newcomer

  • Members
  • Pip
  • 5 posts
  • LocationPoland

Posted 13 May 2014 - 12:47 PM

Its working i change the file name to "sls.sh" but i need file to stop and status i have that for RPM 4.0 but its not working with 1fx ;/
Posted Image
Posted Image

#6 BoeMan

BoeMan

    Developer

  • Administrators
  • 4018 posts
  • LocationFryslân

Posted 13 May 2014 - 12:50 PM

If you need assistance paste the scripts here, so I can take a look at them (whole scripts please).
Kind regards,

BoeMan

#7 m4tteo

m4tteo

    Newcomer

  • Members
  • Pip
  • 5 posts
  • LocationPoland

Posted 13 May 2014 - 03:17 PM

I use this to start, stop, status with RPM 4.0
status
screen -x sof2
stop
screen -S sof2 -X quit
start (RPM 4.0)
export LD_LIBRARY_PATH=/lib/fc4libs
screen -A -m -d -S sof2 ./sof2ded +set dedicated 2 +set fs_game RPMPro +exec server.cfg +mapcycle
start (1fx)
#!/bin/sh
libver="0.31"

if grep -Fxqs $libver ./core/1fxlib/ver
then
echo "Proper 1fxlib detected: $libver. Continuing.."
else
echo "This version of 1fx. Mod requires 1fxlib $libver to run!"
exit
fi

# Boe!Man 6/25/13: Set global variables.
unset LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/lib/fc4libs

# Run SoF2MP server w/ 1fx. Mod.
cd ..
./sof2ded +set dedicated 2 +set +set net_port 20103 fs_game RPM +set vm_game 0 +exec Config.cfg 

Posted Image
Posted Image

#8 BoeMan

BoeMan

    Developer

  • Administrators
  • 4018 posts
  • LocationFryslân

Posted 13 May 2014 - 05:34 PM

Your RPM 4.0 start command is fine for 1fx. Mod too, you don't really need the check for 1fxlib if you're certain the libraries you have work just as well.

If the RPM 4.0 stuff works you can just grab that command line and edit it so it looks like the 1fx. Mod command line. Just change "RPMPro" to "RPM", "server.cfg" to "Config.cfg" and ensure that "+set vm_game 0" is there (so that the server will load the .so instead of the .qvm).
Kind regards,

BoeMan

#9 m4tteo

m4tteo

    Newcomer

  • Members
  • Pip
  • 5 posts
  • LocationPoland

Posted 14 May 2014 - 01:23 PM

Thanks for help.
Posted Image
Posted Image




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users