Dan

Moderator
Dan(Tasanar) submitted a new resource:

IDOC Detector - Public way to display shards house decay

View attachment 20941
The Heritage Shard IDOC Detector:
  • Searches all houses placed on a shard when double clicked and lets players know how many are "In Danger Of Collapsing" or "Greatly Worn".
  • Changes color based on global house decay status:
    • Green - No houses greatly worn on IDOC.
    • Yellow - No houses IDOC but found some that are greatly worn.
    • Red - Found houses IDOC.

Technical Notes:
  • Should be "drag and drop" and work with...

Read more about this resource...
 
Sorry to bother you.

Some formats in the text are too old, which causes the server to run incorrectly.

For example, lines 18, 19 and 75

Mainly:{ get; set; }

My station :Runuo svn1091。

=========================Error Message=====================================
Error:

+ Customs/IDOCDetector.cs:

CS0501: Line 18: "Server. Items. IDOCDetector. Timer. get" The body must be declared because it is not marked abstract or extern

CS0501: Line 18: 'Server. Items. IDOCDetector. Timer. set' must declare a body because it is not marked abstract or extern

CS0501: Line 19: "Server. Items. IDOCDetector. Detectors. get" The body must be declared because it is not marked abstract or extern

CS0501: Line 19: "Server. Items. IDOCDetector. Detectors. set" must declare a body because it is not marked abstract or extern

CS0501: Line 75: 'Server. Items. IDOCDetector. Cooldown. get' must declare a body because it is not marked abstract or extern

CS0501: Line 75: 'Server. Items. IDOCDetector. Cooldown. set' must declare a body because it is not marked abstract or extern
 
Last edited:
Sorry to bother you.

Some formats in the text are too old, which causes the server to run incorrectly.

For example, lines 18, 19 and 75

Mainly:{ get; set; }

My station :Runuo svn1091。

=========================Error Message=====================================
Error:

+ Customs/IDOCDetector.cs:

CS0501: Line 18: "Server. Items. IDOCDetector. Timer. get" The body must be declared because it is not marked abstract or extern

CS0501: Line 18: 'Server. Items. IDOCDetector. Timer. set' must declare a body because it is not marked abstract or extern

CS0501: Line 19: "Server. Items. IDOCDetector. Detectors. get" The body must be declared because it is not marked abstract or extern

CS0501: Line 19: "Server. Items. IDOCDetector. Detectors. set" must declare a body because it is not marked abstract or extern

CS0501: Line 75: 'Server. Items. IDOCDetector. Cooldown. get' must declare a body because it is not marked abstract or extern

CS0501: Line 75: 'Server. Items. IDOCDetector. Cooldown. set' must declare a body because it is not marked abstract or extern
You mean the automatic properties? C# Properties (Get and Set)

I do not believe those are older but actually newer. What version of .net are you on?


This:
C#:
public string Name   // property
  {
    get { return name; }   // get method
    set { name = value; }  // set method
  }

=

C#:
 public string Name  // property
  { get; set; }
 
This is beautiful. OSI does something like this with the town cryer but tells ya where it is which is too much. This is a nice balance.
 
  • Like
Reactions: Dan
I am using your code and it is great; and I enhanced it to list counts by facet map.
What I would like to do is display the results in a gump.

What would I need to send the results to one?
I was thinking of creating a gump module for it; but not sure how to send over the counts
 
I built a basic gump to go with this IDOC detector. I also expanded the code to show counts by map.
I know there is a cleaner way to run the different maps; but I just copied the existing module for each. I am sure someone better at C3 and OOP can improve upon it.
1708828016471.png
For those who like to track their fleets.
1708832035892.png
 

Attachments

  • IDOCDetectorGump.cs
    4.5 KB · Views: 6
  • IDOCDetector.cs
    16.2 KB · Views: 6
  • IDOCBoatDetector.cs
    6.7 KB · Views: 5
Last edited:

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back