I’m working on something that generates levels and saves them in logs.
I’ve just figured out it seems that after a while the server file list(?) seems to get outdated and can’t find my log files anymore.
Reloading the server through RC fixes that, so I was wondering if the config file could have an option of reloading the server every once in a while (I’d do it every 30 seconds).
Or maybe if it could reload by itself once a certain number of files have been added to the directories (since it seems to allow a certain number of new files).
I figured out the server does that every 3 minutes.
So I’d only need to change the 3 minutes delay (180) to a 30 seconds delay at line 351 of Tserver.cpp
if ((int)difftime(lastTimer, last3mTimer) >= 30)
Problem is, I can’t figure out how to compile the gserver, what command line is used when compiling?
I stilb get the following errors (which are sensibly the same as I got without the IDE):
undefined reference to ‘boost::system::system_category()’
undefined reference to ‘boost::system::generic_category()’
__
undefined reference to ‘upnpDiscover’
undefined reference to ‘miniwget’
undefined reference to ‘parserootdesc’
undefined reference to ‘GetUPNPUrls’
undefined reference to ‘freeUPNPDevlist’
[…]probably more in that has to do with upnp.
__
undefined reference to ‘_imp___ZN5boost6thread9interruptEv’
[…]and a couple other imps with boost in their names.
I know it has to do with boost, but I’ve just installed it, and the system package and the filesystem package and the thread package.
I even tryed building it with gcc as the toolset… 4 hours later, it still bugs.
There might be missing references to were the library files are stored. Check the project settings for the libs. Also, when you compile boost, make sure to compile it for the right IDE/compiler. VisualStudio libs doesn’t work with Code::Blocks and vice versa.
Isn’t boost there so many people can download files at the same time? It’s kinda disapointing not to have it…
I noticed there are many versions of each library, which do you use?
Edit:
Now without boost, it loads the server but closes after a few… it seems to be when it tries to do filesystem_accounts.resync(); since changing the refresh increment makes it crash at different times.