BuckWild said:
ModGuy said:
Fixed.
What I did was remove my old method of loading vanilla mods and settled for file paths.
Question. Did you plan on dedicating static file paths to the vast amount of vanilla mods by category and/or slot as well as ensuring the said file paths would be used by future mods?
Kind of seems like an ineffective process, since everyone's file path preference would likely differ greatly.
If not, enlighten me on what you tried to do by implementing that method initially, because I just can't see you having done that without a solid reason regarding functionality.
You misunderstand. The loading process is a bit of a pain to explain so I'll try and simplify it.
The loader has functionality for loading file paths, as does SDT. SDT also has the functionality to load a fileReference.
Filereference objects are used to allow a user to select a file using a dialog box, file paths are not available for the purposes of security.
Because the loader predominantly uses paths (From Mods.txt etc) I had to find some way to manually load the raw data of a fileReference.
This was achieved by checking if the mod was vanilla or loader and performing the necessary action.
For loader mods I just process them as standard (I wish I had thought up something better back then heh), for vanilla I just pass them to SDT.
When I found out that SDT had the capability of loading file paths I decided to modify the loading algorithm to simply exchange links and subsequently make everything much more reliable.
What I forgot about was that you cannot retrieve the file path from a fileReference object and as such when the data reached the loading point in the algorithm, no path was passed and it was ignored.
This is what caused the issue, it wasn't a choice made on a whim.
The actual algorithm is a terrible mess but it works, it has many more checks and steps but it wouldn't help my explanation to include them.