Server Help

ASSS Questions - Equivalent template.sss?

Samapico - Wed Dec 29, 2010 12:50 pm
Post subject: Equivalent template.sss?
Is there something like an equivalent for template.sss for ASSS? Or some .set format file, or some .cfg/.conf file with all the server settings?

I'm looking to make some Subgame -> ASSS mass conversion tools, and this could be useful to cleanup the subgame-only settings, and perhaps convert them properly.

OR if someone listed which settings are specific to subgame, it would do as well.
Arnk Kilo Dylie - Wed Dec 29, 2010 1:41 pm
Post subject:
You could always grab server.set when doing ?quickfix in an asss zone. However even you must realize that asss is not really meant to use settings files the same way as subgame. Worry about the client side settings only, honestly.
L.C. - Wed Dec 29, 2010 8:05 pm
Post subject:
Arnk Kilo Dylie wrote:
You could always grab server.set when doing ?quickfix in an asss zone. However even you must realize that asss is not really meant to use settings files the same way as subgame. Worry about the client side settings only, honestly.
I think you're missing the point. Of course some things won't convert to ASSS because they either they don't exist or.. they don't exist!

For the things that are similar in function, either a compromise has to be made or a mathematical formula to convert a Subgame value to an appropriate, valid, and safe ASSS value.

That's the whole purpose of a converter: to try and get as much data from one format converted to another.

It sure makes it easy to do some things.
Arnk Kilo Dylie - Wed Dec 29, 2010 8:33 pm
Post subject:
Okay but if you try to convert server settings you are probably just making more work for yourself. A good amount of subgame server settings (not just merely some) are completely obsolete, nontrivial to port, or undocumented. It's better to not plague a new asss instance with the same failure model of not having the appropriate settings delegated away from one arena.conf anyway.

What I'm saying is, I don't see how such a tool does anything other than promote bad practices.
Samapico - Wed Dec 29, 2010 9:19 pm
Post subject:
?.o

What I plan to do:

Code: Show/Hide

For each entry in spawn.cfg:
If the setting is not a subgame-only setting:
  Add it to some global .conf file

For each *.cfg file:
Create a new arena.conf
Add #include <some global .conf> at the beginning
For each entry in *.cfg:
  If the setting is not a subgame-only setting:
   Compare the value with the same entry in spawn.cfg
   If they are different, add it to arena.conf, otherwise, don't


If that promotes bad practices, please tell me why...

I don't care about all the server settings related to lag and such... but all the server settings that affect the gameplay somehow would be nice to have converted if needed... but most of them are compatible already anyway. Being able to properly convert flag/soccer settings would be a plus, but I don't think I'll need that.
Dr Brain - Wed Dec 29, 2010 10:03 pm
Post subject:
Can you give an example of the settings you ARE planning on converting?

It seems to me the only things you should be copying over are client settings. The rest are going to have to be tweaked by hand anyway.
Samapico - Wed Dec 29, 2010 10:16 pm
Post subject:
I just have around 100 maps/arenas/events to convert... Most will just have custom ship settings, but ideally I want to preserve everything that can be preserved... I don't mind if I have to tweak stuff afterwards anyway, I just want it to do the dirty job.

And... if I just had a list of which settings are client, and which are server, that would help a lot.
Arnk Kilo Dylie - Wed Dec 29, 2010 11:06 pm
Post subject:
You won't break anything by just sticking in the subgame settings file contents or #including it. You can do a quick hack job to generate an AttachModules string for you based on the value of turf/flag/soccer settings, probably. Then you just need to do General:Map=appropriatefilename.lvl and you should use General:LevelFiles instead of Misc:LevelFiles.

(Misc:LevelFiles was deprecated as part of an effort to try not have both client and server settings in Misc:...)
Cheese - Thu Dec 30, 2010 12:47 am
Post subject:
the great part about asss is that you can just #include that entire file at the top, and then overwrite anything by having the same setting further down, and anything that isnt used is ignored
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group