fix all logger names
This commit is contained in:
parent
bb64949927
commit
63c2a18c3a
38 changed files with 154 additions and 155 deletions
|
@ -514,7 +514,7 @@ public class Client implements IThreadListener {
|
||||||
|
|
||||||
public void connect(String address, int port, String user, String pass, String access) {
|
public void connect(String address, int port, String user, String pass, String access) {
|
||||||
this.displayGuiScreen(GuiLoading.makeWaitTask("Verbinde zu " + (address == null ? "localhost" : address) + ":" + port + " ..."));
|
this.displayGuiScreen(GuiLoading.makeWaitTask("Verbinde zu " + (address == null ? "localhost" : address) + ":" + port + " ..."));
|
||||||
Log.JNI.info("Verbinde zu " + (address == null ? "localhost" : address) + ":" + port);
|
Log.NETWORK.info("Verbinde zu " + (address == null ? "localhost" : address) + ":" + port);
|
||||||
final NetConnection connection;
|
final NetConnection connection;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -528,13 +528,13 @@ public class Client implements IThreadListener {
|
||||||
}
|
}
|
||||||
catch (UnknownHostException u)
|
catch (UnknownHostException u)
|
||||||
{
|
{
|
||||||
Log.JNI.error(u, "Konnte nicht zu Server verbinden");
|
Log.NETWORK.error(u, "Konnte nicht zu Server verbinden");
|
||||||
this.disconnected("Unbekannter Hostname: " + (address == null ? "localhost" : address));
|
this.disconnected("Unbekannter Hostname: " + (address == null ? "localhost" : address));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
Log.JNI.error(e, "Konnte nicht zu Server verbinden");
|
Log.NETWORK.error(e, "Konnte nicht zu Server verbinden");
|
||||||
this.disconnected(e.toString());
|
this.disconnected(e.toString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -620,10 +620,10 @@ public class Client implements IThreadListener {
|
||||||
}
|
}
|
||||||
catch(ExecutionException e1) {
|
catch(ExecutionException e1) {
|
||||||
if(!(e1.getCause() instanceof ThreadQuickExitException))
|
if(!(e1.getCause() instanceof ThreadQuickExitException))
|
||||||
Log.JNI.error(e1, "Fehler beim Ausführen von Render-Task " + task);
|
Log.SYSTEM.error(e1, "Fehler beim Ausführen von Render-Task " + task);
|
||||||
}
|
}
|
||||||
catch(InterruptedException e2) {
|
catch(InterruptedException e2) {
|
||||||
Log.JNI.error(e2, "Fehler beim Ausführen von Render-Task " + task);
|
Log.SYSTEM.error(e2, "Fehler beim Ausführen von Render-Task " + task);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1294,7 +1294,7 @@ public class Client implements IThreadListener {
|
||||||
if (this.pointed == null)
|
if (this.pointed == null)
|
||||||
{
|
{
|
||||||
this.player.swingItem();
|
this.player.swingItem();
|
||||||
Log.JNI.warn("Null zurückgegeben als 'hitResult', das sollte niemals passieren!");
|
Log.TICK.warn("Null zurückgegeben als 'hitResult', das sollte niemals passieren!");
|
||||||
this.leftClickCounter = 10;
|
this.leftClickCounter = 10;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -1348,7 +1348,7 @@ public class Client implements IThreadListener {
|
||||||
|
|
||||||
if (this.pointed == null)
|
if (this.pointed == null)
|
||||||
{
|
{
|
||||||
Log.JNI.warn("Null zurückgegeben als 'hitResult', das sollte niemals passieren!");
|
Log.TICK.warn("Null zurückgegeben als 'hitResult', das sollte niemals passieren!");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -2270,7 +2270,7 @@ public class Client implements IThreadListener {
|
||||||
// }
|
// }
|
||||||
|
|
||||||
public void disconnected(String msg) {
|
public void disconnected(String msg) {
|
||||||
Log.SYSTEM.info("Getrennt: %s", msg);
|
Log.NETWORK.info("Getrennt: %s", msg);
|
||||||
this.unload(true);
|
this.unload(true);
|
||||||
this.displayGuiScreen(new GuiInfo("Von Server getrennt", TextColor.RED + "Verbindung zum Server wurde getrennt\n\n" + TextColor.RESET + msg));
|
this.displayGuiScreen(new GuiInfo("Von Server getrennt", TextColor.RED + "Verbindung zum Server wurde getrennt\n\n" + TextColor.RESET + msg));
|
||||||
}
|
}
|
||||||
|
@ -2888,7 +2888,7 @@ public class Client implements IThreadListener {
|
||||||
data = FileUtils.read(config);
|
data = FileUtils.read(config);
|
||||||
}
|
}
|
||||||
catch(IOException e) {
|
catch(IOException e) {
|
||||||
Log.CONSOLE.error(e, "Konnte Konfigurationsdatei nicht laden");
|
Log.IO.error(e, "Konnte Konfigurationsdatei nicht laden");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(data == null)
|
if(data == null)
|
||||||
|
@ -2925,7 +2925,7 @@ public class Client implements IThreadListener {
|
||||||
FileUtils.write(config, sb.toString());
|
FileUtils.write(config, sb.toString());
|
||||||
}
|
}
|
||||||
catch(IOException e) {
|
catch(IOException e) {
|
||||||
Log.CONSOLE.error(e, "Konnte Konfigurationsdatei nicht speichern");
|
Log.IO.error(e, "Konnte Konfigurationsdatei nicht speichern");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -320,9 +320,9 @@ public class GuiChar extends GuiList<GuiChar.SkinEntry>
|
||||||
}
|
}
|
||||||
catch(Exception e) {
|
catch(Exception e) {
|
||||||
if(e instanceof FileNotFoundException)
|
if(e instanceof FileNotFoundException)
|
||||||
Log.JNI.warn("Textur ist nicht zum Kopieren vorhanden: " + EntityNPC.getSkinTexture(loc));
|
Log.IO.warn("Textur ist nicht zum Kopieren vorhanden: " + EntityNPC.getSkinTexture(loc));
|
||||||
else
|
else
|
||||||
Log.JNI.error(e, "Konnte Textur nicht kopieren");
|
Log.IO.error(e, "Konnte Textur nicht kopieren");
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
if(in != null) {
|
if(in != null) {
|
||||||
|
|
|
@ -1855,7 +1855,7 @@ public class ClientPlayer extends NetHandler implements IClientPlayer
|
||||||
}
|
}
|
||||||
catch (Throwable var17)
|
catch (Throwable var17)
|
||||||
{
|
{
|
||||||
Log.JNI.warn("Konnte Partikel-Effekt " + packetIn.getParticleType() + " nicht erzeugen");
|
Log.RENDER.warn("Konnte Partikel-Effekt " + packetIn.getParticleType() + " nicht erzeugen");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -1876,7 +1876,7 @@ public class ClientPlayer extends NetHandler implements IClientPlayer
|
||||||
}
|
}
|
||||||
catch (Throwable var16)
|
catch (Throwable var16)
|
||||||
{
|
{
|
||||||
Log.JNI.warn("Konnte Partikel-Effekt " + packetIn.getParticleType() + " nicht erzeugen");
|
Log.RENDER.warn("Konnte Partikel-Effekt " + packetIn.getParticleType() + " nicht erzeugen");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1968,7 +1968,7 @@ public class ClientPlayer extends NetHandler implements IClientPlayer
|
||||||
}
|
}
|
||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
Log.JNI.error((Throwable)exception, (String)"Konnte Handel nicht laden");
|
Log.TICK.error((Throwable)exception, (String)"Konnte Handel nicht laden");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ public class RenderBuffer
|
||||||
int i = this.byteBuffer.capacity();
|
int i = this.byteBuffer.capacity();
|
||||||
int j = i % 2097152;
|
int j = i % 2097152;
|
||||||
int k = j + (((this.rawIntBuffer.position() + p_181670_1_) * 4 - j) / 2097152 + 1) * 2097152;
|
int k = j + (((this.rawIntBuffer.position() + p_181670_1_) * 4 - j) / 2097152 + 1) * 2097152;
|
||||||
Log.JNI.warn("Musste Puffer vergrößern: Alte Größe " + i + " Bytes, neue Größe " + k + " Bytes.");
|
Log.RENDER.warn("Musste Puffer vergrößern: Alte Größe " + i + " Bytes, neue Größe " + k + " Bytes.");
|
||||||
int l = this.rawIntBuffer.position();
|
int l = this.rawIntBuffer.position();
|
||||||
ByteBuffer bytebuffer = ByteBuffer.allocateDirect(k).order(ByteOrder.nativeOrder());
|
ByteBuffer bytebuffer = ByteBuffer.allocateDirect(k).order(ByteOrder.nativeOrder());
|
||||||
this.byteBuffer.position(0);
|
this.byteBuffer.position(0);
|
||||||
|
|
|
@ -53,7 +53,7 @@ public class VertexFormat
|
||||||
{
|
{
|
||||||
if (element.isPositionElement() && this.hasPosition())
|
if (element.isPositionElement() && this.hasPosition())
|
||||||
{
|
{
|
||||||
Log.JNI.warn("VertexFormat-Fehler: Versuche eine Position vom Typ VertexFormatElement hinzuzufügen, während eine bereits existiert, ignoriere.");
|
Log.RENDER.warn("VertexFormat-Fehler: Versuche eine Position vom Typ VertexFormatElement hinzuzufügen, während eine bereits existiert, ignoriere.");
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -15,7 +15,7 @@ public class VertexFormatElement
|
||||||
{
|
{
|
||||||
if (!this.isValid(indexIn, usageIn))
|
if (!this.isValid(indexIn, usageIn))
|
||||||
{
|
{
|
||||||
Log.JNI.warn("Mehrere Vertex-Elemente des gleichen Typs außer UVs sind nicht unterstützt. Erzwinge Typ UV.");
|
Log.RENDER.warn("Mehrere Vertex-Elemente des gleichen Typs außer UVs sind nicht unterstützt. Erzwinge Typ UV.");
|
||||||
this.usage = VertexFormatElement.EnumUsage.UV;
|
this.usage = VertexFormatElement.EnumUsage.UV;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -26,13 +26,13 @@ public abstract class ModelGenerator {
|
||||||
}
|
}
|
||||||
catch(Throwable e) {
|
catch(Throwable e) {
|
||||||
if(e instanceof FileNotFoundException)
|
if(e instanceof FileNotFoundException)
|
||||||
Log.JNI.warn("Textur ist nicht zum Zusammenstellen vorhanden: " + textureLocation);
|
Log.IO.warn("Textur ist nicht zum Zusammenstellen vorhanden: " + textureLocation);
|
||||||
else
|
else
|
||||||
Log.JNI.error(e, "Konnte Textur '" + textureLocation + "' nicht zum Zusammenstellen laden");
|
Log.IO.error(e, "Konnte Textur '" + textureLocation + "' nicht zum Zusammenstellen laden");
|
||||||
return Lists.<ModelBox>newArrayList();
|
return Lists.<ModelBox>newArrayList();
|
||||||
}
|
}
|
||||||
if(img.length < tw * th) {
|
if(img.length < tw * th) {
|
||||||
Log.JNI.warn("Konnte Textur '" + textureLocation.toString() + "' nicht zum Zusammenstellen laden weil sie zu klein ist " +
|
Log.IO.warn("Konnte Textur '" + textureLocation.toString() + "' nicht zum Zusammenstellen laden weil sie zu klein ist " +
|
||||||
"(benötige " + (tw*th) + " [" + tw + "x" + th + "], habe " + img.length + ")");
|
"(benötige " + (tw*th) + " [" + tw + "x" + th + "], habe " + img.length + ")");
|
||||||
return Lists.<ModelBox>newArrayList();
|
return Lists.<ModelBox>newArrayList();
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,7 +62,7 @@ public class ChunkRenderWorker implements Runnable
|
||||||
{
|
{
|
||||||
if (!generator.isFinished())
|
if (!generator.isFinished())
|
||||||
{
|
{
|
||||||
Log.JNI.warn("Chunk-Rendering-Aufgabe war " + generator.getStatus() + " wenn PENDING erwartet war; ignoriere Aufgabe");
|
Log.RENDER.warn("Chunk-Rendering-Aufgabe war " + generator.getStatus() + " wenn PENDING erwartet war; ignoriere Aufgabe");
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
@ -106,7 +106,7 @@ public class ChunkRenderWorker implements Runnable
|
||||||
{
|
{
|
||||||
if (!generator.isFinished())
|
if (!generator.isFinished())
|
||||||
{
|
{
|
||||||
Log.JNI.warn("Chunk-Rendering-Aufgabe war " + generator.getStatus() + " wenn COMPILING erwartet war; breche Aufgabe ab");
|
Log.RENDER.warn("Chunk-Rendering-Aufgabe war " + generator.getStatus() + " wenn COMPILING erwartet war; breche Aufgabe ab");
|
||||||
}
|
}
|
||||||
|
|
||||||
this.freeRenderBuilder(generator);
|
this.freeRenderBuilder(generator);
|
||||||
|
@ -164,7 +164,7 @@ public class ChunkRenderWorker implements Runnable
|
||||||
|
|
||||||
if (!generator.isFinished())
|
if (!generator.isFinished())
|
||||||
{
|
{
|
||||||
Log.JNI.warn("Chunk-Rendering-Aufgabe war " + generator.getStatus() + " wenn UPLOADING erwartet war; breche Aufgabe ab");
|
Log.RENDER.warn("Chunk-Rendering-Aufgabe war " + generator.getStatus() + " wenn UPLOADING erwartet war; breche Aufgabe ab");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
|
@ -182,7 +182,7 @@ public class ChunkRenderWorker implements Runnable
|
||||||
|
|
||||||
if (!(p_onFailure_1_ instanceof CancellationException) && !(p_onFailure_1_ instanceof InterruptedException))
|
if (!(p_onFailure_1_ instanceof CancellationException) && !(p_onFailure_1_ instanceof InterruptedException))
|
||||||
{
|
{
|
||||||
Log.JNI.error(p_onFailure_1_, "Fehler beim Rendern des Chunks");
|
Log.RENDER.error(p_onFailure_1_, "Fehler beim Rendern des Chunks");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -182,7 +182,7 @@ public abstract class RendererLivingEntity<T extends EntityLiving> extends Rende
|
||||||
}
|
}
|
||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
Log.JNI.error((Throwable)exception, (String)"Konnte Objekt nicht rendern");
|
Log.RENDER.error((Throwable)exception, (String)"Konnte Objekt nicht rendern");
|
||||||
}
|
}
|
||||||
|
|
||||||
GlState.setActiveTexture(GL13.GL_TEXTURE1);
|
GlState.setActiveTexture(GL13.GL_TEXTURE1);
|
||||||
|
|
|
@ -46,17 +46,17 @@ public abstract class EntityTexManager
|
||||||
}
|
}
|
||||||
catch(IOException e) {
|
catch(IOException e) {
|
||||||
if(e instanceof FileNotFoundException)
|
if(e instanceof FileNotFoundException)
|
||||||
Log.JNI.warn("Textur ist nicht vorhanden: " + loc);
|
Log.IO.warn("Textur ist nicht vorhanden: " + loc);
|
||||||
else
|
else
|
||||||
Log.JNI.error(e, "Konnte Textur nicht laden: " + loc);
|
Log.IO.error(e, "Konnte Textur nicht laden: " + loc);
|
||||||
try {
|
try {
|
||||||
image = TextureUtil.readImage(FileUtils.getResource(getDefault(entry.getValue())));
|
image = TextureUtil.readImage(FileUtils.getResource(getDefault(entry.getValue())));
|
||||||
}
|
}
|
||||||
catch(IOException e2) {
|
catch(IOException e2) {
|
||||||
if(e2 instanceof FileNotFoundException)
|
if(e2 instanceof FileNotFoundException)
|
||||||
Log.JNI.warn("Textur ist nicht vorhanden: " + loc);
|
Log.IO.warn("Textur ist nicht vorhanden: " + loc);
|
||||||
else
|
else
|
||||||
Log.JNI.error(e2, "Konnte Textur nicht laden: " + loc);
|
Log.IO.error(e2, "Konnte Textur nicht laden: " + loc);
|
||||||
image = new BufferedImage(64, 64, BufferedImage.TYPE_INT_ARGB);
|
image = new BufferedImage(64, 64, BufferedImage.TYPE_INT_ARGB);
|
||||||
Graphics2D g = image.createGraphics();
|
Graphics2D g = image.createGraphics();
|
||||||
g.setColor(Color.BLACK);
|
g.setColor(Color.BLACK);
|
||||||
|
@ -98,9 +98,9 @@ public abstract class EntityTexManager
|
||||||
}
|
}
|
||||||
catch(IOException e) {
|
catch(IOException e) {
|
||||||
if(e instanceof FileNotFoundException)
|
if(e instanceof FileNotFoundException)
|
||||||
Log.JNI.warn("Textur ist nicht vorhanden: " + loc);
|
Log.IO.warn("Textur ist nicht vorhanden: " + loc);
|
||||||
else
|
else
|
||||||
Log.JNI.error(e, "Konnte Textur nicht laden: " + loc);
|
Log.IO.error(e, "Konnte Textur nicht laden: " + loc);
|
||||||
image = new BufferedImage(64, 32, BufferedImage.TYPE_INT_ARGB);
|
image = new BufferedImage(64, 32, BufferedImage.TYPE_INT_ARGB);
|
||||||
Graphics2D g = image.createGraphics();
|
Graphics2D g = image.createGraphics();
|
||||||
g.setColor(Color.BLACK);
|
g.setColor(Color.BLACK);
|
||||||
|
|
|
@ -92,7 +92,7 @@ public class LayeredColorMaskTexture extends Texture
|
||||||
}
|
}
|
||||||
catch (IOException ioexception)
|
catch (IOException ioexception)
|
||||||
{
|
{
|
||||||
Log.JNI.error((Throwable)ioexception, (String)"Konnte Bild mit mehreren Schichten nicht laden");
|
Log.IO.error((Throwable)ioexception, (String)"Konnte Bild mit mehreren Schichten nicht laden");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ public class LayeredTexture extends Texture
|
||||||
}
|
}
|
||||||
catch (IOException ioexception)
|
catch (IOException ioexception)
|
||||||
{
|
{
|
||||||
Log.JNI.error((Throwable)ioexception, (String)"Konnte Bild mit mehreren Schichten nicht laden");
|
Log.IO.error((Throwable)ioexception, (String)"Konnte Bild mit mehreren Schichten nicht laden");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,9 +28,9 @@ public class TextureManager {
|
||||||
}
|
}
|
||||||
catch(IOException e) {
|
catch(IOException e) {
|
||||||
if(e instanceof FileNotFoundException)
|
if(e instanceof FileNotFoundException)
|
||||||
Log.JNI.warn("Textur ist nicht vorhanden: " + res);
|
Log.IO.warn("Textur ist nicht vorhanden: " + res);
|
||||||
else
|
else
|
||||||
Log.JNI.error(e, "Konnte Textur nicht laden: " + res);
|
Log.IO.error(e, "Konnte Textur nicht laden: " + res);
|
||||||
tex = TextureUtil.MISSING;
|
tex = TextureUtil.MISSING;
|
||||||
this.textures.put(res, tex);
|
this.textures.put(res, tex);
|
||||||
flag = false;
|
flag = false;
|
||||||
|
|
|
@ -115,17 +115,17 @@ public class TextureMap extends Texture
|
||||||
}
|
}
|
||||||
catch (RuntimeException runtimeexception)
|
catch (RuntimeException runtimeexception)
|
||||||
{
|
{
|
||||||
Log.JNI.error((Throwable)runtimeexception, (String)("Konnte Metadaten von " + name + " nicht laden"));
|
Log.IO.error((Throwable)runtimeexception, (String)("Konnte Metadaten von " + name + " nicht laden"));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
catch (FileNotFoundException f)
|
catch (FileNotFoundException f)
|
||||||
{
|
{
|
||||||
Log.JNI.warn("Textur ist nicht vorhanden: " + name);
|
Log.IO.warn("Textur ist nicht vorhanden: " + name);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
catch (IOException ioexception1)
|
catch (IOException ioexception1)
|
||||||
{
|
{
|
||||||
Log.JNI.error((Throwable)ioexception1, (String)("Benutze Ersatztextur, konnte " + name + " nicht laden"));
|
Log.IO.error((Throwable)ioexception1, (String)("Benutze Ersatztextur, konnte " + name + " nicht laden"));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -167,7 +167,7 @@ public class TextureMap extends Texture
|
||||||
throw stitcherexception;
|
throw stitcherexception;
|
||||||
}
|
}
|
||||||
|
|
||||||
Log.JNI.info("Textur-Atlas in Größe " + stitcher.getCurrentWidth() + "x" + stitcher.getCurrentHeight() + " erstellt");
|
Log.RENDER.info("Textur-Atlas in Größe " + stitcher.getCurrentWidth() + "x" + stitcher.getCurrentHeight() + " erstellt");
|
||||||
TextureUtil.allocateTexture(this.getGlTextureId(), stitcher.getCurrentWidth(), stitcher.getCurrentHeight());
|
TextureUtil.allocateTexture(this.getGlTextureId(), stitcher.getCurrentWidth(), stitcher.getCurrentHeight());
|
||||||
Map<String, TextureAtlasSprite> map = Maps.<String, TextureAtlasSprite>newHashMap(this.mapRegisteredSprites);
|
Map<String, TextureAtlasSprite> map = Maps.<String, TextureAtlasSprite>newHashMap(this.mapRegisteredSprites);
|
||||||
|
|
||||||
|
|
|
@ -171,20 +171,20 @@ public abstract class SkinConverter {
|
||||||
img = ImageIO.read(source);
|
img = ImageIO.read(source);
|
||||||
}
|
}
|
||||||
catch(IOException e) {
|
catch(IOException e) {
|
||||||
Log.JNI.error(e, "Konnte kein Bild von " + source + " laden");
|
Log.IO.error(e, "Konnte kein Bild von " + source + " laden");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if(img == null) {
|
if(img == null) {
|
||||||
Log.JNI.warn("Konnte kein Bild von " + source + " laden");
|
Log.IO.warn("Konnte kein Bild von " + source + " laden");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Log.JNI.info("Bild von " + source + " geladen");
|
Log.IO.info("Bild von " + source + " geladen");
|
||||||
if(img.getWidth() == 64 && img.getHeight() == 32) {
|
if(img.getWidth() == 64 && img.getHeight() == 32) {
|
||||||
img = convertSkin(img);
|
img = convertSkin(img);
|
||||||
Log.JNI.info("Skin " + source + " konvertiert");
|
Log.IO.info("Skin " + source + " konvertiert");
|
||||||
}
|
}
|
||||||
else if(img.getWidth() != 64 || img.getHeight() != 64) {
|
else if(img.getWidth() != 64 || img.getHeight() != 64) {
|
||||||
Log.JNI.warn("Falsche Bildgröße von " + source + ": " + img.getWidth() + "x" + img.getHeight());
|
Log.IO.warn("Falsche Bildgröße von " + source + ": " + img.getWidth() + "x" + img.getHeight());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
String name = source.getName();
|
String name = source.getName();
|
||||||
|
@ -195,7 +195,7 @@ public abstract class SkinConverter {
|
||||||
name = "skin";
|
name = "skin";
|
||||||
if(slim) {
|
if(slim) {
|
||||||
img = convertSlim(img);
|
img = convertSlim(img);
|
||||||
Log.JNI.info("Skin " + source + " von 'Slim' konvertiert");
|
Log.IO.info("Skin " + source + " von 'Slim' konvertiert");
|
||||||
if(!name.startsWith("slim_"))
|
if(!name.startsWith("slim_"))
|
||||||
name = "slim_" + name;
|
name = "slim_" + name;
|
||||||
}
|
}
|
||||||
|
@ -217,10 +217,10 @@ public abstract class SkinConverter {
|
||||||
ImageIO.write(img, "png", file);
|
ImageIO.write(img, "png", file);
|
||||||
}
|
}
|
||||||
catch(Exception e) {
|
catch(Exception e) {
|
||||||
Log.JNI.error(e, "Konnte Bild nicht speichern");
|
Log.IO.error(e, "Konnte Bild nicht speichern");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Log.JNI.info("Skin " + source + " gespeichert als " + file.getName());
|
Log.IO.info("Skin " + source + " gespeichert als " + file.getName());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -125,7 +125,7 @@ public class WorldClient extends AWorldClient
|
||||||
}
|
}
|
||||||
if (System.currentTimeMillis() - time > 100L)
|
if (System.currentTimeMillis() - time > 100L)
|
||||||
{
|
{
|
||||||
Log.JNI.info("Warnung: Render-Chunk-Tick dauerte " + (System.currentTimeMillis() - time) + " ms");
|
Log.TICK.warn("Render-Chunk-Tick dauerte " + (System.currentTimeMillis() - time) + " ms");
|
||||||
}
|
}
|
||||||
this.updateBlocks();
|
this.updateBlocks();
|
||||||
}
|
}
|
||||||
|
|
|
@ -107,7 +107,7 @@ public class Attributes
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Log.JNI.warn("Ignoriere unbekannte Attribute \'" + nbttagcompound.getString("Name") + "\'");
|
Log.TICK.warn("Ignoriere unbekannte Attribute \'" + nbttagcompound.getString("Name") + "\'");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -154,7 +154,7 @@ public class Attributes
|
||||||
}
|
}
|
||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
Log.JNI.warn("Konnte Attribute nicht erstellen: " + exception.getMessage());
|
Log.TICK.warn("Konnte Attribute nicht erstellen: " + exception.getMessage());
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -121,7 +121,7 @@ public enum Biome {
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Log.JNI.warn("Biom-ID ist nicht im Bereich: " + id + ", verwende " + DEF_BIOME.id + " (" + DEF_BIOME.name + ")");
|
Log.TICK.warn("Biom-ID ist nicht im Bereich: " + id + ", verwende " + DEF_BIOME.id + " (" + DEF_BIOME.name + ")");
|
||||||
return DEF_BIOME;
|
return DEF_BIOME;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -135,7 +135,7 @@ public enum Biome {
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Log.JNI.warn("Biom-ID ist nicht im Bereich: " + id + ", verwende " + DEF_BIOME.id + " (" + DEF_BIOME.name + ")");
|
Log.TICK.warn("Biom-ID ist nicht im Bereich: " + id + ", verwende " + DEF_BIOME.id + " (" + DEF_BIOME.name + ")");
|
||||||
return DEF_BIOME;
|
return DEF_BIOME;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -388,7 +388,7 @@ public class EntityTrackerEntry {
|
||||||
|
|
||||||
private Packet createSpawnPacket() {
|
private Packet createSpawnPacket() {
|
||||||
if(this.trackedEntity.dead) {
|
if(this.trackedEntity.dead) {
|
||||||
Log.JNI.warn("Erstelle Spawn-Paket für entferntes Objekt");
|
Log.TICK.warn("Erstelle Spawn-Paket für entferntes Objekt");
|
||||||
}
|
}
|
||||||
|
|
||||||
SPacketSpawnObject packet = null;
|
SPacketSpawnObject packet = null;
|
||||||
|
|
|
@ -507,7 +507,7 @@ public class EntityItem extends Entity
|
||||||
{
|
{
|
||||||
if (this.worldObj != null)
|
if (this.worldObj != null)
|
||||||
{
|
{
|
||||||
Log.JNI.warn("Gegenstand-Objekt " + this.getId() + " hat kein Item?!");
|
Log.TICK.warn("Gegenstand-Objekt " + this.getId() + " hat kein Item?!");
|
||||||
}
|
}
|
||||||
|
|
||||||
return new ItemStack(Blocks.stone);
|
return new ItemStack(Blocks.stone);
|
||||||
|
|
|
@ -140,7 +140,7 @@ public abstract class EntityRegistry {
|
||||||
entity.readFromNBT(nbt);
|
entity.readFromNBT(nbt);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Log.JNI.warn("Ignoriere Objekt mit Name " + nbt.getString("id"));
|
Log.TICK.warn("Ignoriere Objekt mit Name " + nbt.getString("id"));
|
||||||
}
|
}
|
||||||
|
|
||||||
return entity;
|
return entity;
|
||||||
|
@ -161,7 +161,7 @@ public abstract class EntityRegistry {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(entity == null) {
|
if(entity == null) {
|
||||||
Log.JNI.warn("Ignoriere Objekt mit ID " + entityID);
|
Log.TICK.warn("Ignoriere Objekt mit ID " + entityID);
|
||||||
}
|
}
|
||||||
|
|
||||||
return entity;
|
return entity;
|
||||||
|
@ -195,7 +195,7 @@ public abstract class EntityRegistry {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(entity == null) {
|
if(entity == null) {
|
||||||
Log.JNI.warn("Ignoriere Objekt mit ID " + entityID);
|
Log.TICK.warn("Ignoriere Objekt mit ID " + entityID);
|
||||||
}
|
}
|
||||||
|
|
||||||
return entity;
|
return entity;
|
||||||
|
|
|
@ -144,7 +144,7 @@ public abstract class UniverseRegistry {
|
||||||
for(int z = 0; z < list.tagCount(); z++) {
|
for(int z = 0; z < list.tagCount(); z++) {
|
||||||
NBTTagCompound link = list.getCompoundTagAt(z);
|
NBTTagCompound link = list.getCompoundTagAt(z);
|
||||||
if(!assign(link.getString("Celestial"), link.getString("Center")))
|
if(!assign(link.getString("Celestial"), link.getString("Center")))
|
||||||
Log.JNI.warn("Konnte '" + link.getString("Celestial") + "' nicht zu '" + link.getString("Center") + "' zuweisen");
|
Log.TICK.warn("Konnte '" + link.getString("Celestial") + "' nicht zu '" + link.getString("Center") + "' zuweisen");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,6 @@ public enum Log {
|
||||||
CONSOLE("Console"),
|
CONSOLE("Console"),
|
||||||
TICK("Tick"),
|
TICK("Tick"),
|
||||||
SOUND("Sound"),
|
SOUND("Sound"),
|
||||||
JNI("JNI"),
|
|
||||||
NETWORK("Network");
|
NETWORK("Network");
|
||||||
|
|
||||||
private static class LogMessage {
|
private static class LogMessage {
|
||||||
|
|
|
@ -106,7 +106,7 @@ public class NBTTagList extends NBTBase
|
||||||
{
|
{
|
||||||
if (nbt.getId() == 0)
|
if (nbt.getId() == 0)
|
||||||
{
|
{
|
||||||
Log.JNI.warn("Ungültiger End-Tag zu Tag-Liste hinzugefügt");
|
Log.IO.warn("Ungültiger End-Tag zu Tag-Liste hinzugefügt");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -116,7 +116,7 @@ public class NBTTagList extends NBTBase
|
||||||
}
|
}
|
||||||
else if (this.tagType != nbt.getId())
|
else if (this.tagType != nbt.getId())
|
||||||
{
|
{
|
||||||
Log.JNI.warn("Füge ungleiche Tag-Typen zu Tag-Liste hinzu");
|
Log.IO.warn("Füge ungleiche Tag-Typen zu Tag-Liste hinzu");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -131,7 +131,7 @@ public class NBTTagList extends NBTBase
|
||||||
{
|
{
|
||||||
if (nbt.getId() == 0)
|
if (nbt.getId() == 0)
|
||||||
{
|
{
|
||||||
Log.JNI.warn("Ungültiger End-Tag zu Tag-Liste hinzugefügt");
|
Log.IO.warn("Ungültiger End-Tag zu Tag-Liste hinzugefügt");
|
||||||
}
|
}
|
||||||
else if (idx >= 0 && idx < this.tagList.size())
|
else if (idx >= 0 && idx < this.tagList.size())
|
||||||
{
|
{
|
||||||
|
@ -141,7 +141,7 @@ public class NBTTagList extends NBTBase
|
||||||
}
|
}
|
||||||
else if (this.tagType != nbt.getId())
|
else if (this.tagType != nbt.getId())
|
||||||
{
|
{
|
||||||
Log.JNI.warn("Füge ungleiche Tag-Typen zu Tag-Liste hinzu");
|
Log.IO.warn("Füge ungleiche Tag-Typen zu Tag-Liste hinzu");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -149,7 +149,7 @@ public class NBTTagList extends NBTBase
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Log.JNI.warn("Index außerhalb des Bereiches um Tag in Tag-Liste zu setzen");
|
Log.IO.warn("Index außerhalb des Bereiches um Tag in Tag-Liste zu setzen");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ public class PotionEffect {
|
||||||
|
|
||||||
public PotionEffect combine(PotionEffect other) {
|
public PotionEffect combine(PotionEffect other) {
|
||||||
if(this.potion != other.potion)
|
if(this.potion != other.potion)
|
||||||
Log.JNI.warn("PotionEffect.combine(): Diese Methode sollte nur für gleiche Effekte aufgerufen werden!");
|
Log.TICK.warn("PotionEffect.combine(): Diese Methode sollte nur für gleiche Effekte aufgerufen werden!");
|
||||||
int duration = this.duration;
|
int duration = this.duration;
|
||||||
int amplifier = this.amplifier;
|
int amplifier = this.amplifier;
|
||||||
int remaining = this.remaining;
|
int remaining = this.remaining;
|
||||||
|
|
|
@ -102,7 +102,7 @@ public abstract class TileEntity
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Log.JNI.warn("Ignoriere Block-Objekt mit ID " + nbt.getString("id"));
|
Log.TICK.warn("Ignoriere Block-Objekt mit ID " + nbt.getString("id"));
|
||||||
}
|
}
|
||||||
|
|
||||||
return tileentity;
|
return tileentity;
|
||||||
|
|
|
@ -475,7 +475,7 @@ public abstract class Chunk {
|
||||||
int z = ExtMath.floord(entity.posZ / 16.0D);
|
int z = ExtMath.floord(entity.posZ / 16.0D);
|
||||||
|
|
||||||
if(x != this.xPos || z != this.zPos) {
|
if(x != this.xPos || z != this.zPos) {
|
||||||
Log.JNI.warn("Falsche Position! (" + x + ", " + z + ") sollte (" + this.xPos + ", " + this.zPos + ") sein, " + entity);
|
Log.TICK.warn("Falsche Position! (" + x + ", " + z + ") sollte (" + this.xPos + ", " + this.zPos + ") sein, " + entity);
|
||||||
entity.setDead();
|
entity.setDead();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -153,7 +153,7 @@ public final class Server implements IThreadListener {
|
||||||
long time = System.currentTimeMillis();
|
long time = System.currentTimeMillis();
|
||||||
Util.checkOs();
|
Util.checkOs();
|
||||||
Registry.setup("Server thread");
|
Registry.setup("Server thread");
|
||||||
Log.JNI.info("Starte " + Config.NAME + " Server Version " + Config.VERSION);
|
Log.SYSTEM.info("Starte " + Config.NAME + " Server Version " + Config.VERSION);
|
||||||
GenBiome.setAsProvider();
|
GenBiome.setAsProvider();
|
||||||
UniverseRegistry.register();
|
UniverseRegistry.register();
|
||||||
RotationRegistry.register();
|
RotationRegistry.register();
|
||||||
|
@ -287,7 +287,7 @@ public final class Server implements IThreadListener {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch(Exception e) {
|
catch(Exception e) {
|
||||||
Log.JNI.error(e, "Konnte Spielerdaten für " + user + " (offline) nicht laden");
|
Log.IO.error(e, "Konnte Spielerdaten für " + user + " (offline) nicht laden");
|
||||||
}
|
}
|
||||||
return tag;
|
return tag;
|
||||||
}
|
}
|
||||||
|
@ -305,7 +305,7 @@ public final class Server implements IThreadListener {
|
||||||
tmp.renameTo(dat);
|
tmp.renameTo(dat);
|
||||||
}
|
}
|
||||||
catch(Exception e) {
|
catch(Exception e) {
|
||||||
Log.JNI.error(e, "Konnte Spielerdaten für " + user + " (offline) nicht speichern");
|
Log.IO.error(e, "Konnte Spielerdaten für " + user + " (offline) nicht speichern");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -328,7 +328,7 @@ public final class Server implements IThreadListener {
|
||||||
if(this.debug)
|
if(this.debug)
|
||||||
return;
|
return;
|
||||||
if(message)
|
if(message)
|
||||||
Log.JNI.info("Speichere Welt");
|
Log.TICK.info("Speichere Welt");
|
||||||
this.saveWorldInfo();
|
this.saveWorldInfo();
|
||||||
for(WorldServer world : this.worlds) {
|
for(WorldServer world : this.worlds) {
|
||||||
world.saveAllChunks();
|
world.saveAllChunks();
|
||||||
|
@ -518,18 +518,18 @@ public final class Server implements IThreadListener {
|
||||||
}, "Server console handler");
|
}, "Server console handler");
|
||||||
con.setDaemon(true);
|
con.setDaemon(true);
|
||||||
con.start();
|
con.start();
|
||||||
Log.JNI.info("Server gestartet in " + String.format("%.1f", (double)(System.currentTimeMillis() - time) / 1000.0) + " Sekunden");
|
Log.SYSTEM.info("Server gestartet in " + String.format("%.1f", (double)(System.currentTimeMillis() - time) / 1000.0) + " Sekunden");
|
||||||
while(this.running) {
|
while(this.running) {
|
||||||
this.currentTime = System.nanoTime() / 1000L;
|
this.currentTime = System.nanoTime() / 1000L;
|
||||||
this.timePassed = this.currentTime - this.lastSchedule;
|
this.timePassed = this.currentTime - this.lastSchedule;
|
||||||
this.lastSchedule = this.currentTime;
|
this.lastSchedule = this.currentTime;
|
||||||
if(this.timePassed < 0L) {
|
if(this.timePassed < 0L) {
|
||||||
Log.JNI.warn("Zeit lief rückwärts! Hat sich die Systemzeit geändert?");
|
Log.TICK.warn("Zeit lief rückwärts! Hat sich die Systemzeit geändert?");
|
||||||
this.timePassed = 0L;
|
this.timePassed = 0L;
|
||||||
this.ticksTodo = 0L;
|
this.ticksTodo = 0L;
|
||||||
}
|
}
|
||||||
if(this.timePassed > 2000000L && this.currentTime - this.lastWarning >= 15000000L) {
|
if(this.timePassed > 2000000L && this.currentTime - this.lastWarning >= 15000000L) {
|
||||||
Log.JNI.warn("Kann Server-Tick nicht aufrecht erhalten! Hat sich die Systemzeit geändert, oder ist der Server überlastet? " +
|
Log.TICK.warn("Kann Server-Tick nicht aufrecht erhalten! Hat sich die Systemzeit geändert, oder ist der Server überlastet? " +
|
||||||
"Liege " + (this.timePassed / 1000L) + " ms zurück, überspringe " + ((this.timePassed * this.tpsTarget) / 1000000000L) + " Tick(s)");
|
"Liege " + (this.timePassed / 1000L) + " ms zurück, überspringe " + ((this.timePassed * this.tpsTarget) / 1000000000L) + " Tick(s)");
|
||||||
this.timePassed = 0L;
|
this.timePassed = 0L;
|
||||||
this.lastWarning = this.currentTime;
|
this.lastWarning = this.currentTime;
|
||||||
|
@ -553,11 +553,11 @@ public final class Server implements IThreadListener {
|
||||||
this.stopped = true;
|
this.stopped = true;
|
||||||
}
|
}
|
||||||
catch(Throwable e) {
|
catch(Throwable e) {
|
||||||
Log.JNI.error(e, "Fehler beim Beenden des Servers");
|
Log.SYSTEM.error(e, "Fehler beim Beenden des Servers");
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
this.stopped = true;
|
this.stopped = true;
|
||||||
Log.JNI.info("Server wurde beendet");
|
Log.SYSTEM.info("Server wurde beendet");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -565,7 +565,7 @@ public final class Server implements IThreadListener {
|
||||||
int done = 0;
|
int done = 0;
|
||||||
int total = Config.distance * 2 + 1;
|
int total = Config.distance * 2 + 1;
|
||||||
total *= total;
|
total *= total;
|
||||||
Log.JNI.info("Generiere und lade Welt");
|
Log.TICK.info("Generiere und lade Welt");
|
||||||
// WorldServer world = this.getWorld(Config.spawnDim);
|
// WorldServer world = this.getWorld(Config.spawnDim);
|
||||||
// world = world == null ? this.space : world;
|
// world = world == null ? this.space : world;
|
||||||
bx = bx >> 4;
|
bx = bx >> 4;
|
||||||
|
@ -575,7 +575,7 @@ public final class Server implements IThreadListener {
|
||||||
for(int z = -Config.distance; z <= Config.distance; z++) {
|
for(int z = -Config.distance; z <= Config.distance; z++) {
|
||||||
long time = System.currentTimeMillis();
|
long time = System.currentTimeMillis();
|
||||||
if(time - last > 1000L) {
|
if(time - last > 1000L) {
|
||||||
Log.JNI.info("Bereite Spawnbereich vor" + ": " + (done * 100 / total) + "%");
|
Log.TICK.info("Bereite Spawnbereich vor" + ": " + (done * 100 / total) + "%");
|
||||||
last = time;
|
last = time;
|
||||||
}
|
}
|
||||||
++done;
|
++done;
|
||||||
|
@ -630,10 +630,10 @@ public final class Server implements IThreadListener {
|
||||||
}
|
}
|
||||||
catch(ExecutionException e1) {
|
catch(ExecutionException e1) {
|
||||||
if(!(e1.getCause() instanceof ThreadQuickExitException))
|
if(!(e1.getCause() instanceof ThreadQuickExitException))
|
||||||
Log.JNI.error(e1, "Fehler beim Ausführen von Server-Task " + task); // throw new RuntimeException(e1);
|
Log.SYSTEM.error(e1, "Fehler beim Ausführen von Server-Task " + task); // throw new RuntimeException(e1);
|
||||||
}
|
}
|
||||||
catch(InterruptedException e2) {
|
catch(InterruptedException e2) {
|
||||||
Log.JNI.error(e2, "Fehler beim Ausführen von Server-Task " + task);
|
Log.SYSTEM.error(e2, "Fehler beim Ausführen von Server-Task " + task);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -827,13 +827,13 @@ public final class Server implements IThreadListener {
|
||||||
if(loginPass.length() < Config.minPassLength)
|
if(loginPass.length() < Config.minPassLength)
|
||||||
return "Passwort ist zu kurz, mindestens " + Config.minPassLength + " Zeichen";
|
return "Passwort ist zu kurz, mindestens " + Config.minPassLength + " Zeichen";
|
||||||
conn.setPassword(loginPass);
|
conn.setPassword(loginPass);
|
||||||
Log.JNI.info(loginUser + " registrierte sich mit Passwort");
|
Log.NETWORK.info(loginUser + " registrierte sich mit Passwort");
|
||||||
}
|
}
|
||||||
else if(!conn.getPassword().equals(loginPass)) {
|
else if(!conn.getPassword().equals(loginPass)) {
|
||||||
return "Falsches Passwort";
|
return "Falsches Passwort";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Log.JNI.info(loginUser + " loggte sich mit Passwort ein");
|
Log.NETWORK.info(loginUser + " loggte sich mit Passwort ein");
|
||||||
}
|
}
|
||||||
if(Config.compression >= 0) {
|
if(Config.compression >= 0) {
|
||||||
connection.sendPacket(new RPacketEnableCompression(Config.compression), new ChannelFutureListener() {
|
connection.sendPacket(new RPacketEnableCompression(Config.compression), new ChannelFutureListener() {
|
||||||
|
@ -859,7 +859,7 @@ public final class Server implements IThreadListener {
|
||||||
if(tag == null)
|
if(tag == null)
|
||||||
/* this.movePlayerToSpawn(player); */ player.moveToBlockPosAndAngles(new BlockPos(0, 16384, 0), 0.0f, 0.0f);
|
/* this.movePlayerToSpawn(player); */ player.moveToBlockPosAndAngles(new BlockPos(0, 16384, 0), 0.0f, 0.0f);
|
||||||
|
|
||||||
Log.JNI.info(loginUser + "[" + connection.getCutAddress() + "] hat sich mit Objekt-ID "
|
Log.NETWORK.info(loginUser + "[" + connection.getCutAddress() + "] hat sich mit Objekt-ID "
|
||||||
+ player.getId() + " auf Level " + world.dimension.getDimensionId() + ": "
|
+ player.getId() + " auf Level " + world.dimension.getDimensionId() + ": "
|
||||||
+ String.format("%.2f %.2f %.2f", player.posX, player.posY, player.posZ) + " verbunden (" + (tag == null ? "Charakter-Editor" : "'" + player.getCommandName() + "'") + ")");
|
+ String.format("%.2f %.2f %.2f", player.posX, player.posY, player.posZ) + " verbunden (" + (tag == null ? "Charakter-Editor" : "'" + player.getCommandName() + "'") + ")");
|
||||||
|
|
||||||
|
@ -922,7 +922,7 @@ public final class Server implements IThreadListener {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch(Exception e) {
|
catch(Exception e) {
|
||||||
Log.JNI.error(e, "Konnte Spielerdaten für " + user + " nicht laden");
|
Log.IO.error(e, "Konnte Spielerdaten für " + user + " nicht laden");
|
||||||
}
|
}
|
||||||
return tag;
|
return tag;
|
||||||
}
|
}
|
||||||
|
@ -952,7 +952,7 @@ public final class Server implements IThreadListener {
|
||||||
tmp.renameTo(dat);
|
tmp.renameTo(dat);
|
||||||
}
|
}
|
||||||
catch(Exception e) {
|
catch(Exception e) {
|
||||||
Log.JNI.error(e, "Konnte Spielerdaten für " + conn.getUser() + " nicht speichern");
|
Log.IO.error(e, "Konnte Spielerdaten für " + conn.getUser() + " nicht speichern");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1162,7 +1162,7 @@ public final class Server implements IThreadListener {
|
||||||
if(this.debug)
|
if(this.debug)
|
||||||
return;
|
return;
|
||||||
if(message) {
|
if(message) {
|
||||||
Log.JNI.info("Speichere Spielerdaten");
|
Log.TICK.info("Speichere Spielerdaten");
|
||||||
}
|
}
|
||||||
for(Player conn : this.players) {
|
for(Player conn : this.players) {
|
||||||
this.writePlayer(conn);
|
this.writePlayer(conn);
|
||||||
|
@ -1192,13 +1192,13 @@ public final class Server implements IThreadListener {
|
||||||
}
|
}
|
||||||
synchronized(this.serverThread) {
|
synchronized(this.serverThread) {
|
||||||
if(this.endpoint != null) {
|
if(this.endpoint != null) {
|
||||||
Log.JNI.info("Schließe Port");
|
Log.NETWORK.info("Schließe Port");
|
||||||
try {
|
try {
|
||||||
this.endpoint.channel().close().sync();
|
this.endpoint.channel().close().sync();
|
||||||
this.endpoint = null;
|
this.endpoint = null;
|
||||||
}
|
}
|
||||||
catch(InterruptedException e) {
|
catch(InterruptedException e) {
|
||||||
Log.JNI.warn("Unterbrochen beim Schließen des Kanals");
|
Log.NETWORK.warn("Unterbrochen beim Schließen des Kanals");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1219,7 +1219,7 @@ public final class Server implements IThreadListener {
|
||||||
manager.processReceivedPackets();
|
manager.processReceivedPackets();
|
||||||
}
|
}
|
||||||
catch(Exception e) {
|
catch(Exception e) {
|
||||||
Log.JNI.error(e, "Konnte Paket von " + manager.getCutAddress() + " nicht verarbeiten");
|
Log.NETWORK.error(e, "Konnte Paket von " + manager.getCutAddress() + " nicht verarbeiten");
|
||||||
manager.sendPacket(new SPacketDisconnect(e.getMessage()), new GenericFutureListener<Future<? super Void>>() {
|
manager.sendPacket(new SPacketDisconnect(e.getMessage()), new GenericFutureListener<Future<? super Void>>() {
|
||||||
public void operationComplete(Future<? super Void> future) throws Exception {
|
public void operationComplete(Future<? super Void> future) throws Exception {
|
||||||
manager.closeChannel("Fehlerhaftes Datenpaket");
|
manager.closeChannel("Fehlerhaftes Datenpaket");
|
||||||
|
@ -1243,12 +1243,12 @@ public final class Server implements IThreadListener {
|
||||||
|
|
||||||
private void stopServer() {
|
private void stopServer() {
|
||||||
if(!this.stopped) {
|
if(!this.stopped) {
|
||||||
Log.JNI.info("Beende Server");
|
Log.SYSTEM.info("Beende Server");
|
||||||
this.terminateEndpoint(this.endMessage);
|
this.terminateEndpoint(this.endMessage);
|
||||||
if(this.started) {
|
if(this.started) {
|
||||||
Log.JNI.info("Speichere Spieler");
|
Log.TICK.info("Speichere Spieler");
|
||||||
this.saveAllPlayerData(true);
|
this.saveAllPlayerData(true);
|
||||||
Log.JNI.info("Speichere Welt");
|
Log.TICK.info("Speichere Welt");
|
||||||
this.saveAllWorlds(true);
|
this.saveAllWorlds(true);
|
||||||
Region.finishWrite();
|
Region.finishWrite();
|
||||||
}
|
}
|
||||||
|
@ -1262,7 +1262,7 @@ public final class Server implements IThreadListener {
|
||||||
if(this.endpoint != null)
|
if(this.endpoint != null)
|
||||||
this.terminateEndpoint("Wechsele auf Port " + port);
|
this.terminateEndpoint("Wechsele auf Port " + port);
|
||||||
// throw new IllegalStateException("Eingangspunkt bereits gesetzt");
|
// throw new IllegalStateException("Eingangspunkt bereits gesetzt");
|
||||||
Log.JNI.info("Öffne Port %d auf 0.0.0.0 (Timeout %ds)", port, Config.timeout);
|
Log.NETWORK.info("Öffne Port %d auf 0.0.0.0 (Timeout %ds)", port, Config.timeout);
|
||||||
this.endpoint = ((ServerBootstrap)((ServerBootstrap)(new ServerBootstrap()).channel(NioServerSocketChannel.class)).childHandler(new ChannelInitializer<Channel>() {
|
this.endpoint = ((ServerBootstrap)((ServerBootstrap)(new ServerBootstrap()).channel(NioServerSocketChannel.class)).childHandler(new ChannelInitializer<Channel>() {
|
||||||
protected void initChannel(Channel channel) throws Exception {
|
protected void initChannel(Channel channel) throws Exception {
|
||||||
try {
|
try {
|
||||||
|
@ -1283,7 +1283,7 @@ public final class Server implements IThreadListener {
|
||||||
}).group(SERVER_NIO_EVENTLOOP.getValue()).localAddress((InetAddress)null, port)).bind().syncUninterruptibly();
|
}).group(SERVER_NIO_EVENTLOOP.getValue()).localAddress((InetAddress)null, port)).bind().syncUninterruptibly();
|
||||||
}
|
}
|
||||||
catch(Throwable e) {
|
catch(Throwable e) {
|
||||||
Log.JNI.error(e, "**** KONNTE NICHT AN PORT " + port + " ANBINDEN!");
|
Log.NETWORK.error(e, "**** KONNTE NICHT AN PORT " + port + " ANBINDEN!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -173,7 +173,7 @@ public abstract class GenBiome implements IBiome {
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Log.JNI.warn("Biom-ID ist nicht im Bereich: " + id + ", verwende " + Biome.DEF_BIOME.id + " (" + Biome.DEF_BIOME.name + ")");
|
Log.TICK.warn("Biom-ID ist nicht im Bereich: " + id + ", verwende " + Biome.DEF_BIOME.id + " (" + Biome.DEF_BIOME.name + ")");
|
||||||
return BIOMES[Biome.DEF_BIOME.id];
|
return BIOMES[Biome.DEF_BIOME.id];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,19 +46,19 @@ public class LoginHandler extends NetHandler implements ILoginHandler
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Log.JNI.info("Trenne " + this.getConnectionInfo());
|
Log.NETWORK.info("Trenne " + this.getConnectionInfo());
|
||||||
this.netManager.sendPacket(new RPacketDisconnect(reason));
|
this.netManager.sendPacket(new RPacketDisconnect(reason));
|
||||||
this.netManager.closeChannel(reason);
|
this.netManager.closeChannel(reason);
|
||||||
}
|
}
|
||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
Log.JNI.error(exception, "Fehler beim Trennen des Spielers beim Login");
|
Log.NETWORK.error(exception, "Fehler beim Trennen des Spielers beim Login");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onDisconnect(String reason)
|
public void onDisconnect(String reason)
|
||||||
{
|
{
|
||||||
Log.JNI.info(this.getConnectionInfo() + " wurde beim Login getrennt: " + TextColor.stripCodes(reason));
|
Log.NETWORK.info(this.getConnectionInfo() + " wurde beim Login getrennt: " + TextColor.stripCodes(reason));
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getConnectionInfo()
|
public String getConnectionInfo()
|
||||||
|
|
|
@ -1621,7 +1621,7 @@ public class Player extends NetHandler implements ICrafting, Executor, IPlayer
|
||||||
|
|
||||||
public void disconnect(String message)
|
public void disconnect(String message)
|
||||||
{
|
{
|
||||||
Log.JNI.info("Trenne %s: %s", this.user, message);
|
Log.NETWORK.info("Trenne %s: %s", this.user, message);
|
||||||
this.connection.sendPacket(new SPacketDisconnect(message), new GenericFutureListener < Future <? super Void >> ()
|
this.connection.sendPacket(new SPacketDisconnect(message), new GenericFutureListener < Future <? super Void >> ()
|
||||||
{
|
{
|
||||||
public void operationComplete(Future <? super Void > p_operationComplete_1_) throws Exception
|
public void operationComplete(Future <? super Void > p_operationComplete_1_) throws Exception
|
||||||
|
@ -1641,7 +1641,7 @@ public class Player extends NetHandler implements ICrafting, Executor, IPlayer
|
||||||
|
|
||||||
public void onDisconnect(String reason)
|
public void onDisconnect(String reason)
|
||||||
{
|
{
|
||||||
Log.JNI.info(this.user + " wurde getrennt: " + TextColor.stripCodes(reason));
|
Log.NETWORK.info(this.user + " wurde getrennt: " + TextColor.stripCodes(reason));
|
||||||
this.server.sendPacket(new SPacketMessage(String.format("%s hat das Spiel verlassen", this.user), Type.FEED));
|
this.server.sendPacket(new SPacketMessage(String.format("%s hat das Spiel verlassen", this.user), Type.FEED));
|
||||||
this.server.removePlayer(this);
|
this.server.removePlayer(this);
|
||||||
}
|
}
|
||||||
|
@ -2664,7 +2664,7 @@ public class Player extends NetHandler implements ICrafting, Executor, IPlayer
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
Log.JNI.error(e, "Konnte Handel nicht wählen");
|
Log.TICK.error(e, "Konnte Handel nicht wählen");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -160,7 +160,7 @@ public class ChunkServer extends Chunk {
|
||||||
|
|
||||||
public void setBiomes(byte[] biomes) {
|
public void setBiomes(byte[] biomes) {
|
||||||
if(this.biomes.length != biomes.length) {
|
if(this.biomes.length != biomes.length) {
|
||||||
Log.JNI.warn("Konnte Biome des Chunks nicht setzen, Länge des Arrays ist " + biomes.length + " statt " + this.biomes.length);
|
Log.IO.warn("Konnte Biome des Chunks nicht setzen, Länge des Arrays ist " + biomes.length + " statt " + this.biomes.length);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
for(int n = 0; n < this.biomes.length; ++n) {
|
for(int n = 0; n < this.biomes.length; ++n) {
|
||||||
|
@ -175,7 +175,7 @@ public class ChunkServer extends Chunk {
|
||||||
|
|
||||||
public void setHeights(int[] map) {
|
public void setHeights(int[] map) {
|
||||||
if(this.height.length != map.length) {
|
if(this.height.length != map.length) {
|
||||||
Log.JNI.warn("Konnte Höhen des Chunks nicht setzen, Länge des Arrays ist " + map.length + " statt " + this.height.length);
|
Log.IO.warn("Konnte Höhen des Chunks nicht setzen, Länge des Arrays ist " + map.length + " statt " + this.height.length);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
for(int n = 0; n < this.height.length; ++n) {
|
for(int n = 0; n < this.height.length; ++n) {
|
||||||
|
|
|
@ -193,7 +193,7 @@ public abstract class Converter {
|
||||||
private static long postProgress(long start, int progress) {
|
private static long postProgress(long start, int progress) {
|
||||||
if(System.currentTimeMillis() - start >= 500L) {
|
if(System.currentTimeMillis() - start >= 500L) {
|
||||||
start = System.currentTimeMillis();
|
start = System.currentTimeMillis();
|
||||||
Log.JNI.info("... " + progress + "%");
|
Log.IO.info("... " + progress + "%");
|
||||||
}
|
}
|
||||||
return start;
|
return start;
|
||||||
}
|
}
|
||||||
|
@ -1006,7 +1006,7 @@ public abstract class Converter {
|
||||||
int rx, rz;
|
int rx, rz;
|
||||||
String[] reg = name.split("\\.");
|
String[] reg = name.split("\\.");
|
||||||
if(reg.length != 4) {
|
if(reg.length != 4) {
|
||||||
Log.JNI.warn("Unbekannte Region " + file);
|
Log.IO.warn("Unbekannte Region " + file);
|
||||||
return start;
|
return start;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
@ -1014,7 +1014,7 @@ public abstract class Converter {
|
||||||
rz = Integer.parseInt(reg[2]);
|
rz = Integer.parseInt(reg[2]);
|
||||||
}
|
}
|
||||||
catch(NumberFormatException e) {
|
catch(NumberFormatException e) {
|
||||||
Log.JNI.warn("Unbekannte Region " + file);
|
Log.IO.warn("Unbekannte Region " + file);
|
||||||
return start;
|
return start;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
@ -1031,7 +1031,7 @@ public abstract class Converter {
|
||||||
}
|
}
|
||||||
areas++;
|
areas++;
|
||||||
newreg = new Region(dir, rx * 4 + bx, rz * 4 + bz);
|
newreg = new Region(dir, rx * 4 + bx, rz * 4 + bz);
|
||||||
Log.JNI.info("Konvertiere " + file + " zu " + newreg.getFile() + " ...");
|
Log.IO.info("Konvertiere " + file + " zu " + newreg.getFile() + " ...");
|
||||||
for(int nx = 0; nx < 8; nx++) {
|
for(int nx = 0; nx < 8; nx++) {
|
||||||
for(int nz = 0; nz < 8; nz++) {
|
for(int nz = 0; nz < 8; nz++) {
|
||||||
int x = bx << 3 | nx;
|
int x = bx << 3 | nx;
|
||||||
|
@ -1040,7 +1040,7 @@ public abstract class Converter {
|
||||||
chunks++;
|
chunks++;
|
||||||
DataInputStream in = oldreg.getInputStream(x, z);
|
DataInputStream in = oldreg.getInputStream(x, z);
|
||||||
if(in == null) {
|
if(in == null) {
|
||||||
Log.JNI.warn("Konnte " + file.getPath() + "@" + x + "," + z + " nicht lesen");
|
Log.IO.warn("Konnte " + file.getPath() + "@" + x + "," + z + " nicht lesen");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
NBTTagCompound tag = NBTLoader.read(in);
|
NBTTagCompound tag = NBTLoader.read(in);
|
||||||
|
@ -1063,7 +1063,7 @@ public abstract class Converter {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
oldreg.close();
|
oldreg.close();
|
||||||
Log.JNI.info(file + ": " + areas + " Regionen, " + chunks + " Chunks");
|
Log.IO.info(file + ": " + areas + " Regionen, " + chunks + " Chunks");
|
||||||
}
|
}
|
||||||
catch(IOException e) {
|
catch(IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
@ -1080,13 +1080,13 @@ public abstract class Converter {
|
||||||
ldat = new File("level.dat_old");
|
ldat = new File("level.dat_old");
|
||||||
if(!ldat.exists())
|
if(!ldat.exists())
|
||||||
return false;
|
return false;
|
||||||
Log.JNI.info("Welt wird konvertiert");
|
Log.IO.info("Welt wird konvertiert");
|
||||||
NBTTagCompound nbt;
|
NBTTagCompound nbt;
|
||||||
try {
|
try {
|
||||||
nbt = NBTLoader.readGZip(ldat);
|
nbt = NBTLoader.readGZip(ldat);
|
||||||
}
|
}
|
||||||
catch(Exception e) {
|
catch(Exception e) {
|
||||||
Log.JNI.error(e, "Fehler beim Lesen von level.dat");
|
Log.IO.error(e, "Fehler beim Lesen von level.dat");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
nbt = nbt.getCompoundTag("Data");
|
nbt = nbt.getCompoundTag("Data");
|
||||||
|
@ -1103,44 +1103,44 @@ public abstract class Converter {
|
||||||
Log.IO.info("Weltzeit: %d Ticks / %d Sekunden", wtime, wtime / 20L);
|
Log.IO.info("Weltzeit: %d Ticks / %d Sekunden", wtime, wtime / 20L);
|
||||||
Log.IO.info("Zuletzt geladen: %s", new SimpleDateFormat("dd.MM.yyyy HH:mm:ss").format(new Date(nbt.getLong("LastPlayed"))));
|
Log.IO.info("Zuletzt geladen: %s", new SimpleDateFormat("dd.MM.yyyy HH:mm:ss").format(new Date(nbt.getLong("LastPlayed"))));
|
||||||
if(ver != SaveVersion.RELEASE_1_13) {
|
if(ver != SaveVersion.RELEASE_1_13) {
|
||||||
Log.JNI.info("Konvertiere Chunk-Daten von region/*.mca,*.mcr");
|
Log.IO.info("Konvertiere Chunk-Daten von region/*.mca,*.mcr");
|
||||||
File regionDir = new File("region");
|
File regionDir = new File("region");
|
||||||
if(regionDir.exists()) {
|
if(regionDir.exists()) {
|
||||||
File chunkDir = new File(new File("chunk"), "terra");
|
File chunkDir = new File(new File("chunk"), "terra");
|
||||||
Log.JNI.info("Konvertiere Welt nach '" + chunkDir + "' ...");
|
Log.IO.info("Konvertiere Welt nach '" + chunkDir + "' ...");
|
||||||
Log.JNI.info("Durchsuche Ordner unter '" + regionDir + "' nach .mca- und .mcr-Dateien ...");
|
Log.IO.info("Durchsuche Ordner unter '" + regionDir + "' nach .mca- und .mcr-Dateien ...");
|
||||||
File[] files = regionDir.listFiles(new FilenameFilter() {
|
File[] files = regionDir.listFiles(new FilenameFilter() {
|
||||||
public boolean accept(File file, String name) {
|
public boolean accept(File file, String name) {
|
||||||
return name.endsWith(".mca") || name.endsWith(".mcr");
|
return name.endsWith(".mca") || name.endsWith(".mcr");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if(files.length == 0) {
|
if(files.length == 0) {
|
||||||
Log.JNI.info("Keine .mca- oder .mcr-Dateien gefunden.");
|
Log.IO.info("Keine .mca- oder .mcr-Dateien gefunden.");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Log.JNI.info("Ingesamt wurden " + files.length + " .mca-Dateien und .mcr-Dateien gefunden, konvertiere ...");
|
Log.IO.info("Ingesamt wurden " + files.length + " .mca-Dateien und .mcr-Dateien gefunden, konvertiere ...");
|
||||||
if(ver == SaveVersion.RELEASE_1_9)
|
if(ver == SaveVersion.RELEASE_1_9)
|
||||||
Log.JNI.info("Konvertiere von neuerer Version, dies wird Blöcke entfernen ...");
|
Log.IO.info("Konvertiere von neuerer Version, dies wird Blöcke entfernen ...");
|
||||||
chunkDir.mkdirs();
|
chunkDir.mkdirs();
|
||||||
int progress = 0;
|
int progress = 0;
|
||||||
long time = System.currentTimeMillis();
|
long time = System.currentTimeMillis();
|
||||||
long start = postProgress(time, 0);
|
long start = postProgress(time, 0);
|
||||||
for(File file : files) {
|
for(File file : files) {
|
||||||
int percent = (int)Math.round(100.0D * (double)progress / (double)files.length);
|
int percent = (int)Math.round(100.0D * (double)progress / (double)files.length);
|
||||||
Log.JNI.info("Konvertiere Chunk-Daten: " + file.getName() + " (" + progress + "/" + files.length + ")");
|
Log.IO.info("Konvertiere Chunk-Daten: " + file.getName() + " (" + progress + "/" + files.length + ")");
|
||||||
start = convertChunks(chunkDir, file, start, progress, files.length);
|
start = convertChunks(chunkDir, file, start, progress, files.length);
|
||||||
++progress;
|
++progress;
|
||||||
start = postProgress(start, percent);
|
start = postProgress(start, percent);
|
||||||
}
|
}
|
||||||
time = System.currentTimeMillis() - time;
|
time = System.currentTimeMillis() - time;
|
||||||
Log.JNI.info("Fertig. Konversion dauerte " + ((time / 60000L) > 0 ? ((time / 60000L) + " Minuten und ") : "") + ((time / 1000L) % 60L) + " Sekunden.");
|
Log.IO.info("Fertig. Konversion dauerte " + ((time / 60000L) > 0 ? ((time / 60000L) + " Minuten und ") : "") + ((time / 1000L) % 60L) + " Sekunden.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Log.JNI.warn("Konvertiere keine Chunk-Daten, da Version zu neu");
|
Log.IO.warn("Konvertiere keine Chunk-Daten, da Version zu neu");
|
||||||
}
|
}
|
||||||
Log.JNI.info("Konvertiere Daten von level.dat");
|
Log.IO.info("Konvertiere Daten von level.dat");
|
||||||
Config.clear();
|
Config.clear();
|
||||||
UniverseRegistry.clear();
|
UniverseRegistry.clear();
|
||||||
if(nbt.hasKey("GameRules", 10)) {
|
if(nbt.hasKey("GameRules", 10)) {
|
||||||
|
@ -1150,19 +1150,19 @@ public abstract class Converter {
|
||||||
Config.set(rule.getValue(), rules.getString(rule.getKey()), false);
|
Config.set(rule.getValue(), rules.getString(rule.getKey()), false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Log.JNI.info("Speichere neue server.nbt ...");
|
Log.IO.info("Speichere neue server.nbt ...");
|
||||||
Server.saveServerConfig(wtime);
|
Server.saveServerConfig(wtime);
|
||||||
Weather weather = nbt.getBoolean("thundering") ? Weather.THUNDER : (nbt.getBoolean("raining") ? Weather.RAIN : Weather.CLEAR);
|
Weather weather = nbt.getBoolean("thundering") ? Weather.THUNDER : (nbt.getBoolean("raining") ? Weather.RAIN : Weather.CLEAR);
|
||||||
if(weather != Weather.CLEAR) {
|
if(weather != Weather.CLEAR) {
|
||||||
NBTTagCompound dataTag = new NBTTagCompound();
|
NBTTagCompound dataTag = new NBTTagCompound();
|
||||||
dataTag.setString("Weather", weather.getName());
|
dataTag.setString("Weather", weather.getName());
|
||||||
Log.JNI.info("Speichere neue data.nbt ...");
|
Log.IO.info("Speichere neue data.nbt ...");
|
||||||
File dataFile = new File(new File(new File("chunk"), "terra"), "data.nbt");
|
File dataFile = new File(new File(new File("chunk"), "terra"), "data.nbt");
|
||||||
try {
|
try {
|
||||||
NBTLoader.writeGZip(dataTag, dataFile);
|
NBTLoader.writeGZip(dataTag, dataFile);
|
||||||
}
|
}
|
||||||
catch(Exception e) {
|
catch(Exception e) {
|
||||||
Log.JNI.error(e, "Konnte Weltdaten nicht speichern");
|
Log.IO.error(e, "Konnte Weltdaten nicht speichern");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Log.IO.info("Welt wurde in %d Sekunden konvertiert", (System.currentTimeMillis() - cur) / 1000L);
|
Log.IO.info("Welt wurde in %d Sekunden konvertiert", (System.currentTimeMillis() - cur) / 1000L);
|
||||||
|
|
|
@ -153,14 +153,14 @@ public class Region {
|
||||||
// this.file.seek((long)(512 + (x + z * 8) * 8192));
|
// this.file.seek((long)(512 + (x + z * 8) * 8192));
|
||||||
int size = this.sizes[x + z * 8]; // this.file.readShort();
|
int size = this.sizes[x + z * 8]; // this.file.readShort();
|
||||||
if(size > 8192 /* - 2 */ || size < 0) {
|
if(size > 8192 /* - 2 */ || size < 0) {
|
||||||
Log.JNI.warn("Chunk-Region-Datei " + this.regFile + " hat eine ungültige Größe bei " + x + ", " + z + ", überspringe");
|
Log.IO.warn("Chunk-Region-Datei " + this.regFile + " hat eine ungültige Größe bei " + x + ", " + z + ", überspringe");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
byte[] data;
|
byte[] data;
|
||||||
if(size == 0) {
|
if(size == 0) {
|
||||||
File expand = getExpansionFile(this.folder, this.xPos * 8 + x, this.zPos * 8 + z);
|
File expand = getExpansionFile(this.folder, this.xPos * 8 + x, this.zPos * 8 + z);
|
||||||
if(!expand.exists()) {
|
if(!expand.exists()) {
|
||||||
Log.JNI.warn("Chunk-Erweiterungs-Datei " + expand + " ist nicht vorhanden oder nicht lesbar, überspringe");
|
Log.IO.warn("Chunk-Erweiterungs-Datei " + expand + " ist nicht vorhanden oder nicht lesbar, überspringe");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
in = new FileInputStream(expand);
|
in = new FileInputStream(expand);
|
||||||
|
@ -183,7 +183,7 @@ public class Region {
|
||||||
else {
|
else {
|
||||||
int pos = this.positions[x + z * 8] << 8;
|
int pos = this.positions[x + z * 8] << 8;
|
||||||
if(pos + size > this.file.length() - 512L || pos < 0) {
|
if(pos + size > this.file.length() - 512L || pos < 0) {
|
||||||
Log.JNI.warn("Chunk-Region-Datei " + this.regFile + " hat eine ungültige Position bei " + x + ", " + z + ", überspringe");
|
Log.IO.warn("Chunk-Region-Datei " + this.regFile + " hat eine ungültige Position bei " + x + ", " + z + ", überspringe");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
this.file.seek(512L + (long)pos);
|
this.file.seek(512L + (long)pos);
|
||||||
|
@ -200,7 +200,7 @@ public class Region {
|
||||||
}
|
}
|
||||||
catch(IOException e1) {
|
catch(IOException e1) {
|
||||||
}
|
}
|
||||||
Log.JNI.error(e, "Fehler beim lesen von Chunk-Region-Datei " + this.regFile + " bei " + x + ", " + z + ", überspringe");
|
Log.IO.error(e, "Fehler beim lesen von Chunk-Region-Datei " + this.regFile + " bei " + x + ", " + z + ", überspringe");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -366,7 +366,7 @@ public class Region {
|
||||||
// }
|
// }
|
||||||
// tag = tag.getCompoundTag("Level");
|
// tag = tag.getCompoundTag("Level");
|
||||||
if(!tag.hasKey("Sections", 9)) {
|
if(!tag.hasKey("Sections", 9)) {
|
||||||
Log.JNI.warn("Chunk-Datei bei " + x + "," + z + " hat keine Block-Daten, überspringe");
|
Log.IO.warn("Chunk-Datei bei " + x + "," + z + " hat keine Block-Daten, überspringe");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
ChunkServer chunk = new ChunkServer(world, x, z);
|
ChunkServer chunk = new ChunkServer(world, x, z);
|
||||||
|
@ -472,12 +472,12 @@ public class Region {
|
||||||
tick.getInteger("t"), tick.getInteger("p"));
|
tick.getInteger("t"), tick.getInteger("p"));
|
||||||
}
|
}
|
||||||
else if(invalid++ < 10) {
|
else if(invalid++ < 10) {
|
||||||
Log.JNI.warn("Unbekannter Block-Tick in Chunk " + x + "," + z + ": " +
|
Log.IO.warn("Unbekannter Block-Tick in Chunk " + x + "," + z + ": " +
|
||||||
(tick.hasKey("i", 8) ? ("'" + tick.getString("i") + "'") : ("#" + tick.getInteger("i"))));
|
(tick.hasKey("i", 8) ? ("'" + tick.getString("i") + "'") : ("#" + tick.getInteger("i"))));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(invalid > 10) {
|
if(invalid > 10) {
|
||||||
Log.JNI.warn((invalid - 10) + " weitere ...");
|
Log.IO.warn((invalid - 10) + " weitere ...");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -305,7 +305,7 @@ public final class WorldServer extends AWorldServer {
|
||||||
tag = NBTLoader.readGZip(dat);
|
tag = NBTLoader.readGZip(dat);
|
||||||
}
|
}
|
||||||
catch(Exception e) {
|
catch(Exception e) {
|
||||||
Log.JNI.error(e, "Konnte Weltdaten nicht laden");
|
Log.IO.error(e, "Konnte Weltdaten nicht laden");
|
||||||
}
|
}
|
||||||
if(tag != null) {
|
if(tag != null) {
|
||||||
this.exterminated = tag.getBoolean("Exterminated");
|
this.exterminated = tag.getBoolean("Exterminated");
|
||||||
|
@ -447,7 +447,7 @@ public final class WorldServer extends AWorldServer {
|
||||||
tag = NBTLoader.readGZip(dat);
|
tag = NBTLoader.readGZip(dat);
|
||||||
}
|
}
|
||||||
catch(Exception e) {
|
catch(Exception e) {
|
||||||
Log.JNI.error(e, "Konnte Ladeliste nicht laden");
|
Log.IO.error(e, "Konnte Ladeliste nicht laden");
|
||||||
}
|
}
|
||||||
if(tag != null && tag.hasKey("Loaders", 9)) {
|
if(tag != null && tag.hasKey("Loaders", 9)) {
|
||||||
NBTTagList list = tag.getTagList("Loaders", 10);
|
NBTTagList list = tag.getTagList("Loaders", 10);
|
||||||
|
@ -483,7 +483,7 @@ public final class WorldServer extends AWorldServer {
|
||||||
tag = NBTLoader.readGZip(dat);
|
tag = NBTLoader.readGZip(dat);
|
||||||
}
|
}
|
||||||
catch(Exception e) {
|
catch(Exception e) {
|
||||||
Log.JNI.error(e, "Konnte Dorfliste nicht laden");
|
Log.IO.error(e, "Konnte Dorfliste nicht laden");
|
||||||
}
|
}
|
||||||
this.villageStorage = new VillageCollection(tag);
|
this.villageStorage = new VillageCollection(tag);
|
||||||
}
|
}
|
||||||
|
@ -949,7 +949,7 @@ public final class WorldServer extends AWorldServer {
|
||||||
tag = NBTLoader.readGZip(dat);
|
tag = NBTLoader.readGZip(dat);
|
||||||
}
|
}
|
||||||
catch(Exception e) {
|
catch(Exception e) {
|
||||||
Log.JNI.error(e, "Konnte Warpliste nicht laden");
|
Log.IO.error(e, "Konnte Warpliste nicht laden");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(tag != null && tag.hasKey("Warps", 9)) {
|
if(tag != null && tag.hasKey("Warps", 9)) {
|
||||||
|
@ -993,7 +993,7 @@ public final class WorldServer extends AWorldServer {
|
||||||
NBTLoader.writeGZip(tag, file);
|
NBTLoader.writeGZip(tag, file);
|
||||||
}
|
}
|
||||||
catch(Exception e) {
|
catch(Exception e) {
|
||||||
Log.JNI.error(e, "Konnte Warpliste nicht speichern");
|
Log.IO.error(e, "Konnte Warpliste nicht speichern");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1002,21 +1002,21 @@ public final class WorldServer extends AWorldServer {
|
||||||
|
|
||||||
private static boolean deleteFiles(File[] files) {
|
private static boolean deleteFiles(File[] files) {
|
||||||
if(files == null) {
|
if(files == null) {
|
||||||
Log.JNI.warn("Konnte Ordner nicht löschen");
|
Log.IO.warn("Konnte Ordner nicht löschen");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
for(int i = 0; i < files.length; ++i) {
|
for(int i = 0; i < files.length; ++i) {
|
||||||
File file = files[i];
|
File file = files[i];
|
||||||
Log.JNI.info("Lösche " + file);
|
Log.IO.info("Lösche " + file);
|
||||||
|
|
||||||
if(file.isDirectory() && !deleteFiles(file.listFiles())) {
|
if(file.isDirectory() && !deleteFiles(file.listFiles())) {
|
||||||
Log.JNI.warn("Konnte Ordner " + file + " nicht löschen");
|
Log.IO.warn("Konnte Ordner " + file + " nicht löschen");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!file.delete()) {
|
if(!file.delete()) {
|
||||||
Log.JNI.warn("Konnte Datei " + file + " nicht löschen");
|
Log.IO.warn("Konnte Datei " + file + " nicht löschen");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1050,7 +1050,7 @@ public final class WorldServer extends AWorldServer {
|
||||||
NBTLoader.writeGZip(loaders, file);
|
NBTLoader.writeGZip(loaders, file);
|
||||||
}
|
}
|
||||||
catch(Exception e) {
|
catch(Exception e) {
|
||||||
Log.JNI.error(e, "Konnte Ladeliste nicht speichern");
|
Log.IO.error(e, "Konnte Ladeliste nicht speichern");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1071,7 +1071,7 @@ public final class WorldServer extends AWorldServer {
|
||||||
NBTLoader.writeGZip(data, file);
|
NBTLoader.writeGZip(data, file);
|
||||||
}
|
}
|
||||||
catch(Exception e) {
|
catch(Exception e) {
|
||||||
Log.JNI.error(e, "Konnte Weltdaten nicht speichern");
|
Log.IO.error(e, "Konnte Weltdaten nicht speichern");
|
||||||
}
|
}
|
||||||
// }
|
// }
|
||||||
for(int i = 0; i < this.dataList.size(); ++i) {
|
for(int i = 0; i < this.dataList.size(); ++i) {
|
||||||
|
@ -1088,7 +1088,7 @@ public final class WorldServer extends AWorldServer {
|
||||||
NBTLoader.writeGZip(tag, dat);
|
NBTLoader.writeGZip(tag, dat);
|
||||||
}
|
}
|
||||||
catch(Exception e) {
|
catch(Exception e) {
|
||||||
Log.JNI.error(e, "Konnte Dorfliste nicht speichern");
|
Log.IO.error(e, "Konnte Dorfliste nicht speichern");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
List<ChunkServer> list = Lists.newArrayList(this.loaded);
|
List<ChunkServer> list = Lists.newArrayList(this.loaded);
|
||||||
|
@ -1435,7 +1435,7 @@ public final class WorldServer extends AWorldServer {
|
||||||
return chunk;
|
return chunk;
|
||||||
}
|
}
|
||||||
catch(Exception e) {
|
catch(Exception e) {
|
||||||
Log.JNI.error(e, "Konnte Chunk nicht laden");
|
Log.IO.error(e, "Konnte Chunk nicht laden");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1455,7 +1455,7 @@ public final class WorldServer extends AWorldServer {
|
||||||
Region.queueIO(this);
|
Region.queueIO(this);
|
||||||
}
|
}
|
||||||
catch(Exception e) {
|
catch(Exception e) {
|
||||||
Log.JNI.error(e, "Konnte Chunk nicht speichern");
|
Log.IO.error(e, "Konnte Chunk nicht speichern");
|
||||||
}
|
}
|
||||||
// }
|
// }
|
||||||
// catch(SaveException e) {
|
// catch(SaveException e) {
|
||||||
|
@ -1485,7 +1485,7 @@ public final class WorldServer extends AWorldServer {
|
||||||
Region.writeChunk(this.chunkDir, coord.x, coord.z, tag);
|
Region.writeChunk(this.chunkDir, coord.x, coord.z, tag);
|
||||||
}
|
}
|
||||||
catch(Exception e) {
|
catch(Exception e) {
|
||||||
Log.JNI.error(e, "Konnte Chunk nicht speichern");
|
Log.IO.error(e, "Konnte Chunk nicht speichern");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
flag = true;
|
flag = true;
|
||||||
|
@ -2127,7 +2127,7 @@ public final class WorldServer extends AWorldServer {
|
||||||
entitytrackerentry.updatePlayerEntities(this.players);
|
entitytrackerentry.updatePlayerEntities(this.players);
|
||||||
}
|
}
|
||||||
catch(Throwable throwable) {
|
catch(Throwable throwable) {
|
||||||
Log.JNI.error((Throwable)throwable, (String)"Fange Objekt-Tracking-Fehler \"leise\" auf.");
|
Log.TICK.error((Throwable)throwable, (String)"Fange Objekt-Tracking-Fehler \"leise\" auf.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2824,7 +2824,7 @@ public final class WorldServer extends AWorldServer {
|
||||||
|
|
||||||
public void addPlayer(EntityNPC player) {
|
public void addPlayer(EntityNPC player) {
|
||||||
if(this.watching.contains(player)) {
|
if(this.watching.contains(player)) {
|
||||||
Log.JNI.warn("Konnte Spieler nicht hinzufügen. #" + player.getId() + " ist bereits in Chunk " + this.position.x + ", "
|
Log.TICK.warn("Konnte Spieler nicht hinzufügen. #" + player.getId() + " ist bereits in Chunk " + this.position.x + ", "
|
||||||
+ this.position.z);
|
+ this.position.z);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -157,7 +157,7 @@ public class FeatureDungeons
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Log.JNI.warn("Konnte kein Mob-Spawner-Objekt bei (" + position.getX() + ", " + position.getY() + ", " + position.getZ() + ") erstellen");
|
Log.TICK.warn("Konnte kein Mob-Spawner-Objekt bei (" + position.getX() + ", " + position.getY() + ", " + position.getZ() + ") erstellen");
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -37,7 +37,7 @@ public class GenLayerHills extends GenLayer
|
||||||
|
|
||||||
if (k > 255)
|
if (k > 255)
|
||||||
{
|
{
|
||||||
Log.JNI.warn("Altes Biom (" + k + ")!");
|
Log.TICK.warn("Altes Biom (" + k + ")!");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (k != 0 && l >= 2 && (l - 2) % 29 == 1 && k < 128)
|
if (k != 0 && l >= 2 && (l - 2) % 29 == 1 && k < 128)
|
||||||
|
|
|
@ -51,7 +51,7 @@ public class MapGenStructureIO
|
||||||
}
|
}
|
||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
Log.JNI.warn("Fehler bei Strukturanfang mit ID " + tagCompound.getString("id"));
|
Log.TICK.warn("Fehler bei Strukturanfang mit ID " + tagCompound.getString("id"));
|
||||||
exception.printStackTrace();
|
exception.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ public class MapGenStructureIO
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Log.JNI.warn("Überspringe Struktur mit ID " + tagCompound.getString("id"));
|
Log.TICK.warn("Überspringe Struktur mit ID " + tagCompound.getString("id"));
|
||||||
}
|
}
|
||||||
|
|
||||||
return structurestart;
|
return structurestart;
|
||||||
|
@ -82,7 +82,7 @@ public class MapGenStructureIO
|
||||||
}
|
}
|
||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
Log.JNI.warn("Fehler bei Strukturteil mit ID " + tagCompound.getString("id"));
|
Log.TICK.warn("Fehler bei Strukturteil mit ID " + tagCompound.getString("id"));
|
||||||
exception.printStackTrace();
|
exception.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@ public class MapGenStructureIO
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Log.JNI.warn("Überspringe Strukturteil mit ID " + tagCompound.getString("id"));
|
Log.TICK.warn("Überspringe Strukturteil mit ID " + tagCompound.getString("id"));
|
||||||
}
|
}
|
||||||
|
|
||||||
return structurecomponent;
|
return structurecomponent;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue