I did, however, get the chance to start on the Media Tab. The original method I was going to use to store the data in the database did not seem to fit well with the way the original code was written. And since I'm using as much of the original code as possible for version 1.0 I had to rethink the tables. As it would have it I came up with a better method that did not involve so many FOR loops. This will be a huge performance increase when adding or deleting media assets.
The effect is that I needed to pre-populate the database with place holders for each of the 4 media types. The 262,000 INSERT calls took a little while to complete. Somewhere in the range of 6 hours. But it's done and my initial tests show good promise.
I started the work on rewriting the MediaDialogs to use the database when building. Have not got very far on that but I have documented all the functions involved and have looked them over. Doesn't seem to be too complex and I hope to have that done tomorrow.
A big thorn, or so I thought, was going to be uploading and retrieving the binary of the media files to the Database.
I guess this would be a good time to explain that. When you add an asset to the GUE it will function like normal as that it copies the file (if it's not already in the correct folders) to the Data\Meshes folder in the project. Then it uploads the file to the database as a BLOB. This is so that once a user logs in, or uses the "Update Media" button in the RCS:TE they will check each asset, to see if they already have a copy, and update if they do not. This is so that all Team Members will have the same assets, and they use a local copy for loading speed.Back to my little thorn. So I gave UUICEO the SQL calls to pull and add the BLOB. We were having some real issues with it. We could not seem to get the database to accept the file. But there is a ray of light. Just as UUICEO was going to bed, I had already got off Skype Call with him, he sends me an IM with the code that works. :) Words can not explain how happy I am. This was a major feature and I was getting to the point where I thought we was going to have to scrap it. But we are not out of the woods yet. It now seems that we can write to the Database, but getting the BLOB back to a file might be a little harder. We'll just have to wait to tomorrow to find out.
That's all I got for now. If you are reading this drop in a comment. I'd like to know that someone is reading it, even if you don't like the project.
--Look at a brick and say, 'I can do that better.' Why? Because I can!--
Demotis Silvermoon
Quote:
Your so much cooler, when you never pull it out.-Nickelback
You look so much cuter, with something in your mouth.

2 comments:
Wow, you've been a busy bee. I've seen many making separate programs for team use. But of course the same problems arise. Like, making sure everyone has the same files ect... This will be a real asset for the RC community, seens as MMO development is hardly doable on your own. Well done, and i hope to see some more soon.
Matt
Very nice stuff :)
Good to see that some teams put the RC Sources to good use.
I've considered such an approach for the official RC Standard build. Created a research build to evaluate the usefullness and restrictions that come from using such an approach.
What I can say is that you can get some nice speed gains if you rewrite the UI code handling against this new possibilities of partial retrieval.
But there have been problems and restrictions, that made me drop the idea again.
Its an all great solution if you have development sites.
But the majority of the RC Standard Teams sadly is not within a single development site.
For that reason, I've dropped the idea to use MySQL for the database backhandling again.
The other thing to consider is this pure mysql focus enforces you to get a MySQL license if you intend to hand it to third party.
Post a Comment