Jump to content

Recommended Posts

Posted

Hello all,

 

Just been doing a little bit of future planning.

 

Below is a rough map of almost all the data is should need to save for later use. (note all data is saved server side)

I initially thought of using nbt for the player based data and a config file for the server side.

 

However I have a leaderboard system where the player selects a skill/enchant/ability they want to view the leaderboard for.

This prints out the top 5 players for that item.

 

The question is, in this case is it practical to use nbt tags? When to figure out the leaderboard it would require me to open all player.dat files and retrieve the appropriate information in order to find the top 5 players etc.

 

To me this sounds more like something a database would take care of (possibly), handling the leaderboard via queries. I know certain server side plugins use mysql, but for SSP this feature would be next to useless.

 

So what I would like to know is... What is the best method for my mod, to save data.

 

Any suggestions/comments are appreciated

 

3LGnsCt.png

The difference between stupidity and genius is that genius has its limits. - Albert Einstein

Posted

heuuu... unfortunately your mod is doing competition to mine... so i cant really help you

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Posted

Thanks diesieben07, that gets rid of all the player data. The question is, if I want to save a whole lot of data based on information about the server itself, such as whether or not the ender dragon has been defeated(regardless of whether or not it was the individual player), also I need the current version of the mod saved, as if the mod has updated, it may require certain things to be done to the save file of both player and server. Or save information to the server, then i presume IExtendedEntityProperties wont work. There is Level.dat which saves per world data (if im correct). However I wish my data to be saved for each playthrough. For Instance, every SSP world and every Server connected to must have it's own data file. I believe this is the last problem I will have for a while. I might even get a testing version out before I have to come back and ask more questions "Hurray!"

 

@hydroflame,

 

I highly doubt that our mods will ever compete with each other, lets just say what I am creating is very intricate and different then anything out there. Your mod is safe :). But anyway. Wouldn't minecraft be boring with just one tech mod?? The fun is being able to pick and choose between many different mods, and play your own way is what separates minecraft from most games. It's the same with any mod anyone creates, no matter what we make, there is always someone who can improve on an idea. The goal is to improve the communities experience as a whole. I personally am creating my mod because I want to practice coding, I want a challenge, and I feel there is a need for something new. There is no such thing as "competition" in my mind. I choose to be non-for profit, coding because I enjoy it. Who knows, maybe in the future our mods will run side by side. Anyway, sorry for the rant... Happy coding :)

The difference between stupidity and genius is that genius has its limits. - Albert Einstein

Posted

found it, looks like it will do what I need it to. Going to code again when I wake up, so ill post if I have any issues, otherwise, thank you for the help.

The difference between stupidity and genius is that genius has its limits. - Albert Einstein

Posted
I highly doubt that our mods will ever compete with each other,

yeah actually we have pretty different features. (some overlap but thats ok)

 

 

by reading your post i understand that you want to make the ranking accross all server that has your mod, if you want to do that youll have to developp another application (not related to minecraft in any way) that will receive updates from SSP and servers and handle ranking request, but i think thats a great idea (or maybe im wrong and misread like crazy)

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Posted

Haha, my MCforum post is now outdated. I'm moving everything to my website... Once I've finished developing it... But yeah, I may end up implementing that feature, although I think it would require me to use a dedicated server, which costs a lot of money :/... That may come later. Not to start with. The actual coding of that program would be fairly easy. The idea with that is also to graph players on a global scale, either anonymously or via username (depending on player request). Then I can accurately balance the mod based on what all players are doing. But thats a very short non detailed description. And of course It's all subject to change as I continue :). guess you'll just have to find out...

 

Is there a VoIP server for modders to hang out in?? Or is there only forgeIRC?

The difference between stupidity and genius is that genius has its limits. - Albert Einstein

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.