need help converting stratego 2 from AUM11 to lite-c

Posted By: Muhsin

need help converting stratego 2 from AUM11 to lite-c - 06/29/10 13:21

Hi!

I have converted stratego 2 from c-script to lite-c, but it doesn't work correctly(for instance, the guards is moving oddly). so I need help to solve these problems.

here is the converted code:
http://dl.dropbox.com/u/5394772/stratego%202%20lite-c.rar

please take a look at it and see if you can help me convert it correctly.


thanks!

- Muhsin Kaymak
Posted By: Aku_Aku

Re: need help converting stratego 2 from AUM11 to lite-c - 07/02/10 17:12

What is the purpose this statement in move_unit function?
Code:
while(mouse_left == 1) {wait(1);}


And how should control the moving of the guards?
Posted By: Widi

Re: need help converting stratego 2 from AUM11 to lite-c - 07/02/10 18:37

The
while(mouse_left == 1) {wait(1);}
is waiting till the mousebutton is release from selecting the units, that code is right.

EDIT:
following line in selected_unit() is false:
vec_set(my, you);
should be:
vec_set(my.x, you.x);


Posted By: Aku_Aku

Re: need help converting stratego 2 from AUM11 to lite-c - 07/02/10 18:52

I played a little bit with controlling the guards.
I have got a message something like this:
Error E1340
Not enough entities reserved (1000)
Posted By: Lukas

Re: need help converting stratego 2 from AUM11 to lite-c - 07/02/10 21:44

Try setting max_entities to a higher value.
© 2024 lite-C Forums