Team-Resourceful / Resourceful-Config

https://config.wiki.teamresourceful.com/
MIT License
5 stars 6 forks source link

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

Closed baka4n closed 11 months ago

baka4n commented 11 months ago

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

ThatGravyBoat commented 11 months ago

did you register your config?

ThatGravyBoat commented 11 months ago

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

baka4n commented 11 months ago

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

baka4n commented 11 months ago

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

ThatGravyBoat commented 11 months ago

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

baka4n commented 11 months ago

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

baka4n commented 11 months ago

image

ThatGravyBoat commented 11 months ago

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

baka4n commented 11 months ago

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

baka4n commented 11 months ago

Are there any sample tutorials?

baka4n commented 11 months ago

image Is there a problem with this link?

baka4n commented 11 months ago

Or when introducing dependencies, use modApi

ThatGravyBoat commented 11 months ago

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.

baka4n commented 11 months ago

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

baka4n commented 11 months ago

image ok thanks you