Getting custom entity names

Place to get help with not working mods / modding interface.
JLBShecky
Long Handed Inserter
Long Handed Inserter
Posts: 60
Joined: Mon Jul 21, 2014 5:27 pm
Contact:

Getting custom entity names

Post by JLBShecky »

Am I missing something or is just not possible with the current api to get the custom names that entities like the Train stops, radars and science labs use?

So far I have not been able to figure out anything and maybe this is something that should be under modding api requests, but I have been known to miss things so I thought I would ask first as this one of the two blocks that I have currently run into with my concept mod.
User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

Re: Getting custom entity names

Post by FreeER »

huh, I've never even thought of using those :lol: As far as I am aware it's not possible, but theoretically I could have missed it myself :)
JLBShecky
Long Handed Inserter
Long Handed Inserter
Posts: 60
Joined: Mon Jul 21, 2014 5:27 pm
Contact:

Re: Getting custom entity names

Post by JLBShecky »

Yeah they don't have much use outside of railroad automation.

As you probably know train routes use them name of train stop for their pathing, but at the moment the only way to find valid train stop name, as far as I have found at the moment, is to have a train with the train stop added and then query it for it's list of stops. Granted there are a number of other things missing from the lua api, but being able to get the current name of a station (as they can be renamed now), would be a useful since at the moment there is no way to access the train pathing to my knowledge, and I really don't want to have to reinvent the wheel and write my own path finding code for driving trains between stations.
Post Reply

Return to “Modding help”