2025-07-18 05:30 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002658Spring engineGeneralpublic2011-09-25 11:22
ReporterGoogle_Frog 
Assigned Tohoijui 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version0.82.7+git 
Target VersionFixed in Version 
Summary0002658: console and infolog broken
DescriptionMost chat and commands no longer show up on the console or in infolog. The actions cause no change to the console and do not appear in infolog.txt.

Most / commands do not appear, '/luaui reload' and '/luarules reload' display no loading data, I can tell that these commands still occur.

Echos do not write to console or infolog.

'/give [invalid object]' prints a warning. For example '/give bla' yields '[f=0020752] [] Warning: [GiveUnits] bla is not a valid object-name'
Additional InformationEngine: spring_0.82.3-3460-ge10dbf7
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0007391

hoijui (reporter)

for commands, it is this line:
https://github.com/spring/spring/blob/develop/rts/Game/UnsyncedGameCommands.cpp#L142
changing it from DEBUG to the default level would make the raw chat command appear again. is that required for non-engine handled chat commands?
i guess i made it this way cause it still prints out the command in in other form.

as for chat, i don't know what the problem is that you refer to. i get chat just fine.
1. [enter]
2. "bla"
3. [enter]
-> "bla" appears in the in-game chat window

~0007393

Google_Frog (reporter)

Debug is still good to show. It makes the infolog useful, games should implement their own chat box to hide these things if they want.

~0007394

hoijui (reporter)

could you please answer my questions?

~0007395

Google_Frog (reporter)

Give me about 15 hours for me to have enough time to go through starting spring and testing.

~0007396

hoijui (reporter)

This post has a quote and the text "First off. 15 minute game, this is my ENTIRE infolog:":
http://springrts.com/phpbb/viewtopic.php?p=501153&sid=80df6e64049dedd4945f1bb44de3fea1#p501153
that helped me some...

it seems like this problem only appears on windows.
As of now, it looks like the problem is, that LOG_SECTION_CURRENT is not set to "" by default, but rather to NULL (or unset).
How this is possible, i have no idea though. Maybe pre-processor stuff works different in mingw.

see:
rts/System/Log/Section.h
rts/System/Log/ILog.h

~0007405

hoijui (reporter)

MinGW does not merge constants as does GCC on linux. :/
FUCKER!

fixed with:
https://github.com/spring/spring/commit/1425c8e48050b39c3c2c30204d57a84a5f8e2ade
+Notes

-Issue History
Date Modified Username Field Change
2011-09-20 08:18 Google_Frog New Issue
2011-09-22 10:23 hoijui Note Added: 0007391
2011-09-22 10:27 hoijui Status new => assigned
2011-09-22 10:27 hoijui Assigned To => hoijui
2011-09-22 12:15 Google_Frog Note Added: 0007393
2011-09-22 17:39 hoijui Note Added: 0007394
2011-09-22 17:51 Google_Frog Note Added: 0007395
2011-09-22 22:13 hoijui Note Added: 0007396
2011-09-25 11:22 hoijui Note Added: 0007405
2011-09-25 11:22 hoijui Status assigned => resolved
2011-09-25 11:22 hoijui Resolution open => fixed
+Issue History