FS#5 - elevators in replays

Attached to Project: X-Moto
Opened by Anonymous Submitter - Thursday, 14 June 2007, 11:21 GMT
Last edited by Gaivota (gaivota) - Wednesday, 16 September 2009, 11:02 GMT
Task Type Bug Report
Category Lua script
Status New
Assigned To No-one
Operating System All
Severity High
Priority High
Reported Version svn
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 1
Private No


xmoto -replay bugs/onMacWontWork.rpl when you press forward on this scripted level, the elevator is not at the correct position

i'll attach the replay once it will be possible to do it.

severity is high, because it affects highscores
This task depends upon

Comment by Nicolas Adenis-Lamarre (aspegic500) - Thursday, 14 June 2007, 17:56 GMT
example file
Comment by AvovA (avova) - Sunday, 02 December 2007, 23:44 GMT
I have the same problem in linux all the time. Just watch jarod adventure 2.1 WR and rewind forward a lot.
Comment by Nicolas Adenis-Lamarre (aspegic500) - Saturday, 01 March 2008, 17:52 GMT
in level _tut1_
function OnLoad()
Game.SetKeyHook("A", "hehe")
return true

function hehe()
Game.SetDynamicEntityTranslation("MyStrawberry0", 0, 1, 100, 0, 100)

to test, add in:
void SDynamicEntityMove::performMove(MotoGame* v_motoGame, int i_nbCents) {
printf("From %.2f to %.2f\n", p->DynamicPosition().y, addvy + p->DynamicPosition().y);

you'll see that translation can be not perfect (because it uses float)

it can do one move to much or less BY cycle ; then have a big change on multiple move.
Comment by the_only_dude (the_only_dude) - Saturday, 28 June 2008, 14:28 GMT
a way to fix this problem would be to store the dynamic blocks positions in the replay instead of just the events which made them move.

we could add this to the new replay file format that we'll have to do for replays with chipmunk blocks.
Comment by the_only_dude (the_only_dude) - Wednesday, 30 July 2008, 12:33 GMT
a way of solving it would be to unallow forward jumps when there's dynamic blocks in a replay.
Comment by tuhoojabotti (tuhoojabotti) - Monday, 29 December 2008, 12:10 GMT
show dynamic blocks in rpelays as ghosts? would be cool :P