[WIPz] GHF Census and Excise Office

Post » Fri May 27, 2011 7:09 am

Right. Now, if you took and just stored a checksum of the database, and checks against that before uploading, you would use almost no space. But have to upload it all. Possibly split the db into a few pieces?
User avatar
Stace
 
Posts: 3455
Joined: Sun Jun 18, 2006 2:52 pm

Post » Fri May 27, 2011 9:18 am

Right. Now, if you took and just stored a checksum of the database, and checks against that before uploading, you would use almost no space. But have to upload it all. Possibly split the db into a few pieces?

Maybe. My brain has kicked in and said that it is probably better leaving it and only trying to speed things up if the upload data is too large or fliggs server is getting to many UPDATE querys.
User avatar
lolly13
 
Posts: 3349
Joined: Tue Jul 25, 2006 11:36 am

Post » Fri May 27, 2011 12:04 pm

To be perfectly honest, you guys lost me. I'm working frantically to learn all about PHP+MySQL, but there are some fundamentals I need to work out first. I am right now working on building the basic databse, and reading that to display on the site; also I have almost got the user registration system functioning. Beyond that, this is still greek to me. So I'll certainly be reading all of this again in the future.

So what I am to understand about MyMWSQL is that it cannot write to a local database, only a remote. MWSQL is the opposite? But if we use SQLite, it will have somewhat of a different structure, or different syntax?

- Player saves game
- Player closes game
- Player runs upload program
- Upload program reads game, taking certain records and adds them to a POST query
- Upload program sends the request and POST data to http://fliggerty.com/addchar.php
- addchar.php takes the data, reads certain fields from the POST data, and updates the database


How can this be made to run automatically while the player is actually playing?

Oh, and as for the journal, I don't see any reason why it wouldn't be sufficient for the player to manually upload it. When we get it, we will rename it and place it in a specific directory and place the new filename in the database. It will take a little bit of modifying the file itself to remove the special characters and such, though I think that will be simple.
User avatar
Noraima Vega
 
Posts: 3467
Joined: Wed Jun 06, 2007 7:28 am

Post » Fri May 27, 2011 2:47 pm

So what I am to understand about MyMWSQL is that it cannot write to a local database, only a remote. MWSQL is the opposite? But if we use SQLite, it will have somewhat of a different structure, or different syntax?


Right. So, basically, that will cause you all sorts of issues. Especially if MWSQL is ever used in a mod, which would complicate what you had to run.
A fix may be to add a command to MWSQL to trigger another app, which will then push the data to your server using POST. That app can also be triggered outside of the game.

So you would send:
xFileWrite "|pk_mwsql" "-upsave you.ess"


and MWSQL will start upload.exe with you.ess.
Next, upload.exe will read data from you.ess and send this data:
name=you&class=mage&whatnot

in the POST to the page http://fliggerty.com/upchar.php
which reads (at least, your code copy):
$mscon = mysql_connect(localhost, you, password);$msquery = "INSERT INTO characters (`name`, `class`) VALUES ('".$_POST['name']."', '".$_POST['class']."');";

My PHP is rusty, but that's the idea.
User avatar
Eliza Potter
 
Posts: 3481
Joined: Mon Mar 05, 2007 3:20 am

Post » Fri May 27, 2011 5:14 pm

About the earlier mentioned abilities of companions, It could probably work to have about mabye four or five companion "skeletons"
Just blank companions of unspecified race, defaulting as a dunmer if the race shown is not found.

Injecting the data to the specified NPC's, they could even update levels and stats as the player went on, but dont include the equipment as that could easily turn into farming for gold every three minutes. ;)


Good luck my buddy Fliggerty, if you pull this off Ill certainly be coming back to morrowind for some time.
User avatar
Blessed DIVA
 
Posts: 3408
Joined: Thu Jul 13, 2006 12:09 am

Post » Fri May 27, 2011 7:36 am

Marbred made a header banner that really captures the feel I was hoping for. The detail is exquisite!

http://i53.photobucket.com/albums/g60/Kagouti_MW/GHF_CensusBannerW1.gif
User avatar
Jeneene Hunte
 
Posts: 3478
Joined: Mon Sep 11, 2006 3:18 pm

Post » Fri May 27, 2011 3:58 am

Well, here's the slightly better version I forgot to give Fliggerty :P
http://i53.photobucket.com/albums/g60/Kagouti_MW/GHF_CensusBannerW02r.gif

Glad you like it, Fligg, thank you!
User avatar
Alexxxxxx
 
Posts: 3417
Joined: Mon Jul 31, 2006 10:55 am

Post » Fri May 27, 2011 5:47 am

Yes, I really do like the new one!
User avatar
Victoria Bartel
 
Posts: 3325
Joined: Tue Apr 10, 2007 10:20 am

Post » Fri May 27, 2011 3:04 am

Here's my take on the banner:

http://www.4shared.com/file/100456318/a00221c3/linorabanner.html :lol:
User avatar
Rob
 
Posts: 3448
Joined: Fri Jul 13, 2007 12:26 am

Post » Fri May 27, 2011 4:26 pm

Just throwing the idea out their. Maybe have a banner that one side fades to a certain color. Then it doesn't look bad with variable width layouts

Something like this, which fades to black
http://www.metoffice.gov.uk/

But better ;)
User avatar
ruCkii
 
Posts: 3360
Joined: Mon Mar 26, 2007 9:08 pm

Post » Fri May 27, 2011 3:38 pm

Just throwing the idea out their. Maybe have a banner that one side fades to a certain color. Then it doesn't look bad with variable width layouts

Something like this, which fades to black
http://www.metoffice.gov.uk/

But better ;)

Hmm.. good idea. Back to Gimp I go! :lol:
Edit: Actually, since fliggerty is going to make the general theme and such, as read below. I'll let him do his "photoshop magic" should he want to do this. :P
User avatar
Solène We
 
Posts: 3470
Joined: Tue Mar 27, 2007 7:04 am

Post » Fri May 27, 2011 6:31 am

It's a good theme I'm designing this with multiple themes in mind. ;) I now have two good banners, one for each of the themes I'll create while designing the site.

That is a good idea Yacoby, though it doesn't entirely work with the banners that have been contributed so far. No worry though, I can work some Photoshop magic as needed. :goodjob:

Thanks everyone!
User avatar
Nicola
 
Posts: 3365
Joined: Wed Jul 19, 2006 7:57 am

Post » Fri May 27, 2011 5:16 pm

Just had to pop in and say WOW! This is an amazingly fantastic idea. I believe in you and your ability to do this well. *Cheerleading smiley*
User avatar
Ben sutton
 
Posts: 3427
Joined: Sun Jun 10, 2007 4:01 am

Post » Fri May 27, 2011 7:07 am

Ok, here is my take on all three banners submitted so far.

I really like the background on the ones by Marbred, as I think it captures the concept of the site and the Census and Excise office.

I like the official seal and Great House Fliggerty Presents (I think this should be on here as that is what they are doing) (Also, the seal is so well done that it looks very 3d which makes it all look real and official)

I like the font of Linora's banner, though I would be really picky and say I would prefer to have TES font.

It may get too busy, but I really do also like the coin in the first one. Again it is 3d and it goes well with the concepts.

Thems my 4 cents worth. Great work everyone. Keep it up.

Cheers!
User avatar
BEl J
 
Posts: 3397
Joined: Tue Feb 13, 2007 8:12 am

Post » Fri May 27, 2011 12:10 pm

Holy crap. Yes.
User avatar
Calum Campbell
 
Posts: 3574
Joined: Tue Jul 10, 2007 7:55 am

Post » Fri May 27, 2011 12:51 am

I like the official seal and Great House Fliggerty Presents (I think this should be on here as that is what they are doing) (Also, the seal is so well done that it looks very 3d which makes it all look real and official)

I agree. That seal looks great, Linora.
User avatar
jess hughes
 
Posts: 3382
Joined: Tue Oct 24, 2006 8:10 pm

Post » Fri May 27, 2011 4:04 am

just putting this out, there...BUT, since one could make characters and fight them in the arena with this, would it be possible to put a generic companion script on the chars that you download? maybe also lvl up and update the character and items from the internet.

(i know nothing on how to work scripting or programing, so just throwing it out there)
User avatar
Vahpie
 
Posts: 3447
Joined: Sat Aug 26, 2006 5:07 pm

Post » Fri May 27, 2011 9:22 am

Perhaps...
It's not in the realm of possibility to download characters yet; that's going to take some real thought and tinkering around. Which is why I've decided to not even focus on that at all until the system is up and running.


I've been cobbling together little bits of code as I learn it. I have built a login system with user access controls and a very basic screenshot upload gallery (I haven't yet sorted out how to edit or delete pics yet, just display them.)

You can see what I have here: http://24.10.131.119/cne/main.php (you'll have to register to see most of it.)
User avatar
Suzy Santana
 
Posts: 3572
Joined: Fri Aug 10, 2007 12:02 am

Post » Fri May 27, 2011 5:00 pm

You can see what I have here: http://192.168.1.102/cne/main.php (you'll have to register to see most of it.)



a visit to http://whatsmyip.org/ should fix the 192.x.x.x local IP address error in the above link
User avatar
Inol Wakhid
 
Posts: 3403
Joined: Wed Jun 27, 2007 5:47 am

Post » Fri May 27, 2011 2:16 pm

Ah, whoops. Just an oversight. I think that I copy+pasted from the wrong browser window. :hehe:
User avatar
Joey Avelar
 
Posts: 3370
Joined: Sat Aug 11, 2007 11:11 am

Post » Fri May 27, 2011 4:06 pm

Ah, whoops. Just an oversight. I think that I copy+pasted from the wrong browser window. :hehe:


I like the text on Linora's banner (and, truth be told, the background), but I think it would look best with Linora's text with Marbred's first banner (with the dark logo, not the read one). Marbred's current text just reminds me too much of a boot camp-type thing.
User avatar
Tasha Clifford
 
Posts: 3295
Joined: Fri Jul 21, 2006 7:08 am

Post » Fri May 27, 2011 11:12 am

I spent today playing around with Qt. If I can figure out how to use a GUI system for Windows, I know exactly how to make the save translator/uploader. Have it all planned, down to flow (and know how to read the save). It takes a minor update to MWSQL, and another app that can be run commandline (by MWSQL, ingame upload) or GUI (external, pick which save).
BAsically, two panes. Left is a list of saves, right has two tabs, lists save info (for selected) in one, plugins (for save, if stored there, which I think they are) in the other. Upload button under the info section.
User avatar
ladyflames
 
Posts: 3355
Joined: Sat Nov 25, 2006 9:45 am

Post » Fri May 27, 2011 11:54 am

Well that's good news!

I do have some concerns though about reading only from a save. First of all, it won't be all that dynamic; it won't update as the player plays unless they save. Of course anybody who knows what they are doing saves often. It also doesn't allow for acquiring custom data that I can get via scripting; things like current weather and a custom message from the player. Any ideas?
User avatar
.X chantelle .x Smith
 
Posts: 3399
Joined: Thu Jun 15, 2006 6:25 pm

Post » Fri May 27, 2011 2:00 pm

Why is the save file necessarily a valid source for information to gather from?

I'm no programmer by any means but wouldn't it make it much more dynamic to pass it through a pipe with scripts and onto the database? I have been following the posts slightly, understanding very little of the discussion so I'm sorry if it's been considered and I'm just grasping for used air.
User avatar
gary lee
 
Posts: 3436
Joined: Tue Jul 03, 2007 7:49 pm

Post » Fri May 27, 2011 2:19 pm

I do have some concerns though about reading only from a save. First of all, it won't be all that dynamic; it won't update as the player plays unless they save. Of course anybody who knows what they are doing saves often. It also doesn't allow for acquiring custom data that I can get via scripting; things like current weather and a custom message from the player. Any ideas?

Have the program be able to read from a pipe as well. That way it satisfies both groups of people, those who don't want anything else running in the background, and those who don't mind it.

You also end up being able to share code for a lot of the things. (I.E. HTTP requests)
User avatar
Alan Cutler
 
Posts: 3163
Joined: Sun Jul 01, 2007 9:59 am

PreviousNext

Return to III - Morrowind