Python Question

I was thinking that some helpful community member with some insight would be able to help you out. Because I'm not even sure whether or not you know about the Python Debug Log?

Actually, debugging may not be necessary.. I don't pretend to understand why, but since I implemented the changes you suggested in post #38, they seem to work fine together. I'll even post a screenshot as proof. That is from the first and only game I've played since changing the code, so I'm really hoping I don't have another Topkapi Palace situation - where sometimes it works, sometimes it doesn't, depending on Python's mood that day. :crazyeye:

HOWEVER, and I don't know for sure if this is related, but this is the first time I've noticed it - when I build my first unit of a new type (siege, gunpowder, etc.) the game pops up a message congratulating me on doing so, as it always does, except it says it built in the wrong city! The newly built unit spawns from the correct city, but it confuses me as to why all of a sudden the game gets confused where the unit came from. Again, see attached screenshot. :confused:
 

Attachments

  • huh.jpg
    huh.jpg
    46.6 KB · Views: 60
  • WTH.jpg
    WTH.jpg
    114.6 KB · Views: 64
HOWEVER, and I don't know for sure if this is related, but this is the first time I've noticed it - when I build my first unit of a new type (siege, gunpowder, etc.) the game pops up a message congratulating me on doing so, as it always does, except it says it built in the wrong city! The newly built unit spawns from the correct city, but it confuses me as to why all of a sudden the game gets confused where the unit came from. Again, see attached screenshot. :confused:
Where is that message coming from? :confused:
 
Where is that message coming from? :confused:

Sorry for the slow reply. It is a message that pops up the first time you build a new unit type - I'm guessing most players turn it off in the settings somewhere, but I never bothered. In the screenshot attached to this post, I built my first Musketman in London, yet the message that popped up said I built it in Glasgow. As I said before, the unit spawned in London like it should have, I'm just puzzled as to why all of a sudden the game is getting confused about this. It has to be something in Python, as I haven't changed anything else recently, and this just started happening. :confused: Any thoughts?
 

Attachments

  • reg.jpg
    reg.jpg
    113.3 KB · Views: 57
Does anyone know where the code generating this pop-up is can be found?
 
It sounds to me like the city ID is getting confused, somehow. Perhaps I'll take a closer look at it myself... This calls for debugging, nonetheless.
 
Back
Top Bottom