Martan wrote:
Okey! I came to the conclusion that I'm way over my head in this project. But would it be possible to just force an overlay in to the server instead of running it from quick mode? Like if I download a mod, put it in overlay and make a server running out of it. The way I've been doing it now is that I tried to implement the overlay mod into the server by changing map settings, making my own server start and settings php and so on. I've also set the path to the overlay mod in the start php but it won't change a thing.
Ok, let's back up a bit. Do you have a zombie package or a zombie overlay? Those two are different things. A package is a container for a map or many maps, and additionally any other resources. Overlay is something that is loaded on top of a package.
If you don't actually have a zombie package (and a specific map) but a zombie overlay (designed to be run on any vanilla map), then it needs to be done a bit differently, but the basic idea is the same.
Normally on a server, you'd use the named pipes, and you could do it exactly like you said. You'd run the server and start a script that would make the server load a map (package) with specific overlays defined in the script. In your case, for some unknown reason, named pipes don't seem to be an option but appears anonymous pipes work, so you can do this but you need that one extra step at start to let the server find the script in the right location.
Ok, now that we are talking about overlays and having to use anonymous pipes method, I'd say you have a few options:
Option a)
- have your customized script be at media/overlays/zombie/scripts/start_classic.php
- launch rwr_server, temporarily load into any map with your overlay using an XML command file called e.g. map1.xml located in your server root folder; run the command in console by calling
execute map1.xmlmap1.xml:
Code:
<command
class="change_map"
map="media/packages/vanilla/maps/map1">
<overlay path="media/overlays/zombie" />
</command>
- now, the overlay has been loaded, so the server can find the files provided by the overlay; call
metagame_selfstart start_classic.php to run the customized script
- the script will, if it's anything like vanilla start_classic.php, pick a new map to start in and use the zombie overlay if its defined in the script to be loaded
Option b)
- have your customized script be at media/packages/vanilla/scripts/start_zombie_classic.php
- launch rwr server, and call
metagame_selfstart start_zombie_classic.phpOption c) (this just in, didn't remember this one earlier)
- launch rwr server with command line parameter overlay=media/overlays/zombie
- call metagame_selfstart start_classic.phpIf you'd be able to use named pipes on the server, you could just start the script (located practically anywhere in the filesystem) without extra initial step.