• R/O
  • HTTP
  • SSH
  • HTTPS

automap: Commit

Automap (OSS) GIT software repository


Commit MetaInfo

Revisión8c96a0fe705fd9365f4d07f12a16a1d225087f7d (tree)
Tiempo2021-05-30 06:28:23
Autormelchior <melchior@user...>
Commitermelchior

Log Message

Cleaned up logging msg.

Cambiar Resumen

Diferencia incremental

--- a/Automap/Automap.csproj
+++ b/Automap/Automap.csproj
@@ -33,7 +33,7 @@
3333 <ConsolePause>false</ConsolePause>
3434 <CustomCommands>
3535 <CustomCommands>
36- <Command type="AfterBuild" command="7z -tzip a ${ProjectName}_${ProjectConfig}.zip" workingdir="${TargetDir}" />
36+ <Command type="AfterBuild" command="7z a -tzip -x!*.zip -aoa ${ProjectName}_${ProjectConfig}.zip" workingdir="${TargetDir}" />
3737 <Command type="AfterClean" command="rm -f *.zip" workingdir="${TargetDir}" />
3838 </CustomCommands>
3939 </CustomCommands>
--- a/Automap/Subsystems/AutomapSystem.cs
+++ b/Automap/Subsystems/AutomapSystem.cs
@@ -611,7 +611,9 @@ namespace Automap
611611
612612 if (worldChunk.IsPacked())
613613 {
614+ #if DEBUG
614615 Logger.VerboseDebug("WORLD chunk: Compressed: X{0} Y{1} Z{2}", key.X, targetChunkY, key.Y);
616+ #endif
615617 worldChunk.Unpack( );//RESEARCH: Thread Unsafe?
616618 }
617619
@@ -639,7 +641,9 @@ namespace Automap
639641
640642 //First Chance fail-safe;
641643 if (worldChunk.Blocks == null || worldChunk.Blocks.Length <= 0) {
644+ #if DEBUG
642645 Logger.VerboseDebug("WORLD chunk; Missing block DATA⁈ X{0} Y{1} Z{2} ⁈", key.X, targetChunkY, key.Y);
646+ #endif
643647 nullChunkCount++;
644648 continue;
645649 }
@@ -656,9 +660,11 @@ namespace Automap
656660
657661 //'Last' Chance fail-safe;
658662 if (worldChunk.Blocks == null || worldChunk.Blocks.Length <= 0) {
663+ #if DEBUG
659664 Logger.VerboseDebug("Processing Block: Missing block DATA⁈ X{0} Y{1} Z{2} ⁈", X_index, Y_index, Z_index);
665+ #endif
660666 nullChunkCount++;
661- goto loop_bustout; ;
667+ goto loop_bustout;
662668 }
663669
664670 int aBlockId = worldChunk.Blocks[indicie];
@@ -689,12 +695,16 @@ namespace Automap
689695 }
690696 loop_bustout:;
691697 }
698+ #if DEBUG
692699 Logger.VerboseDebug("COLUMN X{0} Z{1}: {2}, processed.", key.X , key.Y, chunkTally + 1);
700+ #endif
693701 }
694702
695703 private void UpdateEntityMetadata()
696704 {
705+ #if DEBUG
697706 Logger.Debug("Presently {0} Entities", ClientAPI.World.LoadedEntities.Count);
707+ #endif
698708 //Mabey scan only for 'new' entities by tracking ID in set?
699709 foreach (var loadedEntity in ClientAPI.World.LoadedEntities.ToArray())
700710 {
@@ -752,11 +762,11 @@ namespace Automap
752762 AddNote(cmdData.Notation);
753763 break;
754764 }
755- #if DEBUG
765+
756766 ClientAPI.TriggerChatMessage($"Automap commanded to: {cmdData.State} ");
757- #endif
767+
758768 }
759- #endregion
769+#endregion
760770
761771 private AChunkRenderer InstantiateChosenRenderer(string rendererName )
762772 {
Show on old repository browser