03-05-2013, 07:21 AM
I tried it once in professional and it worked. Wasn't faster though I think
Random Chitchat 2012-2016
|
03-05-2013, 07:21 AM
I tried it once in professional and it worked. Wasn't faster though I think
03-07-2013, 06:42 AM
I'm gonna try implement entity saving into Anvil. So that finally those minecarts don't disappear
Thanks given by: NiLSPACE
03-07-2013, 07:34 AM
i'm trying to create a plugin where you can see who broke/placed a block and when, but i have a problem. when the server reloads or restarts and a player destroys a block the ini file gets reset. maybe someone can take a look at it?
03-07-2013, 07:54 AM
Without even looking, I'm guessing you're not doing cIniFile:Read() on the file first, before storing any data to the cIniFile object. This effectively means, you're asking MCServer to "create a new file, fill it with this data and dump it onto the disk" - ergo the overwrite.
That said, ini files are one of the poorest choices for this kind of database, especially performance-wise. In order to write such a file, MCServer needs first to read the entire file into memory. Bam, megabyte-eater born. I'd recommend using a flat text file, and create a new one each time the server gets (re)started - that is, in the Initialize function of the plugin; base the file name on current time (is there enough API for that?) to avoid collisions. Lua should support file IO out of the box without any external API, so it should be possible to read and write normal text files without a problem.
03-07-2013, 08:17 AM
yes i used io for my login plugin but for every player it creates a new file with in there his password stored as a md5 hash. i also made a plugin already where i can see who destroyed/placed a block but i now have it for about one week in Redcraft Reopened and it has about 21000 files so i need to find another way of storing imported information.
03-08-2013, 06:33 AM
i have a small update for the core plugin. you can now configurate the PortsIPv6 with the webadmin. maybe we can finaly change the version now
03-08-2013, 07:11 PM
Have you tested the IPv6 functionality? 'Cause I couldn't test it thoroughly, so I have no idea if it really works
03-08-2013, 07:33 PM
no i haven't tested becouse i can't test it either but at least if someone managed to test it than we have the webadmin part
03-09-2013, 01:36 AM
i was thinking about adding hardcore mode to the core plugin, that when you die you are banned. shall i try to import that or should it be implented in the source?
03-09-2013, 04:52 AM
Doesn't the Core plugin handle bans already? If so, it makes sense to implement hardcore-ban there, too. Togglable, of course
|
« Next Oldest | Next Newest »
|