It was an indent problem - everything works fine now.
Announcement
Collapse
No announcement yet.
Python - Trouble moving variables between functions
Collapse
X
-
Originally posted by vovan
Trip, I might just be stupid, but... Could you explicitly say how to enable these logs you speak of?I enabled all the logging options in the ini file (changed to 1, except hidepythonexceptions which I set to 0) but nothing ever showed up in the My Games\Civ4\Logs directory. Am I looking in the wrong place? Or is it because no logs were generated, so there's nothing to look at?
Comment
-
Originally posted by Trip
Hmmm... You set LoggingEnabled=1 in the .ini? It should create a number of logs in the logs folder every time you run the game.
Comment
-
Originally posted by Trip
You should only want/need it in the main CivIV.ini file.
Comment
-
Indenting is actually rather helpful. If you had misplaced a { or } in C++, or (worse) a ( or ) in LISP, it wouldn't have been more obvious, would it?
That is why i prefer to work with tools like Visual Assist X that place { } ( ) " etc. automatically and indent the code accordingly.
Comment
-
Originally posted by stud1294
You are right. I was thinkining about that from the parser point of view, and not the programmer point of view. It is much far easier for a parser to distinguish between blocks when using characters to delimit them, than by using indentation.
That is why i prefer to work with tools like Visual Assist X that place { } ( ) " etc. automatically and indent the code accordingly.
b) you still can use () {} in comments
Code:if bla condition: #{ do something #}
Comment
Comment