Need help with pawn mass! (Answered)

Started by Ncates1234, January 16, 2018, 08:57:21 AM

Previous topic - Next topic

Ncates1234

I've been trying to create my own race pawns on my own (personal use)
But I had come across a problem,
My pawn mass (weight) is stuck at 1kg (Not to be confused with carry weight)
So currently they're just a bunch of small feather bags and makes them extremely over powered when using pods, since you can fit almost 30 light armored pawns with just one pod.
I'd guess I missed something when making them.

Oh and when I try to put them in the pods, they appear as yellow templates, if this can be fixed aswell, I'd really wanna know how!

BrokenValkyrie

Are you using the alien race framework?

Its a stretch, check if you set baseBodySize .

Ncates1234

Quote from: BrokenValkyrie on January 16, 2018, 10:22:28 PM
Are you using the alien race framework?

Its a stretch, check if you set baseBodySize .

Yes I'm using the framework, and I couldn't find bodysize anywhere so yeah... I didin't set it up.
I've tried putting it in alienrace and pawnkinds xml files but both throw an error in console.
Is there a specific place for it?

BrokenValkyrie

Its under the race tag. I really suggest downloading someone else race for reference.

Ncates1234

I added it and still only weights 1kg
Tried to make bodysize 1.5, and ingame stats it said

Base value
1.00kg
Multiplier for body size 1.50: x150%

Although I can't find any kind of setting for body weights in neither of race mods I've searched through

I'd just increase bodysize numbers but that makes them easy targets and gigantic mules, so that ain't gonna do the trick...

BrokenValkyrie


<statBases>
<Mass>100</Mass>
</statBases>


This is all I can find. This is from ferian race. For base pawn, mass is set at 70. All animal mass is set at 70 to my surprise.

This is top half of the code for ferian race.

<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<AlienRace.ThingDef_AlienRace Name="BaseFerian" Abstract="True">
        <thingClass>Pawn</thingClass>
        <category>Pawn</category>
        <selectable>true</selectable>
        <tickerType>Normal</tickerType>
        <altitudeLayer>Pawn</altitudeLayer>
        <useHitPoints>false</useHitPoints>
        <hasTooltip>true</hasTooltip>
        <soundImpactDefault>BulletImpactFlesh</soundImpactDefault>
<statBases>
<Mass>100</Mass>
</statBases>

Ncates1234

I added mass to stats and it worked well!

I can't believe myself I didin't come to conclusion just to add mass to the code and expect it to work...

Thanks for the help, next time I'm gonna think it all the way before searching/asking for help.