can't get new mod textures to load

Started by moglus, February 23, 2015, 03:33:56 AM

Previous topic - Next topic

moglus

so i'm making a mod that adds three new types of alcohol to the game, and i've made the textures, but they won't load in the game



also the recipe doesn't work, it doesn't appear as a job in the brewery
other then that the alcohols work fine when spawned in







aWtO2

Try this:

<graphicPath>Things/Item/Drug/AgaveTequila</graphicPath>
    <graphicClass>Graphic_Single</graphicClass>

skullywag

Stackcount uses specifically named image files. What have you called the images youre trying to load.
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

moglus

Quote from: aWtO2 on February 23, 2015, 03:38:54 AM
Try this:

<graphicPath>Things/Item/Drug/AgaveTequila</graphicPath>
    <graphicClass>Graphic_Single</graphicClass>


thank you that did the trick ^^ now if only i could figure out why the recipe isn't working :/

skullywag

Your images will be the same for a single thing and a stack of things by using single. if you wanted it like beer where you have 1 bottle and then a stack of bottles with different images you should use stackcount. Think the images just need to be named the same and have an A and a B on the end of the filename.

When you say recipe isnt working. Have you forgotten the worker def?
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

moglus

Quote from: skullywag on February 23, 2015, 03:51:26 AM
Your images will be the same for a single thing and a stack of things by using single. if you wanted it like beer where you have 1 bottle and then a stack of bottles with different images you should use stackcount. Think the images just need to be named the same and have an A and a B on the end of the filename.

When you say recipe isnt working. Have you forgotten the worker def?

when i set it to stackcount like beer i get the error when loading, despite there being _a and _b at the end of the two files, they are named the same way the beer files are, but they refuse to load. setting it to graphic single works, but now when they drink it it looks like he's downing 5 bottles of tequila

the worker def? (sorry i'm very new to this)

aWtO2

Quotethank you that did the trick ^^ now if only i could figure out why the recipe isn't working :/
U must mod the WorkGiverDefs.xml
This is a Beer
  <WorkGiverDef>
    <defName>DoBillsBrew</defName>
    <giverClass>WorkGiver_DoBill</giverClass>
    <workType>Cooking</workType>
    <priorityInType>95</priorityInType>
    <singleBillGiverDef>Brewery</singleBillGiverDef>
    <verb>brew</verb>
    <gerund>brewing</gerund>
    <requiredActivities>
      <li>Manipulation</li>
    </requiredActivities>
  </WorkGiverDef>

This is my cocaine (in U AgaveTequila)

    <WorkGiverDef>
    <defName>DoBillsCocaine</defName>
    <giverClass>WorkGiver_DoBill</giverClass>
    <workType>Cooking</workType>
    <priorityInType>95</priorityInType>
    <singleBillGiverDef>Lab</singleBillGiverDef>
    <verb>cook</verb>
    <gerund>cooking</gerund>
    <requiredActivities>
      <li>Manipulation</li>
    </requiredActivities>
  </WorkGiverDef>



skullywag

Try putting your 2 images in a folder with the same name a your item without the a or b and then put the 2 images inside that. Dont change your def. Its pointing to a folder not an image file.
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

aWtO2

#8
Quote from: moglus on February 23, 2015, 04:08:26 AM
Quote from: skullywag on February 23, 2015, 03:51:26 AM
Your images will be the same for a single thing and a stack of things by using single. if you wanted it like beer where you have 1 bottle and then a stack of bottles with different images you should use stackcount. Think the images just need to be named the same and have an A and a B on the end of the filename.

When you say recipe isnt working. Have you forgotten the worker def?

when i set it to stackcount like beer i get the error when loading, despite there being _a and _b at the end of the two files, they are named the same way the beer files are, but they refuse to load. setting it to graphic single works, but now when they drink it it looks like he's downing 5 bottles of tequila

the worker def? (sorry i'm very new to this)

Yeap he's right... I dont use a stack count... But i thing it different as like _a _b on end.
In buildings are used _atlas _plan etc. (if i good remember) I suggest have look at the buildings def config

moglus

Quote from: skullywag on February 23, 2015, 04:14:34 AM
Try putting your 2 images in a folder with the same name a your item without the a or b and then put the 2 images inside that. Dont change your def. Its pointing to a folder not an image file.

that doesn't work either

aWtO2


Try Rename file like AgaveTequila(for single) and AgaveTequilas(for stack)

moglus

Quote from: aWtO2 on February 23, 2015, 04:34:07 AM
Try Rename file like AgaveTequila(for single) and AgaveTequilas(for stack)

didn't work  :-\

aWtO2

#12
Quote from: moglus on February 23, 2015, 04:40:40 AM
Quote from: aWtO2 on February 23, 2015, 04:34:07 AM
Try Rename file like AgaveTequila(for single) and AgaveTequilas(for stack)

didn't work  :-\

In def Try to delete   <graphicClass>...</graphicClass> Try with out this.

Upload me your mod when you done. I want it. :D

moglus

QuoteIn def Try to delete   <graphicClass>...</graphicClass> Try with out this.


the game did not like that

skullywag

Well beer in core is beerA and beerB i think.
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?