#Need help fixing a mod I made
83 messages · Page 1 of 1 (latest)
here's a link to the files, need help getting the thing to work in game https://drive.google.com/drive/folders/1KIy7KEPIgScjn8LixAIrz6BSvKS_SRwl?usp=sharing
You can’t add /hats to player.config
that isn't how you add items to a species
species for the recipe isn't specified in player.config it just needs to be in the recipe itself
here's an example of how you properly patch them in, taken from the angels of starbound mod
so what would it look like to patch the armor and helmet in tho? Am I only adding the recipe? I was trying to patch in the items themselves.
Because the file structure is slightly dif in my mod.
that's not how it works for recipies in player.config
you don't add the filepath you just tell it the item you want it to add a recipe for
and if it has a recipe it'll grab it
just put your itemname where "angelnunhead" is in the example
also if your object isn't prefixed ( inv_coolitem <- prefixed | coolitem <-unprefixed) prefix it with your mod name initials or your username initials
okay yeah your items are unprefixed, so add a prefix
you'll also need to update the names of the item in the recipe and player.config when you add the prefix
oki thnx that helps
would this look right to you? [
{ "op" : "add", "path" : "\armor\avali\tier1", "value" : { "item" : "avalihazmathelmet" } },
{ "op" : "add", "path" : "\armor\avali\tier1", "value" : { "item" : "avalihazmatsuit" } }
]
I can also add a prefix
no
that's not right
stop trying to put the filepath in the recipe
copy the path from the example image i sent
[
{ "op" : "add", "path" : "/armor/avali/tier1/-", "value" : { "item" : "avalihazmathelmetGRS" } },
{ "op" : "add", "path" : "/armor/avali/tier1/-", "value" : { "item" : "avalihazmatsuitGRS" } }
]
like this?
do I need to replace '/armor/avali/' with blueprints?
I just don't get where the 'default blueprints' comes from.
but I will swap it out
oki\
[
{ "op" : "add", "path" : "/defaultBlueprints/tier1/-", "value" : { "item" : "avalihazmathelmetGRS" } },
{ "op" : "add", "path" : "/defaultBlueprints/tier1/-", "value" : { "item" : "avalihazmatsuitGRS" } }
]
yes
thnx, I think this'll fix the mod
wait why is the prefix there
that technically works but i never in my life have seen anyone do it like that
oki srry
any chance you'd like to make mods together?
I'm a pretty good pixel artist
i'm mainly working on my own mods right now but if you need help with something you can hit me up
thnx
no problem
okay I've done everything you've mentioned now the mod crashes my game? Not sure what's the problem. I followed the directions and now the mod crashes on startup. oof.
could you just fix it pls? I'm srry for asking so much but I'm patch op intolerant
this is an issue with the head item
you forgot a comma or something
also you can read the logs yourself by searching for “error” in the file, which is usually more helpful then sending them here for cases like this
also for mod testing purposes you shouldn’t be playing on normal starbound, but instead unstable, which doesn’t pull mods from your subscribed items
All the mods makes the logs much harder to read and introduces more errors that wouldn’t exist without them
It's the same file I only changed the file extension to txt because I thought discord didn't accept log file extension I was wrong.
Your head file for the helmet is broken
how do i fix it?
I don’t know because I don’t have the head file
try running it through a linter and see if that helps
what code program are you using?
if you're using notepad++, don't do that, use visual code studio instead because notepad++ doesn't display errors
you have an extra comma on your last } and need one on your closing ]
could you help me fix this here's the link, I don't know what's causing the crash
it said something was wrong with the hazmat suit not the helmet
but it all checks out as far as I can tell
you'd think by now they'd make a patch operation tool that'd generate patch files
take the troubleshooting out of the entire equation
could you pls help me figure this out?
I'll just remove the hazmat suit i guess, it's what the log says is the issue
Theres several
Shove your files into a json linter and it’ll tell you what’s wrong
what's a json linter?
nvrmnd looked it up
gonna try using it
OMG I love this! I fixed my own mod! Json linters are awesome software! Thnkyu so much this helps so much!
okay now all the json checks out, but when I try to activate the inventor's table in-game it crashes with text saying no such item ToxicFabricator from my other mod Toxic Menagerie
I checked all the json code to see if it's valid, so that isn't the problem