• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Automap (client) [VS plugin mod]


Commit MetaInfo

Revision08c37e7d8a466bbbd00ff085e913c744a206855e (tree)
Time2020-07-06 08:36:50
Authormelchior <melchior@user...>
Commitermelchior

Log Message

Fixes for Translocator, and Coordinate format change for POI TSV file

Change Summary

Incremental Difference

--- a/Automap/Designators/DefaultDesignators.cs
+++ b/Automap/Designators/DefaultDesignators.cs
@@ -170,11 +170,11 @@ namespace Automap
170170
171171 StringBuilder textTarget = new StringBuilder();
172172 //translocatorEntity.GetBlockInfo(clientAPI.World.Player, textTarget);
173-
174- textTarget.Append(te.Activated ? "Online " : "offline ");
175- textTarget.Append(" Dest.: ");
176- textTarget.Append(te.TargetLocation != null ? te.TargetLocation.PrettyCoords(clientAPI) : "???");//Or ABS coords?
177-
173+ textTarget.Append(te.FullyRepaired ? "Functional " : "Broken ");
174+ textTarget.Append(te.Activated ? "Online " : "Offline ");
175+ textTarget.Append(" Target: ");
176+ textTarget.Append(te.TargetLocation != null ? "Set" : "Invalid");//Or ABS coords?
177+ textTarget.AppendFormat(" Range ({0} ~ {1})", te.MinTeleporterRangeInBlocks, te.MaxTeleporterRangeInBlocks);
178178 poi.AddReplace(
179179 new PointOfInterest
180180 {
--- a/Automap/Subsystems/AutomapSystem.cs
+++ b/Automap/Subsystems/AutomapSystem.cs
@@ -395,7 +395,7 @@ namespace Automap
395395
396396 using (var tsvWriter = new StreamWriter(pointsTsvPath, false, Encoding.UTF8))
397397 {
398- tsvWriter.WriteLine("Name\tDescription\tLocation\tTime\t");
398+ tsvWriter.WriteLine("Name\tDescription\tLocation\tTime\tDestination");
399399 foreach (var point in this.POIs)
400400 {
401401 tsvWriter.Write(point.Name + "\t");
@@ -406,6 +406,7 @@ namespace Automap
406406 tsvWriter.Write(notes + "\t");
407407 tsvWriter.Write(point.Location.PrettyCoords(ClientAPI) + "\t");
408408 tsvWriter.Write(point.Timestamp.ToString("u") + "\t");
409+ tsvWriter.Write((point.Destination != null ? point.Destination.PrettyCoords(ClientAPI) : "---") +"\t");
409410 tsvWriter.WriteLine();
410411 }
411412 foreach (var entity in this.EOIs)
@@ -418,6 +419,7 @@ namespace Automap
418419 tsvWriter.Write(notes + "\t");
419420 tsvWriter.Write(entity.Location.PrettyCoords(ClientAPI) + "\t");
420421 tsvWriter.Write(entity.Timestamp.ToString("u") + "\t");
422+ tsvWriter.Write("n/a\t");
421423 tsvWriter.WriteLine();
422424 }
423425 tsvWriter.WriteLine();