So, you have two versions of your mod. The one that goes in the mods folder, and the other which is downloaded from the workshop. Can I make a function which checks if the user uses the workshop version?
Thanks in advance.
So, you have two versions of your mod. The one that goes in the mods folder, and the other which is downloaded from the workshop. Can I make a function which checks if the user uses the workshop version?
Thanks in advance.
You could assign a different URL for the workshop version as to the standalone version in the package.json, and then check it using mod.url
Change the ID to âworkshopâ.
I still donât get it. I donât want to make 2 seperate instances of the mod.
An instance is a running mod. Do you want your mod running twice at the same time? That wouldnât work.
I meant two different mod versiosns. One for the âmodsâ and a steam workshop one. I want to avoid that
Exactly why do you need to know if the mod is running on workshop or not? You wont be able too, unless you create an additional script in the workshop version adding âisWorkshop = trueâ to your global mod object.
I would like to check if a player uses the workshop version. If yes, then it will show a message, so the player knows the mod is updated for example.
The user isnât an idiot. I doubt that is necessary. If you want to check for workshop, use two versions. (just one extra script, simple)
You could check if the parent folder of the mod mods_ws
is. Might be the easiest way of doing it
No. Some people donât know about that version. Making 2 versions would be time wasting, since I update the mod when needed. It will be a double waste for a bug to be fixed, just to change the changelog, rar them both up, introduce new versions for both, upload each to here and workshop, just for the next week to push another update. If you can tell me a way, good.
@DzjengisKhan. Thatâs nice. Iâm wondering how to do that though. Hmm.
Maybe by using something named a search engine? lol, I think theres a âfind folderâ function in JavaScript. OR! Use GDT.getRelativePath() and check it for containing âmods-wsâ
What about âmods_wsâ?
How could you not think of that, even I did
EDIT: Oh wait, @DzjengisKhan said that already.