Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 04-06-2007, 06:13 PM   #1 (permalink)
Forum Newbie
 
Join Date: Apr 2007
Age: 20
Posts: 3
Thumbs down Accounts in MySQL?

Hi, I'm new here so i hope i'm putting this in the right forum. If not I apologize to the Admin(s). I've done a search on this but turned up nothing. I was wondering if there was any way to store the account information for the server in a MySQL Database? I was poking around the account scripts and i see it's writing an xml file, also i was looking at the myrunuo scripts too and saw you could use a database for that. I don't have any C# experience or i'd take a crack at it myself. But if anyone knows how, or even some general info i'd really appreciate it. Thanks in advance
PhatPanda is offline   Reply With Quote
Old 04-06-2007, 11:06 PM   #2 (permalink)
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 22
Posts: 2,911
Default

Just curious, but why exactly do you want to store the accounts in a database?
mordero is offline   Reply With Quote
Old 04-07-2007, 10:16 AM   #3 (permalink)
Forum Newbie
 
Join Date: Apr 2007
Age: 20
Posts: 3
Default

no reason really, except i had a though to have a signup form on my website and after someone submitted the form and confirmed their e-mail i wanted their account to be inserted so they would be able to play right away
PhatPanda is offline   Reply With Quote
Old 04-07-2007, 10:22 AM   #4 (permalink)
Forum Novice
 
Join Date: Jun 2004
Location: Michigan
Age: 26
Posts: 195
Send a message via MSN to septor
Default

By default the server automatically creates an account if it doesn't exist.
septor is offline   Reply With Quote
Old 04-07-2007, 01:23 PM   #5 (permalink)
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 22
Posts: 2,911
Default

Quote:
Originally Posted by septor View Post
By default the server automatically creates an account if it doesn't exist.
Yeah and it can limit the number of accounts for IP addresses
mordero is offline   Reply With Quote
Old 04-07-2007, 01:56 PM   #6 (permalink)
Forum Expert
 
TheOutkastDev's Avatar
 
Join Date: Sep 2002
Location: Houston, Texas
Age: 22
Posts: 3,933
Default

Quote:
Originally Posted by mordero View Post
Yeah and it can limit the number of accounts for IP addresses
But it doesn't let you submit additional information such as contact info, or use php/asp based account activation before the account can be created.
TheOutkastDev is offline   Reply With Quote
Old 04-07-2007, 02:03 PM   #7 (permalink)
Forum Expert
 
Join Date: Feb 2005
Age: 24
Posts: 985
Send a message via AIM to Nochte
Default

You could probably get your php or asp script to update the accounts XML file directly, instead of converting everything to database.
__________________
Quote:
Originally Posted by kkjjkk View Post
how sad you people call yourselves scripters and you can't even format an emulator game into something completely differnt....no wounder y'all are stuck here with no real scripting jobs unlike me. please go back to school.
QFDA
Nochte is offline   Reply With Quote
Old 04-07-2007, 02:08 PM   #8 (permalink)
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 22
Posts: 2,911
Default

Quote:
Originally Posted by TheOutkastDev View Post
But it doesn't let you submit additional information such as contact info, or use php/asp based account activation before the account can be created.
Yeah, but if he wants people to quickly be able to sign in, then you could always create a gump that requires that information before allowing them to play.
mordero is offline   Reply With Quote
Old 04-07-2007, 02:14 PM   #9 (permalink)
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 22
Posts: 2,911
Default

Quote:
Originally Posted by Nochte View Post
You could probably get your php or asp script to update the accounts XML file directly, instead of converting everything to database.
That wouldnt quite work though, because once the server is started, it loads all of the accounts and holds them. The only time it accesses the XML file again is to save it. So what he would need to do is to invoke the server to create this account some way. Perhaps another XML file that contains basic information that the server checks every 5 minutes or so would do the trick. It would need to contain at least a username and password, then the server could check this file and set up an account based on this information, which shouldnt be too hard.
mordero is offline   Reply With Quote
Old 04-07-2007, 09:54 PM   #10 (permalink)
Forum Novice
 
Join Date: Jun 2004
Location: Michigan
Age: 26
Posts: 195
Send a message via MSN to septor
Default

Quote:
Originally Posted by TheOutkastDev View Post
But it doesn't let you submit additional information such as contact info, or use php/asp based account activation before the account can be created.
How do accounts get activated if they aren't automatically created? I've seen servers with web forms that need filed out before your account is created. There's no amount of reasons that could be conjured up that would warrant the need for a MySQL database to store the accounts.
septor is offline   Reply With Quote
Old 04-07-2007, 11:28 PM   #11 (permalink)
Forum Novice
 
Join Date: Jan 2006
Location: Illinios
Age: 25
Posts: 162
Send a message via ICQ to viront
Default

replying to the original post,
This is only a suggestion since I haven't tried this but I believe you could create a C# script that uses MySQLDriverCS to read from your database then use this Account object in AccountHandler.cs
Code:
private static Account CreateAccount( NetState state, string un, string pw )
that way you have a script that deals with adding accounts and your database!

I'm sure there are many ways but I've already spent 30 min of work time looking into : /

Let me know how it goes and I'll try and give you a hand! (or maybe you will teach me something, either way its win win :P).
__________________
Meh.
viront is offline   Reply With Quote
Old 04-07-2007, 11:48 PM   #12 (permalink)
Master of the Internet
 
Join Date: Oct 2005
Age: 45
Posts: 6,283
Default

Well, I have seen a script here that does that (or something near), but can't for the life of me remember what forum it was in. I think it was in either programming or 3rd party program support though.
__________________
Why is it that I'm never as smart as I thought I was yesterday?
My vast knowledge is only surpassed by my infinite ignorance.
<TheOutkastDev> i might have to hire an assassin to killl mal so that i can jump in front of the bullet and piss on him
Malaperth is offline   Reply With Quote
Old 04-08-2007, 12:51 AM   #13 (permalink)
Forum Novice
 
Join Date: Jan 2006
Location: Illinios
Age: 25
Posts: 162
Send a message via ICQ to viront
Default

linky

This guys was working on it awhile ago... this should at least give you an idea of how to do this.
__________________
Meh.
viront is offline   Reply With Quote
Old 04-09-2007, 06:34 PM   #14 (permalink)
Forum Newbie
 
Join Date: Apr 2007
Age: 20
Posts: 3
Default

thanks for all the input, sorry i've been away from the comp for awhile. i'll let ya know what i get
PhatPanda 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