New to modding, want to make a CR Patch.

Started by MisterMasada, January 20, 2017, 05:38:42 PM

Previous topic - Next topic

MisterMasada

I'm completely new to modding RimWorld and have limited experience with creating mods for other games, however, I would like to try making a CR patch for this mod https://ludeon.com/forums/index.php?topic=29191.0 that adds weapons from the Titanfall series of video games.

I know it's going to involve a lot of work with .XML files, I have Notepad++.

I'm sure that I can learn a lot just by looking at other CR patches but I'm still not sure where to start, so any help on the matter would be very welcome.

Jaxxa

Did you ever do those find the differences between these 2 image puzzles?
Basically start there, but instead of images you are looking at the .xml definitions for the weapons.

Find the definition for a weapon in CR and compare it to a definition in the base game, ideally the same or similar weapon.
The Notepad++ Compare plugin might help or any number of other tools, or you can eyeball it.

These differences should show you how to convert these other weapons to be used in CR.


You will probably want to create a new patch mod that will have to be loaded after CR and Rimfall. In the new mod you will have these .xml definitions that will override the definitions in Rimfall to make use of CR.

Thats how I would start.

MisterMasada

Quote from: Jaxxa on January 20, 2017, 09:05:58 PM
Did you ever do those find the differences between these 2 image puzzles?
Basically start there, but instead of images you are looking at the .xml definitions for the weapons.

Find the definition for a weapon in CR and compare it to a definition in the base game, ideally the same or similar weapon.
The Notepad++ Compare plugin might help or any number of other tools, or you can eyeball it.

These differences should show you how to convert these other weapons to be used in CR.


You will probably want to create a new patch mod that will have to be loaded after CR and Rimfall. In the new mod you will have these .xml definitions that will override the definitions in Rimfall to make use of CR.

Thats how I would start.

That sounds very sensible, I'll see what I can figure out.

MisterMasada

Quote from: Jaxxa on January 20, 2017, 09:05:58 PM

Thats how I would start.

Well, I've spent the past two days working on this patch, and I thought I had finally gotten to the point where I could test it only to run into some errors that seem to indicate some fundamental flaw in the XML I wrote up.

Error Logs http://imgur.com/a/klEWI

Broken Patch with all the XML stuff https://mega.nz/#!vMF2QBpJ!sPSYPZTS0YWKmnTDYD_CNxaHlH7FF3fudl-noCPV0Ig

Sorry, but could you give me a hand here? I have no clue what I've done wrong.

Vandris

Make sure your mod load order is correct
Core>Hugslib>CR>Rimfall>Patch

Make sure you've correctly named all ThingDef entries. It's case sensitive.
If you use XML Copy Editor, you can check if your file is well formed, which helps clean up the file.

I'm a noob so I can't be of much help, but I hope that was useful in some way. Good luck. :)
Not all who wander are lost. But oh boy, I sure am.

MisterMasada

Quote from: Vandris on January 24, 2017, 05:52:09 AM
Make sure your mod load order is correct
Core>Hugslib>CR>Rimfall>Patch

Make sure you've correctly named all ThingDef entries. It's case sensitive.
If you use XML Copy Editor, you can check if your file is well formed, which helps clean up the file.

I'm a noob so I can't be of much help, but I hope that was useful in some way. Good luck. :)

I FIXED IT!

That program was a big help squashing some of the smaller issues, the rest of it was due to me forgetting to put underscores in places or accidentally putting them where they didn't belong.

Azzarrel

Did you already release your CR patch?
I would like to fine-tune some of the Halo weapons to be CR compatible and looking into your CR patch might give me a solid way to learn it ^

MisterMasada

Quote from: Azzarrel on January 25, 2017, 09:14:00 AM
Did you already release your CR patch?
I would like to fine-tune some of the Halo weapons to be CR compatible and looking into your CR patch might give me a solid way to learn it ^

Sure, here you go https://ludeon.com/forums/index.php?topic=29191.msg304296#msg304296

Some of the stuff might be a little bit unbalanced but I don't know, I haven't done much testing (I've just been making sure it works). I also STRONGLY recommend that XML Copy Editor program (it's what got my mod working because I forgot to close a few verses).

Azzarrel

i know what you mean.
Wrote a Ck2 mod and forgot to close a few brackets.
I just used the 'count' funtion from notepad to count if the opened brackets match the closed ones, lel ^^