AndRay Posted October 4, 2020 Share Posted October 4, 2020 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? Link to comment https://forums.kleientertainment.com/forums/topic/122216-where-are-harvestable-crop-images-stored/ Share on other sites More sharing options...
penguin0616 Posted October 4, 2020 Share Posted October 4, 2020 @AndRay Did you load in the assets? 1 Link to comment https://forums.kleientertainment.com/forums/topic/122216-where-are-harvestable-crop-images-stored/#findComment-1376931 Share on other sites More sharing options...
AndRay Posted October 4, 2020 Author Share Posted October 4, 2020 (Sorry for the delay, timezone issue) Yeah, I have a ground animation and inventory animation. If I should add a crop animation or sprite then I don't know how to add it :/ Can you give me instructions? Link to comment https://forums.kleientertainment.com/forums/topic/122216-where-are-harvestable-crop-images-stored/#findComment-1377038 Share on other sites More sharing options...
penguin0616 Posted October 4, 2020 Share Posted October 4, 2020 @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. 1 Link to comment https://forums.kleientertainment.com/forums/topic/122216-where-are-harvestable-crop-images-stored/#findComment-1377051 Share on other sites More sharing options...
AndRay Posted October 4, 2020 Author Share Posted October 4, 2020 I do have a anim, atlas and image loaded (they are required for the inventory image and for the ground idle animation) What is the correct build for the farmplot harvest animation then? Link to comment https://forums.kleientertainment.com/forums/topic/122216-where-are-harvestable-crop-images-stored/#findComment-1377071 Share on other sites More sharing options...
penguin0616 Posted October 4, 2020 Share Posted October 4, 2020 I think it depends on your animation? I don't know how animations work.. 1 Link to comment https://forums.kleientertainment.com/forums/topic/122216-where-are-harvestable-crop-images-stored/#findComment-1377124 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now