#Need help fixing a mod I made

83 messages · Page 1 of 1 (latest)

errant laurel
#

I finished up making the mod, but need help making the file that adds an add operation for the two items. Not sure how to add files to this post so extra help figuring that out would be rlly helpful.

finite dew
#

You can’t add /hats to player.config

finite dew
#

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

errant laurel
#

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.

finite dew
#

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

errant laurel
#

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

finite dew
#

no

#

that's not right

#

stop trying to put the filepath in the recipe

#

copy the path from the example image i sent

errant laurel
#

[
{ "op" : "add", "path" : "/armor/avali/tier1/-", "value" : { "item" : "avalihazmathelmetGRS" } },
{ "op" : "add", "path" : "/armor/avali/tier1/-", "value" : { "item" : "avalihazmatsuitGRS" } }

]
like this?

finite dew
#

look at the image i sent

#

read it's path

errant laurel
#

do I need to replace '/armor/avali/' with blueprints?

finite dew
errant laurel
#

I just don't get where the 'default blueprints' comes from.

#

but I will swap it out

errant laurel
#

oki\

finite dew
#

everything uses teir1 as the second part of the path

#

dumb but that's just how it is

errant laurel
#

[
{ "op" : "add", "path" : "/defaultBlueprints/tier1/-", "value" : { "item" : "avalihazmathelmetGRS" } },
{ "op" : "add", "path" : "/defaultBlueprints/tier1/-", "value" : { "item" : "avalihazmatsuitGRS" } }

]

finite dew
#

yes

errant laurel
#

thnx, I think this'll fix the mod

finite dew
#

wait why is the prefix there

#

that technically works but i never in my life have seen anyone do it like that

errant laurel
#

oki srry

#

any chance you'd like to make mods together?

#

I'm a pretty good pixel artist

finite dew
#

i'm mainly working on my own mods right now but if you need help with something you can hit me up

errant laurel
#

thnx

finite dew
#

no problem

errant laurel
#

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

finite dew
#

can you send the log?

#

and the new mod files

finite dew
#

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

errant laurel
#

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.

finite dew
errant laurel
#

how do i fix it?

finite dew
#

I don’t know because I don’t have the head file

#

try running it through a linter and see if that helps

errant laurel
finite dew
#

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 ]

errant laurel
#

notepad ++

#

thnx

errant laurel
#

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

finite dew
#

Shove your files into a json linter and it’ll tell you what’s wrong

errant laurel
#

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

errant laurel
#

okay I fixed that, now the other item that's a shirt is causing issues

#

I'll work on it I guess