Bad STARTPOS use on some custom track since RVGL 19.0907

Report issues or bugs in RVGL or ask for help regarding any Re-Volt topic.
User avatar
SebR
Posts: 168

Bad STARTPOS use on some custom track since RVGL 19.0907

Unread post by SebR » Sun Oct 31, 2021 12:19 am

Hi

If you try the track Garage on RVGL 21.0930 you get this at start :

Image

On the .INF file you can see

Code: Select all

STARTPOS	0.0.0				;Start position of the car
STARTPOSREV	-13311. 37. 18925		;Start position of the car
In that case RVGL start a normal race with STARTPOSREV but this track have no reversed way
If you change .INF like that :

Code: Select all

STARTPOS	0.0.0				;Start position of the car
STARTPOSREV	0.0.0		;Start position of the car
The track will start as it does with Re-Volt 1.1 and 1.2 ...

So WHY STARTPOS and STARTPOSREV are inverted in that case ?
I tryed all build since 18.1126 and this bug appear from 19.0907 to 21.0930
Damn DROPBOX !!! If you found broken link PM me

AlicebanD an English voice that you must discover !!
User avatar
VaidX47
Administrator
Posts: 125
From: 333

Re: Bad STARTPOS use on some custom track since RVGL 19.0907

Unread post by VaidX47 » Sun Oct 31, 2021 5:06 pm

Nice catch, I've tested how it reacts if it does have a reversed version by copying needed files, and apparently the game uses the needed values for reversed.

The problem appears from interpreting the third axis number (which should be plain 0), however the newer game versions take the first STARTPOSREV value for the third STARTPOS. So the game maybe thinks X is 0.0, Y 0 (or 0.0?) and Z -13311, it expects to have space and the space is only before the X value in REV.
If you take out at least one dot in STARTPOS, the problem is fixed as well. Normally you should separate axis by space, not dots, since I assume the game should interpret dots as decimal points. Developers probably did not see it coming while tweaking the .inf interpretation, since most tracks probably separate these values with space.
Nonetheless the XYZ and/or separator interpretation in recent RVGL versions was broken in some way.

There was an issue on android versions with reading certain .inf files and they eventually fixed it, however that likely broke unusual value separations.
aka Vaid; >[MediaFire Stuff]<
User avatar
SebR
Posts: 168

Re: Bad STARTPOS use on some custom track since RVGL 19.0907

Unread post by SebR » Sun Oct 31, 2021 6:06 pm

I just tryed this track with old 0916 patch and it simply crach... adding space between 0 and everything work

Perhaps it's better to update this track
Damn DROPBOX !!! If you found broken link PM me

AlicebanD an English voice that you must discover !!
Post Reply