Hello,
i generated some log files to log some issues of my mod.
The problem is, when i delete the "\n" at the end of the log message, it gives me after map_restart an error.

********************
ERROR: SP_worldspawn: The first entity isn't 'worldspawn'
********************

Btw, for telling me "Bla bla mapping" the map is mp_toujane. After removing the "\n" the error happends. Evene with " " it happends.

I deleted the \n cause append do not need it.

Code:
thread earlmod\_logging::stats("L: Done loading stats file of Guid " + guid + " rank is " + self.stats["rank"] + " xp is " + self.stats["xp"] + "\n");
Code:
stats(mess)
{
	if(!level.logging["stats"])
		return;
	
	if(!isDefined(mess))
		return;
	
	file = openFile(level.logging_file["stats"], "append");
	fPrintln(file, mess);
	closeFile(file);
}
Any idea?

(Quake code i found for Worldspawn > Click me)