Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - esraacs

Pages: [1]
1
by using lua scripting how can i give attack command to specific units like defense tower and air ballista ?
I tried this
createUnit('defense_tower', 0, startLocation(0))      
givePositionCommand(lastCreatedUnit(), 'attack',startLocation(0))
createUnit('air_ballista', 0, startLocation(0))      
givePositionCommand(lastCreatedUnit(), 'attack',startLocation(0))

and this
createUnit('defense_tower', 0, startLocation(0))      
givePositionCommand(lastCreatedUnit(), 'attack_on',startLocation(0))
createUnit('air_ballista', 0, startLocation(0))      
givePositionCommand(lastCreatedUnit(), 'attack_on',startLocation(0))

it gives that invalid command in both cases
how can give attack command to these units using lua scripting ?

2
Mods / 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)

3
I am using windows.  I dont want to use the build in .net .
I want a command to build specific project or file using build-mg-2010.bat. i dont have to build all the solution  :(.
help please?

4
Mods / Exception when using scripting fn during runtime
« on: 8 February 2015, 19:25:29 »

i am using megaglest with my ai engine . i use giveresource function during runtime .it  completes without exception.
when interface updates its status, it generates this exception
\source\glest_game\world\unit_updater.cpp::Glest::Game::UnitUpdater::updateProduce [2341] unknown

Please,Could you provide a solution to resolve this exception?
if you need more details i have a screenshot but there's no attachment button here :(

5
I am using megaglest with my ai engine in c++
i uses the following code :-

 ScriptManager script;
script.giveResource("gold", id, amount);

it gives me this error

AL lib: ReleaseALC: 1 device not closed

any clue how to resolve this issue ?

6
I build megaglest from a period of time with no errors
and i tried to build again alot of errors appears. I am using The CLI approach in windows.

(unwrapped code removed by tomreyn)

please, any help ?

Pages: [1]