I was wondering how to make a popup message box in Civ IV. The reason I want to know is that I plan to use the message boxes to make sure code I call is really being called before I write the real code.
I tried writing to a log file but it didn't seem to work (see below)
I couldn't find the 'Events.log' in the logs folder even though I enabled event logging in the ini file.
; Enable the logging system
LoggingEnabled = 1
; Overwrite old network and message logs
OverwriteLogs = 1
; Enable rand event logging
RandLog = 1
; Enable message logging
MessageLog = 1
I tried writing to a log file but it didn't seem to work (see below)
Code:
'Report an Event to Events.log ' message = "BeginTurn event called" CyInterface().addImmediateMessage(message,"") CvUtil.pyPrint(message) return 0
; Enable the logging system
LoggingEnabled = 1
; Overwrite old network and message logs
OverwriteLogs = 1
; Enable rand event logging
RandLog = 1
; Enable message logging
MessageLog = 1
Comment