#Documentation on custom berry (maddie's helping hand)

68 messages · Page 1 of 1 (latest)

drowsy terrace
#

hey,
trying to replace a vanilla berry with a custom sprite for a homie
is there any documentation on how to use the custom berry properly? i haven't found anything and i assume replacing the sprite path isn't enough because it just crashes rn

slender nacelle
#

it uses a sprite, as in the name of a Sprites.xml entry

#

so you create a copy of the vanilla berry entry with a unique name in your map's Sprites.xml and make that entry point at your custom images

drowsy terrace
#

xmls still scare me no matter how many times i look at them

slender nacelle
drowsy terrace
#

Still crashes, does this look correct?

#

I know you should post logs but that might include leaks so it's a last resort

slender nacelle
#

you have to enter the name of the sprite (so Mouseberry in this case)

#

also if you use the same sprite for normal and ghost, berries you've already collected will look the same

#

and also please include username and modname in your path instead of putting stuff directly in collectables

drowsy terrace
#

yea this is just for testing, a ghost sprite is being made maddycomfy
still crashes, what did i miss catplush

whole barn
#

what crash is it again

drowsy terrace
#

Logs will have to be provided in private as a last resort sorry
This is the crash in question

#

i'm like very convinced it's an error on my end

slender nacelle
#

oh your names and paths and stuff don't match up

drowsy terrace
#

where i just mistyped something or didn't do something correctly

slender nacelle
#

the path in the header of the sprite should be the folder the images are in

drowsy terrace
#

oh not the sprite itself?

#

gotcha

slender nacelle
#

so .../mouseB/

whole barn
#

thatd just missing texture

slender nacelle
#

and then the path attributes on the animations need to be the name of the actual images

drowsy terrace
#

OH

slender nacelle
#

so rn they say normal even though the images are actually called mouseberr

drowsy terrace
#

i knew that part was not right

slender nacelle
drowsy terrace
#

if that won't work i'll just omit leaks from the log catplush

#

yea ok log it is catplush

whole barn
#
System.Exception: Missing animation name in SpriteData: 'mouseberr'!
#

so

#

what you did right there is tell "the files are in the folder collectables/tg90/mouseB/mouseberr"

#

and the folder mouseberr doesn't exist

#

the path in Anim/Loop is the image name

#

cus right now you're saying the animation is in collectables/tg90/mouseB/mouseberr/normal##.png, where ## is a number

drowsy terrace
#

right

whole barn
#

which obviously is not where the files are

drowsy terrace
#

so every row with anim is the filename and the rest is folder name?

whole barn
drowsy terrace
#

oh and the rest of the rows?

whole barn
#

yea same thing

whole barn
#

i don't remember

whole barn
drowsy terrace
#

it's cool i've uninstalled leaks

#

check please blobpensivepray

#

still happens with/without the slash at the end

slender nacelle
#

so rn you're telling it that e.g. the idle sprite can be found at collectables/tg90/mouseB/collectables/tg90/mouseB

drowsy terrace
#

sorry this is super confusing what should i put where

ionic kernel
#

mouseberr and mouseberry?

slender nacelle
#

in the individual Anim and Loop entries, you have the name of the images within that folder

#

it will combine those two paths to look for the images

ionic kernel
#

I can see the log says mouseberr is missing, and It actually is mouseberry in xml

drowsy terrace
#

so essentially this

slender nacelle
#

yes

drowsy terrace
#

mouseberr is the file name, mouseberry is the xml sprite name hope that makes sense

ionic kernel
#

I hope you kown what is Missing animation name in SpriteData: 'mouseberr'!

slender nacelle
#

ok yeah now that the xml is correct, make sure you've actually saved the map file

drowsy terrace
#

Thanks all it works now maddycomfy

ionic kernel
#

👍🎉

drowsy terrace