garbagemule / MobArena

MobArena plugin for Minecraft
GNU General Public License v3.0
193 stars 151 forks source link

HUGE ISSUE WITH MOB ARENA PLUGIN CONFIG FILE #241

Closed HectorCampbell closed 10 years ago

HectorCampbell commented 10 years ago

I have had a very large issue with your plugin on my server garbagemule, i have posted many forums around and of course no one answers. So i came here. The issue i have is a very strange issue and has caused me to swear quite a lot due to the amount of time i spend setting up a mob arena and then the rewards and the waves and the classes and then the config file resetting to the default setting when i first got the plugin. I understand that is a very vague and unhelpful complaint, so what exactly happens is this: i set up the mob arena in the game (i do /ma addarena fort, then /ma setup fort) and i place all the warps and spawns and regions and exits correctly, i then set up the classes (via putting the items in my inventory and then doing /ma setclass example) once i have finished the classes I then go into the config file of the plugin (while the server is running, if that matters) and then change the wave-interval to 3 and clear-wave-before-next: true,clear-boss-before-next: false, clear-wave-before-boss: true i then change the monsters to zombies: 10, skeletons: 10, spiders: 5, creepers: 5, wolves: 0 (this is not including the commas i placed) and then change the boss to a different mob: boss1: type: boss wave: 25 monster: zombie_pigman health: high abilities: arrows, root-target, throw-nearby and i then change the rewards to: rewards: waves: every: '2': stone, oak, wheat '5': iron_ingot, gold_ingot, oak, wheat, bone:2, coal:2, steak:2, pork:2, iron_sword, iron_pickaxe, iron_axe '10': iron_ingot:10, gold_ingot:10, coal:20 '20': diamond, emerald, diamond_chestplate, diamond_helmet, diamond_leggings, diamond_boots, diamond_sword, diamond_pickaxe, diamond_axe '50': diamond_block, emerald_block, obsidian:32, redstone_block:16, gold_block:16 '100': diamond_block:5, emerald_block:5, obsidian:64, lapis_block:32, gold_block:64, iron_block:64, diamond:16, emerald:16 after: '21': iron_ingot:10, gold_ingot:10, coal:32, redstone:32, diamond, emerald '15': iron_ingot, gold_ingot, coal, bone '500': diamond_block:64, emerald_block:64 '51': diamond:block, emerald:block

after doing all this i save the config file and restart the server. when the server is back online i find that no mob arenas have been set and that the config file of the mob arena plugin has reset to default settings. sometimes it doesnt, sometimes it does, i am sorry if it seems i am being vague but i am telling the truth, sometimes when i change the boss and nothing else it is fine, sometimes it isnt, sometimes when i change the rewards it is fine, sometimes it isn't (what i mean by 'fine' is the config file not fucking up after the server reset) and the most frustrating thing is that i cannot copy and paste the old config file from BEFORE this was happening (yes before this problem only started when i added a new arena that had containers and only zombies spawning, when i reset the server to let that new mob arena 'appear' the config file fucked itself up its own asshole, and what i mean by that is that it reset) whenever i try to paste the old file that worked the same thing happens (the config file goes back to how it was when i first installed the plugin)

im sorry if i offended or upset anyone with my language but this has really started to get me down being as mob arena is the most important part of my server, so i pray to GOD that you find this post and help me out with what has happened.

thank you so much in advance i hope you are able to help me with this problem garbagemule or whoever it is that finds the solution! Hector Campbell

Pyeroh commented 10 years ago

This is not a huge issue at all, because you just mistyped diamond_block and emerald_block for '51', for the node "after". Maybe you should send a link to the config file you want to use via pastebin, just in case. If you want to be sure about your config file, I suggest you to use MobArena Helper, a little program I made to assist server admins to configure the plugin. However, the latest changes for configuration file are not supported, I coded it for v0.95, so be careful using it. The link : http://www.planetminecraft.com/forums/mobarena-helper-waveeditor-reborn-t327499.html

HectorCampbell commented 10 years ago

thank you for pointing that out pyeroh i never noticed that :D , but do you happen to know why i cannot directly paste (or add) things to the single: section of the config file where the mobs are edited because whenever i change it the whole thing resets?

HectorCampbell commented 10 years ago

this is an amazing new app you have produced i am very impressed thank you for you time and help pyeroh

garbagemule commented 10 years ago

The resets happen because your config-file becomes corrupted with dirty, dirty Windows linebreaks, or because you change the encoding somehow. If you are using Notepad++, make sure you set it up to use Unix linebreaks.

Since Pyeroh didn't mention it, I also want to point out that MobArena Helper is a third-party tool that is not supported nor sanctioned by me. This doesn't mean it shouldn't be used, just that it is "use at your own risk" - standard "no responsibility" disclaimer :P

Hector, if you would do me a favour and let MobArena generate the default config-file (take a backup of your current one and remove it), then make a minimal change that causes the reset, save the file, and then send it to me or post a link to the file (not a pastebin or anything, it has to be the file itself). That way, I can work on figuring out a way to prevent this resetting issue from happening (it's a long-standing bug that I haven't been able to properly reproduce on my system yet).

HectorCampbell commented 10 years ago

ok will do!

HectorCampbell commented 10 years ago

tonight i will mess around with the file changing minor thing and put them in this as comments if thats ok with you

garbagemule commented 10 years ago

I think you misunderstood the "post a link to the file (not a pastebin or anything, it has to be the file itself)". It HAS to be the actual file, not just the contents, because if I copy and paste what you wrote into my local file, everything will work just fine. The problem is the error you introduce into the file when you save it with your editor. I need the actual file, not a view of its contents. If you can just mail it to me (my username at gmail), or upload it to Dropbox or something, that'd be great.

Pyeroh commented 10 years ago

Thank you garbagemule for pointing out my mistake about the disclaimer ^^ Indeed, use this tool "at your own risk". I'll add a disclaimer in tool's booting, so there won't be anymore confusion. For the link, I think that pasting the content of the file into pastebin will keep Windows linebreaks and tabs, but maybe I'm wrong, so don't listen to me x)