AsRock+SD 0 Posted July 27, 2006 Here's my ofpserver script. If i add any thing to the end that has any thing to do with mods seems to error all the time. And every time i add this -config=${CONFIG} -server -port=${PORT} -pid=${PIDFILE} -nomap -mod=$MODS it says there's a error at that line. Quote[/b] ]#!/bin/bash # # ofpserver: Operation Flashpoint Linux dedicated server control script # © 2003 BIStudio # OFP binary version must be 1.92 or later! # #======================================================================= #======== CONFIGURATION PARAMETERS ======== #======== MUST BE EDITED MANUALLY TO FIT YOUR SYSTEM PARAMETERS ======== #======================================================================= OFP_DIR=${HOME}/ofp CONFIG=${OFP_DIR}/server.cfg PORT=2302 PIDFILE=${OFP_DIR}/ofp_server.${PORT}.pid RUNFILE=${OFP_DIR}/ofp_server.${PORT}.run LOGFILE=${OFP_DIR}/log.${PORT}.txt SERVER=${OFP_DIR}/server MODS="fcm;vs;cbt" #======================================================================= case "$1" in start) if [ -f ${RUNFILE} ]; then $0 stop fi echo "Starting OFP server..." # file to mark we want server running... echo "go" >${RUNFILE} # launch the background watchdog process to run the server nohup </dev/null >/dev/null $0 watchdog & ;; stop) echo "Stopping OFP server..." if [ -f ${RUNFILE} ]; then # ask watcher process to exit by deleting its runfile... rm -f ${RUNFILE} fi # and terminate OFP server process if [ -f ${PIDFILE} ]; then kill -TERM $(< ${PIDFILE}) if [ -f ${PIDFILE} ]; then rm -f ${PIDFILE} fi fi ;; status) if [ -f ${RUNFILE} ]; then echo "Server should be running..." else echo "Server should not be running..." fi if [ -f ${PIDFILE} ]; then PID=$(< ${PIDFILE}) echo "PID file exists (PID=${PID})..." if [ -f /proc/${PID}/cmdline ]; then echo "Server process seems to be running..." fi fi ;; check) echo -n "OFP directory: ${OFP_DIR} " if [ -d ${OFP_DIR} ]; then echo "OK" else echo "MISSING!" fi echo -n "Server executable: ${SERVER} " if [ -x ${SERVER} ]; then echo "OK" else echo "ERROR!" fi echo "Port number: ${PORT}" echo -n "Config file: ${CONFIG} " if [ -f ${CONFIG} ]; then echo "OK" else echo "MISSING!" fi echo "PID file: ${PIDFILE}" echo "RUN file: ${RUNFILE}" ;; restart) $0 stop $0 start ;; watchdog) # this is a background watchdog process. Do not start directly while [ -f ${RUNFILE} ]; do # launch the server... cd ${OFP_DIR} echo >>${LOGFILE} "WATCHDOG ($$: [$(date)] Starting server (port ${PORT})..." (LD_LIBRARY_PATH="/home/account name/ofp/libs" ${SERVER} -server -config=${CONFIG} -port=${PORT} -pid=${PIDFILE} >>${LOGFILE} 2>&1) if [ -f ${RUNFILE} ]; then echo >>${LOGFILE} "WATCHDOG ($$: [$(date)] Server died, waiting to restart..." unset LD_LIBRARY_PATH sleep 5s else echo >>${LOGFILE} "WATCHDOG ($$: [$(date)] Server shutdown intentional, watchdog terminating" unset LD_LIBRARY_PATH fi done ;; *) echo "$0 (start|stop|restart|status|check)" ;; esac Share this post Link to post Share on other sites
blackdog~ 0 Posted July 27, 2006 Hi Rock, I wish I could help you but it seems that all the linux-enlightened folk are long gone from these boards! Would someone who is running a linux server successfully using the libs and everything perhaps consider tar'ing it up and hosting it on your dedicated server so I can have my server wget it so I can try it? Thanks... bd Share this post Link to post Share on other sites
killswitch 19 Posted July 27, 2006 I wish I could help you but it seems that all the linux-enlightened folk are long gone from these boards!Would someone who is running a linux server successfully using the libs and everything perhaps consider tar'ing it up and hosting it on your dedicated server so I can have my server wget it so I can try it? Oh, "we" are here  The server I'm nursing doesn't use the default BIS-provided start script ("ofpstart", as seen above and throughout this thread), but rather a custom-written one. I can't make it available for general use since it's...well, not fit for public use. (And I would have to support the bloody thing) However, I here are you the required compatibility libs: link Grab those and follow the instructions in the first post of this thread. Share this post Link to post Share on other sites
killswitch 19 Posted July 27, 2006 Here's my ofpserver script. If i add any thing to the end that has any thing to do with mods seems to error all the time.And every time i add this -config=${CONFIG} -server -port=${PORT} -pid=${PIDFILE} -nomap -mod=$MODS it says there's a error at that line. In that quote, what do you mean by "the end"? Also, you say that you "add this...". Where do you add that? Be sufficiently specific. Share this post Link to post Share on other sites
blackdog~ 0 Posted July 27, 2006 Hi, thanks for the link. I found some libs on some other german site but I will try the ones you linked to as well. Edit: Same result. Same server creation failed. If anyone wants to take a look at it I will give you the SSH password and username so you can check it out. I'd prefer that someone tar up a working basic installation that has the libs preinstalled so I can wget it. Afterwards, I would gladly mirror the file for other struggling ofp server-admin-wannabees... Share this post Link to post Share on other sites
AsRock+SD 0 Posted July 28, 2006 Cheers for your responce Killswitch but earlyer i actualy solved it. Here's my script. Please remember were it says MODS="fcm;vs;cbt" are the mods i use edit it with whot mods you use. And blackdog If i find out how my friend solved the Same server creation failed. i will post it. Please don't hold ya breath though as i'm still waiting my self. BUT hoping Linux will hold up till OFP AA is out :P. My libs are dated 2/20/2004 which i beleave are allreay posted here. Allso i get that error still but only when i do ./server start Works perfect with ./ofpserver start for me. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> #!/bin/bash # # ofpserver: Operation Flashpoint Linux dedicated server control script # © 2003 BIStudio # OFP binary version must be 1.92 or later! # #======================================================================= #======== CONFIGURATION PARAMETERS ======== #======== MUST BE EDITED MANUALLY TO FIT YOUR SYSTEM PARAMETERS ======== #======================================================================= OFP_DIR=${HOME}/ofp CONFIG=${OFP_DIR}/server.cfg PORT=2302 PIDFILE=${OFP_DIR}/ofp_server.${PORT}.pid RUNFILE=${OFP_DIR}/ofp_server.${PORT}.run LOGFILE=${OFP_DIR}/log.${PORT}.txt SERVER=${OFP_DIR}/server MODS="fcm;vs;cbt" #======================================================================= case "$1" in start) if [ -f ${RUNFILE} ]; then $0 stop fi echo "Starting OFP server..." # file to mark we want server running... echo "go" >${RUNFILE} # launch the background watchdog process to run the server nohup </dev/null >/dev/null $0 watchdog & ;; stop) echo "Stopping OFP server..." if [ -f ${RUNFILE} ]; then # ask watcher process to exit by deleting its runfile... rm -f ${RUNFILE} fi # and terminate OFP server process if [ -f ${PIDFILE} ]; then kill -TERM $(< ${PIDFILE}) if [ -f ${PIDFILE} ]; then rm -f ${PIDFILE} fi fi ;; status) if [ -f ${RUNFILE} ]; then echo "Server should be running..." else echo "Server should not be running..." fi if [ -f ${PIDFILE} ]; then PID=$(< ${PIDFILE}) echo "PID file exists (PID=${PID})..." if [ -f /proc/${PID}/cmdline ]; then echo "Server process seems to be running..." fi fi ;; check) echo -n "OFP directory: ${OFP_DIR} " if [ -d ${OFP_DIR} ]; then echo "OK" else echo "MISSING!" fi echo -n "Server executable: ${SERVER} " if [ -x ${SERVER} ]; then echo "OK" else echo "ERROR!" fi echo "Port number: ${PORT}" echo -n "Config file: ${CONFIG} " if [ -f ${CONFIG} ]; then echo "OK" else echo "MISSING!" fi echo "PID file: ${PIDFILE}" echo "RUN file: ${RUNFILE}" ;; restart) $0 stop $0 start ;; watchdog) # this is a background watchdog process. Do not start directly while [ -f ${RUNFILE} ]; do # launch the server... cd ${OFP_DIR} echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Starting server (port ${PORT})..." export LD_LIBRARY_PATH="/home/Your Account Name/ofp/libs" ${SERVER} >>${LOGFILE} 2>&1 -server -config=${CONFIG} -port=${PORT} -pid=${PIDFILE} -mod=${MODS} if [ -f ${RUNFILE} ]; then echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Server died, waiting to restart..." sleep 5s else echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Server shutdown intentional, watchdog terminating" fi unset LD_LIBRARY_PATH done ;; *) echo "$0 (start|stop|restart|status|check)" ;; esac Share this post Link to post Share on other sites
sicilian 0 Posted July 28, 2006 As one can read, you solved your problem... don't use "server start". Or is there any problem left? @killswitch you are getting my favorite linux admin since benu is inactive. Share this post Link to post Share on other sites
killswitch 19 Posted July 28, 2006 @killswitchyou are getting my favorite linux admin since benu is inactive. Hehe...yeah, where is that guy? There's work here It seems that blackdog's problem was that the server's name was one beginning with a number. In general, that's perfectly ok, but not for the OFP server code it seems. The howto in the first post mentions this, but not how one can see if that's the case, nor how to fix it. That's OK since different distributions have different "best ways" of doing that. Also, some servers people use are customised ISP/datacenter setups using web-based control panels for access, so giving a fool-proof description of how to solve the server name problem isn't easily done. The short, quickie advice though is this:<ul>[*] Use the shell command 'hostname' to see the name of your server. [*] Take a look at the file /etc/hosts and make sure the server has a "proper" name. [*] Check with the documentation for your OS on how to change/set the server name. Share this post Link to post Share on other sites
willybeef 0 Posted August 3, 2006 WATCHDOG (11266): [] Server died, waiting to restart... WATCHDOG (11266): [Thu Aug 3 13:10:23 BST 2006] Starting server (port 4443)... No entry 'config.bin.CfgAddons'. iv replaced config.bin a few times in normal /bin and res/bin any suggestions? Share this post Link to post Share on other sites
Guest RKSL-Rock Posted August 3, 2006 WATCHDOG (11266): [] Server died, waiting to restart...WATCHDOG (11266): [Thu Aug  3 13:10:23 BST 2006] Starting server (port 4443)... No entry 'config.bin.CfgAddons'. iv replaced config.bin a few times in normal /bin and res/bin any suggestions? That sound more like a problem wiht an addon's config rather than the main config.bin. If you've installed any 3rd party addons remove them and see what happens. Share this post Link to post Share on other sites
AsRock+SD 0 Posted August 21, 2006 Hello All, New problem here with the mod called @wgl5. How do i go about getting it to work under Linux ? Links here http://ofpc.de/wargames/wglhelp/index.php?page=Installation But i don't know all that much about C to go and edit the ofpserver file. My ofpserver script is just above under my name. Thank You Share this post Link to post Share on other sites
killswitch 19 Posted August 21, 2006 Quote[/b] ]New problem here with the mod called @wgl5.How do i go about getting it to work under Linux ? Use the "trick" on that page (Installation): 1) Change to the folder where your ofp server is, in other words, where @wgl5 is and the rest of the ofp files 2) Issue this command: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">ln -s \@wgl5/bin \@wgl5\\bin (Write it exactly like that. There is no syntax error in it whatsoever) 3) Then, create an empty folder named "scripts" in the ofp server folder: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">mkdir scripts (This is needed for WGL 5.12 to work around a bug in the server program that makes the use of the scripting command preprocessFile fail.) Share this post Link to post Share on other sites
djerden 0 Posted September 5, 2006 Anyone know if it's possible to assign an available ip address to ofp server, rather than it taking it's pick of several on a machine? Share this post Link to post Share on other sites
tief 0 Posted September 19, 2006 Hi all, i'm trying to setup ofp server, i did download 1.96 server linux and as standalone server it work fine. Im trying to install some mode ( 6th-base and 6th-modern ) but i have huge problems with it. I did installation on windows machine, then i move all data to linux server, run "tolower" on it, then i put -mod=@6th-base -mod=@6th-modern ( i try also syntax: -mod=@6th-base;@6th-modern ) into ofpstart but it constantly crashing, when there is both mods, it die without errors, when i remove modern it die with error message: No entry 'config.cpp.CfgWorlds'. 14:52:04 Dedicated server created, memory used: 15704 KB WATCHDOG (24160): [] Server died, waiting to restart... i also try dos2unix on config file - it didn't help. Is there any way how to get some serious debug info from server ? thanks a lot Share this post Link to post Share on other sites
willybeef 0 Posted October 11, 2006 18:33:34 Dedicated server created, memory used: 17044 KB Invalid texture aspect ratio (64x53) this is a linux box and the link to the pack is http://server13.download.filefront.com/wcqkukj....wii.exe this is addon error, any idea which one, maybe somebody with experience!?! Share this post Link to post Share on other sites
Scorpion0815 0 Posted October 13, 2006 Hi willybeef, do you have some more information ? the dl-link doesn´t function. which addons are you using ? did you try to remove the addons one for one and start the server till the message doesn´t appear ? contact me via icq for more details if u want. Share this post Link to post Share on other sites
willybeef 0 Posted November 18, 2006 Preprocessor failed on file mpmissions\__cur_mp.catintro\description.ext - error 1. is it description.ext error? or pre proeccesor? Share this post Link to post Share on other sites
Buzz-GUN- 0 Posted December 11, 2006 I'm stuck on a ubuntu linux dedicated server config. I can't get rid of the dreaded "Server creation failed : 2302", in either normal or -dplay mode. I've followed the directions above, and I've installed NSCD (and it is running). there are no numbers, spaces, or special characters in the name. I am behind a NAT, but port 2302 is forwarded to the internal machine, which has a reserved address in DHCP. Here is my /etc/hosts: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> 127.0.0.1 localhost.localdomain localhost 192.168.0.100 quantex.mynet.all quantex The domain is internal-only. I can successfully ping all of the above names/aliases. My /etc/hostname (and also the results of running "hostname"): <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> quantex.mynet.all Partial output from "ifconfig": <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> eth0 Link encap:Ethernet HWaddr 00:A0:CC:36:A9:9E inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::2a0:ccff:fe36:a99e/64 Scope:Link Here's my resolv.conf: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> search earthlink.com domain mynet.all nameserver 192.168.0.1 The nameserver above is my internet router/NAT. The search is automatic from DHCP (I think). What else am I missing? What else should I try to diagnose this? Share this post Link to post Share on other sites
killswitch 19 Posted December 11, 2006 @ Dec. 11 2006,07:53)]What else am I missing? Â What else should I try to diagnose this? Things look OK, except for one thing - the contents of your /etc/hostname. According to this the file /etc/hostname should contain just the computer name, not the FQDN name. In other words, it should have just <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">quantexin it. That said, I doubt changing that will fix your problem. <ul>[*] Do you have all the necessary files, as created by Kegety's script referenced in the first post of this thread? [*] Make sure the file names are all in lower-case. (The server installation script should have done this, otherwise, run './tolower' again) [*] Check the ownership of the ofp server files - the server should be run as a normal user and it needs to have proper access to the files [*] You're using the old compatibility libs(*) and the LD_LIBRARY_PATH bit, right? (*) Here's another set of those files. I have a Ubuntu 6.06 LTS server (i686) here in the lab that can start and run the OFP server just fine with them. Link: ofp-libs-2.2.5.tgz Share this post Link to post Share on other sites
Buzz-GUN- 0 Posted December 12, 2006 I changed my /etc/hostname to "quantex". Initially, I had just copied the whole OFP directory from my Windows computer (with the addition of compatibility libs). I made a new attempt using Kegety's script. Still no luck launching with ./server. However, I read back through the thread and found that I'm supposed to be using ./ofpserver start. That worked just fine. The first post on this thread doesn't mention that part. Thanks for the help, Killswitch! Share this post Link to post Share on other sites
garryslv 0 Posted June 16, 2007 Hi,iam tring to install an ofpr linux server but i got these errors any ideas ? COMMANDLINE OUTPUT Quote[/b] ][gr@localhost ofp]$ sh ofpserver startofpserver: line 26: ofpserver: command not found Starting OFP server... nohup: cannot run command `ofpserver': No such file or directory my SERVER.CFG Quote[/b] ]// comments are written with "//" in front of them. // server.cfg passwordAdmin = "zztopless"; // password to protect admin access password = "xyz"; // password required to connect to server hostname="BUNKER55"; motd[]= {"BUNKER55 ","ENJOY.",}; // Welcome message, two lines "," means 'new line' motdInterval=1; // if motd has multiple lines, how fast to show these in succession (default is 5 seconds). voteThreshold=0.33; // when one third agrees, this is enough to confirm a vote reportingIP=""; // private server - no reporting ("armedass.master.gamespy.com" to report to the master server) voteMissionPlayers=3; // start voting for missions when 3 players connect checkfiles[]={"HWTL\dta\data3d.pbo","dta\data3d.pbo"}; //list of files to check for identity kickduplicate=0; // do not allow duplicate id equalModRequired=0; // require equal mod class Missions {}; OFPSERVER Quote[/b] ]#!/bin/bash # # ofpserver: Operation Flashpoint Linux dedicated server control script # © 2003 BIStudio # OFP binary version must be 1.92 or later! # #======================================================================= #======== CONFIGURATION PARAMETERS ======== #======== MUST BE EDITED MANUALLY TO FIT YOUR SYSTEM PARAMETERS ======== #======================================================================= OFP_DIR=/home/gr/ofp CONFIG=${OFP_DIR}/server.cfg PORT=2308 PIDFILE=/home/gr/ofp/ofp_server.${PORT}.pid RUNFILE=/home/gr/ofp/ofp_server.${PORT}.run LOGFILE=${OFP_DIR}/log.${PORT}.txt SERVER=${OFP_DIR}/server #======================================================================= case "$1" in start) if [ -f ${RUNFILE} ]; then $0 stop fi echo "Starting OFP server..." # file to mark we want server running... echo "go" >${RUNFILE} # launch the background watchdog process to run the server nohup </dev/null >/dev/null $0 watchdog & ;; stop) echo "Stopping OFP server..." if [ -f ${RUNFILE} ]; then # ask watcher process to exit by deleting its runfile... rm -f ${RUNFILE} fi # and terminate OFP server process if [ -f ${PIDFILE} ]; then kill -TERM $(< ${PIDFILE}) if [ -f ${PIDFILE} ]; then rm -f ${PIDFILE} fi fi ;; status) if [ -f ${RUNFILE} ]; then echo "Server should be running..." else echo "Server should not be running..." fi if [ -f ${PIDFILE} ]; then PID=$(< ${PIDFILE}) echo "PID file exists (PID=${PID})..." if [ -f /proc/${PID}/cmdline ]; then echo "Server process seems to be running..." fi fi ;; check) echo -n "OFP directory: ${OFP_DIR} " if [ -d ${OFP_DIR} ]; then echo "OK" else echo "MISSING!" fi echo -n "Server executable: ${SERVER} " if [ -x ${SERVER} ]; then echo "OK" else echo "ERROR!" fi echo "Port number: ${PORT}" echo -n "Config file: ${CONFIG} " if [ -f ${CONFIG} ]; then echo "OK" else echo "MISSING!" fi echo "PID file: ${PIDFILE}" echo "RUN file: ${RUNFILE}" ;; restart) $0 stop $0 start ;; watchdog) # this is a background watchdog process. Do not start directly while [ -f ${RUNFILE} ]; do # launch the server... cd ${OFP_DIR} echo >>${LOGFILE} "WATCHDOG ($$: [$(date)] Starting server (port ${PORT})..." ${SERVER} >>${LOGFILE} 2>&1 -server -config=${CONFIG} -port=${PORT} -pid=${PIDFILE} if [ -f ${RUNFILE} ]; then echo >>${LOGFILE} "WATCHDOG ($$: [$(date)] Server died, waiting to restart..." sleep 5s else echo >>${LOGFILE} "WATCHDOG ($$: [$(date)] Server shutdown intentional, watchdog terminating" fi done ;; *) echo "$0 (start|stop|restart|status|check)" ;; esac Share this post Link to post Share on other sites
SeppSchrot 0 Posted June 17, 2007 For a first test, try if can start the server direct, that is, without the ofpserver script. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> cd to the dir, where the server binary resides and type ./server -config="server.cfg" if that succeeds, stop it and do the same with absolute paths for the binary and the config file. Lastly check if all values in the ofsserver script comply with your paths. Share this post Link to post Share on other sites
HitmanFF 6 Posted June 17, 2007 ofpserver isn't found, which means that it's either not present (not likely, unless you named it OFPSERVER in capitals like in your code sample - linux is case sensitive as far as file names goes), or ofpserver isn't set executable: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">chmod u+x ofpserver will sort that. Share this post Link to post Share on other sites