Page 1 of 1

[Solved] Synched commands using vanilla c interface

Posted: 27 Dec 2011, 21:50
by ljd
Command ID must be set to -1
Thanks to abma for pointing me in the right direction.

Original post:

Is anyone familiar with the following error?
[f=0000010] Unhandled net msg (76) in server from 0

I wanted to test out a Skirmish AI agent using the plain c interface (I used NullAI as a base.) Using the vanilla c interface, I can receive events and send unsynched commands successfully, but synched commands do not take effect. The synched commands (COMMAND_UNIT_MOVE, COMMAND_UNIT_BUILD, etc) return with no error (return value = 0), but the agent does not carry out the command. The only error I get is the above "Unhandled net msg".

This was on spring 84 with ba 7.62. I'm going to compile Spring 85 and test with the latest ba, but I think this is some silly mistake on my behalf I just can't seem to grasp. Thanks for the help!

AIExport.h
http://pastebin.com/NC7GE5rk

AIExport.cpp
http://pastebin.com/MK2RK56e