Lovely stuff, guys. A big thankyou and congrats on the new ECP!
Now, upon checking it out, I noticed this saddening thing:
ECP currently only works on Windows servers, the linux server has some unexplainable issues we are currently trying to fix.
Naturally, that was completely unacceptable to me so I decided to find out why and fix it.
Let me guess, you've had problems with
preprocessFile not loading ECP_settings.sqf, right?
The reasonAfter spending a few hours hammering at the ofp linux server and using
strace, I found out why.
preprocessFile in the Linux OFP server seems to work differently from the one under Windows. The nifty trick with "..\something\other.sqf" doesn't work since the OFP linux deddy cant find the file.
Reason: the ofp server, on seeing
call preprocessFile "..\@ECP\ECP_Settings.sqf";
will try to open a file named
"scripts/../@ecp/ecp_settings.sqf"
That will fail, since there's no folder named "scripts".
The solutionIn the folder where you have the ofp server installed, create a new folder named "scripts":
mkdir scripts
Voilá! Problem solved, it seems ;D
I have yet to see any ill effects on this (I was worried the scripts in dta/scripts.pbo would be affected, but they're ok so far). However, further testing is needed. I'll report back if any problems pop up.
ECP+Linux hosting recipeThis of course assumes you already have the ofp server installed and set up alright. I'm not about to write a tutorial on that.
- Create a new, empty folder named "scripts" in the folder where ofp is installed.
- Before starting ofp with ecp, copy config.cpp, resource.cpp and sound.h to the ofp folder. (No, not scripts, dummy)
- Start the OFP linux server with ecp. Happeh!