Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (AndrewAMD), 14,661 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 Offline
Senior Expert
Quad  Offline
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 Offline
Senior Expert
Quad  Offline
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