Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble With This Guide #2

Open
ReedTheDuck opened this issue Sep 8, 2023 · 5 comments
Open

Trouble With This Guide #2

ReedTheDuck opened this issue Sep 8, 2023 · 5 comments

Comments

@ReedTheDuck
Copy link

ReedTheDuck commented Sep 8, 2023

Hello, I just would like to say that I'm brand new to both modding and github, so I'm not really sure this is the best place to ask questions. However, I've found your tutorial really well made and intuitive for beginners with minimal programming knowledge. However, I'm getting an error during step 1. I followed the steps, got notepad++, got RimPy. Using RimPy I found my local mod folder at:
C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods
and in it created a folder called "TestMod." Inside of the folder the structure looks like this:

About
-About.xml
-Preview.png
Defs
-ThingDefs.xml
Patches
-ThingDefs_Patches.xml
Textures

At first, I was using your code and adding my own names to make it more unique, but I ran into problems during the step where you first start RimWorld to see if your mod works. When starting it up, I get the following message:
image

After I get this message, if I open the in-game mods tab, I see that it has automatically disabled TestMod and re-enabled all of the DLC (If they were disabled on launch. I tried both disabling the DLC and leaving it enabled when launching with my TestMod. No matter what, the results were the same.) After this, I decided to just copy your code and see if it would work then, but it is still giving me the same mesage. I've included my preview Image and all of my code below. It should perfectly match what you've made but mine refuses to load.

About.xml
<?xml version="1.0" encoding="UTF-8"?> <!-- Comments in XML look like this--> <ModMetaData> <name>Mod Name Here</name> <!-- This is the name of the mod --> <author>Your Name Here</author> <packageId>yourName.ModName</packageId> <!-- It is best to use this format--> <description>Super Cool Mod</description> <!-- Be Creative the description is what people will see when they look at your mod --> <supportedVersions> <li>1.4</li> </supportedVersions> <!-- This is the version of rimworld that the mod is compatible with --> </ModMetaData> <!-- be sure to close all tags you open -->

Preview.png
Preview

ThingDefs.xml
<?xml version="1.0" encoding="UTF-8"?> <Defs> <ThingDef> <defName>ModName_ItemName</defName> <!-- This is the name of the item. it must be unique and follow the format ModName_ItemName --> <label>Item Name</label> <!-- This is the name of the item that will be displayed in game --> <description>A description of the item</description> <graphicData> <texPath><!-- This is the path to the image that will be used for the item --></texPath> <graphicClass>Graphic_Single</graphicClass> <!-- This is the type of graphic that will be used for the item leave this as Single for now --> </graphicData> <stackLimit>75</stackLimit> <!-- This is the max number of items that can be stacked in one tile --> <category>ResourcesRaw</category> <!-- This is the category that the item will be placed in --> <thingClass>Thing</thingClass> <!-- This is the class that the item will use --> <statBases> <MarketValue>10</MarketValue> <!-- This is the value of the item --> </statBases> </ThingDef> </Defs>

ThingDefs_Patches.xml
<?xml version="1.0" encoding="UTF-8"?>

Any idea on what I'm doing wrong?

@LionelColaso
Copy link

you should join this discord channel for quick replies and help related to mods https://discord.gg/Mw3YWmt7

@ReedTheDuck
Copy link
Author

I don't know how to reply to you loveboylion or if you'll even see this but thank you.

@Zeta-of-the-rim
Copy link
Owner

Hey mate,

Ignore me if you're already fixed this, but you appear to be missing your parent name or your item
Give that a try and get back to me.

Cheers,
Zeta

@Chunnyluny
Copy link

Chunnyluny commented Sep 11, 2023

I think you have put your mod in the steam folder instead of the local mods folder. Local mods are placed where your have installed your game. Someone else failed to see his mod because they put it in the steam mods folder, where mods go when you sub to them. If you test your mod it should be local and not where steam puts your mod because it is not yet published on steam!!

@amandamullerg
Copy link

Hello, I'm having the same problem. Tried to copy and paste everything exactly the same as well but nothing works so far

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants