Joined: 17 Nov 2005, 02:43 Location: Raegquitting Spring on 04/24/12
I have a suggestion that I think will vet a lot of support from other gamedevs, and that is that I would like springsettings.cfg to be printed out at the end of infolog, properly commented as to the beginning and the end of it of course. Would be wonderful for troubleshooting.
ask for both files (cfg file location is in infolog) or make some auto report tool that packs them together and sends them to you (btw, we have that plus much much more already, ask zydox).
I think that is best. What if somebody needs ctrlpanel.txt, script.txt or other files? You can not just pack everything into infolog. Also if infolog is spammed with settings stuff, what file would you use to catch lua errors?
combining files is also possible with with .bat files that you so love , I think it is something like copy infolog.txt+springsettings.cfg combined_file.txt
reading springsettings.cfg by Lua works too:
function widget:Initialize() fh = io.open("springsettings.cfg","r") while true do line = fh.read(fh) if not line then break end Spring.Echo (line) end end
That is with springsettings.cfg next to spring.exe Did not test if you have it in "my documents\" or elsewhere. Ideally you would first read infolog.txt to get the location of springsettings.cfg, it says "using default configuration source "C:\Spiele\spring-0.82.7.1\/springsettings.cfg""
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum