Ludeon Forums

RimWorld => Mods => Tools => Topic started by: m1st4x on September 14, 2020, 01:46:45 PM

Title: [TOOL] RimDef - A Rimworld XML definition browser
Post by: m1st4x on September 14, 2020, 01:46:45 PM
<RimDef>

A Rimworld XML definition browser

(https://raw.githubusercontent.com/m1st4x/RimDef/master/Preview/rimdev_prev2.png)(https://raw.githubusercontent.com/m1st4x/RimDef/master/Preview/rimdev_prev3.png)

It's been made to have an overview of what each mod adds into the game.

How to use:
1. Set path to Rimworld root directory
2. Filter by mod and definition-type
3. Select def to show details (description, recipe info, texture, xml-view)

More features to come:
- browse core definitions
- additional information for more def-types
- xml editing

It's work in progress - any ideas are welcome!

CHANGE LOG
-Version 1.0
-Version 1.1

Download at github.
https://github.com/m1st4x/RimDef

Prebuilt executable is provided.
Written in VS2019 / C# .NET 4.5.2

Check it out and leave me a comment.

-m1st4x-

</RimDef>
Title: Re: [TOOL] RimDef - A Rimworld XML definition browser
Post by: Canute on September 18, 2020, 01:10:40 PM
Hi,
i just got an idea.
Since you browser the /mods folder and basicly create a database of all defs of them, isn't it possible to safe that as a meta mod ?
My intention are to speedup the loading/startup process, maybe rimworld is faster when it just need to browser one big mod then 100+ small ones.
Title: Re: [TOOL] RimDef - A Rimworld XML definition browser
Post by: m1st4x on September 19, 2020, 07:49:50 AM
RimDef is parsing each mod on demand.
Reading all at once takes its time depending on the amount of mods.
Sure Rimworld already has a good xml parser doing that job.
Title: Re: [TOOL] RimDef - A Rimworld XML definition browser
Post by: Canute on September 19, 2020, 08:25:09 AM
Ok, so you don't see an advance to combine them all to speed up the loading.
It just was an idea.
Title: Re: [TOOL] RimDef - A Rimworld XML definition browser
Post by: m1st4x on September 24, 2020, 01:20:09 PM
Anyway - thanks for the input! Though I don't see how to speed up the loading time in that way.

RimDef is more meant to be a information/modding tool.
No more searching hundrets of directories and files to find some information.

Just released an update with new features!

Do you guys think it is a useful tool in general?

I haven't done much modding so far...
Most things that came into my mind have been done already or it's too much to go by my own.
So if someone needs a helping hand for a interesting project, let me know ;)

Chers,
m1st4x
Title: Re: [TOOL] RimDef - A Rimworld XML definition browser
Post by: thejogger1998 on October 26, 2020, 02:22:14 PM
Wow this is awesome thanks,
but does this mod conflict with in game def editor ? ( I mean prepared carefully and in game char editor conflicted so I ask just in case )

Does this offers an option to add more traits ?

Thanks
Title: Re: [TOOL] RimDef - A Rimworld XML definition browser
Post by: m1st4x on November 08, 2020, 09:52:31 AM
RimDef is a stand-alone application, not a mod, so no conflicts at all.
Editing the definitions within the tool is not implemented so far.
If you're interested, I can add this feature - not a big deal.

Title: Re: [TOOL] RimDef - A Rimworld XML definition browser
Post by: cloirecroms on November 12, 2020, 01:17:27 PM
Seem not working if i use it on Rimworld steam version.
Title: Re: [TOOL] RimDef - A Rimworld XML definition browser
Post by: m1st4x on November 13, 2020, 06:04:27 AM
Did you set the path to Rimworld root directory?
Not the /Mods folder!
Title: Re: [TOOL] RimDef - A Rimworld XML definition browser
Post by: cloirecroms on November 17, 2020, 12:10:36 PM
yes it is not working.
i try to set it on the Rimworld root, insite the steam folder.
Maybe because my mod is downloaded with steam workshop? as the mod location is not in the Rimworld root. Well i try to target the mod folder but it still not working.
Title: Re: [TOOL] RimDef - A Rimworld XML definition browser
Post by: m1st4x on November 27, 2020, 12:55:37 PM
Okay, can you give me the directory structure of your steam installation?
I'll then try to adapt it
Title: Re: [TOOL] RimDef - A Rimworld XML definition browser
Post by: Bandw2 on May 20, 2021, 10:08:35 PM
I'm posting in here since i see you updated the git 19 days ago

so steam has a Steam workshop folder, so items downloaded from the steam workshop go into a separate file structure.

B:\Steam\steamapps\workshop\content\294100\WORKSHOPID_ISLOTSOFNUMBERS\MODCONTENTS

is how mine is set up. if you include an optional 2nd file path for a workshop directory, they'd put in the 294100 (rimworld's steam ID i think) and then every folder in there is a mod with the normal architecture.

like B:\Steam\steamapps\workshop\content\294100\708455313\About\About.xml as an example for where the about file might be

workshop location is changeable, so it'd be best if people manually entered it, like mine is on a separate drive from rimworld

edit: could you make this so it compiles Defs after Xpaths are applied?

that's why I found this program and what I'm looking for. Something is causing a mod's patch to fail and the only thing i can think of is a third mod is patching the def, because it looks like it should be working.
Title: Re: [TOOL] RimDef - A Rimworld XML definition browser
Post by: m1st4x on June 17, 2021, 12:24:26 PM
Hey mate, thanks for the information. I'm working on it.

Q: what's the path of the core module in the steam version?
Title: Re: [TOOL] RimDef - A Rimworld XML definition browser
Post by: keyara on July 21, 2021, 04:18:51 PM
Just in case your still looking. Here's how to find the rimworld core and royalty and ideology.
D:\Steam\steamapps\common\RimWorld\Data
Here's where the steam workshop mods are:
D:\Steam\steamapps\workshop\content\294100
I am really looking forward to your application as I have the same problem I can't figure out who is causing problems through XML errors. If you need help I am interested, I'm not that good but I am a quick study.
Title: Re: [TOOL] RimDef - A Rimworld XML definition browser
Post by: m1st4x on August 01, 2021, 04:00:12 PM
Thanks mate! I'm gonna update soon.
Title: Re: [TOOL] RimDef - A Rimworld XML definition browser
Post by: m1st4x on August 07, 2021, 04:19:20 AM
The new release should now support steam mods.

https://github.com/m1st4x/RimDef/releases/tag/1.3
Title: Re: [TOOL] RimDef - A Rimworld XML definition browser
Post by: donoya on January 19, 2023, 12:21:36 AM
It seems like this tool doesn't let me see files from both the steam workshop and the rimworld mods folder. Also, it seems like when I select the steam workshop folder for Rimworld and select a mod from it, nothing loads in the filter box. This is regardless of which mod I select.