Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature idea: train displays (display 'outside' text on the train instead of as infotext) #40

Open
gbl08ma opened this issue Feb 5, 2017 · 8 comments

Comments

@gbl08ma
Copy link

gbl08ma commented Feb 5, 2017

It is usual for trains, especially modern ones, to have displays above the windshields. These can be used to display the destination, line name, train number (e.g. on subway lines with multiple trains), a "out of service" message, or a combination of these. Since there are many possibilities, I think it would make sense to just accept a string for the message to display.

That display could be manually set by the conductor (a "wagon properties" formspec already exists), or with ATC commands (both Lua and non-Lua).

I'm not sure how it could be implemented: the most straightforward solution I see is having each wagon type have designated display locations (or none, for example in the case of steam trains...), and a texture with text would be attached to those locations (like signs and digilines LCDs do). These would then move with the wagon like the decoupling indicators on multi-wagon trains.

Even though a train could eventually have multiple displays, I think it will be simpler to implement if all displays show the same message. Trains without displays would just ignore the ATC commands for display setting.

@gpcf
Copy link
Contributor

gpcf commented Feb 5, 2017

I think this requires a change in the engine to make it render text on stuff.

@gbl08ma
Copy link
Author

gbl08ma commented Feb 5, 2017

No, I think you can just use the trick signs and display mods use, which is to have one texture per character, then composing that texture in a bigger one that's shown in front of the display/sign node. See my screenshot on #3 for an example.

It would have the advantage of being able to make the text look boxy as if it was shown on a low-resolution LCD.

@gpcf
Copy link
Contributor

gpcf commented Feb 5, 2017

Can you release that mod? I really want to have those displays!

@orwell96
Copy link
Owner

orwell96 commented Feb 5, 2017

Having destination text on trains is actually very easy, since the trains are already entities. I can just settexturemod().
When I do this, there will also be such displays inside the trains, maybe I make them be displayed in the head-up display in passenger seats.
I'll let this on the To-Do-List.

@orwell96 orwell96 added the Idea label Feb 5, 2017
@gbl08ma
Copy link
Author

gbl08ma commented Feb 5, 2017

Actually, I forgot to mention, but displays inside trains would be part of the idea (I thought that would be hard). But they would display different things from the outer displays. For example, in the subway system in my map, I was thinking of using them like this:
Outer display - train destination (usually, the station at the end of the line) and number
Inner display - next station indication (ATC rails would make this easy, also, it's extremely similar to how some real life systems do it)
However, if making the inner and outer displays show different things is too hard, it's no big deal.

@gpcf it needs some polishing, right now the center part of the display (which acts as digiline receiver) is a different node than the two blocks to the side, I'll see if I can make those two sides spawn automatically, clean up the code a bit and release it.

@orwell96
Copy link
Owner

orwell96 commented Feb 5, 2017

That was what I was thinking of.

@gpcf
Copy link
Contributor

gpcf commented Feb 5, 2017

@gbl08ma, I think it's better to release the half-finished mod now, so other people can have a look at the problems and try to fix them.

@gbl08ma
Copy link
Author

gbl08ma commented Feb 5, 2017

@orwell96 orwell96 changed the title Feature idea: train displays Feature idea: train displays (display 'outside' text on the train instead of as infotext) May 13, 2017
orwell96 added a commit that referenced this issue May 22, 2017
Was caused by arrowconn not being set. Instructs user to revisit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants