Jump to content

Textures Explanation?


Chrisnetika

Recommended Posts

I trying to learn and get my feet wet in the world of modding.I been able to make my own recipe by making craftable military armor which was fairly easy.I am currently using Valmod Overhaul and noticed his mod adds plantable crops ie; wheat grapes apples so I am trying to figure how to add my own.

For starts trying something simple or least I thought it would be, as an experiment trying to mod in plantable snowberry plants.

Using Blueberry plants as a template as follows

Just gonna list the harvestable form

<block id="258" name="plantedBlueberry3Harvest">

<property name="Extends" value="cropsHarvestableMaster"/>

<property name="Shape" value="ModelEntity"/>

<property name="Model" value="Entities/Plants/blueberry_plant_harvestPrefab"/>

<drop event="Harvest" name="blueberries" count="1" tool_category="Pluck"/>

<property name="DowngradeBlock" value="plantedBlueberry1"/>

 

and here is for snowberry

 

<block id="857" name="snowberry3Harvest">

<property name="Extends" value="cropsHarvestableMaster"/>

<property name="Texture" value="568"/>

<drop event="Harvest" name="snowberryPlant" count="1"/>

<property name="DescriptionKey" value="snowberryPlantDesc"/>

</block>

 

which I edited to

<block id="258" name="plantedsnowberry3Harvest">

<property name="Extends" value="cropsHarvestableMaster"/>

<property name="Shape" value="ModelEntity"/>

<property name="Model" value="Entities/Plants/snowberry_plant_harvestPrefab"/>

<drop event="Harvest" name="snowberryPlant" count="1" tool_category="Pluck"/>

<property name="DowngradeBlock" value="plantedsnowberry1"/>

</block>

I further changed the block id where needed.

 

When I loaded the game it complained about the texture file

<property name="Model" value="Entities/Plants/snowberry_plant_harvestPrefab"/>

 

problem is, i do not know how to get the texture url

for the blueberry it is

Entities/Plants/blueberry_plant_harvestPrefab

I looked at all the xml's and cannot find where that is or referenced

as for the snowberry plant the original one is different how it does textures it has

<property name="Texture" value="568"/>

 

I also cannot find where that is in xmls and where that is referenced

Can someone explain where I can get these ID's and why they are different?

Noticed Valmod does his differently for example

<block id="1799" name="GrapeVine">

<property name="Class" value="CropsGrown" />

<property name="Material" value="plants" />

<property name="Shape" value="ModelEntity" />

<property name="Texture" value="241" />

<property name="Collide" value="melee" />

<property name="Model" value="Entities/Decor/hangingMossPrefab" />

<drop event="Destroy" name="Grapes" count="0" />

<drop event="Harvest" name="Grapes" tool_category="Pluck" count="2" />

<property name="Group" value="Food/Cooking" />

<property name="DowngradeBlock" value="seedGrape" />

<property name="CropsGrown.BonusHarvestDivisor" value="5" />

 

has both a model and texture properties,

<property name="Texture" value="241" />

<property name="Collide" value="melee" />

<property name="Model" value="Entities/Decor/hangingMossPrefab" />

 

anyone explain how a new modder can figure to add these properties?

 

I eventually figured textures are in resource.assets so I used UABE to view that file, and it just shows everything as a list rather than in a URL form they are listed as in XMLs.Am I missing something? what do I need to do to find it?

 

as for this

<property name="Texture" value="241" />

 

There some table or list for this? I feel lost lol

TY in advance

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...