Publishing Maps with Custom Entities
Dalin Seivewright
0x0000221E Join Date: 2007-10-20 Member: 62685Members, Constellation
I've recently published a custom map that required the use of several custom entities and code. As such, to develop and test this map I required the custom code in my mods Output folder, along with all custom assets. When deploying the mod, the entire mod setup is published which includes the custom code etc. as well as the map.
I don't want the custom code to be published along with the map as that code should already exist on the server itself. Aside from writing a script to copy out the custom code before publishing, is there a config for publishing that lets us specify what folders/files we want to include in the Publish (or exclude?)
I don't want the custom code to be published along with the map as that code should already exist on the server itself. Aside from writing a script to copy out the custom code before publishing, is there a config for publishing that lets us specify what folders/files we want to include in the Publish (or exclude?)
Comments
Servers use the same mods that the clients do. If you want it on the server, it'll have to go to the client as well.
True, but the client will download the dependency server mods. Using an entity from a plugin for example, would essentially mean "this map depends on X plugin" which would require the server to be running said plugin otherwise the entities would not exist.
Having a dozen maps use a dozen different code bases for their entities is a bad idea IMO.
OH I see, I misunderstood. I thought you meant these custom entities were ones you made for the map, not ones others made that you're using.
I'm not sure how to setup a mod dependency like that.
It's currently not possible to simplify this as ns2 uses a old version of the steamworks api which doesn't support dependencies. So you have to trust server ops to set up mods correctly.
Because imho adding code to a map mod is a big NO GO maintenance wise.
It just forces mappers to also keep the given code up to date or otherwise their mod won't work, left alone it will make map mods useless once you stop maintaining them actively.
NS2 probably disregards that.
I use symbolic links for that in my projects. Thanks to this explorer extensions it's also pretty easy to manage and create symbolic links under windows.
Nice. Ill check that out. Thanks