View topic - [Solved] Synched commands using vanilla c interface



All times are UTC + 1 hour


Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: 27 Dec 2011, 21:50 

Joined: 20 Aug 2011, 19:21
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


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.