[resolved]ish Need help with fake rail entity

Place to get help with not working mods / modding interface.
Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

[resolved]ish Need help with fake rail entity

Post by Nexela »

How would I go about making a fake straight-rail based off of the in game rail? I want to put it between two pieces of tracks but I don't want it to be a real rail as I do not want it to connect the rails together. =====x=======

Thanks for any ideas or help offered
Attachments
ezgif.com-crop.gif
ezgif.com-crop.gif (3.77 MiB) Viewed 824 times
Last edited by Nexela on Thu Aug 11, 2016 6:13 am, edited 1 time in total.
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: Need help with fake rail entity

Post by Adil »

What does 'fake' mean in this context?
I doubt you can suppress the rail ending pictures from spawning at the sides of the new entity you spawn in place of rails. I doubt it is possible to make rail-section that doesn't allow trains to pass through.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: [resolved]ish Need help with fake rail entity

Post by Nexela »

Turns out I was just trying to over engineer it :)

Now I can actually use circuit controlled rail signals and have the train pick a differant path. signals can now be used as something other then glorified level crossings!. right now it just flips 90 degrees but I *might* have the rotation be selected based on signal value so it can switch to whichever track you want. The drawback is the timings would increase.......



The first signal by the combinator is not needed, it is just there to show off the fact that trains won't update their path if the default signal is set to red by circuit. The Crossing tracks are not needed either, they are just there to show off what else the mod does :)
Attachments
ezgif.com-crop(1).gif
ezgif.com-crop(1).gif (5.25 MiB) Viewed 799 times
Post Reply

Return to “Modding help”