TheArt

Member
So, I was having an issue with my servuo not wanting to play nice with Daat99. The issue I was banging my head against my desk about. My carpentry menu was popping out items made with the wood but not using the right wood. I found an old sort of thing and I figured... This could help people.

The issue is really you need to replace board with log for the script of defcarpentry.cs and replace the line defining the sorts of boards with "Logs" instead of the number defining board.

This script right here helped me out quite a bit as a reference...

Example of New script
C#:
            this.AddCraft(typeof(BarrelStaves), 1044294, 1027857, 00.0, 25.0, typeof(Log), 1044041, 5, 1044351);
            this.AddCraft(typeof(BarrelLid), 1044294, 1027608, 11.0, 36.0, typeof(Log), 1044041, 4, 1044351);
            this.AddCraft(typeof(ShortMusicStand), 1044294, 1044313, 78.9, 103.9, typeof(Log), 1044041, 15, 1044351);
            this.AddCraft(typeof(TallMusicStand), 1044294, 1044315, 81.5, 106.5, typeof(Log), 1044041, 20, 1044351);
            this.AddCraft(typeof(Easle), 1044294, 1044317, 86.8, 111.8, typeof(Log), 1044041, 20, 1044351);
            if (Core.SE)
C#:
            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.");

Example of old script

C#:
            AddCraft(typeof(BarrelStaves), 1044294, 1027857, 00.0, 25.0, typeof(Board), 1044041, 5, 1044351);
            AddCraft(typeof(BarrelLid), 1044294, 1027608, 11.0, 36.0, typeof(Board), 1044041, 4, 1044351);
            AddCraft(typeof(ShortMusicStandLeft), 1044294, 1044313, 78.9, 103.9, typeof(Board), 1044041, 15, 1044351);
            AddCraft(typeof(ShortMusicStandRight), 1044294, 1044314, 78.9, 103.9, typeof(Board), 1044041, 15, 1044351);
            AddCraft(typeof(TallMusicStandLeft), 1044294, 1044315, 81.5, 106.5, typeof(Board), 1044041, 20, 1044351);
            AddCraft(typeof(TallMusicStandRight), 1044294, 1044316, 81.5, 106.5, typeof(Board), 1044041, 20, 1044351);
            AddCraft(typeof(EasleSouth), 1044294, 1044317, 86.8, 111.8, typeof(Board), 1044041, 20, 1044351);
            AddCraft(typeof(EasleEast), 1044294, 1044318, 86.8, 111.8, typeof(Board), 1044041, 20, 1044351);
            AddCraft(typeof(EasleNorth), 1044294, 1044319, 86.8, 111.8, typeof(Board), 1044041, 20, 1044351);
C#:
            SetSubRes(typeof(Board), 1072643);

            // 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(Board), 1072643, 00.0, 1044041, 1072652);
            AddSubRes(typeof(OakBoard), 1072644, 65.0, 1044041, 1072652);
            AddSubRes(typeof(AshBoard), 1072645, 75.0, 1044041, 1072652);
            AddSubRes(typeof(YewBoard), 1072646, 85.0, 1044041, 1072652);
            AddSubRes(typeof(HeartwoodBoard), 1072647, 95.0, 1044041, 1072652);
            AddSubRes(typeof(BloodwoodBoard), 1072648, 95.0, 1044041, 1072652);
            AddSubRes(typeof(FrostwoodBoard), 1072649, 95.0, 1044041, 1072652);
        }
    }
}
You will need to replace all the board with Log. You have scrutinize it though as you do so as there are 2 items that contain the word board. Then at the bottom, you will need to replace "SetSubRes(Typeof(Board), 1072643" to "AddSubRes(typeof(Log), "Log", 00.0, 0);"

This made it work for me with Daat99 on the old server build where it is consuming the logs of the build I already had, along with adding boards as well. I changed the required skill as well to what i felt would be right for my server.

I felt this would help anyone who is scratching their head about Daat99's Carpentry system not working for them.
 
Last edited:

Active Shards

Donations

Total amount
$50.00
Goal
$1,000.00
Back