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

Topics - Teneombre

Bugs / Error in xml file. Old def use
January 20, 2018, 09:41:43 PM

I was cleaning a little bit my game because I have a lot of bug due to many mods (and not really clean update for my personal mod) but I found a bug in the game itself.

Here was the line in the debug log :

QuoteCould not resolve cross-reference to Verse.ThingDef named Neurotrainer

After a bit of research, the error was cause by a typo in this file : \Mods\Core\Defs\JobDefs\ItemCollectionGeneratorDefs\ItemCollectionGenerators_General.xml


but with the B18, Neurotrainer def changed and the good code is now :

I was septic about the error but after, I reload the game and no more references to a Neurotrainer error. I hope I didn't make a mistake and help a bit :)
Hi everyone :)

I come here with a mod request that is more, in fact, an update request of this mod :
There is two majors fonctions in : copying bill from bench, and copying surgery bill. The first one was since updated but not the second part and if you play with some enhanced body part, it will take you a lot of time to make surgery bill for everyone. So my request is quite simple : can someone knowing how assemblies works could take a look and update the code ? I can deal with .xml files now but not assemblies :/
Thanks in advance :)
I everyone,

I'm come here to ask your help because all the patches files I found modify a file with a defname as definition (I mean <defname>XX</defname> so they target using this defname [defname="XX"]. I currently trying to modify the global stats for tree (plant_base) in which there is no such defname to target. I can't nether just modify all the stats of all the bush/tree there since I only want to modify tree.
So, I use this code :

   <Operation Class="PatchOperationReplace">
     <xpath>/Defs/ThingDefs_Plants/ThingDef ParentName="PlantBase" Name="TreeBase" Abstract="True"/pathCost</xpath>
The problem is :
1- should the game throw back an error if a patches files is not valide ?
2- I can't use the name of the file "plant_base" because I want to be able to modify any mod with its own name. With the code I used, the game will look for "<ThingDef ParentName="PlantBase" Name="TreeBase" Abstract="True"> in all the files in the "ThingDef_Plants" folder or I didn't understant something ?
3-I try to reduce as much as possible the number of operation for my xpath to operate. Should I always start the path setting from the begining (so the general Defs folder) and so on, or must I only start the path setting from the subfolder there there is the files I want to change ?

Sorry for the noob questions. I was able to manage near everything in A16 by looking how other mods do and then learning but it's a little bit harder for the xpathing method. I hope someone will be able to help me there ^^
Thanks anyway for reading this :) Double thanks if you take time to answer :)
Help / Trade moding question
October 08, 2017, 11:02:20 AM
Hi everyone :)

I started moding rimworld since the a17 now and if I still don't touch any .dll, I'm quit used to .xml (creating object/recipe etc).
I'm currently trying to modify the way arts are show in the trade HUD. they are currently display one by one, in a really long list in my case. I want to make them act like body part, guns, cloth and other thing that are not stackable ingame but are stacked in trader HUD. I was try to use the <tradeability>Stockable</tradeability> but that won't work.

So my question are :
- how to stack arts in trader HUD ?
- What the "stockable" entry for tradeability is used too ? (didn't found any entry in the Core files)

Thansk everyone for reading it, I hope some of you have the answers I need.

PS : I'm pretty sure it's obvious but English is not my main language. I hope though his topic is still readable.