ShadowMario / FNF-PsychEngine

Engine originally used on Mind Games mod
Apache License 2.0
1.1k stars 2.16k forks source link

I ran into a problem: Psych Engine can't find my character's sprites #14707

Closed HyperYokno closed 1 month ago

HyperYokno commented 3 months ago

Describe your problem here.

I ran into a problem: Psych Engine can't find my character's sprites. I did all the necessary steps: exported the sprites in sparrow v2 format and specified all the animations from the XML file in the file.the json that refers to my character. However, when starting the game, the problem remains unresolved. I don't even have a character appear in the character editor. And when I click on the "Reload Image" button, the game crashes 2024-05-19_12-14-54

Are you modding a build from source or with Lua?

Lua

What is your build target?

Windows x64

Did you edit anything in this build? If so, mention or summarize your changes.

No response

TFLTV commented 3 months ago

I don't know the exact problem, but I'll give you detailed steps on how to make a Psych Engine character.

  1. Make the character sprites, use Adobe Animate if you can.
  2. Make each pose a symbol, if you don't know what that is you should watch a tutorial for Adobe Animate.
  3. If you're using Adobe Animate, then select all the symbols you want in the sprite sheet and then right click on one of the selected symbols and click "Generate Sprite Sheet..." from the context menu. (Make sure the Data Format is "Sparrow v2")
  4. Export and find the PNG and XML file for the character.
  5. Now, move the PNG and XML into "mods/images/character" (or if you have a mod folder do "mods/MODNAME/images/character")
  6. Open the game and press "7" in the main menu when selecting "story mode" (or the top button)
  7. If you've done the last step correctly, you should be brought into a "debug menu"
  8. Go to the option that's titled "character editor" and press it.
  9. Look for a box with two tabs each being called "Animations" and "Character"
  10. Once you find it, go in the character tab and locate "Image file name:"
  11. Input your character's image directory/path (Example: "characters/my_character")
  12. Click the button besides it that's titled "Reload Image"
  13. Once the character image is loaded, go into the "Animations" tab
  14. For all five "idle," "singLEFT" "singRIGHT" "singUP" and "singDOWN" animations, select them with the "Animations:" drop-down and set the "Animation name:" text field to the animation you want to set, and then, set the "Animation on .XML/.TXT file:" text field to the animation name that's in the .XML file of the character of what you want to change the character's animation to. (Example: "Animations: idle || Animation name: idle || Animation on .XML/.TXT: my_characters_idle") (You can use W/S to cycle through animations!)
  15. Adjust the offset for each animation accordingly using the arrow keys (use the shift key, too.)
  16. Once you're done with the animations, you can change the health bar color and health icon if you want to, too. (For the health icon, put your character's icon in "images/icons/icon-my_character" (the PNG filename has to start with "icon-" to work!), then, type in the icon's PNG filename without the ".png" at the end and without the "-icon" at the start)
  17. Once you're happy with how it's looking so far, go in the "Character" tab and press the "Save Character" button.
  18. Then, in the newly opened file explorer window, locate your mod directory, go into the "mods" folder, then "characters" folder (Not the "images/characters" one, though!), and export your character's JSON file there.

I hope it helped. If you have any questions, just reply to this message or something.