Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
C-Script to Lite-C help.. #237364
11/19/08 20:43
11/19/08 20:43
Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
F
flutschi Offline OP
Junior Member
flutschi  Offline OP
Junior Member
F

Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
HiHo,


I just can't get it.. i try now to write my hole project in Lite-C but sometimes i just can't figure out how its right..

for example:

my.move_vec_x = (key_e - key_d)*int(my.a_rennen_p_speed)*time; //vorwaerts, rückwärts

this code it works perfectly fine in C-Script.. i know its something with move_vec_x that i need to use the array thing.. but i can't figure out how this is gone work here..

I just want to walk forward and backward.. is it that hard than c-script? smirk


thx for any help


My System:
Intel Core 2 Duo CPU P8400 @ 2.26 GHz
4 GB Ram
NVIDIA GeForce 9600M GT
32 Bit Windows Vista
***********************************
Gamestudio Pro 7.50 / WED V6.875
Re: C-Script to Lite-C help.. [Re: flutschi] #237365
11/19/08 20:56
11/19/08 20:56
Joined: Oct 2007
Posts: 5,209
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,209
İstanbul, Turkey
time-> time_step

and

what are move_vec_x and a_rennen_p_speed, post where they defined too.


3333333333
Re: C-Script to Lite-C help.. [Re: Quad] #237375
11/19/08 21:45
11/19/08 21:45
Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
F
flutschi Offline OP
Junior Member
flutschi  Offline OP
Junior Member
F

Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
hmm yes, i forgot..

here they are

define a_laufen_p,skill40;
define a_rennen_p,skill41;
define a_stand_p,skill42;
define a_land_p,skill43;
define a_jump_p,skill44;
define a_walk_s,skill45;
define a_run_s,skill46;

define move_vec_x,skill98;
define move_vec_y,skill99;
define move_vec_z,skill100;



Last edited by flutschi; 11/19/08 21:45.

My System:
Intel Core 2 Duo CPU P8400 @ 2.26 GHz
4 GB Ram
NVIDIA GeForce 9600M GT
32 Bit Windows Vista
***********************************
Gamestudio Pro 7.50 / WED V6.875
Re: C-Script to Lite-C help.. [Re: flutschi] #237384
11/19/08 22:17
11/19/08 22:17
Joined: Oct 2007
Posts: 5,209
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,209
İstanbul, Turkey
ok you need to change your defines
like:

#define a_laufen_p skill40

no semicolons,no commas.


3333333333
Re: C-Script to Lite-C help.. [Re: Quad] #237386
11/19/08 22:23
11/19/08 22:23
Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
F
flutschi Offline OP
Junior Member
flutschi  Offline OP
Junior Member
F

Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
hmm now the defines are like this

#define a_laufen_p skill40
#define a_rennen_p skill41
#define a_stand_p skill42
#define a_land_p skill43
#define a_jump_p skill44
#define a_walk_s skill45
#define a_run_s skill46


#define move_vec_x skill98
#define move_vec_y skill99
#define move_vec_z skill100

but dont work..


My System:
Intel Core 2 Duo CPU P8400 @ 2.26 GHz
4 GB Ram
NVIDIA GeForce 9600M GT
32 Bit Windows Vista
***********************************
Gamestudio Pro 7.50 / WED V6.875
Re: C-Script to Lite-C help.. [Re: flutschi] #237992
11/23/08 23:34
11/23/08 23:34
Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
F
flutschi Offline OP
Junior Member
flutschi  Offline OP
Junior Member
F

Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
I found out that the problem in the code is this

my.move_vec_x = (key_e - key_d)*int(my.a_rennen_p_speed)*time_step; //vorwaerts, rückwärts

now, what is the Lite-C code for int() in C-Script?


My System:
Intel Core 2 Duo CPU P8400 @ 2.26 GHz
4 GB Ram
NVIDIA GeForce 9600M GT
32 Bit Windows Vista
***********************************
Gamestudio Pro 7.50 / WED V6.875
Re: C-Script to Lite-C help.. [Re: flutschi] #238003
11/24/08 01:12
11/24/08 01:12
Joined: Oct 2008
Posts: 218
Nashua NH
heinekenbottle Offline
Member
heinekenbottle  Offline
Member

Joined: Oct 2008
Posts: 218
Nashua NH
integer(x)


I was once Anonymous_Alcoholic.

Code Breakpoint;
Re: C-Script to Lite-C help.. [Re: heinekenbottle] #238008
11/24/08 01:42
11/24/08 01:42
Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
F
flutschi Offline OP
Junior Member
flutschi  Offline OP
Junior Member
F

Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
oh wow.. couldn't think of that alone smirk

well, couldn't see the forest because the trees smile


My System:
Intel Core 2 Duo CPU P8400 @ 2.26 GHz
4 GB Ram
NVIDIA GeForce 9600M GT
32 Bit Windows Vista
***********************************
Gamestudio Pro 7.50 / WED V6.875

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