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!

Arya's << Addon Generator >>

seanandre

Sorceror
THANK YOU for updating and fixing this script Lucid! A lot of us idiots (like me) who don't really know how to script, but preffer to make addons use this script, and we appreciate it! This script as everyone well knows is also great for moving structures from 1 location to another. Great work.
 

LindyLou

Wanderer
Still have Issues with Names and Hues

I will post the script here so that maybe you can tell what we are doing wrong. I downloaded the latest version you have posted of the addongen. I wanted the statues and brambles all hued 2101but the steps to remain original 0 hue. I didn't rename any on this one but on others I have and they didn't retain names or colors. All help is appreciated as we are novices at this sort of thing. Thanks in advance.

/////////////////////////////////////////////////
// //
// Automatically generated by the //
// AddonGenerator script by Arya //
// //
/////////////////////////////////////////////////
using
System;
using Server;
using Server.Items;
namespace Server.Items
{
public class AG_InvasionStatueAddon : BaseAddon
{
public override BaseAddonDeed Deed
{
get
{
return new AG_InvasionStatueAddonDeed();
}
}
[
Constructable ]
public AG_InvasionStatueAddon()
{
AddComponent( new AddonComponent( 2328 ), 1, 1, 0 );
AddComponent( new AddonComponent( 3391 ), 1, 1, 3 );
AddComponent( new AddonComponent( 8441 ), 1, 1, 8 );
AddComponent( new AddonComponent( 2328 ), 0, 1, 0 );
AddComponent( new AddonComponent( 8396 ), 0, 1, 0 );
AddComponent( new AddonComponent( 2328 ), 0, 0, 0 );
AddComponent( new AddonComponent( 8452 ), 0, 0, 3 );
AddComponent( new AddonComponent( 3392 ), 0, 0, 0 );
AddComponent( new AddonComponent( 2328 ), 1, 0, 0 );
AddComponent( new AddonComponent( 8395 ), 1, 0, 0 );
AddonComponent ac;
ac = new AddonComponent( 2328 );
AddComponent( ac, 0, 0, 0 );
ac = new AddonComponent( 8452 );
ac.Hue = 2101;
AddComponent( ac, 0, 0, 3 );
ac = new AddonComponent( 3392 );
ac.Hue = 2101;
AddComponent( ac, 0, 0, 0 );
}
public AG_InvasionStatueAddon( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( 0 ); // Version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
public class AG_InvasionStatueAddonDeed : BaseAddonDeed
{
public override BaseAddon Addon
{
get
{
return new AG_InvasionStatueAddon();
}
}
[
Constructable]
public AG_InvasionStatueAddonDeed()
{
Name = "AG_InvasionStatue";
}
public AG_InvasionStatueAddonDeed( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( 0 ); // Version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}
 

Manu

Knight
The formatting is strange. It should look like this:

Code:
/////////////////////////////////////////////////
// //
// Automatically generated by the //
// AddonGenerator script by Arya //
// //
/////////////////////////////////////////////////
using System;
using Server;
using Server.Items;
namespace Server.Items
{
public class AG_InvasionStatueAddon : BaseAddon
{
public override BaseAddonDeed Deed
{
get
{
return new AG_InvasionStatueAddonDeed();
}
}
[ Constructable ]
public AG_InvasionStatueAddon()
{
[color=red]AddonComponent ac;
ac = new AddonComponent( 2328 );
ac.Hue = 0;
AddComponent( ac, 1, 1, 0 );
ac = new AddonComponent( 3391 );
ac.Hue = 2101;
AddComponent( ac, 1, 1, 3 );
ac = new AddonComponent( 8441 );
ac.Hue = 2101;
AddComponent( ac, 1, 1, 8 );
ac = new AddonComponent( 2328 );
ac.Hue = 0;
AddComponent( ac, 0, 1, 0 );
ac = new AddonComponent( 8396 );
ac.Hue = 2101;
AddComponent( ac, 0, 1, 0 );
ac = new AddonComponent( 2328 );
ac.Hue = 0;
AddComponent( ac, 1, 0, 0 );
ac = new AddonComponent( 8395 );
ac.Hue = 2101;
AddComponent( ac, 1, 0, 0 );
ac = new AddonComponent( 2328 );
ac.Hue = 0;
AddComponent( ac, 0, 0, 0 );
ac = new AddonComponent( 8452 );
ac.Hue = 2101;
AddComponent( ac, 0, 0, 3 );
ac = new AddonComponent( 3392 );
ac.Hue = 2101;
AddComponent( ac, 0, 0, 0 );[/color]
}
public AG_InvasionStatueAddon( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( 0 ); // Version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
public class AG_InvasionStatueAddonDeed : BaseAddonDeed
{
public override BaseAddon Addon
{
get
{
return new AG_InvasionStatueAddon();
}
}
[Constructable]
public AG_InvasionStatueAddonDeed()
{
Name = "AG_InvasionStatue";
}
public AG_InvasionStatueAddonDeed( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( 0 ); // Version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}
 
LindyLou

Code:
[SIZE=2]/////////////////////////////////////////////////
// //
// Automatically generated by the //
// AddonGenerator script by Arya //
// //
/////////////////////////////////////////////////
using System;
using Server;
using Server.Items;
namespace Server.Items
{
public class AG_TestingAddon : BaseAddon
{
public override BaseAddonDeed Deed
{
get
{
return new AG_TestingAddonDeed();
}
}
[ Constructable ]
public AG_TestingAddon()
{
AddonComponent ac;
ac = new AddonComponent( 350 );
ac.Hue = 553;
ac.Name = "The Piece Of Crap";
AddComponent( ac, 0, 0, 0 );
}
public AG_TestingAddon( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( 0 ); // Version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
public class AG_TestingAddonDeed : BaseAddonDeed
{
public override BaseAddon Addon
{
get
{
return new AG_TestingAddon();
}
}
[Constructable]
public AG_TestingAddonDeed()
{
Name = "AG_Testing";
}
public AG_TestingAddonDeed( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( 0 ); // Version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
[/SIZE]
I just made an addon with my most recent Addongen (same as posted). Here is what I got. It worked perfectly. Seems like this is an issue with the user.
 

LindyLou

Wanderer
You reply that it looks wrong and another reply says it's a user error. Ok, that may well be but why am I getting that result? I made the statue using Pandora's Box. I typed [addongen, hit enter and brought up the gump. I named the addon and checked both boxes that were empty as I had been instructed to do in the past and then clicked generate and targeted the start and stop points. If that's not what I should be doing, please tell me and tell me also what I should be doing so that it turns out right. :confused: Thanks again.
 
I think that might be the problem. Try with only "Export items" box checked, that should do the trick :)
Damn so all this BS is coming from Pandora's Box. OK I looked at mine and do not see an export button can you tell me where it is located? Maybe my version is old? I'd like to put this warning in post #1, thanks.
 

Manu

Knight
I'm not talking about Pandoras Box. I was referring to the three export options in the AddonGen Gump. If the "Export Statics" box is checked it messes up AddOns with changed hue and/or names :)
 
Manu

I'm not talking about Pandoras Box. I was referring to the three export options in the AddonGen Gump. If the "Export Statics" box is checked it messes up AddOns with changed hue and/or names :)
Opps sry. Thought you were talking about PB. I will look into that.

I only use the command with target prompts:
[addongen TestStructure
An Example.
 

Manu

Knight
So you are using it the same way I am. If you use it with the "[AddOnGen TestItem" syntax its set to "Export Items" enabled, "Export Statics" disabled and Specify Z Range disabled.

If you use it with the "[AddOnGen]" syntax and manually set "export statics" to enabled it "messed up" the script. Because even though you want to export items you placed as statics, the addongenerator doesnt see them as statics, but items. A bit confusing, took me a while to figure that out.
 

Jeefa

Wanderer
Uhh...?

Okay, I tried to make a palace addon, and I got a server crash. Does the Generator only work with non-static item? Here is my crash report

Code:
Server Crash Report
===================

RunUO Version 1.0.0, Build 36918
Operating System: Microsoft Windows NT 5.1.2600.0
.NET Framework: 1.1.4322.2032
Time: 6/1/2006 8:14:04 PM
Mobiles: 2359
Items: 89365
Clients:
- Count: 1
+ ----------: (account = lordnero) (mobile = 0x931 'Nero')

Exception:
System.ArgumentException: Illegal characters in path.
   at System.IO.Path.Combine(String path1, String path2)
   at Arya.Misc.AddonGenerator.PickerCallback(Mobile from, Map map, Point3D start, Point3D end, Object state)
   at Server.PickTarget.OnTarget(Mobile from, Object targeted)
   at Server.Targeting.Target.Invoke(Mobile from, Object targeted)
   at Server.Network.PacketHandlers.TargetResponse(NetState state, PacketReader pvSrc)
   at Server.Network.MessagePump.HandleReceive(NetState ns)
   at Server.Network.MessagePump.Slice()
   at Server.Core.Main(String[] args)
 

Jeefa

Wanderer
Lucid Nagual said:
A report in debug mode would help.

Okay, I know iim forgetting something..
I created a shortcut of my Server.exe and put -debug after the target...but what am I forgetting?
 

Jeefa

Wanderer
I don't remember. I'll try again

The command is [AddonGen <NameOfItem> , right?

EDIT: NVM, I figured it out. Not supposed to use the <>'s....duh..
 

Roseanne

Wanderer
I don't seem to be able to download the files... when I click on them they open as if they were a website... is it me or what?
 
Top