Resourceful Config

Resourceful Config

32M Downloads

[Bug]: Configurations cannot be created and consumed in fabric

baka4n opened this issue · 15 comments

commented

Bug Description

image
some code
image
image
image
image
image
image

How to Reproduce?

No response

Expected Behavior

No response

Version

1.0.20

Mod Loader Version

1.19.2-lastversion

Mod Loader

Fabric

Logs or additional context

No response

commented

Maybe I found the reason, it's because I'm confused, bakalib's fabric modid is written as dovehomemod, because I copied and changed the forge and didn't change the fabric, and it's more convenient to use variables later. I'm not too embarrassed to bother you for so long, hahahaha

commented

Is it a problem caused by the architectury API structure? Forge can be used, fabric can't be created and used, I saw that the ad code is written in a similar way, but my style is like this

commented

nvm 我只是瞎了,你能提供源代码而不是屏幕截图吗

okey. this repo is on github : https://github.com/dove-home-team/rewrite-save-mod-dove-home-mod
This code resource is located in the dovehomemod directory

commented

Can you check if the registerConfig method that you created is being called and see what the output of config is?

commented

It seems that two messages are printed in it without going through this, but it doesn't work, maybe it's a modmenu issue?

commented

image

commented

what are the errors you have there, because some of them may be related to the config

commented

The console only prints and clicks on the modmenu to show that I don't have a logo, and then it doesn't print that I have other errors

commented

Are there any sample tutorials?

commented

image
Is there a problem with this link?

commented

Or when introducing dependencies, use modApi

commented

the icon error is from fabric because you have something wrong in your fabric.mods.json but it shouldnt affect this, architectury does load stuff differently so make sure the config button isnt present on the generated_xxxxxx mod that is auto includes to work around mod loading issues in dev. I use architectury with this library exclusively so there shouldnt be any issues, you can take a look at this https://github.com/AlexNijjar/Extractinator it uses it as is pretty small so it should be easy to follow.

commented

image
ok thanks you

commented

did you register your config?

commented

nvm I am just blind, can you provide a source code instead of screenshots