Author Topic: Trying to move unit  (Read 1336 times)

esraacs

  • Swordman
  • *
  • Posts: 14
    • View Profile
Trying to move unit
« on: 4 June 2015, 17:08:30 »
i am using AI engine with megaglest. i recieved this error how to avoid it

Trying to move unit [100009 - archer] into occupied cell [x [14] y [14]] and field = 0, unit already in cell [100010 - barracks]
I am using functions in world class in c++
Ex givePositionCommand(unitID, command, pos) 
createUnit(unitID, faction, pos)
pos= startlocation(0)
« Last Edit: 4 June 2015, 23:35:52 by esraacs »

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Trying to move unit
« Reply #1 on: 11 June 2015, 09:23:37 »
I think the error message is quite obvious!
You try to create a unit at the start position, but this field is already occupied because there is the main buildig already.

This is no bug, but you have problems modding the engine. I will move this to the mods section
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

 

anything