News:

SimuTranslator
Make Simutrans speak your language.

Compiling a no-graphics server in MSVC++?

Started by jamespetts, February 22, 2011, 01:47:27 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jamespetts

I don't know whether the developers have tried this before: what's the best way to go about it? Is it just a matter of adding/removing the right .cc files to the project, or are there any preprocessor definitions needed?

Dwachs


Ashley

Planning on setting up a Simutrans experimental server James?

jamespetts

Dwachs,

thank you :-)

Timothy,

At the moment, I'm trying to release Experimental 9.3 including and include in that release a compiled server version to make it easy for people to set up their own servers without having to compile from source themselves. I haven't decided whether to set up a server myself yet, as I haven't looked into what that might entail. You have some experience in running servers, I think - how do you find it?

Ashley

It's been a learning experience :) I keep meaning to write it all up in a blog article and publish the scripts I've written that assist with the maintenance of the server. I am also considering producing a "simutransd" (e.g. server) distribution and maybe Debian/Ubuntu packages specifically tailored to running as a server (FreeBSD too maybe) but we'll see.

jamespetts

That seems like an excellent idea! Do let me know when you publish your notes.

jamespetts

Hmm, I am having some trouble with this, unfortunately. I have set up a configuration that includes simgraph0.cc and excludes simgraph16.cc (by means of a preprocessor definition in those files), but, whenever I try to run the version created with simgraph0.cc enabled and simgraph16.cc disabled, perplexingly, I get the "*** No pak set found *** error. I should be grateful for any thoughts on how I might solve this one.

Edit: The problem appears to be that the pakselector does not work in command line mode, and I have to specify the pakset in simuconf.tab. It doesn't seem possible to set the pakset from the command line - would it be possible to add this feature?

Dwachs

Quote from: jamespetts on February 25, 2011, 11:21:16 PM
Edit: The problem appears to be that the pakselector does not work in command line mode, and I have to specify the pakset in simuconf.tab. It doesn't seem possible to set the pakset from the command line - would it be possible to add this feature?
-objects pak4711

There is also a command-lineoption to load addons (or not).

jamespetts

Ahh, I see - I missed that in the documentation invoked by simutrans - h. Oops!

Ashley


jamespetts

Thank you (as stated on the other thread) - very useful!