Jump to content

Recommended Posts

Hey, just managed to get my first custom crop up and running. It is invisible on the farmplot, though. It has a valid ground animation and a valid inventory image ingame, nothing crashes as well. Looking at some example mods, I couldn't find any place to add special crop animations.

Where would I add them on my mod? And where does the game store their crop animations?

@AndRay In your modmain.lua, you need to have a table named "Assets" that holds all of your assets (preferably at the top of the script). Here's examples of different asset types being loaded.

Assets = {
	Asset("ANIM", "anim/ghost_abigail.zip"), -- animation load example
	Asset("SOUND", "sound/ghost.fsb"), -- sound load example
	Asset("DYNAMIC_ATLAS", "images/bg_loading_loading_maxwell2.xml"),  -- i dont know what this is for, but another example
	Asset("PKGREF", "images/bg_loading_loading_maxwell2.tex"), -- i dont know what this is for, but another example
	-- the important ones for images
	Asset("ATLAS", "images/Claywarg.xml"),
	Asset("IMAGE", "images/Claywarg.tex"),
}

So I think you will need "ANIM", "ATLAS", and "IMAGE" assets loaded.

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...