Zhincore / dynmap-trains

DynMap integration for Create Track Map
GNU General Public License v3.0
20 stars 3 forks source link

Trains not showing on dynmap #7

Open SamEmam opened 9 months ago

SamEmam commented 9 months ago

Dynmap loads with all tracks and stations, but trains do not show up.

image

Trains show up just fine on Create Track Map

image

No issues detected in network log.

Versions in use:

Here is my addition to the dynmap configuration.txt

components:
  - class: org.dynmap.ClientComponent
    type: trains
    base-url: "http://server_url:track_map_port"
    worlds:
      ohana: "minecraft:overworld"
    # Configuration for each layer
    #   `hidden` - Whether or not should the layer be hidden by default
    #   `label` - The label of the layer to show in the UI
    layers: 
      trains:
        hidden: false
        label: Trains
      blocks:
        hidden: false
        label: Train Tracks
      signals:
        hidden: false
        label: Train Signals
      stations:
        hidden: false
        label: Train Stations
      portals:
        hidden: false
        label: Train Portals
    # Additional texts used in the UI 
    labels: 
      # Tooltip for portal marker 
      portal: "Portal to "
      # Tooltip for station marker 
      station: Station
      # Tooltip whether the station is assembling 
      assembling: Assembling
      # Tooltip for train marker 
      train: Train
      # Owner of train 
      owner: Owner
    # Width of the rectangles representing trains (in blocks) 
    train-width: 3
    # Width of the lines representing tracks 
    track-width: 0.75
    # Width of the outline around the track lines 
    track-outline: 1
    # Whether or not should the track outline visually separate track segments 
    track-separation-outline: true
Zhincore commented 8 months ago

That's weird, I have no idea why that would be honestly

ST-DDT commented 8 months ago

Try curling/downloading the trains API endpoint and abort after a certain time with trains movement. Then check the downloaded output/file whether train data are present or not. And maybe post it here.