BigBang1112 / randomizer-tmf

Implements the infamous Random Map Challenge to TMNF and TMUF games without the use of OpenPlanet.
GNU General Public License v3.0
29 stars 4 forks source link

Game does not recognize me getting the author medal #14

Closed expected-ingot closed 4 months ago

expected-ingot commented 7 months ago

Hello! I have completed the track with an author medal but the program still shows "0 author medal, 0 gold". Any fix?

[03/08/2024 20:13:54, Information] STATUS: Fetching random track...
[03/08/2024 20:13:54, Debug] Requesting generated URL: https://tmuf.exchange/trackrandom?environment=0&vehicle=6&primarytype=0&difficulty=0
[03/08/2024 20:13:54, Information] STATUS: Downloading track 3993039...
[03/08/2024 20:13:54, Debug] Downloading track on https://tmuf.exchange/trackgbx/3993039...
[03/08/2024 20:13:54, Information] Discord RPC => Handling Response. Cmd: SetActivity, Event: (null)
[03/08/2024 20:13:54, Information] STATUS: Parsing the map...
[03/08/2024 20:13:54, Information] STATUS: Validating the map...
[03/08/2024 20:13:54, Information] STATUS: Saving the map...
[03/08/2024 20:13:54, Debug] Ensuring C:\Users\Tomek\Documents\Vsk5Online\Tracks\Challenges\Downloaded\_RandomizerTMF exists...
[03/08/2024 20:13:54, Debug] Preparing the file name...
[03/08/2024 20:13:54, Information] Saving the map as C:\Users\Tomek\Documents\Vsk5Online\Tracks\Challenges\Downloaded\_RandomizerTMF\A01-Race s.Challenge.Gbx...
[03/08/2024 20:13:54, Information] Map saved successfully!
[03/08/2024 20:13:54, Information] Saving the session data into file...
[03/08/2024 20:13:54, Information] Session data saved.
[03/08/2024 20:13:54, Information] STATUS: Starting the map...
[03/08/2024 20:13:54, Information] Opening C:\Users\Tomek\Documents\Vsk5Online\Tracks\Challenges\Downloaded\_RandomizerTMF\A01-Race s.Challenge.Gbx in TMForever...
[03/08/2024 20:13:54, Information] STATUS: Playing the map...
[03/08/2024 20:13:55, Information] Discord RPC => Handling Response. Cmd: SetActivity, Event: (null)
[03/08/2024 20:13:56, Information] Discord RPC => Handling Response. Cmd: SetActivity, Event: (null)
[03/08/2024 20:13:57, Information] Discord RPC => Handling Response. Cmd: SetActivity, Event: (null)
[03/08/2024 20:13:58, Information] Discord RPC => Handling Response. Cmd: SetActivity, Event: (null)
[03/08/2024 20:13:59, Information] Discord RPC => Handling Response. Cmd: SetActivity, Event: (null)
[03/08/2024 20:17:39, Information] STATUS: Ending the session...
[03/08/2024 20:17:39, Information] STATUS: Session ended.
BigBang1112 commented 5 months ago

Hi, uhm, took me a bit of time to figure out, but why the maps download in Vsk5Online folder? 😄

expected-ingot commented 5 months ago

I managed to make a symlink (redirect) from Vsk5Online to TrackMania folder. Maybe add a option to manually choose the TrackMania folder?

BigBang1112 commented 5 months ago

My guess is that symlinks dont work properly with FileSystwmWatcher, so I dont consider any change. Make sure your directory is not a symlink. This unfortunately depends on Microsoft implementations and abilities of native libs.

Custom UserData folder is a weird solution when I take in count that the method I use is the exact with what the game uses.

BigBang1112 commented 5 months ago

I think I have to add an additional flag to watch properties. Let's see

expected-ingot commented 5 months ago

My guess is that symlinks dont work properly with FileSystwmWatcher, so I dont consider any change. Make sure your directory is not a symlink. This unfortunately depends on Microsoft implementations and abilities of native libs.

Custom UserData folder is a weird solution when I take in count that the method I use is the exact with what the game uses.

Nono, I meant to fix the issue I created a symlink, so the "vsk5online" folder redirects to the TM folder. The bug is more why it defaults to Vsk5Online even after uninstallation and deletion of the game

BigBang1112 commented 4 months ago

Looks to be really the most edge case possible. The UserData folder is detected by using the Documents + UserSubDir in Nadeo.ini file. I think if this UserSubDir is properly set, it will work as supposed.