cosimo
Registered
Hi,
I'm trying to save files in the same place where rF2 saves the settings/setups/realroad rubber etc...
However, the track name bit seems to be wrong sometimes:
http://isiforums.net/f/showthread.p...-for-rFactor-2?p=359706&viewfull=1#post359706
In particular, ScoringInfoV01.mTrackName sometimes is not what rF2 is using to save its files.
Where can I get the real track name?
I'm trying to save files in the same place where rF2 saves the settings/setups/realroad rubber etc...
However, the track name bit seems to be wrong sometimes:
http://isiforums.net/f/showthread.p...-for-rFactor-2?p=359706&viewfull=1#post359706
In particular, ScoringInfoV01.mTrackName sometimes is not what rF2 is using to save its files.
When trying to load/save a best lap, I need to know the name of the track and the class of the vehicle.
I'm getting the vehicle class by looking at VehicleScoringInfoV01.mVehicleClass and that works fine.
I'm getting the track name by looking at ScoringInfoV01.mTrackName and that seems to not work correctly in some cases.
In most cases it's fine, but f.ex. in VEC or other leagues that make their own event rfmods, the track name is not the same as rF2 is using.
For example, in the VEC Le Mans event, the track name is "Lemans" and there (UserData\player\Settings\Lemans\) rF2 saves all files, realroad, setups, etc...
When my code tries to save the best lap file, using ScoringInfoV01.mTrackName it doesn't get "Lemans" as expected but it gets back "Race 8 - 24 hours of Le Mans" and thus the load/save procedure fails because there's no such folder.
I'm hoping some plugin developer or ISI folks can help here, cause I can't find the information I need in the plugin data structures...
Where can I get the real track name?