Jump to content

[Help] mod_dependecies isn't working for me and I have no idea why


Recommended Posts

I've looked at the article for mod_dependecies and I've also looked what others have done with mods that use mod_dependencies.

For some reason, I'm unable to actually to get it to work. I never actually get the message that says you need to download the other mod, like here:

Spoiler

Capture.PNG.9dc6461f017ce590883951e00a1a74f2.PNG

I ran a test with just an empty modmain and a basic modinfo.lua. The mod was uploaded to the workshop and dependent on another workshop mod ([API] Modded Skins was my example).

What exactly am I doing incorrectly? Any help would be appreciated.

This is my modinfo.lua

name = "Mod Dependecy Testing"
description = "Testing to see how mod dependency works"
author = "lakhnish_monster"
version = "1"

forumthread = ""

api_version = 10

dst_compatible = true
all_clients_require_mod = false
client_only_mod = true 

mod_dependencies = {
    {	
       	--only have a workshop dependency
        workshop = "workshop-2812783478",
    },
}

 

modinfo.lua

Edited by lakhnish
Link to comment
Share on other sites

2 minutes ago, Hornete said:

Your mod is a client mod. I do not imagine client mods can be dependant on server/all client require mods.

In my case, my client mod is reliant on another client mod in order for it to work. I'm guessing that's still the case?

Edited by lakhnish
Link to comment
Share on other sites

You can just include it into your mod. It is small enough and I've updated it so that only the API will only run once. And also not likely to update often.

Something like

if not WallPaper then
  -- load it first, and no need to worry about other mods that does this too.
  modimport("wallpaper.lua")--rename wallpaper/modmain.lua to another name.
end
--.............

 

Edited by Rickzzs
  • Thanks 1
Link to comment
Share on other sites

57 minutes ago, zarklord_klei said:

I unfortunately don't have the time to make the changes needed to support client mods having dependencies. 

Ah well. Thanks for the response though.

7 hours ago, Rickzzs said:

You can just include it into your mod. It is small enough and I've updated it so that only the API will only run once. And also not likely to update often.

Thanks for the response as well. I'll just leave it as is since people just need to do an extra click, so it's not too big an issue, but again, thank you.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...