Codebuster: my code is working on IDE but not on match

Hi,

I’ve a problem may be some of us can help…

In codebuster, when I watch last replays my AI acts weird.

So, I load those weird games in IDE to debug it but the result is totally different !
The game lost in replay is won on IDE and my AI acts normally…

I’ve fall from 200th to 800th in gold league since this problem.

I’ve submitted maaaaaaany times, but my code still acts completely different on IDE and on match…

That’s sad, I’m out of idea on how to solve this.

My AI still ignores some ghosts in match and not on IDE…

Perhaps you always use the (default) team 0 for your AI in the IDE and overlook a basic problem when a real match assigns the team 1 to your AI?

No when you load a replay the team is also loaded so I would be able to reproduce the problem in the IDE.

I’ve done a quick test. I’ve made my busters syaing “go” at start of the game and after submit the correctly says “go”, so the submit seems to work…

Then I do not understand why my AI works differently in match than in IDE test games…

I’ve finally found the problem : a local variable not always initialized in a function.

And for some strange reasons, the behaviour is not the same in the IDE may be the compiling options differs.

What language is it? What does the initializer look like?

A very archaic one of course: C ^^