include springsettings.cfg in infolog

include springsettings.cfg in infolog

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

include springsettings.cfg in infolog

Post by Forboding Angel »

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.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: include springsettings.cfg in infolog

Post by FLOZi »

Please, no.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: include springsettings.cfg in infolog

Post by hoijui »

will never happen.
we will also never use google accounts/auth for the forum and the lobby (and don't try to tell me you did not want to ask that next).

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).
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: include springsettings.cfg in infolog

Post by smoth »

FLOZi wrote:Please, no.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: include springsettings.cfg in infolog

Post by Forboding Angel »

hoijui wrote:will never happen.
we will also never use google accounts/auth for the forum and the lobby (and don't try to tell me you did not want to ask that next).
Actually that's a good idea that I've never thought of, but in The same sentence, fuck you, eat a Dick. I'm tired of you being a Fucking douchebag out of nowhere for no good reason.

Lolsmoth, who has trouble even getting infologs from his reporters is going to get springsettings.cfg too. Lolz.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: include springsettings.cfg in infolog

Post by knorke »

everybody fuck the fucking fuck up ok?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: include springsettings.cfg in infolog

Post by AF »

hmmmm could one do this via a widget/gadget printing out the necessary data at startup? Could one not print it out into a different file along with any other details?
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: include springsettings.cfg in infolog

Post by smoth »

Forboding Angel wrote:Lolsmoth, who has trouble even getting infologs from his reporters is going to get springsettings.cfg too. Lolz.
if the can find infolog they can find springsettings.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: include springsettings.cfg in infolog

Post by Forboding Angel »

Well apparently only knorke qt and I see the value in this. That's fine.

Switching directions... How easy is the pastebin Ali to work with? Ideally for me, I could have an option on the launcher that basically sends the most recent infolog to pastebin, that would be nice.

@AF, now that you mention it, it may be doable. I'm not sure if lua has access to root install dir tho (because of the widget/gadget that lurker posted ages ago). Maybe that isn't relevant anymore.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: include springsettings.cfg in infolog

Post by smoth »

Why would you need this forb you game "has no bugs.."

All fun loving poking aside, yes you could generate better debugging stuff. I'd be willing to bet such things can be gotten pretty easily.

Also feature place poops to the base spring dir farb. Use you thinking cap and you've got what you need.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: include springsettings.cfg in infolog

Post by knorke »

didnt support the idea, was just trying to prevent the thread going in the same direction as "lobby protocol aka porn porn"
---
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:

Code: Select all

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""
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: include springsettings.cfg in infolog

Post by Forboding Angel »

smoth wrote:Why would you need this forb you game "has no bugs.."
I have users. Nuff said. Don't need bugs in the game if your users aren't always so bright. :-) and yeah, good points
User avatar
koshi
Lobby Developer
Posts: 1059
Joined: 14 Aug 2007, 16:15

Re: include springsettings.cfg in infolog

Post by koshi »

We can easily work out what you want in sasi, Forb. The functionality to put all relevant files in a zip and upload that somewhere is already present in SL.
Post Reply

Return to “Engine”