New mod trouble

Started by jigab001, June 01, 2014, 09:13:54 AM

Previous topic - Next topic

jigab001

do you know how to change the bullet to a laser?

mrofa

If you mean laser by continus fire, then you cant.
But you can make a bullet that is 2x2  or 2x1 pixel in the mid ot the screen and shoots very fast, should look like a continus laser beam, atleast my look like that :D
All i do is clutter all around.

jigab001

can i change the color of the bullet to red?

mrofa

Bullets are texures, read the wiki first mate ;)
All i do is clutter all around.

jigab001

does it matter what i put in strings?

iame6162013

Quote from: jigab001 on June 01, 2014, 12:56:54 PM
does it matter what i put in strings?
of course it doesn't (sarcasm) :P
Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"
Robert J. Hanlon: "Never attribute to malice that which is adequately explained by stupidity."

jigab001

idk what to put in my strings?

mrofa

What string, be more specific mate
All i do is clutter all around.

jigab001

i left the name for namemaker_people as the tribalwords a & b so what do i put in strings/namebanks

iame6162013

Quote from: jigab001 on June 01, 2014, 12:58:43 PM
idk what to put in my strings?
just use default
(and if you ain't talking about that, a woman the answer to all man asked questions) :P
Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"
Robert J. Hanlon: "Never attribute to malice that which is adequately explained by stupidity."

jigab001

This is my faction def code tell me if something is wrong

<?xml version="1.0" encoding="utf-8" ?>
<FactionDefs>

  <!-- Normal factions -->

  <FactionDef>
<defName>Brotherhoodofsteel</defName>
<label>Brotherhood of Steel</label>
    <description>A small community of survivors.\n\nThese people have lived here for decades. They've lost most of the technology that brought them here, and usually work with simple mechanical tools and structures, and defend themselves with advanced gunpowder-era weapons.\n\nNot inherently aggressive nor weak, they are concerned with the practical matters of trade, trust, and survival.</description>
    <startingRelations>
      <min>-40</min>
      <max>40</max>
    </startingRelations>
<factionNameMaker>NamerFactionbrotherhood</factionNameMaker>
<techLevel>Midworld</techLevel>
<backstoryCategory>Civil</backstoryCategory>
<hairTags>
<li>Rural</li>
</hairTags>
    <naturalColonyGoodwill>
      <min>-60</min>
      <max>0</max>
    </naturalColonyGoodwill>
<spawnGroups>
<li>
<selectionWeight>10</selectionWeight>
<cost>25</cost>
<kinds>
<li>BrotherhoodRecuit</li>
</kinds>
</li>
      <li>
        <selectionWeight>100</selectionWeight>
        <cost>33</cost>
        <kinds>
          <li>BrotherhoodRegular</li>
        </kinds>
      </li>   
      <li>
        <selectionWeight>250</selectionWeight>
        <cost>280</cost>
        <kinds>
          <li>BrotherhoodVeteran</li>
          <li>BrotherhoodVeteran</li>
          <li>BrotherhoodVeteran</li>
        </kinds>
      </li>
</spawnGroups>
</FactionDef>
</FactionDefs>

jigab001

same with this one. its a namemaker let me know if something needs to be fixed

<NameMakerDef>
<defName>NamerFactionbrotherhood</defName>
<patterns>
<li>Brotherhood of steel</li>
<li>Brotherhood of steel</li>
<li>Brotherhood of Steel</li>
<li>Brotherhood of Steel</li>
</patterns>
<patternFillers>
<li>
<keyString>POSITIVECONCEPT</keyString>
<fillInFiles>
<li>NameBanks/Nouns_Concepts_Positive</li>
</fillInFiles>
</li>
<li>
<keyString>COMMUNITY</keyString>
<fillInFiles>
<li>NameBanks/Nouns_Communities</li>
</fillInFiles>
</li>
<li>
<keyString>TERRAINFEATURE</keyString>
<fillInFiles>
<li>NameBanks/Nouns_TerrainFeatures</li>
</fillInFiles>
</li>
<li>
<keyString>COLOR</keyString>
<fillInFiles>
<li>NameBanks/Colors</li>
</fillInFiles>
</li>
<li>
<keyString>OUTLANDER</keyString>
<fillInFiles>
<li>NameBanks/Nouns_People_Outlanders</li>
<li>NameBanks/Nouns_People_Family</li>
</fillInFiles>
</li>
</patternFillers>
</NameMakerDef>






</NameMakerDefs>








jigab001

<?xml version="1.0" encoding="utf-8" ?>
<NameMakerDefs>

<NameMakerDef>
<defName>NamerPersonTribal</defName>
<patterns>
<li>TRIBALWORDA</li>
<li>TRIBALWORDA</li>
<li>TRIBALWORDA</li>
<li>TRIBALWORDA</li>
<li>TRIBALWORDA TRIBALWORDB</li>
<li>TRIBALWORDA TRIBALWORDB</li>
<li>TRIBALWORDA ANIMAL</li>
<li>ANIMAL TRIBALWORDA</li>
<li>COLOR ANIMAL</li>
</patterns>
<patternFillers>
<li>
<keyString>TRIBALWORDA</keyString>
<fillInFiles>
<li>NameBanks/TribalWords</li>
</fillInFiles>
</li>
<li>
<keyString>TRIBALWORDB</keyString>
<fillInFiles>
<li>NameBanks/TribalWords</li>
</fillInFiles>
</li>
<li>
<keyString>ANIMAL</keyString>
<fillInFiles>
<li>NameBanks/Nouns_Animals</li>
</fillInFiles>
</li>
<li>
<keyString>COLOR</keyString>
<fillInFiles>
<li>NameBanks/Colors</li>
</fillInFiles>
</li>
</patternFillers>
</NameMakerDef>

</NameMakerDefs>

jigab001

<?xml version="1.0" encoding="utf-8" ?>
<PawnKindDefs>


<PawnKindDef>
<defName>BrotherhoodRecruit</defName>
<kindLabel>BrotherhoodRecruit</kindLabel>
<race>Human</race>
<recruitDifficulty>60</recruitDifficulty>
<backstoryCategory>Slave</backstoryCategory>
<defaultFactionType>Outlander</defaultFactionType>
<outfits>
<li>
<def>VestPlate</def>
<commonality>50</commonality>
</li>
<li>
<def>KevlarHelmet</def>
<commonality>50</commonality>
</li>
<li>
<def>ShirtBasic</def>
                                <commonality>50</commonality>

<li>
</outfits>
</PawnKindDef>




<PawnKindDef>
<defName>BrotherhoodRegular</defName>
<kindLabel>BrotherhoodRegular</kindLabel>
<race>Human</race>
<recruitDifficulty>60</recruitDifficulty>
<backstoryCategory>Civil</backstoryCategory>
<defaultFactionType>Outlander</defaultFactionType>
<outfits>
<li>
<def>PowerArmor</def>
<commonality>100</commonality>
</li>
<li>
<def>PowerArmorHelmet</def>
<commonality>40</commonality>
</li>
<li>
<def>BasicShirtAndJacket</def>
<commonality>0</commonality>
</li>
<li>
<def>BasicShirtAndDuster</def>
<commonality>0</commonality>
</li>
<li>
<def>BasicShirtAndVest</def>
<commonality>0</commonality>
</li>
<li>
<def>BasicShirtAndVestAndDuster</def>
<commonality>0</commonality>
</li>
</outfits>
<moneyForWeapons>
<min>0</min>
<max>250</max>
</moneyForWeapons>
<weaponTags>
<li>Gun</li>
</weaponTags>
<inventoryOptions>
      <skipChance>0.75</skipChance>
      <subOptionsChooseOne>
        <li>
          <choiceChance>90</choiceChance>
          <thingDef>Silver</thingDef>
          <countRange>
            <min>25</min>
            <max>70</max>
          </countRange>
        </li>
        <li>
          <choiceChance>10</choiceChance>
          <thingDef>Silver</thingDef>
          <countRange>
            <min>700</min>
            <max>1000</max>
          </countRange>
        </li>
      </subOptionsChooseOne>
</inventoryOptions>
</PawnKindDef>



  <PawnKindDef>
    <defName>BrotherhoodVeteran</defName>
    <kindLabel>BrotherhoodVeteran</kindLabel>
    <race>Human</race>
    <defaultFactionType>Outlander</defaultFactionType>
    <recruitDifficulty>60</recruitDifficulty>
    <backstoryCategory>Raider</backstoryCategory>
    <spawnAsFighter>true</spawnAsFighter>
    <startHealthPercentRange>
      <min>1</min>
      <max>1</max>
    </startHealthPercentRange>
    <outfits>
      <li>
        <def>PowerArmor</def>
        <commonality>100</commonality>
      </li>
      <li>
        <def>PowerArmorHelmet</def>
        <commonality>100</commonality>
      </li>
    </outfits>
    <moneyForWeapons>
      <min>60</min>
      <max>150</max>
    </moneyForWeapons>
    <weaponTags>
      <li>Gun</li>
    </weaponTags>
    <inventoryOptions>
      <skipChance>0.95</skipChance>
      <thingDef>Silver</thingDef>
      <countRange>
        <min>30</min>
        <max>100</max>
      </countRange>
    </inventoryOptions>
  </PawnKindDef>









</PawnKindDefs>

jigab001

<?xml version="1.0" encoding="utf-8" ?>
<ThingDefs>



<ThingDef Name="BasePawn" Abstract="True">
<eType>Pawn </eType>
<thingClass>Pawn</thingClass>
<category>Pawn</category>
<selectable>true</selectable>
<tickerType>Normal</tickerType>
<altitudeLayer>Pawn</altitudeLayer>
<useStandardHealth>false</useStandardHealth>
<flammability>1.0</flammability>
<hasTooltip>true</hasTooltip>
<bulletImpactSound>BulletImpactFlesh</bulletImpactSound>
<inspectorTabs>
<li>UI.ITab_Pawn_Thoughts</li>
<li>UI.ITab_Pawn_Needs</li>
<li>UI.ITab_Pawn_Prisoner</li>
<li>UI.ITab_Pawn_Character</li>
</inspectorTabs>
<drawGUIOverlay>true</drawGUIOverlay>
</ThingDef>