DarkXero Posted May 10, 2015 Share Posted May 10, 2015 @Babyforce, well, I downloaded TEXTools and BuildRenamer and did the thing step by step. 1) Copy paste charcoal.zip outside anim2) Decompress it3) Open the atlas-0.tex with TEXTool4) Save as PNG5) Open image editor (I used both paint.net, and GIMP)6) Make an invisible layer, stamp the drop image over the charcoal one7) Delete the charcoal so the drop remains8) Save as drop.png9) Opened TEXCreator10) Loaded drop.png and saved it as drop.tex11) Renamed drop.tex into atlas-0.tex 12) Opened BuildRenamer13) Selected build.bin of charcoal, selected drop.bin for future name14) Changed name from charcoal into fuel_drop15) Saved16) Rename it build.bin Now, I make a fuel_drop folder with:- the anim.bin of the charcoal folder- the atlas-0.tex I obtained in my first steps- the build.bin I obtained in my last steps 17) Take the three things and zip them Because I didn't touch the anim, the resultant AnimState functions would end up like inst.AnimState:SetBank("charcoal") inst.AnimState:SetBuild("fuel_drop") inst.AnimState:PlayAnimation("idle")- the charcoal anim bank that I didn't rename or touch- the build renamed into fuel_drop- the idle animation from the charcoal bank No problems.Maybe the problem was in the image editor? How did you make the drop png?fuel_drop.zip Link to comment https://forums.kleientertainment.com/forums/topic/53581-help-add-a-new-fuel-item/page/2/#findComment-636067 Share on other sites More sharing options...
Babyforce Posted May 10, 2015 Author Share Posted May 10, 2015 (edited) @DarkXero I made the PNG exactly as you did. And on the tutorial, they said that a PNG (Whatever it is and how is done) is working fine so I don't know. Edit : After I've tried to see if the mod is working, it looked like yes. I can craft the fuel drop with 2 charcoal. But when I craft it, the game crash. It's the same if I use my "anim.zip". The code of the log is : [00:01:20]: WARNING! Could not find region 'fuel_drop.tex' from atlas 'images/inventoryimages.xml'. Is the region specified in the atlas?[00:01:20]: Looking for default texture '(null)' from atlas 'images/inventoryimages.xml'.[00:01:20]: images/inventoryimages.xmlLUA ERROR stack traceback: scripts/widgets/image.lua(30,1) in function 'SetTexture' scripts/widgets/image.lua(11,1) in function '_ctor' scripts/class.lua(181,1) in function 'Image' scripts/widgets/itemtile.lua(45,1) in function '_ctor' scripts/class.lua(181,1) in function 'ItemTile' scripts/widgets/inventorybar.lua(971,1) in function 'OnItemGet' scripts/widgets/inventorybar.lua(74,1) in function 'fn' scripts/entityscript.lua(935,1) in function 'PushEvent' scripts/components/inventory.lua(686,1) in function 'GiveItem' scripts/components/builder.lua(318,1) in function 'DoBuild' scripts/actions.lua(791,1) in function 'fn' scripts/bufferedaction.lua(22,1) in function 'Do' scripts/entityscript.lua(1193,1) in function 'PerformBufferedAction' scripts/stategraphs/SGwilson.lua(1914,1) in function 'ontimeout' scripts/stategraph.lua(533,1) in function 'UpdateState' scripts/stategraph.lua(590,1) in function 'Update' scripts/stategraph.lua(123,1) in function 'Update' scripts/update.lua(205,1) Edited May 10, 2015 by Babyforce Link to comment https://forums.kleientertainment.com/forums/topic/53581-help-add-a-new-fuel-item/page/2/#findComment-636150 Share on other sites More sharing options...
DarkXero Posted May 10, 2015 Share Posted May 10, 2015 (edited) @Babyforce,That's a new error. Happens because under the inst:AddComponent("inventoryitem") is missinginst.components.inventoryitem.atlasname = "images/inventoryimages/fuel_drop.xml"Then it should be good to go. Edited May 10, 2015 by DarkXero Link to comment https://forums.kleientertainment.com/forums/topic/53581-help-add-a-new-fuel-item/page/2/#findComment-636226 Share on other sites More sharing options...
Babyforce Posted May 11, 2015 Author Share Posted May 11, 2015 @DarkXero It's working perfectly thank you very much ! Now I need to see how to use it to refuel lanterns and miner hats and it'll be perfect. Thanks again for your help. Link to comment https://forums.kleientertainment.com/forums/topic/53581-help-add-a-new-fuel-item/page/2/#findComment-636544 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