Strange lack of error messages

Thalassicus

Bytes and Nibblers
Joined
Nov 9, 2005
Messages
11,057
Location
Texas
In most files I get error messages properly, but in some files I don't. I'm attempting to change NaturalWondersCustomMethods.lua. I know there's an error somewhere in my changes, but lua.log shows only a blank line where the error message should be:

Code:
[14747.648] Map Script: Placing Natural Wonders.
[14747.757]

I have these config.ini settings:



Spoiler :
; Enable message logging
MessageLog = 1

; Enable rand event logging
RandLog = 0

; Enable synchronization logging
SynchLog = 0

; Enable AI logging
AILog = 0000000001

; Enable Builder AI logging
BuilderAILog = 0

; Enable Serialization logging
SerializationLog = 0

; Enable Tutorial logging
TutorialLog = 0

; Enable Tutorial debug window
TutorialDebug = 0

; Split AI Logging into separate files for each Player & City
PlayerAndCityAILogSplit = 0000000000

; Overwrite old network and message logs
OverwriteLogs = 0000000001

; Enable the logging system
LoggingEnabled = 0000000001
 
It's not the file that matters, it's what C++ calls the Lua chuck. You can prove this to yourself by calling the same bugged function from Fire Tuner (or from some other part of your Lua code that doesn't have this problem). Error reporting was broken for all GameEvents calls to Lua for almost exactly a year (from pre-G&K patch to pre-BNW patch). That's fixed now. But Lua called from a registered UI button is still broken. Maybe others that I'm not aware of.

Some good news is that they fixed the 60 char truncation, so you can now see the file name.

More details and workaround here.
 
Back
Top Bottom