Jump to content

Recommended Posts

@Babyforce, well, I downloaded TEXTools and BuildRenamer and did the thing step by step.

 

1) Copy paste charcoal.zip outside anim

2) Decompress it

3) Open the atlas-0.tex with TEXTool

4) Save as PNG

5) Open image editor (I used both paint.net, and GIMP)

6) Make an invisible layer, stamp the drop image over the charcoal one

7) Delete the charcoal so the drop remains

8) Save as drop.png

9) Opened TEXCreator

10) Loaded drop.png and saved it as drop.tex

11) Renamed drop.tex into atlas-0.tex

 

12) Opened BuildRenamer

13) Selected build.bin of charcoal, selected drop.bin for future name

14) Changed name from charcoal into fuel_drop

15) Saved

16) 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

@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 by Babyforce

@Babyforce,

That's a new error. Happens because under the inst:AddComponent("inventoryitem") is missing

inst.components.inventoryitem.atlasname = "images/inventoryimages/fuel_drop.xml"

Then it should be good to go.

Edited by DarkXero

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...