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!

[RunUO 2.0 RC1] Arya's <<_Addon Generator_>>

Hammerhand

Knight
I'm getting dupes as well. This is what keeps coming up. Test1 is static items, test2 is not.
test1
[ Constructable ]
public AG_test1Addon()
{
AddComponent( new AddonComponent( 7630 ), 0, -1, 0 );
AddComponent( new AddonComponent( 7631 ), 0, 0, 0 );
AddComponent( new AddonComponent( 7629 ), 0, 1, 0 );
AddonComponent ac;
ac = new AddonComponent( 7629 );
ac.Hue = 90;
AddComponent( ac, 0, 1, 0 );
ac = new AddonComponent( 7630 );
ac.Hue = 86;
AddComponent( ac, 0, -1, 0 );
ac = new AddonComponent( 7631 );
ac.Hue = 88;
AddComponent( ac, 0, 0, 0 );

This is test 2
[ Constructable ]
public AG_test2Addon()
{
AddComponent( new AddonComponent( 7631 ), 0, 0, 0 );
AddComponent( new AddonComponent( 7630 ), 0, -1, 0 );
AddComponent( new AddonComponent( 7629 ), 0, 1, 0 );
AddonComponent ac;
ac = new AddonComponent( 7629 );
ac.Hue = 90;
AddComponent( ac, 0, 1, 0 );
ac = new AddonComponent( 7630 );
ac.Hue = 86;
AddComponent( ac, 0, -1, 0 );
ac = new AddonComponent( 7631 );
ac.Hue = 88;
AddComponent( ac, 0, 0, 0 );

I see 2 of each item no matter which way it goes. If I remove the AddComponent( new AddonComponent, I no longer get the hue loss, nor do I lose names if I rename them. I am using RC1 if that makes any difference.
 
Hammerhand;701229 said:
I'm getting dupes as well. This is what keeps coming up. Test1 is static items, test2 is not.
test1


This is test 2


I see 2 of each item no matter which way it goes. If I remove the AddComponent( new AddonComponent, I no longer get the hue loss, nor do I lose names if I rename them. I am using RC1 if that makes any difference.
The problem is your using the menu. The menu has issues that I never got around to fixing. Please try the command instead: [addongen MyAddon
 
kirax2;678620 said:
Is there a version of this script that works with static (frozen into .mul) items? I have some custom houses frozen into the map that I would very much like to turn into add-ons.

Thanks for your help!
-kirax2

I agree. I will try and look into that option. The current option isn't working and is what is causing duplicate items.
 

Hammerhand

Knight
Lucid... I tried your suggestion, then experimented... Turns out, you can use the menu as long as the static isnt set to true. Thats what seems to cause the dupes. So I'm guessing that when static is set to true, the addongen thinks its a second set of items to add? Dunno.. I'm no big brained scripter, just a guy that works nights. Anywho.. thx for the help. Its a handy lil program Arya created. Thx to Arya and you both. *bows to the gods of creativity* :D
 

casey13

Wanderer
namespace AND a type

ok, so I am getting a conflict that says I cannot create a namespace and a type both named Server.Command, Im guessing I just didnt extract it correctly, whats going on here?
 
Code:
RunUO - [www.runuo.com] Version 2.0, Build 2959.20979
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 2 processors
Scripts: Compiling C# scripts...failed (1 errors, 1 warnings)
Warnings:
 + Customs/PlayerMadeStatue.cs:
    CS0105: Line 29: The using directive for 'System.Collections.Generic' appear
ed previously in this namespace
Errors:
 + Customs/AddonGenerator.cs:
    CS0029: Line 213: Cannot implicitly convert type 'System.Collections.Generic
.List<Server.Tile>' to 'System.Collections.ArrayList'
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.

I get this error messege trying to use your script. (i've gotten the warning messege before... but i'd like to use this script)
 

Grom09

Sorceror
svn

im using svn but..
im getting this
Errors:
+ CUSTOM/Addons/[2[1].0]AddonGenerator.cs:
CS0029: Line 213: Cannot implicitly convert type 'System.Collections.Generic
.List<Server.Tile>' to 'System.Collections.ArrayList'

how can i fix?
 

jacquesc1

Sorceror
i got a problem?

Errors:
+ My Customs/AddonGenerator.cs:
CS0029: Line 213: Cannot implicitly convert type 'System.Collections.Generic
.List<Server.Tile>' to 'System.Collections.ArrayList'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
 

smeghead

Wanderer
ArrayList was replaced in RunUO2, yet it says this is 2 compatible?

Is there a working addongen for RunUO2.0
If not i'll give the conversion a try


public override void GetContextMenuEntries( Mobile from, ArrayList list )

should be replaced with

public override void GetContextMenuEntries( Mobile from, List<ContextMenuEntry> list )
 

doaker

Wanderer
yep im sure its in the forums i using RC2 2.0 and it works fine for me. if you cant find it ill post it for you.
 
run uo final

I am running runuo final. and im getting the same error as posted above. Has anyone one found a fix for that. Im new to this but trying to learn.
 

ironworker

Sorceror
Hello Arya's i just added this scrit to my AI folder (droped it in ) and booted up server . This is what i got on bootup... RunUO - [www.runuo.com] Version 2.0, Build 3567.2838
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
+ Engines/AI/AddonGenerator.cs:
CS0029: Line 213: Cannot implicitly convert type 'System.Collections.Gener
.List<Server.Tile>' to 'System.Collections.ArrayList'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

Is their a quik fix for this ?
 

Hammerhand

Knight
ironworker;827116 said:
Hello Arya's i just added this scrit to my AI folder (droped it in ) and booted up server . This is what i got on bootup... RunUO - [www.runuo.com] Version 2.0, Build 3567.2838
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
+ Engines/AI/AddonGenerator.cs:
CS0029: Line 213: Cannot implicitly convert type 'System.Collections.Gener
.List<Server.Tile>' to 'System.Collections.ArrayList'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

Is their a quik fix for this ?
Try reading the posts above yours maybe? Others with the same problem and how it can be fixed..
 

ironworker

Sorceror
I'm still looking for a way to fix this error for line 213 with no success :( , I'll keep an eye out for when some finds a fix for it , Hopefully it'l be soon :) thnx for sharing your script with those that are interested in using it and hope i get to try it out for myself as well ,i'm just learning the basics on scripting also so any lil bit of info i can get will help termendlessly thnx : Ironworker
 
Top