2 registered members (Akow, tomaslolo),
1,536
guests, and 12
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
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
Serious User
|
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: Cowabanga]
#240912
12/13/08 11:41
12/13/08 11:41
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
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
Serious User
|
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
Expert
|
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: Cowabanga]
#240929
12/13/08 13:10
12/13/08 13:10
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
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
|
|
|
|