Go Back   RunUO - Ultima Online Emulation > RunUO > RunUO Post Archive

RunUO Post Archive The Archvie

Reply
 
Thread Tools Display Modes
Old 01-05-2005, 04:12 AM   #1 (permalink)
php-junkie
Guest
 
Posts: n/a
Default Item Dupe and Region Serialization

It is probably to late to suggest this.

When you pick up a partial stack of something a new item of type Item is left behind. Can you you rework it so the new item is the same type as the item type you lifted?
I was about a happy camper when I finally figured out how to get around it.
Code:
public override Item Dupe( int amount )
{
	return Dupe( new MarijuanaBud(), amount );
}
Samething with region serialization. Can you have it save the type and create that type on world load instead of just creating the new region of type Region. Unfortunately I wasn't able to get around this one.
  Reply With Quote
Old 01-05-2005, 04:18 AM   #2 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

region serialization.

Has always be broken, I can tell you, if your trying to use it your doing it wrong.
Phantom is offline   Reply With Quote
Old 01-05-2005, 04:23 AM   #3 (permalink)
php-junkie
Guest
 
Posts: n/a
Default

In order to get a region to serialize something you have to enable the serialization in the region.

public override bool Saves{ get{ return true; } }

[EDIT]
The problem is when the world loads it creates a new region of type Region instead of creating the type that inherits the Region class which sucks because the only thing you can serialize is properties of the region class and nothing beyond that.
  Reply With Quote
Old 01-05-2005, 04:54 AM   #4 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

php-junkie you do realize I already knew that right?

Infact I know its buggy because during work on Factions Asayre and I ran into issues.

Like I said region serilzation is not how you should do it.

Your welcome to listen to somebody who knows what he is talking about from experience or continue to waste your time.

Your cannot do what you want the way your writting your system, the region serilzation has always been buggy.
Phantom is offline   Reply With Quote
Old 01-05-2005, 05:03 AM   #5 (permalink)
Master of the Internet
 
Quantos's Avatar
 
Join Date: Apr 2003
Location: Edmonton, AB
Age: 41
Posts: 6,867
Send a message via ICQ to Quantos Send a message via AIM to Quantos Send a message via MSN to Quantos Send a message via Yahoo to Quantos
Default

Is it going to be fixed, or can it be fixed Phantom?
__________________
Paranoia is what happens when you finally have all of the facts.
Quantos is offline   Reply With Quote
Old 01-05-2005, 05:17 AM   #6 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Quote:
Originally Posted by Quantos
Is it going to be fixed, or can it be fixed Phantom?
Its been broke for 2 years :-)
Phantom is offline   Reply With Quote
Old 01-05-2005, 05:43 AM   #7 (permalink)
Master of the Internet
 
Quantos's Avatar
 
Join Date: Apr 2003
Location: Edmonton, AB
Age: 41
Posts: 6,867
Send a message via ICQ to Quantos Send a message via AIM to Quantos Send a message via MSN to Quantos Send a message via Yahoo to Quantos
Default

Quote:
Originally Posted by Phantom
Its been broke for 2 years :-)
Okay, but will it or can it be broken.

I could just assume that because it's been broken for two years that means that it's not repairable. But that could be an incorrect assumption.
__________________
Paranoia is what happens when you finally have all of the facts.
Quantos is offline   Reply With Quote
Old 01-05-2005, 05:57 AM   #8 (permalink)
php-junkie
Guest
 
Posts: n/a
Default

It is hardly a bug. I know this because I've tested it and I know for a fact it works. I'm also sure it works exactly how it was intended to work. It just lacks in functionality and knowing this it should have been obvious that I have already gone with a alternative method of saving state.

I wasn't asking for your help so why your giving me your input is beyond me. I was simply giving a suggestion which doesn't require a reply from anyone unless it is the Dev team asking for more input that I seriously doubt they need.
  Reply With Quote
Old 01-05-2005, 05:59 AM   #9 (permalink)
php-junkie
Guest
 
Posts: n/a
Default

Quantos, It isn't broken. It just needs to be expanded on.
  Reply With Quote
Old 01-05-2005, 06:05 AM   #10 (permalink)
Master of the Internet
 
Quantos's Avatar
 
Join Date: Apr 2003
Location: Edmonton, AB
Age: 41
Posts: 6,867
Send a message via ICQ to Quantos Send a message via AIM to Quantos Send a message via MSN to Quantos Send a message via Yahoo to Quantos
Default

Ah, okay. Not like it really mattered to me anyway. I didn't even realize there was an issue with it until I read this thread.

I definately wouldn't lose sleep over it in any event
__________________
Paranoia is what happens when you finally have all of the facts.
Quantos is offline   Reply With Quote
Old 01-05-2005, 06:07 AM   #11 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Why exactly are you being rude to me?

Zippy is the one that told me its broke ever 11 months ago.

Its never been worked on, its never worked corectly.

I think actually the problem was loading region changes, which thus makes serailzation pointless.

All I know your not being "nice" about getting help. I will let Asayre deal with the thread, tired of being treated badly for an unknown reason.

You claim you didn't ask for input, yet based on your posts you are.

I think your just full of yourself and not your not willing to listen to somebody who knows something you don't.
Phantom is offline   Reply With Quote
Old 01-05-2005, 06:15 AM   #12 (permalink)
php-junkie
Guest
 
Posts: n/a
Default

Really? I think you were looking to deep into it. I mean seriously. If I was asking for help don't you think I would have posted in the Script Support forum.
  Reply With Quote
Old 01-05-2005, 06:58 AM   #13 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Forget it.

I was only trying to tell you why your having problem.

Region serilzation is still broken, since you can't load your changes.

Your welcome to argue this point, I just don't continue this pointless discussion.

Why your not going to believe me, and waste your time, I will never know.
Phantom is offline   Reply With Quote
Reply

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 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5