RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Problem with SmallTailorBOD.cs

gunkar

Sorceror
Hi,
After compiling the files, when I try to run the server I get this error, I'm using revision r1083.

Code:
RunUO - [www.runuo.com] Version 2.2, Build 5284.14418
Core: Running on .NET Framework Version 4.0.30319
Core: Optimizing for 1 64-bit processor
Core: Unix environment detected
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
+ Engines/BulkOrders/SmallTailorBOD.cs:
    CS0165: Line 88: Use of unassigned local variable `useMaterials'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

Can you guys help me out? Thanks.
 

Soteric

Knight
Change
Code:
			bool useMaterials;

			double theirSkill = m.Skills[SkillName.Tailoring].Base;
			if ( useMaterials = Utility.RandomBool() && theirSkill >= 6.2 ) // Ugly, but the easiest leather BOD is Leather Cap which requires at least 6.2 skill.
to
Code:
			bool useMaterials = Utility.RandomBool();

			double theirSkill = m.Skills[SkillName.Tailoring].Base;
			if ( useMaterials && theirSkill >= 6.2 ) // Ugly, but the easiest leather BOD is Leather Cap which requires at least 6.2 skill.
Probably you'll have to fix it on line 173 as well and edit other xxxBOD files in the same way.
 

gunkar

Sorceror
Thanks I will give it a try!! :)

On git repo gives me the same.

Code:
RunUO - [https://github.com/runuo/] Version 2.6.0.24024
Core: Running on .NET Framework Version 4.0.30319
Core: Optimizing for 1 64-bit processor
Core: Unix environment detected
RandomImpl: CSPRandom (Software)
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
+ Engines/BulkOrders/SmallTailorBOD.cs:
    CS0165: Line 88: Use of unassigned local variable `useMaterials'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
 

gunkar

Sorceror
Ok, now I have the Garbage collector problem!!

I follow a post from you about MemHelper.cs, but I'm not getting it, is there anyway I can get a test server running on a 512M machine?
 

Soteric

Knight
What kind of problems do you have?

As far as I remember 512MB should be enough to start the server.
 
Top