||unity-dev|| attribute persistence: more than one value/extra fields?

Discussion list for Unity developers. unity-dev at moock.org
Thu Sep 20 14:39:54 CDT 2007


Thanks for the reply and the suggestions,

I'm trying to create a workaround using delimited values and just moving 
data into and out of arrays - hopefully it will work.

I suppose the second option (server-side java, custom room) may actually be 
a better solution, but I really have no idea how to go about doing this, and 
I've not been able to find  anything in the archives or elsewhere. I'm 
wondering though, even if I was able to do this (or getting $omeone more 
knowledgeable than I to put something together) if it would then work the 
same way as setting/retrieving persistent attributes currently does?

I hope to have a prototype done soon (this is for my MSc thesis project) and 
have something to show - just a few obstacles and details left to tend to.

Thanks again,

drew


----- Original Message ----- 
From: "Discussion list for Unity developers." <unity-dev at moock.org>
To: <unity-dev at moock.org>
Sent: Monday, September 17, 2007 12:09 PM
Subject: Re: ||unity-dev|| attribute persistence: more than one value/extra 
fields?


> hi drew,
> sounds like you have two options:
> 1) store all the information in a single attribute with a delimited
> value. e.g.,
> vote = "voterID|voteeID|value"
>
> 2) write a little bit of server-side java in a custom room that receives
> the information via a custom UPC and sets fields accordingly in the db.
>
> hope that helps,
> colin
>
> Discussion list for Unity developers. wrote:
>> Hi all,
>>
>> I was trying to figure out a way to add additional fields to the MySQL
>> database used with attribute persistence. After looking through the
>> archives, I understand that this isn't possible with the built in
>> functionality of Unity? (Unity 2)
>>
>>  I'm wondering if any of you have had some success with accomplishing an
>> equivalent of this, or if anyone has developed a workaround to get more 
>> than
>> one value stored and retrieved to/from MySQL/Unity through other means? I
>> need to figure out how to get information to/from a database with a
>> different structure (2 extra fields). I've tried putting together a PHP
>> solution, but it doesn't work with Unity very nicely (refresh problems), 
>> and
>> I want to have seamless/synchronous attribute persistence like the rest 
>> of
>> the chat I've put together.
>>
>> What I'm trying to do (if some context helps at all.) is create a 
>> vote-based
>> reputation system for my avatar chat.  This means that I need to store 
>> the
>> id of the voter, the votee, and the value of the vote (so that a user can 
>> be
>> made aware of and change the vote given to another user).
>>
>> Thanks,
>>
>> drew
>>
>> --
>> you're a unity-dev subscriber. to unsubscribe, visit 
>> www.moock.org/mailman/listinfo/unity-dev/
>>
>> superb hosting for this list and moock.org is generously provided by 
>> Rackspace. See: http://www.rackspace.com/?supbid=moock
>>
>
> --
> you're a unity-dev subscriber. to unsubscribe, visit 
> www.moock.org/mailman/listinfo/unity-dev/
>
> superb hosting for this list and moock.org is generously provided by 
> Rackspace. See: http://www.rackspace.com/?supbid=moock 



More information about the unity-dev mailing list