Page 1 of 1

[SOLVED] Random Tracks pool includes stock tracks even if they aren't in the levels directory

Posted: Thu Dec 12, 2019 2:33 am
by hajducsekb
Stumbled upon this bug some time ago, forgot about it, but then held a random track session consisting only of bonus tracks, so I was reminded of it.

Reproduction: Place any custom track (only one, since we want to reproduce the issue) into the levels folder. Remove all stock tracks from here. Launch RVGL, and turn on the Random Tracks option. Start a race.
Expected behaviour: The one custom track that was put into the folder gets loaded, since only that one can be randomized.
Actual behaviour: There's at least an 80% (4 tracks unlocked by default, 1 custom track) chance of a stock track being loaded by the game, and the game crashing out. It tries to find the inf file, but can't, returns an error (cannot find ...), then quits to desktop. I will upload re-volt.log, although I doubt that it will have important information regarding this issue.
Note: When I turn the Random Tracks option off, I see all stock tracks as locked, and I can't choose them.

re-volt.log file (Ubuntu Pastebin)

Thanks in advance! ;)

Re: Random Tracks pool includes stock tracks even if they aren't in the levels directory

Posted: Thu Dec 12, 2019 9:43 am
by 607
I would agree. This because when you remove cars from your installation, they are not picked by the Random Cars option anymore.
Of course if this would be changed the game would still crash upon loading a demo.

Re: Random Tracks pool includes stock tracks even if they aren't in the levels directory

Posted: Tue Dec 17, 2019 8:00 am
by Huki
Fixed, thanks for the report.

A possible workaround in current versions: scroll through all stock tracks such that the "Locked" is displayed on each of them. Then go back and turn on random tracks option. I believe this should cause the missing stock tracks to no longer be selected.

Re: Random Tracks pool includes stock tracks even if they aren't in the levels directory

Posted: Tue Dec 17, 2019 3:16 pm
by hajducsekb
That is awesome to hear! And I can confirm that scrolling through before turning on random works. (: