[1.3] Miscellaneous w MAI+Robots

Started by Haplo, May 16, 2014, 05:54:01 AM

Previous topic - Next topic

viesic007

Quote from: Canute on October 30, 2016, 03:40:14 PM
Build cost, robots ??  I think you mean the MAI not the robots.

Do you know there are serveral raw resouces they are labeld as "small" ? You can identiy them when they stack over 75 to 500.
This is maybe your problem, it requiere 20 gold or silver (can't remember) at the bill, that means you need 20 x20 of it.

Is that your problem ?
Sorry on not making it clear enough, I meant that once I activate the Misc. Robots part of the modpack the cost of constructing literally everything freezes on the cost of the first item you mouse over.

Canute

Did you activate the Misc. Core part before the Robot part ?

drats666

#1697
having some issues with creating a new bot. followed the tutorial listed in this thread but it is throwing errors. the bot is a research bot and it is not giving it the skill it needs to do its job. Other bots I have made are working fine. the researcher bot shows up but does not have researcher skill. hope someone can help.

here is the snipets of my researcher bot.
AIRobot_Races.xml
<ThingDef Class="AIRobot.ThingDef_AIRobot" ParentName="BaseAIRobot">
    <defName>AIRobot_ResearcherBot</defName>
    <label>Researcher Bot</label>
    <description>Why research new things with your inefficent mind when you can have a robotic brain do it for you?</description>
    <uiIconPath>Things/Pawn/Humanlike/UI/IconHuman</uiIconPath>
    <statBases>
<MarketValue>750</MarketValue>
<MoveSpeed>2.50</MoveSpeed>
<Flammability>1.0</Flammability>
<ComfyTemperatureMin>-20</ComfyTemperatureMin>
<ComfyTemperatureMax>40</ComfyTemperatureMax>
<LeatherAmount>0</LeatherAmount>
    </statBases>
    <verbs>
      <li>
        <verbClass>Verb_MeleeAttack</verbClass>
        <defaultCooldownTicks>80</defaultCooldownTicks>
        <meleeDamageBaseAmount>1</meleeDamageBaseAmount>
        <meleeDamageDef>Blunt</meleeDamageDef>
        <linkedBodyPartsGroup>LeftHand</linkedBodyPartsGroup>
      </li>
    </verbs>
<race>
<thinkTreeMain>AIRobot</thinkTreeMain>
<thinkTreeConstant>AIRobotConstant</thinkTreeConstant>
<intelligence>Humanlike</intelligence>
<makesFootprints>false</makesFootprints>
<nameCategory>HumanStandard</nameCategory>
<body>AIRobot</body>
<baseBodySize>0.6</baseBodySize>
<baseHungerRate>0.5</baseHungerRate>
<baseHealthScale>0.6</baseHealthScale>
</race>
<recipes>
</recipes>

<normalHeadGraphicPathMulti>Things/AIRobot/AIRobot_Head_Alpha</normalHeadGraphicPathMulti>
<refreshBaseInfosMax>2000</refreshBaseInfosMax>
<refreshQuickMax>25</refreshQuickMax>
<incapToExplosionCounter>200</incapToExplosionCounter>

<passionLevel>0</passionLevel>
<startingSkillLevel>10</startingSkillLevel>
<enhancedAI>false</enhancedAI>

<workTag>2</workTag>
<workTypeDefs>
<li>Research</li>
</workTypeDefs>

<!-- Debugging
<showAsColonist>True</showAsColonist> -->

  </ThingDef>


AIRobot_PawnKinds.xml
<PawnKindDef>
<defName>AIRobot_ResearcherBot</defName>
<label>Researcher Bot</label>
<race>AIRobot_ResearcherBot</race>
<combatPower>999999</combatPower>
<baseRecruitDifficulty>1</baseRecruitDifficulty>
<backstoryCategory>Spacer</backstoryCategory>
<isFighter>false</isFighter>
<lifeStages>
<li>
<bodyGraphicData>
<texPath>Things/AIRobot/GardenerBot</texPath>
<graphicClass>Graphic_Multi</graphicClass>
<drawSize>3</drawSize>
<shadowData>
<volume>(0.4, 0.2, 0.4)</volume>
<offset>(0,0,0)</offset>
</shadowData>
</bodyGraphicData>
</li>
</lifeStages>
<weaponMoney>
<min>0</min>
<max>0</max>
</weaponMoney>
<weaponTags>
<li>Gun</li>
</weaponTags>
<apparelTags>
<li>Spacer</li>
</apparelTags>
<apparelMoney>
<min>0</min>
<max>0</max>
</apparelMoney>
<apparelIgnoreSeasons>true</apparelIgnoreSeasons>
<apparelAllowHeadwearChance>0</apparelAllowHeadwearChance>
<backstoryCryptosleepCommonality>0</backstoryCryptosleepCommonality>
<forceNormalGearQuality>false</forceNormalGearQuality>
</PawnKindDef>


AIRobot_Buildings_RechargeStation.xml
<ThingDef Class="AIRobot.ThingDef_AIRobot_Building_RechargeStation" ParentName="AIRobotRechargeStationBase">
<defName>AIRobot_RechargeStation_ResearcherBot</defName>
<label>ResearcherBot Base Station</label>
<description>This station comes equipped with a specialized robot.</description>
<graphicData>
<texPath>Things/Building/AIRobot_RechargeStation/AIRobotRechargeStation_GardenerBot</texPath>
<graphicClass>Graphic_Multi</graphicClass>
<shaderType>CutoutComplex</shaderType>
<drawSize>(1,1)</drawSize>
<damageData>
<rect>(0.05,0.05,0.95,0.95)</rect>
</damageData>
</graphicData>
<minifiedDef>AIRobot_MinifiedRechargeStation</minifiedDef>
<fillPercent>0.25</fillPercent>
<statBases>
<MaxHitPoints>50</MaxHitPoints>
<Beauty>0</Beauty>
<WorkToMake>3000</WorkToMake>
<MarketValue>750</MarketValue>
</statBases>
<costList>
<Steel>50</Steel>
<Component>3</Component>
</costList>

<secondaryGraphicPath>Things/Building/AIRobot_RechargeStation/AIRobotRechargeStation_Empty1</secondaryGraphicPath>
<spawnThingDef>AIRobot_ResearcherBot</spawnThingDef>
<rechargeEfficiency>1.0</rechargeEfficiency>
</ThingDef>


here is a screenshot of the error http://prntscr.com/d146kp

Haplo

Yes, sorry. That may be one of the two or three hard-coded not usable skills.
I've disabled a few to reduce the needed calculation time for all backstories. With all available it took too long to calculate all possible backstories, so I've disabled two or so to reduce the needed possibilities a bit.
I think it was social, fighting and research? I'm not 100 sure right now without looking into the code.. But I'm rather sure that research is one of them. So this isn't a possible robot without changes in the c# code, sorry.
Edit: FYI: Only the worktags Artistic and Intellectual are disabled. Unfortunately Intellectual is needed for research, sorry.


For the problem with the costs: do you play alpha 15c previous versions are NOT supported!
And did you restart after activation?
Did you also have it activated in the correct sequence? Core... Misc Core, Other Misc Mods...

drats666

that is pretty sad to hear :( made a firefighter bot, animal specialist bot and a warden bot, working on textures for them.

faltonico

Hey Haplo! a Straightforward question for you.
How do i make MAI not able to get sick from radiation (from Rimushima mod) and/or toxic buildup (form toxic fallout)?

Haplo

Short answer: If she gets ill right now, then you cant prevent it..
I thought I built some code to remove it automatically, but I didn't test it lately so it may not work anymore..
Or.. No sorry, that was for injuries, not illnesses..


faltonico

Quote from: Haplo on November 04, 2016, 08:01:45 AM
Short answer: If she gets ill right now, then you cant prevent it..
I thought I built some code to remove it automatically, but I didn't test it lately so it may not work anymore..
Or.. No sorry, that was for injuries, not illnesses..

Thank you =)

Domar

Hi there, I'm having trouble in A15 with the Incidents, MAI, and Robots add-ons, each of them gives a an error for objects loaded, such as "TacticalComputer already has short hash", the other ones giving this error are AIPawn_Constructor, AIPawn, AIPawnE, AIPawn_RechargeStation, AIPawn_RechargeStation2x, AIRobot_Cleaner, AIRobot_Hauler, AIRobot_RechargeStation_Cleaner, and AIRobot_RechargeStation_Hauler, is there any way to quickly fix these issues? I can load a map fine(or so it seems), but after a few days ingame I'll get some weird graphical bugs that make the map unplayable, these are the only errors the log is spitting out.

Canute

Did you run Misc mods before and just update them to a newest version ?
If yes, delete all Misc mods, and unzip them again and check if this helps.

Haplo

Quote from: Domar on November 05, 2016, 12:02:15 AM
Hi there, I'm having trouble in A15 with the Incidents, MAI, and Robots add-ons, each of them gives a an error for objects loaded, such as "TacticalComputer already has short hash", the other ones giving this error are AIPawn_Constructor, AIPawn, AIPawnE, AIPawn_RechargeStation, AIPawn_RechargeStation2x, AIRobot_Cleaner, AIRobot_Hauler, AIRobot_RechargeStation_Cleaner, and AIRobot_RechargeStation_Hauler, is there any way to quickly fix these issues? I can load a map fine(or so it seems), but after a few days ingame I'll get some weird graphical bugs that make the map unplayable, these are the only errors the log is spitting out.

These are issues from the base game. They should be corrected somewhat in alpha 15c.
Are you using 15c? This mod doesn't work with 15a/b.
Will the errors still appear when you fully restart the game?
But unfortunately the short hash problem is not something I can change.
There will be additional changes in alpha 16 to correct the last issues with this problem. But for now they shouldn't make any problems anymore when you're on 15c.

faltonico

Hello Haplo!
I just wanted you to know that your bots cannot get sick... they made it all the way into a nuclear fallout.
How different are them to MAIs?

Haplo

Hmm I'll have to look into it. I may have changed the way the robots handle that.. But yes, the robots code got some serious updates lately and I may have changed this too..

duduluu


Hi! Haplo!
We finished the translation for your Misc. Mods and Power Switch Mod.
https://github.com/RimWorld-zh/Haplo-Mods-zh
Would you add these files to your mods?

RimTrans translation tool for RimWorld
RimWorld-English original text for translating RimWorld
RimWorld-zh.com my translation team website