Posted August 5, 201213 yr Is it intentional that you lose the saved EntityData when a player dies? Its kind of annoying, especially because I found that out after coding 2 mods that use it as a permanent player-tied data storage. To bypass that I assume I need to write my own data storage system? (It will probably use a username.dat, just in a different folder :'() Please send me all the typo's you found, I'm from Belgium and I'm a little dyslectic and suck @ typing. http://dries007.net/banner.png[/img]
August 5, 201213 yr If this is the case To bypass that I assume I need to write my own data storage system? (It will probably use a username.dat, just in a different folder :'() If this is the case, you could make it store in the mods folder, again within its own folder. Like... /Example Server Folder/mods/SimpleServerData. I know that doesn't help much in terms of what you're expecting, so I'll shush. Check out my Texture Packs Thread here on the Forge Forum. Currently in the process of adding some mod support for JohnSmith Texture Pack. https://www.sugarsync.com/piv/D8135159_67366891_21351[/img] https://www.sugarsync.com/piv/D8135159_67366891_772852[/img]
August 5, 201213 yr Author I'm going to integrate the player tied system in SimperPermissions so all the mods that use permissions can set player-tied data, that way I only need to code it once, and not for every mod ;-). I found out after wanting to /home after I tried swimming in lava I'm gonna store it in the folder SP uses for it's config and ranks and permissions. I might even 'Upgrade' the permission/rank files to .dat files (I finally found out how MC stores them) Please send me all the typo's you found, I'm from Belgium and I'm a little dyslectic and suck @ typing. http://dries007.net/banner.png[/img]
August 5, 201213 yr Entity data is tied to an entity, the player controls an entity, but is not an entity itself, and its entity does indeed die. You can use global save NBT's to store, or a custom file, however.
August 9, 201213 yr Author I just made .dat files, they use the same save/load system as Minecraft. I like the NBT system a lot. There is just one thing, Is it me or is it impossible to remove tags? Please send me all the typo's you found, I'm from Belgium and I'm a little dyslectic and suck @ typing. http://dries007.net/banner.png[/img]
August 10, 201213 yr Author I found out you can best store a collection (with .getTags()) and then run that through a while(Iterator.hasnext()) loop and kill out the ones you don't want. Please send me all the typo's you found, I'm from Belgium and I'm a little dyslectic and suck @ typing. http://dries007.net/banner.png[/img]
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.