Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/19/24 18:45
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
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
3 registered members (AndrewAMD, kzhao, 7th_zorro), 714 guests, and 7 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
Page 3 of 8 1 2 3 4 5 6 7 8
Re: [REQ] converting a code to lite-c [Re: Cowabanga] #240901
12/13/08 09:59
12/13/08 09:59
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
heinekenbottle that's exactly what happened to me when i tried to translate it. i believe that you'll need to implement different gravity(falling) code.



Ubi bene, ibi Patria.
Re: [REQ] converting a code to lite-c [Re: croman] #240908
12/13/08 10:57
12/13/08 10:57
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline OP
Expert
Cowabanga  Offline OP
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
but from where? dunno.

Re: [REQ] converting a code to lite-c [Re: Cowabanga] #240912
12/13/08 11:41
12/13/08 11:41
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
All the issues with the KH conversion all boil down to its gravity simulation.
Everything else seems to convert OK, for the others who have converted it too.

I dont think its an engine version issue, because the WDL version runes fine
under the current release. Only the lite-c version's gravity is warped.

If you take my one of our conversions (mine at least I know this works for),
and cripple the handle_gravity() function, then everything else works OK.

That should give you something to work from.

Hell, if you re-wrote the handle_gravity function we would all be grateful Im sure.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: [REQ] converting a code to lite-c [Re: EvilSOB] #240916
12/13/08 12:04
12/13/08 12:04
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
it has to do with c_move or c_scan function in lite-c. i dont know how and why is that so unfortunately.



Ubi bene, ibi Patria.
Re: [REQ] converting a code to lite-c [Re: croman] #240919
12/13/08 12:14
12/13/08 12:14
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
I dont know the why, but the problem lies in the start on the handle_gravity
function in the results to the c_scan.

From memory of my conversion then testing this code, this c_scan generates
different returns in WDL and c-lite, which doesnt make sense to me.
In WDL, it returns a -quants_depth if the object passes through the floor.
In lite-c, it returns a -1400 and something if the object passes through the floor.
I dont know why. But this same seemingly-wrong return value does cause problems
elsewhere in KHmovement, but minor compared to the gravity issue.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: [REQ] converting a code to lite-c [Re: EvilSOB] #240920
12/13/08 12:24
12/13/08 12:24
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline OP
Expert
Cowabanga  Offline OP
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
so ill replace handle_gravity function to you function and ill see wink.

Re: [REQ] converting a code to lite-c [Re: Cowabanga] #240921
12/13/08 12:36
12/13/08 12:36
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline OP
Expert
Cowabanga  Offline OP
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
AWESOME!! it doesn't work, error in player.c line 231.

Re: [REQ] converting a code to lite-c [Re: Cowabanga] #240925
12/13/08 12:51
12/13/08 12:51
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
what kind of error?



Ubi bene, ibi Patria.
Re: [REQ] converting a code to lite-c [Re: croman] #240927
12/13/08 13:03
12/13/08 13:03
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline OP
Expert
Cowabanga  Offline OP
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
'gravity' is not a member of 'ENTITY'

Re: [REQ] converting a code to lite-c [Re: Cowabanga] #240929
12/13/08 13:10
12/13/08 13:10
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Sorry no.
In player.C, in the player_action() function, in the while loop,
comment out the line handle_gravity(); that is all.
That will by-pass all the gravity problems.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Page 3 of 8 1 2 3 4 5 6 7 8

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