I need help with error: "Could not find a type named XYZ" with mod

Started by ManuElTrefilado, August 26, 2021, 10:25:53 AM

Previous topic - Next topic

ManuElTrefilado

I have no idea of modding and im trying to manually install the OnlineCity mod to play with my friends, but im having some errors with some classes:

Could not find a type named RimWorldOnlineCity.MainButtonWorker_OC
Could not find a type named RimWorldOnlineCity.MainTabWindow_OC
Could not find a type named RimWorldOnlineCity.MainTabTestButton
Could not find a type named RimWorldOnlineCity.CaravanOnline
Could not find a type named RimWorldOnlineCity.BaseOnline


When i enter the Defs folder i find two other folders, one named MainButtonDef, with two XML files, and the other named WorldObjectDefs, with one XML file. This XML files have what i undestand is the classes declaration, here one of them:

  <WorldObjectDef>
    <defName>CaravanOnline</defName>
    <label>Other player's caravan</label>
    <description>Other online player's caravan</description>
    <worldObjectClass>RimWorldOnlineCity.CaravanOnline</worldObjectClass>
    <!--texture>World/WorldObjects/CaravanOnline</texture>
    <expandingIconTexture>World/WorldObjects/CaravanOnlineExpanding</expandingIconTexture-->
    <expandingIcon>true</expandingIcon>
    <expandingIconPriority>95</expandingIconPriority>
   <saved>false</saved>
  </WorldObjectDef>

Then, i have found some CS files with similar names as the classes declared in Mods\OnlineCity-master\Source\RimWorldOnlineCity\GameClasses (as seen in the photo that i attached).

This files start (after some using OCUnion, using RimWorld.Planet, etc) with the next lines (this one is an example of one of them):

namespace RimWorldOnlineCity
{
    [StaticConstructorOnStartup]
    public class BaseOnline : CaravanOnline
    {

I have no idea what im doing wrong, and what im doing in general hahaha. I think it must be a dumb error but i cant figure out how to solve it, i would really apreciate some help.


 






RawCode

you downloaded __sources__ of the mod, please read installation notes carefully, multiple times if needed.