JACoders / OpenJK

Community effort to maintain and improve Jedi Academy (SP & MP) + Jedi Outcast (SP only) released by Raven Software
GNU General Public License v2.0
2.03k stars 615 forks source link

Log file #297

Closed ghost closed 11 years ago

ghost commented 11 years ago

Hello!

My clan is running a windows dedicated server and we just installed OpenJK with latest JA+ and it works fine. Only issue is that games.log file is totally empty in the japlus folder so it seems it's not got written at all by the game. We use log files on daily basis so it would be good if this issue could be fixed somehow. OpenJK version is one from the 17th of June.

Regards

xycaleth commented 11 years ago

Log files are now written to My Documents\My Games\OpenJK\ of the user who is running the dedicated server. Sorry for the confusion!

ghost commented 11 years ago

Thanks for the heads up! :)

ghost commented 11 years ago

Yeah the host found that folder but there is only a base folder inside with an openjk_server.cfg file. Do you have any idea where can be the games.log file?

Razish commented 11 years ago

It will be in the folder of the mod you're running, e.g. My Games\OpenJK\japlus\games.log for me.

ghost commented 11 years ago

Weird is that even japlus folder isn't there. Only base. But I know for sure that we are running ja+ mod.

ShahradGH commented 11 years ago

Just to confirm:

We are using latest windows build not 17th June. link for it is here: http://builds.openjk.org/openjk-2013-06-29-e1f7c209-windows.zip

we have hard linked this folder, entire of it, and we cant see anything other than base\openjk_config.cfg

ensiform commented 11 years ago

games.log works for base here and this is a mod thing, so either JA+ is broken or your config is not set correctly.

g_log should be games.log

If g_logSync is set to 0 you wont see the log until the process has shutdown.

ShahradGH commented 11 years ago

Which config are you referring to??? I mean if we switch to linuxjampded and ti starts logging, do we take it as a correct config setup??

Thanks,

ensiform commented 11 years ago

Its not relevant to the engine used. Presumably where-ever you launch the server from has a +exec server.cfg type thing?

games.log is entirely managed by jampgame

The old auto generated configs were called jampserver.cfg iirc, is probably cluttered with stuff in your install folder/japlus and base. They are now openjk_server.cfg (This is the server equiv of the client's config that is saved always)

ShahradGH commented 11 years ago

+set dedicated 2 +set net_ip "" +set net_port "" +exec server.cfg +set fs_game japlus

You mean this?? ignore and , just decided o keep them hidden, i assure they are only IP and port information in this ""'s

ensiform commented 11 years ago

server.cfg is the config im talking about

or just check the server console itself by doing /g_log and /g_logSync to see what they are set to.

ensiform commented 11 years ago

Just tested with base and default settings which is sync set to 0, games.log is created empty on first launch.

Map change and quitting causes the log to be written to.

This is not any different than it was before. If you want it always writing to disk you've needed g_logSync set to 1.

ShahradGH commented 11 years ago

ok i will see this is done if not so already, and update this in a moment!

ensiform commented 11 years ago

Seeing as theres no response I assume everything is fine?

ShahradGH commented 11 years ago

Hey ahh not yet, we r trying to sort it out. can you leave this open for another 2-3 hours. I will rpely when itsw done. shouldnt be long now?

ensiform commented 11 years ago

This doesn't appear to be any issue with OpenJK. You just need to find the file.

ShahradGH commented 11 years ago

Just wanted to clarify, that this was indded the case.

File found and issue has been averted.

For all future people, you can set a +fs_home path so that this can be set elsewhere!!!

Thanks guys,