« Détecter et corriger les lags » : différence entre les versions
mAucun résumé des modifications |
m Uti a déplacé la page Chunks corrompus vers Corriger les lags |
(Aucune différence)
|
Version du 18 septembre 2013 à 11:15
Bien souvent il arrive que des lags, bugs etc ne proviennent pas de nos plugins mais bel et bien de la map. Celle-ci peut en effet être truffées de chunks corrompus nuisant gravement au jeu.
Première intervention
Il existe des tas de raisons pour qu'un serveur lag; surcharge du fait de vos plugins, des chunks corrompus, trop d'entités ou de mobs présents, etc.
les clocks redstone
Comment les détecter? Un plugin permet ça! Il les détecte et vous téléporte dessus; Chunks_corrompus#Redstone Clock Detector.
Régénérer un chunk
Vous vous en doutez le moyen le plus direct pour regen un chunk ou une portion de map est d'utiliser WorldEdit. Un autre plugin super, dédié à la régénération, est ChunkFixer. C'est celui que j'utilise à chaque fois que je souhaite régénérer une partie de la map, le résultat est d'autant plus propre qu'avec WE.
- Utilisation de WorldEdit
- repérez le lieu à régénérer et faite
//chunk
pour sélectionner le chunk sur lequel vous vous tenez OU sélectionnez une zone avec votre wand - pour régénérer votre sélection faites
//regen
- Utilisation de ChunkFixer
- Pour régénérer le chunk sur lequel vousvous tenez, tapez
/chunkfix
- sinon sélectionnez une portion de la map avec
/cf s
pour obtenir la wand et une fois fait, retapez la commande pour régénérer
Redstone Clock Detector
Développé par hwei, Redstone Clock Detector vous permet de tester les activités redstone en scannant le serveur sur une durée de temps. De préférence testez votre serveur avec ce plugin sans personne d'autres que vous connecté. En effet cela réduira considérablement l'activité redstone. À noter que les hooks s'activent de temps à autre.
commandes | description |
---|---|
/rcd | Get plugin status |
/rcd ? | Help |
/rcd <sec> | Scanne durant <sec> secondes |
/rcd stop | Arrête le scan |
/rcd list [page] | Liste les activités redstone relevées durant le laps de temps indiqué |
/rcd tp [player] [num] | Téléporte [player] (par défaut soi-même) à l'endroit identifié dans la liste par [num] |
Les gros outils
Il existe deux outils dédiés à la correction d'erreurs de chunks, qui ont déjà fait leur preuves; Chunkster et VoidChunk.
Ces outils ont été développés il y a longtemps déjà et ne semblent plus fonctionner correctement.
Un remplaçant, moins précis peut-être, semble fonctionner impeccablement : Minecraft Region Fixer
Chunkster
Once you have downloaded it, unzip it into the folder that your world is in, then stop the server and open the RunMe.bat file. Once it is open, check that it has found the right world and then continue (by pressing y). Let it do its thing, and then press the any key when asked(you have one of those, right?). The next step is to start your server and check if it has worked. There is a good chance it has worked, however if it has not then the next tool should fix it for you :)
VoidChunk
Minecraft Region Fixer
Deuxième partie
Download the Minecraft Region Fixer from here: https://github.com/downloads/Fenixin/Minecraft-Region-Fixer/Minecraft-Region-Fixer-v0.0.8(win32).zip
You should extract Region Fixer to its own folder, in this case I will use C:\MCRF\
You should now open up a command prompt (press the windows key + r, then type cmd) and type in the following:
C:\MCRF\region-fixer.exe --verbose --delete-corrupted --delete-entities --entity-limit=100 C:\server\world
Replace C:\server\world with the path to your world folder (not your server folder, the actual world folder itself). Once it has finished, it will display something along the lines of:
Found 0 corrupted and 0 wrong located chunks of a total of 1192
After it has finished, it will have removed excessive amounts of entities and deleted corrupted region files – It will not fix wrongly located chunks and/or entities... If, once it has finished, it displays something like this:
Found 0 corrupted and 1 wrong located chunks of a total of 1192
then a wrongly located chunk has been found. To fix this, go back up in the command window and look for something like this:
Scanned r.-1.-1.mcr <c: 0, w: 1, t: 354>
You are looking for w: 1 – That is how many wrongly located chunks were found in that region file, and the number may be more than 1... “r.-1.-1.mcr” is the name of the file with the issue. To fix this, go into your world folder, then into the region folder, and delete the file mentioned in the previous step (in this case “r.-1.-1.mcr").
You can now start your server. If you still have an issue then make a thread in the help section, the guys there will assist you in fixing the problem.
Alternatively, if there is something I have not made clear or that I have not explained well enough then feel free to reply in this thread. I will edit this soon to fix many of the grammar mistakes, and I will also add some screenshots and linux commands:)