Gamestudio Links
Zorro Links
Newest Posts
Training with the R bridge does not work
by frutza. 11/20/25 22:32
Zorro 2.70
by Martin_HH. 11/20/25 17:37
Zorro 2.66
by Martin_HH. 11/20/25 17:28
ZorroGPT
by TipmyPip. 11/19/25 10:10
MRC.c and WFO
by 11honza11. 11/18/25 15:22
webGL
by Ice2642. 11/17/25 21:27
Camera always moves upwards?
by NeoDumont. 11/17/25 09:56
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (NeoDumont, TipmyPip, 1 invisible), 32,394 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
SkinnyApe, tritom, sheliepaley, Blueguy, blobplayintennis
19179 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,211
İstanbul, Turkey
Quad Online
Senior Expert
Quad  Online
Senior Expert

Joined: Oct 2007
Posts: 5,211
İ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,211
İstanbul, Turkey
Quad Online
Senior Expert
Quad  Online
Senior Expert

Joined: Oct 2007
Posts: 5,211
İ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 | 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