Resource icon

OWLTR 4.0 for ServUO Pub 54 2

No permission to download

Cody

Citizen
I had fixed these issues i thought? Ill have to share again cause this doesnt look like what i did
Post automatically merged:

I had fixed these issues i thought? Ill have to share again cause this doesnt look like what i did
Ah it looks different because you dont have the custom resources listed
 

TheArt

Rookie
I had fixed these issues i thought? Ill have to share again cause this doesnt look like what i did
Post automatically merged:


Ah it looks different because you dont have the custom resources listed
I looked at the defcarpentry and on my version of servuo (it's probably outdated, but I was having issues with your version not implementing into my version and my version looked almost exactly like yours) and the issue it decided to have was not crafting properly. It would color the wood the right way but refuse to consume anything but regular boards. The version of my 'build' that I grabbed was doing the same thing. I had a lucky find in finding that script from 2011 and integrating it into the version of servuo I have. I wanted to share this to help with those who wanted to integrate.
 

Cody

Citizen
Im not saying it wasnt messed up im just saying i dont think i updated it yet but i remember playing around with alot of the craft system.
 

TheArt

Rookie
And possibly? I know I downloaded the rar available and it says board instead of log. My first example is the one that helped my pub of servuo. Now crafters are consuming boards and logs of that specific good.

With board listed, it's consuming... well regular plain old boards.
C#:
            //daat99 OWLTR start - custom resources
            daat99.ResourceHelper.AddWoodResources(this);
            //daat99 OWLTR end - custom resources
        }
    }
}

//Vs
          this.SetSubRes(typeof(Log), "Logs");
            
            //daat99 OWLTR start - custom Wood
            daat99.ResourceHelper.AddWoodResources(this);
            //daat99 OWLTR end - custom Wood

            // Add every material you want the player to be able to choose from
            // This will override the overridable material    TODO: Verify the required skill amount
            AddSubRes(typeof(Log), "Log", 00.0, 0);
            AddSubRes(typeof(AshLog), "Ash", 20.0, "You have no idea how to work this type of lumber.");
            AddSubRes(typeof(YewLog), "Yew", 30.0, "You have no idea how to work this type of lumber.");
            AddSubRes(typeof(OakLog), "Oak", 40.0, "You have no idea how to work this type of lumber.");
            AddSubRes(typeof(EbonyLog), "Ebony", 50.0, "You have no idea how to work this type of lumber.");
            AddSubRes(typeof(BambooLog), "Bamboo", 60.0, "You have no idea how to work this type of lumber.");
            AddSubRes(typeof(HeartwoodLog), "Heartwood", 70.0, "You have no idea how to work this type of lumber.");
            AddSubRes(typeof(BloodwoodLog), "Bloodwood", 80.0, "You have no idea how to work this type of lumber.");
            AddSubRes(typeof(FrostwoodLog), "Frostwood", 90.0, "You have no idea how to work this type of lumber.");
            AddSubRes(typeof(PurpleHeartLog), "PurpleHeart", 100.0, "You have no idea how to work this type of lumber.");
            AddSubRes(typeof(RedwoodLog), "Redwood", 110.0, "You have no idea how to work this type of lumber.");
            AddSubRes(typeof(PetrifiedLog), "Petrified", 115.0, "You have no idea how to work this type of lumber.");
           // AddSubRes(typeof(HeartwoodLog), "Heartwood", 120.5, "You have no idea how to work this type of lumber.");
          //  AddSubRes(typeof(BloodwoodLog), "Bloodwood", 131.0, "You have no idea how to work this type of lumber.");
           // AddSubRes(typeof(FrostwoodLog), "Frostwood", 146.0, "You have no idea how to work this type of lumber.")
        }
    }
}
Post automatically merged:

Im not saying it wasnt messed up im just saying i dont think i updated it yet but i remember playing around with alot of the craft system.
:D well I hope this helps. I had a player who was telling me and i was like O!O Must set to work. ^_^ You did a good job at integrating most of the stuff.
 

Cody

Citizen
No thats the log job that was supposed to consume boards and logs but really think it just did logs i think i actually have it set and consuming boards and also have daats edit commented out for resource helper
Post automatically merged:

You also have it there twice which isnt necessary i believe.
 

TheArt

Rookie
No thats the log job that was supposed to consume boards and logs but really think it just did logs i think i actually have it set and consuming boards and also have daats edit commented out for resource helper
Post automatically merged:

You also have it there twice which isnt necessary i believe.
The first part was showing a difference in the code. Sorry for the confusion. I am using an older verion of ServUO Due to our client not playing nice with the more recent pub. UOP multis don't fit the build I'm wanting and when we went for the build, we had issues with the 2018 version of servuo not doing well with the version of the UO client we needed. We then found we had issues with the only pub we could find being someone else custom server that we had to gut to get it as closer to what we needed as an older verion of the servuo as the version of 2018 wasn't being kind with what we needed it to do. Stuck between a hard place and a rock, we chose to gut the custom server, but de-integrating daat99 is just as hard if not harder than integrating daat99 OWLTR's system.
 
im getting this error
+ custom/MasterStorage/MasterStorage.cs:
CS1520: Line 29: Method must have a return type
CS1002: Line 29: ; expected
CS1519: Line 30: Invalid token ':' in class, struct, or interface member
laration
CS1519: Line 30: Invalid token ')' in class, struct, or interface member
laration
Scripts: One or more scripts failed to compile or no script files were found
C#:
/*
 created by:
     /\            888                   888     .d8888b.   .d8888b. 
____/_ \____       888                   888    d88P  Y88b d88P  Y88b
\  ___\ \  /       888                   888    888    888 888    888
 \/ /  \/ /    .d88888  8888b.   8888b.  888888 Y88b. d888 Y88b. d888
 / /\__/_/\   d88" 888     "88b     "88b 888     "Y888P888  "Y888P888
/__\ \_____\  888  888 .d888888 .d888888 888           888        888
    \  /      Y88b 888 888  888 888  888 Y88b.  Y88b  d88P Y88b  d88P
     \/        "Y88888 "Y888888 "Y888888  "Y888  "Y8888P"   "Y8888P" 
*/
//comment the USE_TOKENS line if you don't have daat99 tokens system (1.0) or daat99 OWLTR system
#define USE_TOKENS
//comment the USE_OWLTR3 line if you don't have OWLTR 2.0+
#define USE_OWLTR3

using Server;
using Server.Mobiles;
using Server.Items;
using System;
using Server.ContextMenus;
using System.Collections.Generic;
using System.Collections;
using daat99;
namespace Daat99MasterLooterSystem
{
    public sealed class MasterLooterSystem : MasterStorage
    {
      public MasterLootersystem(Serial serial)
            : base(serial)
         {
         }
        public override void Serialize(GenericWriter writer)
         {
            base.Serialize(writer);
         }
        public override void Deserialize(GenericReader reader)
         {
            base.Deserialize(reader);
         }
    }
}
 
after it loads i get this error
Error: Type 'Daat99MasterLooterSystem.MasterLooterGoldLedgerDeed' was not found
Delete all of those types? (y/n)
Types will not be deleted. An exception will be thrown.
Error:
System.Exception: Bad type 'Daat99MasterLooterSystem.MasterLooterGoldLedgerDeed

at Server.World.ReadTypes(BinaryReader tdbReader) in c:\Documents and Settin
s\Owner\Desktop\JustUO\Server\World.cs:line 311
at Server.World.Load() in c:\Documents and Settings\Owner\Desktop\JustUO\Ser
er\World.cs:line 436
at Server.Core.Main(String[] args) in c:\Documents and Settings\Owner\Deskto
\JustUO\Server\Main.cs:line 608
This exception is fatal, press return to exit
 

Quasar

Citizen
Did you somehow delete it or not have a copy?
 

Attachments

  • MasterStorageGoldLedgerDeed.cs
    2.1 KB · Views: 13
my 2 new errors i reinstalled it

Errors:
+ daat99 system/MasterStorage/MasterStorage.cs:
CS1502: Line 1422: The best overloaded method match for 'daat99.ItemInform
ion.ItemInformation(string, Server.Items.SlayerName[], Server.Items.ItemQualit
Server.Mobile, int)' has some invalid arguments
CS1503: Line 1422: Argument 3: cannot convert from 'Server.Items.Instrumen
uality' to 'Server.Items.ItemQuality'
+ daat99 system/MasterStorage/MasterStorageUtils.cs:
CS0266: Line 361: Cannot implicitly convert type 'Server.Items.ItemQuality
to 'Server.Items.InstrumentQuality'. An explicit conversion exists (are you mi
ing a cast?)
Scripts: One or more scripts failed to compile or no script files were found.
Post automatically merged:

my 2 new errors i reinstalled it

Errors:
+ daat99 system/MasterStorage/MasterStorage.cs:
CS1502: Line 1422: The best overloaded method match for 'daat99.ItemInform
ion.ItemInformation(string, Server.Items.SlayerName[], Server.Items.ItemQualit
Server.Mobile, int)' has some invalid arguments
CS1503: Line 1422: Argument 3: cannot convert from 'Server.Items.Instrumen
uality' to 'Server.Items.ItemQuality'
+ daat99 system/MasterStorage/MasterStorageUtils.cs:
CS0266: Line 361: Cannot implicitly convert type 'Server.Items.ItemQuality
to 'Server.Items.InstrumentQuality'. An explicit conversion exists (are you mi
ing a cast?)
Scripts: One or more scripts failed to compile or no script files were found.


BaseInstrument inst = (BaseInstrument)item;
ItemInformation iteminfo = new ItemInformation(inst.Name, new SlayerName[] { inst.Slayer, inst.Slayer2 }, inst.Quality, inst.Crafter, inst.UsesRemaining);


if (item is BaseInstrument)
{
((BaseInstrument)item).Name = info.Name;
((BaseInstrument)item).Slayer = info.Slayer;
((BaseInstrument)item).Slayer2 = info.Slayer2;
((BaseInstrument)item).Quality = info.Quality;
((BaseInstrument)item).Crafter = info.Crafter;
((BaseInstrument)item).UsesRemaining = info.UsesRemaining;
}

return item;
}
catch { }
 

Tobi320

Citizen
Hello All,
i get an Error after start my Server.

Errors:
+ Engines/BulkOrders/LargeBOD.cs:
CS1519: Line 274: Ungültiges Token Else
CS1519: Line 276 Ungültiges Token (
CS1518 Klasse, Delegat, Enumeration
CS1518: Line 293: Klasse, Delegat, Enumeration
CS1022: Line 294: Typ- or Namespacedefination

I Need Help :)
 

Visam

Rookie
Hello All,
i get an Error after start my Server.

Errors:
+ Engines/BulkOrders/LargeBOD.cs:
CS1519: Line 274: Ungültiges Token Else
CS1519: Line 276 Ungültiges Token (
CS1518 Klasse, Delegat, Enumeration
CS1518: Line 293: Klasse, Delegat, Enumeration
CS1022: Line 294: Typ- or Namespacedefination

I Need Help :)
You'll need to post the script
 

kojio

Citizen
Hello everyone think i have most everything working just this crash log when mining stone


Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at Server.Engines.Harvest.HarvestSystem.FinishHarvesting(Mobile from, Item tool, HarvestDefinition def, Object toHarvest, Object locked) in C:\Users\codya\Documents\DoomsDayUpdate\Scripts\Services\Harvest\HarvestSystem.cs:line 168
at Server.Engines.Harvest.HarvestSoundTimer.OnTick() in C:\Users\codya\Documents\DoomsDayUpdate\Scripts\Services\Harvest\Core\HarvestSoundTimer.cs:line 31
at Server.Timer.Slice() in C:\Users\codya\Documents\DoomsDayUpdate\Server\Timer.cs:line 409
at Server.Core.Main(String[] args) in C:\Users\codya\Documents\DoomsDayUpdate\Server\Main.cs:line 673
you may have already fixed it by now, and this file prolly needs to be straighten up but I got it to call and send correctly when mining stone and gems. I know nothing about this language or anything I figured it out with a little trail and error.
 

Attachments

  • HarvestSystem.cs
    30.9 KB · Views: 13

Helishus

Citizen
So I have incorporated this onto my server recently and the main issue I am having now is with the Gargoyle Axe. When someone who's skill is below 120 uses it and a wood elemental above their level spawns it crashes the server. So like if their skill is 110 and a purpleheart spawns it crashes.

Server Crash Report
===================

ServUO Version 0.5, Build 7468.31112
Operating System: Microsoft Windows NT 6.2.9200.0
.NET Framework: 4.0.30319.42000
Time: 8/23/2020 3:49:20 PM
Mobiles: 36988
Items: 225884
Exception:
System.ArgumentNullException: Key cannot be null.
Parameter name: key
at System.Collections.Hashtable.get_Item(Object key)
at Server.Items.CraftResources.GetFromType(Type resourceType)
at Server.Engines.Harvest.Lumberjacking.OnHarvestFinished(Mobile from, Item tool, HarvestDefinition def, HarvestVein vein, HarvestBank bank, HarvestResource resource, Object harvested, Type type)
at Server.Engines.Harvest.HarvestSystem.FinishHarvesting(Mobile from, Item tool, HarvestDefinition def, Object toHarvest, Object locked)
at Server.Engines.Harvest.HarvestSoundTimer.OnTick()
at Server.Timer.Slice()
at Server.Core.Main(String[] args)
 

donavan22

Citizen
Hi I am trying to make a server for my house hold. The problem I have with OWLTR is that I have the option set to use the master storage for crating resources and reagents. But it is not pulling regs when I cast a spell, it will pull for crafting.
 

magik hatt

Citizen
I have an issue with runic sewing kits that spawn from using gargoyle knives to create leather elementals. They appear and drop correctly, but when using them, they don't add any properties to crafted items. It looks like they are created here from RunicSewingKit.cs. Any ideas?
C#:
case 104: { PackItem(new RunicSewingKit(CraftResource.BarbedLeather, 5)); break; }

Also, does anyone know what to change within Imbuing.cs to allow imbuing from keys? I think it's an edit here:
C#:
if (success >= Utility.RandomDouble() || id < 0 || id > 180)
                {
                    if (from.AccessLevel == AccessLevel.Player)
                    {
                        from.Backpack.ConsumeTotal(gem, gemAmount);
                        from.Backpack.ConsumeTotal(primary, primResAmount);

                        if (specResAmount > 0)
                            from.Backpack.ConsumeTotal(special, specResAmount);
                    }


                    ImbueItem(from, i, id, value);
                }
                else
                {
                    // This is consumed regardless of success/fail
                    if (from.AccessLevel == AccessLevel.Player)
                    {
                        from.Backpack.ConsumeTotal(primary, primResAmount);
                    }

                    from.SendLocalizedMessage(1079774); // You attempt to imbue the item, but fail.
                    from.PlaySound(0x1E4);
                }