|
||
|
|||||||
| Server Support on Windows Get (and give) support on general questions related to the RunUO server itself. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Newbie
Join Date: Apr 2007
Age: 20
Posts: 3
|
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
|
|
|
|
|
|
#2 (permalink) |
|
Forum Expert
Join Date: Nov 2003
Location: Illinois, USA
Age: 22
Posts: 2,911
|
Just curious, but why exactly do you want to store the accounts in a database?
__________________
Useful links (Use them or die in a fire!!!): Ultimate Little Guide, C# Tutorials & Docs, RunUO Basic Scripts, Run UO How to..., Configure server for connections, Scripting for Dummies, Common Problem Solutions, FAQ Forum, RunUO Wiki, Basic Generics, Xml Tutorial |
|
|
|
|
|
#3 (permalink) |
|
Forum Newbie
Join Date: Apr 2007
Age: 20
Posts: 3
|
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
|
|
|
|
|
|
#5 (permalink) |
|
Forum Expert
Join Date: Nov 2003
Location: Illinois, USA
Age: 22
Posts: 2,911
|
Yeah and it can limit the number of accounts for IP addresses
__________________
Useful links (Use them or die in a fire!!!): Ultimate Little Guide, C# Tutorials & Docs, RunUO Basic Scripts, Run UO How to..., Configure server for connections, Scripting for Dummies, Common Problem Solutions, FAQ Forum, RunUO Wiki, Basic Generics, Xml Tutorial |
|
|
|
|
|
#8 (permalink) |
|
Forum Expert
Join Date: Nov 2003
Location: Illinois, USA
Age: 22
Posts: 2,911
|
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.
__________________
Useful links (Use them or die in a fire!!!): Ultimate Little Guide, C# Tutorials & Docs, RunUO Basic Scripts, Run UO How to..., Configure server for connections, Scripting for Dummies, Common Problem Solutions, FAQ Forum, RunUO Wiki, Basic Generics, Xml Tutorial |
|
|
|
|
|
#9 (permalink) |
|
Forum Expert
Join Date: Nov 2003
Location: Illinois, USA
Age: 22
Posts: 2,911
|
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.
__________________
Useful links (Use them or die in a fire!!!): Ultimate Little Guide, C# Tutorials & Docs, RunUO Basic Scripts, Run UO How to..., Configure server for connections, Scripting for Dummies, Common Problem Solutions, FAQ Forum, RunUO Wiki, Basic Generics, Xml Tutorial |
|
|
|
|
|
#10 (permalink) |
|
Forum Novice
|
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.
|
|
|
|
|
|
#11 (permalink) |
|
Forum Novice
|
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 ) 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. |
|
|
|
|
|
#12 (permalink) |
|
Master of the Internet
Join Date: Oct 2005
Age: 45
Posts: 6,283
|
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 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|