Skip to content

Added more options for the BlueMap lines in the config#4

Open
erpicoding wants to merge 3 commits into
Szedann:1.21.1/neoforgefrom
erpicoding:1.21.1/neoforge
Open

Added more options for the BlueMap lines in the config#4
erpicoding wants to merge 3 commits into
Szedann:1.21.1/neoforgefrom
erpicoding:1.21.1/neoforge

Conversation

@erpicoding

Copy link
Copy Markdown

Added more options for the BlueMap lines in the config

This options let the server-owner change the width and color of tracks and trains.
The first carrige of a train is always: lineWidthTrains + 2
The color of manual trains and scheduled trains can be configured separat.

#Graphical options for displayed lines in BlueMap
#
#line width:
#Width of the train lines
# Default: 6
# Range: 1 ~ 20
lineWidthTrains = 6
#Width of the train track lines
# Default: 6
# Range: 1 ~ 20
lineWidthTracks = 6
#
#line colors:
#Color of the train track lines; HEX value
lineColorTracks = "#fff"
#Color of trains without schedules; HEX value
lineColorManualTrains = "#f99"
#Color of trains with schedules; HEX value
lineColorScheduledTrains = "#99f"

@DJKieranl29

Copy link
Copy Markdown

Any chance you can add the options to show the trains schedule also?

@erpicoding

Copy link
Copy Markdown
Author

I could try to update the train markers to HTML markers that show the schedule in a more detailed element.

@DJKieranl29

Copy link
Copy Markdown

if u ever make a version where we can click a train to view its schedule (with support for the railway navigator schedule sections) then id love to get it for 1.21.1 (neoforge)!

Reach out to me and id be happy to help out as much as I can also.

@erpicoding

Copy link
Copy Markdown
Author

I am not shure about the schedule sections from the Railwai Navigator, but I can make a clickable train element with the schedule and some more information.

@DJKieranl29

Copy link
Copy Markdown

That would be brill mate, thanks.

@DJKieranl29

Copy link
Copy Markdown

Any chance of station/signal markers also? Just out of interest, sorry if this is all a lot of work.

@erpicoding

Copy link
Copy Markdown
Author

Stations are possible but I'm not sure about signals. But I will wait first till this PR get accepted.

@DJKieranl29

Copy link
Copy Markdown

Sent you a request, kieranl29.

Comment on lines +96 to +97
new Color(Config.lineColorScheduledTrains) :
new Color(Config.lineColorManualTrains))

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid creating new class instances in a loop wherever it can be avoided

@erpicoding erpicoding requested a review from Szedann May 11, 2026 20:00
@Szedann

Szedann commented May 12, 2026

Copy link
Copy Markdown
Owner

The game seems to crash whenever I try to change the line color.

@erpicoding

erpicoding commented May 12, 2026

Copy link
Copy Markdown
Author

Instant when you update the file or when you reload the mod?
And do you relod the mod with /bluemap reload or with /reload ?
because /bluemap reload also caused an error in the previos version (1.1.1)
The error is maybe, that the executer is final and so it is not able to run twice

On my server it works fine.
BlueMap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants