Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, VoroneTZ), 1,258 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
need help converting stratego 2 from AUM11 to lite-c #330712
06/29/10 13:21
06/29/10 13:21
Joined: Nov 2008
Posts: 196
the wrong place
Muhsin Offline OP
Member
Muhsin  Offline OP
Member

Joined: Nov 2008
Posts: 196
the wrong place
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


Come and play my new browsergame - Valley Of Wolves:

http://www.mafiacreator.com/ValleyOfWolves

Hurry and be the first to take over the different business' in the Valley Of Wolves, before anybody else does it!
And be the most feared MafiaBoss in the World!!
Re: need help converting stratego 2 from AUM11 to lite-c [Re: Muhsin] #331219
07/02/10 17:12
07/02/10 17:12
Joined: Sep 2009
Posts: 993
Budapest
Aku_Aku Offline
User
Aku_Aku  Offline
User

Joined: Sep 2009
Posts: 993
Budapest
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?

Re: need help converting stratego 2 from AUM11 to lite-c [Re: Aku_Aku] #331228
07/02/10 18:37
07/02/10 18:37
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
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);



Last edited by Widi; 07/02/10 18:47.
Re: need help converting stratego 2 from AUM11 to lite-c [Re: Widi] #331230
07/02/10 18:52
07/02/10 18:52
Joined: Sep 2009
Posts: 993
Budapest
Aku_Aku Offline
User
Aku_Aku  Offline
User

Joined: Sep 2009
Posts: 993
Budapest
I played a little bit with controlling the guards.
I have got a message something like this:
Error E1340
Not enough entities reserved (1000)

Re: need help converting stratego 2 from AUM11 to lite-c [Re: Aku_Aku] #331254
07/02/10 21:44
07/02/10 21:44
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
Try setting max_entities to a higher value.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1