Go Back   RunUO - Ultima Online Emulation > RunUO > RunUO Post Archive > Custom Script Release Archive

Custom Script Release Archive This is a pre-script database archive of what our users had released.

 
 
Thread Tools Display Modes
Old 06-20-2006, 06:15 AM   #26 (permalink)
Forum Master
 
Join Date: Aug 2003
Posts: 5,688
Default

Quote:
Originally Posted by MetallicSomber
Ya I did a save and restart, but I didn't add the atachment manually in game, I added it into the basehouse script using:

// automatically add an xmlsiege attachment to this object
XmlAttach.AttachTo(this, new XmlSiege());

Is there some seralization, that needs to be added for them to always be attackable?

*EDIT* catapults, and the ram also don't seem to want to work after a restart.
no serialization changes are required for any object.

Do you have the latest version of xmlspawner2 for 2.0 installed?

Did you check for the attachments using [xmlfind? Sounds like they arent being restored.
Attachments have their own serialization independent of items/mobiles done after item/mobile serialization. If you shut down the server by killing the server process before the save is complete instead of going through the admin gump it is possible to corrupt the attachment save.

You could also check to see if there is an error log for attachment deser in your RunUO directory.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum
ArteGordon is offline  
Old 06-20-2006, 05:00 PM   #27 (permalink)
Forum Novice
 
Join Date: May 2004
Age: 31
Posts: 358
Default

I reinstalled the XMLSpawner just before adding the siege system to be sure. There was part of the XMLSpawner I could not get to install right, was throwing me errors, all the parts dealing with: originaldamage in BaseWeapon. Install instructuions about that had it listed in three places, in base weapon, and I tripple checked it and still couldn't get it to compile so I removed them. Everything else all the other features, even the ones I thought I may not use, I installed anyways.

As far as restarting, I used the [Restart command, There any diffrence between that and the one on the admin gump?

*EDIT* if its just me having this problem, would you want me to move this to a Support Tread somewhere?
__________________
My Shard:Avatar's Kingdom

Shard Forums: Avatar's Kingdom Forums

Last edited by MetallicSomber; 06-20-2006 at 05:03 PM.
MetallicSomber is offline  
Old 06-20-2006, 07:13 PM   #28 (permalink)
Forum Master
 
Join Date: Aug 2003
Posts: 5,688
Default

Quote:
Originally Posted by MetallicSomber
I reinstalled the XMLSpawner just before adding the siege system to be sure. There was part of the XMLSpawner I could not get to install right, was throwing me errors, all the parts dealing with: originaldamage in BaseWeapon. Install instructuions about that had it listed in three places, in base weapon, and I tripple checked it and still couldn't get it to compile so I removed them. Everything else all the other features, even the ones I thought I may not use, I installed anyways.

As far as restarting, I used the [Restart command, There any diffrence between that and the one on the admin gump?

*EDIT* if its just me having this problem, would you want me to move this to a Support Tread somewhere?
xmlsiege doesnt actually require any of the optional mods to work, but they are good to put in anyway since they will allow all of the optional spawner features and addons to work and they dont really cost anything.

using [restart is perfectly fine.

did you try using [xmlfind before and after restarting to see if the attachments are still there?

Did you look to see if there is any attachment error log in the main RunUO directory?
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum
ArteGordon is offline  
Old 06-21-2006, 03:51 AM   #29 (permalink)
Forum Novice
 
Join Date: May 2004
Age: 31
Posts: 358
Default

Probably a really stupid question but what would the error log be called if there was one and where would it be?

When I do [xmlfind and search for xmlsiege it dont show anything, and when I do
[xmlfind basemulti 20
it only shows the houses I placed after the last restart.

sorry I forgot to include that in last post. I really do think alot about the help you do by the way ya get like this and you get nervious sometimes, and forget things.
__________________
My Shard:Avatar's Kingdom

Shard Forums: Avatar's Kingdom Forums

Last edited by MetallicSomber; 06-21-2006 at 04:29 AM.
MetallicSomber is offline  
Old 06-21-2006, 06:38 AM   #30 (permalink)
Forum Master
 
Join Date: Aug 2003
Posts: 5,688
Default

If there was an attachment deserialization error, it would add a log file that was named something like 'Attachment Error 3-6-2006-19-39-20.log'. If you had emailing of crash logs enabled, then that file would also be emailed to the same staff that got crash notices.

the next thing that I would check is to see if the attachments are being saved by looking in your RunUO Saves folder and looking in the folder named Attachments to see if you have the attachments.ima, attachments.fpi, and attachments.bin files and that they are not zero length.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum
ArteGordon is offline  
Old 06-21-2006, 07:48 AM   #31 (permalink)
Forum Novice
 
Join Date: May 2004
Age: 31
Posts: 358
Default

I gota be missing something somewhere then, cause only thing I got any any of those three files is this:
Code:
         $Server.Engines.XmlSpawner2.XmlDialog       ¹                    €µ!\(ˆÇ      ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ                                   Dracondar's lute
      ÿÿÿÿ     ÿÿÿÿ     ÿÿÿÿ     ÿÿÿÿ                                     ÿÿÿÿ     ÿÿÿÿ     ÿÿÿÿ     ÿÿÿÿ     ÿÿÿÿ     ÿÿÿÿ     ÿÿÿÿ  £á    @ Õ<,ˆÇ    samantha              999         0Have you heard about the king's bard Winthrop?. rumor 33         ®I can scarcely believe it myself.  The rumor is that he stole a magical lute from the dragon Dracondar, and Dracondar is offering a handsome reward to anyone that returns it.  1         4Now who in their right mind would help out a dragon?  2         !You might consider helping him?. help,mind,would 3         ’Well, in that case, I happened to overhear someone who claimed to have seen Winthrop in Lord British's castle. That's where I would start looking.aye,yes 4         ]But let me give you a tip.  If you dont remain hidden, I doubt you will be able to catch him. kGIVE/<questnote/name/Dracondar's lute/notestring/Return Dracondar's magical lute/objective1/Find Winthrop.>5   
   
   GI don't blame you. You dont look like the adventuring sort. 'Bit pasty.no 4   !   !   !Could the rumor possibly be true?  -1   "   !   He was so trustworthy.  -1   #   !   A fine day!  -1   $   !   Hmmm, what's that smell?  -1   %   !   It looks like rain.  -1   &   !   .I wish I hadn't drunk so much last night. hic!  -1
And if Im not mistaken thats from one of your XML quests, I had a problem with it though and it crashed the shard, I didn't ever put much effort into figureing out why it crashes, cant even recall what the crash report said now, its been months and months ago.
__________________
My Shard:Avatar's Kingdom

Shard Forums: Avatar's Kingdom Forums
MetallicSomber is offline  
Old 06-21-2006, 09:36 AM   #32 (permalink)
Forum Master
 
Join Date: Aug 2003
Posts: 5,688
Default

Quote:
Originally Posted by MetallicSomber
I gota be missing something somewhere then, cause only thing I got any any of those three files is this:
Code:
         $Server.Engines.XmlSpawner2.XmlDialog       ¹                    €µ!\(ˆÇ      ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ                                   Dracondar's lute
      ÿÿÿÿ     ÿÿÿÿ     ÿÿÿÿ     ÿÿÿÿ                                     ÿÿÿÿ     ÿÿÿÿ     ÿÿÿÿ     ÿÿÿÿ     ÿÿÿÿ     ÿÿÿÿ     ÿÿÿÿ  £á    @ Õ<,ˆÇ    samantha              999         0Have you heard about the king's bard Winthrop?. rumor 33         ®I can scarcely believe it myself.  The rumor is that he stole a magical lute from the dragon Dracondar, and Dracondar is offering a handsome reward to anyone that returns it.  1         4Now who in their right mind would help out a dragon?  2         !You might consider helping him?. help,mind,would 3         ’Well, in that case, I happened to overhear someone who claimed to have seen Winthrop in Lord British's castle. That's where I would start looking.aye,yes 4         ]But let me give you a tip.  If you dont remain hidden, I doubt you will be able to catch him. kGIVE/<questnote/name/Dracondar's lute/notestring/Return Dracondar's magical lute/objective1/Find Winthrop.>5   
   
   GI don't blame you. You dont look like the adventuring sort. 'Bit pasty.no 4   !   !   !Could the rumor possibly be true?  -1   "   !   He was so trustworthy.  -1   #   !   A fine day!  -1   $   !   Hmmm, what's that smell?  -1   %   !   It looks like rain.  -1   &   !   .I wish I hadn't drunk so much last night. hic!  -1
And if Im not mistaken thats from one of your XML quests, I had a problem with it though and it crashed the shard, I didn't ever put much effort into figureing out why it crashes, cant even recall what the crash report said now, its been months and months ago.

That looks like the dialog for the Dracondar's lute quest. Do you have that loaded on your system now?

Generally crashes related to the xmldialogs are due to other custom scripts that have speech handlers that assume that all speech is coming from players and make improper casts. The xmldialogs allow npcs to generate speech that those scripts will also catch.
They are pretty easy to fix by just making the correct checks for playermobiles before casting in those custom scripts.

(edit)

try adding in this debugging code to the Serialize method in XmlSiege.cs

Code:
		public override void Serialize(GenericWriter writer)
		{
			Console.WriteLine("Serializing {0} on {1}", this, this.AttachedTo);
			base.Serialize(writer);
Are you running on a multiprocessor machine by any chance?

This might have something to do with the 2.0 changes in saving.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum

Last edited by ArteGordon; 06-21-2006 at 09:50 AM.
ArteGordon is offline  
Old 06-21-2006, 09:01 PM   #33 (permalink)
Forum Novice
 
Join Date: May 2004
Age: 31
Posts: 358
Default

Not sure what that did, but it works wheew, good part is I only got to replace one house that beloged to a player lol. a few of the test siege equipment also quit working, but thats just stuff I was using. Anything else I should do you think?

*EDIT* no actually I just got a regular single proccessor.
__________________
My Shard:Avatar's Kingdom

Shard Forums: Avatar's Kingdom Forums
MetallicSomber is offline  
Old 06-21-2006, 10:20 PM   #34 (permalink)
Forum Master
 
Join Date: Aug 2003
Posts: 5,688
Default

Quote:
Originally Posted by MetallicSomber
Not sure what that did, but it works wheew, good part is I only got to replace one house that beloged to a player lol. a few of the test siege equipment also quit working, but thats just stuff I was using. Anything else I should do you think?

*EDIT* no actually I just got a regular single proccessor.
what was it that you did?
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum
ArteGordon is offline  
Old 06-21-2006, 11:47 PM   #35 (permalink)
Forum Novice
 
Join Date: May 2004
Age: 31
Posts: 358
Default

Quote:
Originally Posted by ArteGordon
what was it that you did?
I dono all I did was add that code you gave in the serilazation, on the XmlSiege.cs,

It is doing this between saves now, Before when I posted (I had restarted sevral times) after the auto save it does this:

Code:
World: Saving...Serializing Server.Engines.XmlSpawner2.XmlSiege on 0x4001F5E1 "TownHouse"
Serializing Server.Engines.XmlSpawner2.XmlSiege on 0x40001004 "SiegeCannon"
Serializing Server.Engines.XmlSpawner2.XmlSiege on 0x4000090E "SiegeRam"
Serializing Server.Engines.XmlSpawner2.XmlSiege on 0x400008CE "SiegeCatapult"
Serializing Server.Engines.XmlSpawner2.XmlSiege on 0x400006C6 "SmallOldHouse"
Serializing Server.Engines.XmlSpawner2.XmlSiege on 0x4002DA52 "TownHouseDoor"
Serializing Server.Engines.XmlSpawner2.XmlSiege on 0x4002DA51 "TownHouseDoor"
Serializing Server.Engines.XmlSpawner2.XmlSiege on 0x4002DA4F "TownHouse"
Serializing Server.Engines.XmlSpawner2.XmlSiege on 0x40007697 "PirateCamp"
Serializing Server.Engines.XmlSpawner2.XmlSiege on 0x4000525F "SmallOldHouse"
Serializing Server.Engines.XmlSpawner2.XmlSiege on 0x4001F5E7 "TownHouseDoor"
Serializing Server.Engines.XmlSpawner2.XmlSiege on 0x40000695 "SiegeCatapult"
Serializing Server.Engines.XmlSpawner2.XmlSiege on 0x4001F5E5 "TownHouseDoor"
I had thought that maybe the house wasn't there long enough for the auto save to kick in, before I did a [restart, but one of the houses that became unattackable again, was a player house that we placed, and it was there for atleast 8 hours before the restart. Infact, we demolished his pre Siege install house because it wasn't attackable. The catapult and ram where also there about that long too before they wen't unattackable.
__________________
My Shard:Avatar's Kingdom

Shard Forums: Avatar's Kingdom Forums

Last edited by MetallicSomber; 06-21-2006 at 11:59 PM.
MetallicSomber is offline  
Old 06-22-2006, 06:34 AM   #36 (permalink)
Forum Master
 
Join Date: Aug 2003
Posts: 5,688
Default

so is the current situation that you have some objects (houses and weapons) that still are not having their xmlsiege attachments saved?

If so, do you know if they are being listed during saves by the debug code that was added?

Note that you can also manually add the attachment to a house without having to demolish and rebuild it.

Quote:
To add an attachment to a multi use a command like

[area addatt xmlsiege where basemulti

and target around the multi.
Cannons can attack multis by simply targeting any part of the multi that is within the line of sight of the cannon.
To access attachments on multis, use xmlfind with the Range restriction to search for nearby basemultis and then access the siege attachment by selecting the blue button shown on the individual search result listings.

[xmlfind basemulti 20

will set up a search for all basemultis within 20 tiles.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum
ArteGordon is offline  
Old 06-22-2006, 07:51 AM   #37 (permalink)
Forum Novice
 
Join Date: May 2004
Age: 31
Posts: 358
Default

They wern't saveing before, but now they are, and I don't know what has changed, except that code for the seralization you had me add in. *shrugs* I know you said that was just for debug purposes, but does that force it to save the stuff? I'm not complaining either way, but I was wondering if I should just leave that alone now that it seems to be working, or should I remove it so it don't list all the houses in the server window after each save? (wouldnt save times still be the same regardless?)
__________________
My Shard:Avatar's Kingdom

Shard Forums: Avatar's Kingdom Forums
MetallicSomber is offline  
Old 06-22-2006, 10:06 AM   #38 (permalink)
Forum Master
 
Join Date: Aug 2003
Posts: 5,688
Default

Quote:
Originally Posted by MetallicSomber
They wern't saveing before, but now they are, and I don't know what has changed, except that code for the seralization you had me add in. *shrugs* I know you said that was just for debug purposes, but does that force it to save the stuff? I'm not complaining either way, but I was wondering if I should just leave that alone now that it seems to be working, or should I remove it so it don't list all the houses in the server window after each save? (wouldnt save times still be the same regardless?)
It's a puzzle. I have never seen that before and there is no reason that adding in that debugging statement should have had any effect on serialization.
I would go ahead and take it out.

I will try to reproduce it as well.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum
ArteGordon is offline  
Old 06-23-2006, 04:06 AM   #39 (permalink)
Forum Novice
 
Join Date: May 2004
Age: 31
Posts: 358
Default

Just a final thought, but it may have happened when I added in the update, to make custom houses attackable too. *shrugs* if thats the case I guess all this was for nothing, hehe Thanks for your help though. and I'll be looking forward to any updates.

P.S. Does the bilista have a fireing animation, and all positions? if its only got two positions, it could be mounted on a castle wall where it would be most effective *shrugs*
__________________
My Shard:Avatar's Kingdom

Shard Forums: Avatar's Kingdom Forums
MetallicSomber is offline  
Old 06-23-2006, 05:55 AM   #40 (permalink)
Forum Master
 
Join Date: Aug 2003
Posts: 5,688
Default

Quote:
Originally Posted by MetallicSomber
Just a final thought, but it may have happened when I added in the update, to make custom houses attackable too. *shrugs* if thats the case I guess all this was for nothing, hehe Thanks for your help though. and I'll be looking forward to any updates.

P.S. Does the bilista have a fireing animation, and all positions? if its only got two positions, it could be mounted on a castle wall where it would be most effective *shrugs*
dont have the ballista in yet but the catapult is missing animation for the north facing (client just doesnt have the artwork).
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum
ArteGordon is offline  
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5