I am messing with the script a bit and went into mobile.cs and changed the followersmax in two locations to 10. Recompiled the server, but when I ran it the screen still showed 5 followers as the max number. Is there a way to change it so that the screen matches what it has been set too.

Did some testing and the changes I made to the max number of followers apparently did nothing. I tried to cast more than 2 bladed spirits and was only able to cast 2. I guess I need help in figuring out where to make the change.

I went back into container.cs and found the max number of items. Not sure how I missed it the first time. That has been taken care.

Thanks for any help.
 
Last edited:
Change code like this

Mobile.cs in Server folder

Change code : function DefaultMobileInit()
m_FollowersMax = 5; to m_FollowersMax = 10;

Check your Mobile.cs script's version in function Serialize(GenericWriter writer)
writer.Write(35); // version <==
Change your script's version ( Adding 1 )
It will be like this
writer.Write(36);

Change code : function Deserialize(GenericReader reader)
if (version < 15)
{
m_Followers = 0;
m_FollowersMax = 5;
}
to
if (version < 36)
{
m_Followers = 0;
m_FollowersMax = 10;
}

that's all :)

Recompile your ServUO.exe and enjoy.
 
Change code like this

Mobile.cs in Server folder

Change code : function DefaultMobileInit()
m_FollowersMax = 5; to m_FollowersMax = 10;

Check your Mobile.cs script's version in function Serialize(GenericWriter writer)
writer.Write(35); // version <==
Change your script's version ( Adding 1 )
It will be like this
writer.Write(36);

Change code : function Deserialize(GenericReader reader)
if (version < 15)
{
m_Followers = 0;
m_FollowersMax = 5;
}
to
if (version < 36)
{
m_Followers = 0;
m_FollowersMax = 10;
}

that's all :)

Recompile your ServUO.exe and enjoy.


Thanks, that worked perfectly. Can you either explain how that works or point me to where I can learn the information. I think I understand, but in following the code I got just a bit confused especially when you have case 22 for example and there is nothing there.

below is a snippet of where I think this is important.

switch (version)
{
case 33:
{
m_SpecialSlayerMechanics = reader.ReadBool();

if (reader.ReadBool())
{
int length = reader.ReadInt();

for (int i = 0; i < length; i++)
{
m_SlayerVulnerabilities.Add(reader.ReadString());
}

}
else
{
m_SlayerVulnerabilities = new List<string>();
}

goto case 32;
....

Thanks
 
Back