PenUltima Online

It is currently Tue Oct 07, 2008 8:53 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Character Creation
PostPosted: Sun Jul 01, 2007 12:10 pm 
Offline
POL Developer
User avatar

Joined: Wed Jan 25, 2006 2:30 am
Posts: 419
Location: San Diego, California
Edit: Was supposed to be a reply to http://forums.polserver.com/viewtopic.php?t=1612



Gotcha. While im at it, I think ill change how character creation works.
This way the client made and account method made characters are easier to handle

The core will create a blank template character and pass that to the scripts/misc/oncreate script along with some arrays

program OnCreate(mobile, settings, items)

settings would contain a dict with stuff like ["color"] containing the skin color selected.

Items would contain the hair object type and color selected and the shirt.

Then these settings must be applied in the oncreate script.. one would be assembled in the distro for all shards to use


Thoughts?

_________________
-Austin


Last edited by Austin on Sun Jul 01, 2007 3:17 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 01, 2007 12:27 pm 
Offline
POL Core Developer

Joined: Mon Jan 30, 2006 9:28 am
Posts: 292
Location: Germany, Bavaria
sounds good. even if the information is still evailable (like, the hair on the head or color of char ;o)

Shinigami


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 01, 2007 5:07 pm 
Offline

Joined: Sat Feb 04, 2006 6:26 pm
Posts: 558
Can I assume that
var slot := acct.AddCharacter(0);
would then trigger oncreate immediately or can I finish a script first?

Would it be best for the AddCharacter to duplicate what the client sends when creating a character?

There is obviously some core action right now that supplies a lot of stuff before oncreate is run, so are you planning to remove what the core does and simply send along all the client supplied parameters for oncreate to handle?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 02, 2007 4:57 am 
Offline
POL Developer
User avatar

Joined: Wed Jan 25, 2006 2:30 am
Posts: 419
Location: San Diego, California
OldnGrey wrote:
Can I assume that
var slot := acct.AddCharacter(0);
would then trigger oncreate immediately or can I finish a script first?

Would it be best for the AddCharacter to duplicate what the client sends when creating a character?

There is obviously some core action right now that supplies a lot of stuff before oncreate is run, so are you planning to remove what the core does and simply send along all the client supplied parameters for oncreate to handle?


The core will check some validity towards character creation before proceeding to oncreate: if its a valid account, valid character slot, no characters already logged in. Assigning a serial number and initial placement in the world would also be core-side.

Checking for valid skin color, item color, etc. would become the responsibility of oncreate as well as assigning stats and skills.

account.AddCharacter() could have additional arguments that get forwarded to oncreate to be handled there.

account.AddCharacter(slot, attribute, properties, items) or something

_________________
-Austin


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 02, 2007 5:37 am 
Offline

Joined: Sat Feb 04, 2006 6:26 pm
Posts: 558
Sounds good.
Does gender get in the way at all or will that be entirely up to oncreate - I suppose that also goes for the elves too. That stuff would be sent by the client. At the moment it's a male human that we make changes to.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 02, 2007 8:36 pm 
Offline

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1154
Location: Southern Central USA
Oh goody!!!

More mods to make to my scripts work with 0.97 core.

Now that I've complained let me say that I am generally happy when the core functions are handed off to scripts. As long as I can understand the OnCreate.src that Aussy is writing for the 0.97 Distro then I'll be happy.
*grins*

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 02, 2007 9:44 pm 
Offline

Joined: Sat Aug 05, 2006 11:43 am
Posts: 176
Oh, I want to complain to. The world is not fair. Someone please re-write it and post it in SVN... Nothing.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 04, 2007 4:35 am 
Offline

Joined: Sat Feb 04, 2006 6:26 pm
Posts: 558
Don't worry Yukiko.
I doubt this will add much to oncreate and I am sure those lines can get published around the same time as the core release for it.

Put it this way, since I use it I will be doing it as a matter of urgency so I can promise something quickly. I've spent a lot of time in the new character scripts recently :)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 04, 2007 8:25 am 
Offline
POL Developer
User avatar

Joined: Wed Jan 25, 2006 2:30 am
Posts: 419
Location: San Diego, California
Ill be releasing an oncreate script in the SVN at the same time I complete the core changes.

_________________
-Austin


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 04, 2007 3:27 pm 
Offline

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1154
Location: Southern Central USA
Thanks Austin.

You know even though you frustrate me with the core changes I generally like what is happening with it. As I said the more control that can be passed to the scripts is, in my not so humble opinion, a good thing.

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 18, 2007 7:24 pm 
Offline

Joined: Sat Feb 04, 2006 6:26 pm
Posts: 558
Right now I have to report that acct.AddCharacter(0) is buggy enough for me to stop using it altogether for now.

When a new player logs on with one of these accounts there is a fair chance they will simply disconnect within a couple of seconds of entering the world. I am not sure if it's related to the ealier bug where a new character is marked as in-use and cannot be deleted until they log on or shard restart. It's hard to me to reproduce on my pc.

They can play that character on another pc that already plays on the shard just fine, just not their own pc. I can use that character just fine on my pc.

I can't pin it down. The worldsave in pcs.txt looks fine, so it's down to something that is saved wrong on their own pc.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 18, 2007 10:49 pm 
Offline

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1154
Location: Southern Central USA
You know OnG I have had trouble with client crashes sometimes when accessing options and trying to change text colours on existing characters. I have had to go in to the UO folder and delete the desktop info for that particular character when that happens. Then everything is fine. I suspect that when you use the acct.AddCharacter(0) command something is not being sent to the client that allows the desktop for that character to set up properly in the UO folder on that person's machine. Then when you login since the character now exists somehow POL does send the correct info to your machine so that your client does connect properly.

Try having a player delete the desktop info for the auto created character in their UO folder when they get disconnected and then have them relog to see if they can connect. That may narrow the problem down.

To find the proper character to delete you have to follow the path to that character. Go to the directory in which you installed Ultima Online. Let's say the shard name is ubershard, the account is cooldude and the character is fred then the path would be \Desktop\cooldude\ubershard. In there you will find a directory named fred. Just delete that directory and then try logging in again.

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl