Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - pablo603

#1
Help / Re: Good habits/advice for rimworld modding?
February 26, 2022, 06:55:51 AM
I made a few small mods myself (nothing C# though, just XML) so I think I can answer your question, at least from the XML side.

I think it's generally a good idea to familiarize yourself with all the different files, which files are connected to (and depend on) other files and what you actually can put into the defs (you can for example make an item (for example steel) emit light, something that doesn't really happen in vanilla AFAIK)

QuoteHow do you handle modding without messing with your playthrough? is it as straightforward as I imagine? disable every mod besides the ones you will rely on for testing purposes, and when you want to play just load the mod list of the save file, restart and you are good to go? because having to wait 5-10 mins for the game to start every time is a huge pain
Pretty much, yeah. I always deactivate the mods that I don't need and leave the ones that I do need and ones that help me with testing. I also leave my own mods (and some mods which I think could be incompatible) activated to make sure there are no incompatibilities between them. As you said, waiting 10 minutes for the game to load each time you make a change in your mods is indeed a pain and this is one way to reduce it. I even go as far as manually editing the file with activated mods to save the 10 minutes needed to deactivate them through rimworld itself.
It's located in C:\Users\UsewrName\AppData\LocalLow\Ludeon Studios\RimWorld by Ludeon Studios\Config\ModsConfig.xml
I make a backup before editing so that I can also very easily activate all previous mods by just swapping the files.

QuoteAnd for testing? do you make a new game every time to avoid the issues that may come from using save files?
I do (sort of), but never really thought about avoiding issues coming from using save files. Even though I don't need to use HugsLib for .xml mods, it has a very neat feature that can save your time while testing. If you have that mod activated and if you have the dev mode activated in-game as well, a new button pops up at the top even while you are still in the menu. It's a "Quickstart" button and it does exactly what it says. I attached an image below with the location of the quickstart button as well as its menu.
#2
Help / Re: Need help at rimworld mods
September 19, 2021, 05:57:12 AM
The newest version of Rimworld is 1.3, not 1.1
#3
526

This can't die... no... not like this...
#4
Releases / Re: [1.2] Nuclear Energy
October 11, 2020, 03:27:21 PM
Big, chonky BUMP
This mod is back with being constantly updated, but don't expect many, if any new features. I completely gave up on learning C# for now, as I'm learning both C++ and JavaScript at the same time at school and it's quite overwhelming. Maybe I'll get the motivation in the future.

Edit on 8th of April, 2021: Yeah and now PHP has come into play as well.
#5
I have absolutely no clue what's wrong with the workbench .xml file. Even if I just copy and paste the original machining table and only change the defName it just stops working completely with no errors in the console whatsoever. I can't do any recipes on it.

In case it's needed, here's the .xml file for my custom workbench (99% copied and pasted from the machining table with edits here and there). Any help is very greatly appreciated!
<?xml version="1.0" encoding="utf-8" ?>
<Defs>

  <ThingDef ParentName="BenchBase">
    <defName>TableRevival</defName>
    <label>revival table</label>
    <description>A high tech work station for reviving skeletons. Consumes a lot of power and needs additional power cells for it to work.</description>
    <thingClass>Building_WorkTable</thingClass>
    <graphicData>
      <texPath>Things/Building/Production/TableRevival</texPath>
      <graphicClass>Graphic_Multi</graphicClass>
      <drawSize>(3.5,1.5)</drawSize>
      <damageData>
        <cornerTL>Damage/Corner</cornerTL>
        <cornerTR>Damage/Corner</cornerTR>
        <cornerBL>Damage/Corner</cornerBL>
        <cornerBR>Damage/Corner</cornerBR>
      </damageData>
    </graphicData>
    <castEdgeShadows>true</castEdgeShadows>
    <staticSunShadowHeight>0.20</staticSunShadowHeight>
    <costList>
      <Steel>300</Steel>
      <ComponentIndustrial>10</ComponentIndustrial>
    </costList>
    <altitudeLayer>Building</altitudeLayer>
    <fillPercent>0.5</fillPercent>
    <useHitPoints>True</useHitPoints>
    <statBases>
      <WorkToBuild>6000</WorkToBuild>
      <MaxHitPoints>360</MaxHitPoints>
      <Flammability>0.2</Flammability>
      <Cleanliness>-5</Cleanliness>
    </statBases>
<recipes>
      <li>MakeUnwokenSkeleton</li>
    </recipes>
    <size>(3,1)</size>
    <designationCategory>Production</designationCategory>
    <passability>PassThroughOnly</passability>
    <pathCost>50</pathCost>
    <hasInteractionCell>True</hasInteractionCell>
    <interactionCellOffset>(0,0,-1)</interactionCellOffset>
    <surfaceType>Item</surfaceType>
    <constructionSkillPrerequisite>4</constructionSkillPrerequisite>
    <inspectorTabs>
      <li>ITab_Bills</li>
    </inspectorTabs>
    <comps>
      <li Class="CompProperties_Power">
        <compClass>CompPowerTrader</compClass>
        <shortCircuitInRain>true</shortCircuitInRain>
        <basePowerConsumption>800</basePowerConsumption>
      </li>
      <li Class="CompProperties_Flickable"/>
      <li Class="CompProperties_Glower">
        <glowRadius>5</glowRadius>
        <glowColor>(120,120,120,0)</glowColor>
      </li>
      <li Class="CompProperties_AffectedByFacilities">
        <linkableFacilities>
          <li>ToolCabinet</li>
        </linkableFacilities>
      </li>
      <li Class="CompProperties_Breakdownable"/>
 
       <li Class="CompProperties_Refuelable">
        <fuelConsumptionRate>50.0</fuelConsumptionRate>
        <fuelCapacity>5.0</fuelCapacity>
        <fuelFilter>
          <thingDefs>
            <li>SF_PowerCell</li>
          </thingDefs>
        </fuelFilter>
        <consumeFuelOnlyWhenUsed>true</consumeFuelOnlyWhenUsed>
        <showAllowAutoRefuelToggle>true</showAllowAutoRefuelToggle>
      </li>
</comps>
    <building>
      <spawnedConceptLearnOpportunity>BillsTab</spawnedConceptLearnOpportunity>
    </building>
    <constructEffect>ConstructMetal</constructEffect>
    <researchPrerequisites>
      <li>SkeletonRevival</li>
    </researchPrerequisites>
    <designationHotKey>Misc7</designationHotKey>
    <placeWorkers>
      <li>PlaceWorker_ShowFacilitiesConnections</li>
      <li>PlaceWorker_PreventInteractionSpotOverlap</li>
    </placeWorkers>
  </ThingDef>
</Defs>




Edit: I solved it. I lacked a WorkGiverDef. I feel stupid now lol.
#6
Off-Topic / Re: Countdown to Rimworld 2
March 22, 2020, 09:54:00 AM
8607
#7
378
#8
Off-Topic / Re: Countdown to Rimworld 2
March 21, 2020, 01:32:17 PM
Oh? Seems like I'm back

8609
#9
A user of my mod made a translation of it to German language but it's not in the usual "Languages" format so I had to do it myself. Research translations work, but for some reason research tab is not translated, building and items labels and descriptions aren't translated as well. I don't know what's going on. Here's one def from my mod:
  <ThingDef ParentName="ResourceBase">
    <defName>RefinedUranium</defName>
    <label>refined uranium</label>
    <description>Refined uranium. Can be used to create energy.</description>
    <graphicData>
      <texPath>Things/Item/Resource/UR</texPath>
      <graphicClass>Graphic_StackCount</graphicClass>
      <drawSize>1</drawSize>
    </graphicData>
<soundInteract>Metal_Drop</soundInteract>
    <soundDrop>Standard_Drop</soundDrop>
    <stackLimit>4</stackLimit>
<techLevel>Industrial</techLevel>
<statBases>
      <MarketValue>100</MarketValue>
      <Mass>0.50</Mass>
      <Flammability>0.2</Flammability>
  <DeteriorationRate>1.0</DeteriorationRate>
      <WorkToMake>1500</WorkToMake>
    </statBases>
    <costList>
      <Uranium>25</Uranium>
      <Steel>20</Steel>
      <Silver>4</Silver>
    </costList>
<comps>
<li Class="CompProperties_Glower">
        <glowRadius>2</glowRadius>
        <glowColor>(0, 223, 0)</glowColor>
    </li>
</comps>
    <recipeMaker>
      <recipeUsers>
        <li>BiofuelRefinery</li>
      </recipeUsers>
      <researchPrerequisite>UraniumProcessing</researchPrerequisite>
      <skillRequirements>
        <Intellectual>8</Intellectual>
      </skillRequirements>
    </recipeMaker>
<thingCategories>
      <li>Manufactured</li>
    </thingCategories>
  </ThingDef>



And here's the translation made for it:

<LanguageData>

  <RefinedUranium.label>Raffiniertes Uran</RefinedUranium.label>
  <RefinedUranium.description>Raffiniertes Uran zur erzeugung von Enerie.</RefinedUranium.description>


And it doesn't work ingame. I don't know what's wrong. The translation folder path resembles the one in the mod. Languages > German > DefInjected > ThingDefs_Items
Any help would be greatly appreciated
#10
Help / How can I replace enemy's mortars with cannons?
August 05, 2019, 07:17:59 AM
I have created a cannon with all the textures and stuff. I don't want to delete mortars entirely. I just want to change the build scheme during their sieges so they build those cannons instead of mortars. Is it even possible at all? Any help is appreciated!
#11
Releases / Re: [1.0] Early Firearms Mod 0.4
June 14, 2019, 06:11:03 PM
I was actually thinking of making a 17th century mod.
A small tip for you: add shading to your textures. Really, it does make a huge difference ;)
Take a look at these british uniforms I made today: https://imgur.com/a/YzBMvZK
(Imgur blurred the png files by the way)

Good luck and have fun!

Edit: Can I translate it to Polish language?
#12
I can't find the path to those hills you mentioned, but what I found is a texture file for hills and it's named differently than you said.
It was in downloadable vanilla textures 1.0

The first word of the file name is the true part, the rest you can ignore.

[attachment deleted due to age]
#13
I'm trying to make a 17th century faction that uses old blackpowder guns as their only firearms. The problem is their soldiers have this:
    <weaponTags>
      <li>Gun</li>
    </weaponTags>

And I don't know how to make a custom tag. There's nothing about it in my musket def file. Any help would be greatly appreciated!

Edit: Adding musket xml file in case it is needed
<?xml version="1.0" encoding="utf-8" ?>
<Defs>


  <ThingDef ParentName="BaseHumanMakeableGun">
    <defName>Gun_Musket</defName>
    <label>musket</label>
    <description>An ancient musket used from 16th to 19th century. Powerful, but slow. Has a bayonet attached.</description>
    <graphicData>
      <texPath>Things/Item/Equipment/WeaponRanged/Musket</texPath>
      <graphicClass>Graphic_Single</graphicClass>
  <drawSize>2</drawSize>
    </graphicData>
    <soundInteract>Interact_Rifle</soundInteract>
    <statBases>
      <WorkToMake>12000</WorkToMake>
      <Mass>3.5</Mass>
      <AccuracyTouch>0.70</AccuracyTouch>
      <AccuracyShort>0.90</AccuracyShort>
      <AccuracyMedium>1</AccuracyMedium>
      <AccuracyLong>1</AccuracyLong>
      <RangedWeapon_Cooldown>8</RangedWeapon_Cooldown>
    </statBases>
    <costList>
      <Steel>60</Steel>
      <ComponentIndustrial>3</ComponentIndustrial>
    </costList>
    <recipeMaker>
      <skillRequirements>
        <Crafting>5</Crafting>
      </skillRequirements>
    </recipeMaker>
    <verbs>
      <li>
        <verbClass>Verb_Shoot</verbClass>
        <hasStandardCommand>true</hasStandardCommand>
        <defaultProjectile>Bullet_BoltActionRifle</defaultProjectile>
        <warmupTime>2.5</warmupTime>
        <range>36.9</range>
        <soundCast>Shot_Musket</soundCast>
        <soundCastTail>GunTail_Heavy</soundCastTail>
        <muzzleFlashScale>9</muzzleFlashScale>
      </li>
    </verbs>
    <tools>
      <li>
        <label>stock</label>
        <capacities>
          <li>Blunt</li>
        </capacities>
        <power>9</power>
        <cooldownTime>2</cooldownTime>
      </li>
      <li>
        <label>bayonet</label>
        <capacities>
  <li>Cut</li>
          <li>Poke</li>
        </capacities>
        <power>9</power>
        <cooldownTime>2</cooldownTime>
      </li>
    </tools>
  </ThingDef>
  <ThingDef ParentName="BaseBullet">
    <defName>Bullet_Musket</defName>
    <label>musket bullet</label>
    <projectile>
      <damageDef>Bullet</damageDef>
      <damageAmountBase>23</damageAmountBase>
      <stoppingPower>1.5</stoppingPower>
      <speed>70</speed>
    </projectile>
    <graphicData>
      <texPath>Things/Projectile/Bullet_big</texPath>
      <graphicClass>Graphic_Single</graphicClass>
    </graphicData>
  </ThingDef>



 
</Defs>



Edit 2: Nevermind. Figured it out. Just had to add
    <weaponTags>
      <li>CustomTagHere</li>
    </weaponTags>

in the weapon xml file.
#14
Help / Re: Mod patch notes?
March 03, 2019, 06:04:52 PM
Quote from: Kirby23590 on February 24, 2019, 03:24:20 PM
pablo603, if i were you...

I don't think updating your mod removing something that is important like say a reactor that most people are using in the colonies in your mod, and removing it or changing it's size might cause brick their saves...

I would make a second mod that adds new stuff in it like say, missiles or something that's optional addons or something like that...

Just don't just remove some building or object that many people in your mod are using...
Sorry for a long response. I don't want to remove anything. I just wanted to add a second fuel requirement to serve as cooling and I guess it woulf appear if the mod required for it is activated and dosappear with a single error if deactivated. I don't think it would break saves, but I always test any feature I add and see if something breaks. I'll try the hugslib update thing. Most if not all people who use mods have hugslib already installed so they should get the popup. If I test the feature and it turns out to break saves I'll do as Canute said. 2 separate versions.
#15
Help / Mod patch notes?
February 23, 2019, 06:45:17 PM
I want to notify every subscriber of my mod because I'll make a change that'll require a separate mod. Would it be possible to do something like a letter coming in with a notification? And most importantly: would it require coding in C#? If it does require C# I can just create a temporary buildable telling people about the changes but many people have a lot of mods, thus their building list is very long so this method isn't perfect.