TeamOpenIndustry / ImmersiveRailroading

GNU Lesser General Public License v2.1
226 stars 73 forks source link

Electrical Locomotive - Electrical Age Interop #1457

Open jrddunbr opened 9 months ago

jrddunbr commented 9 months ago

Describe the suggestion

I'd like to propose interoperability with Electrical Age (for Minecraft 1.7.10).

The end implementation of this could be a new API endpoint to provide locomotives with raw input of tractive effort, or something more abstract like watts/tick with electric tractive effort being calculated in IR. I'm mostly indifferent to how this is implemented.

I realize that Electrical Age is effectively for only 1.7.10 right now, so I figure that a fallback could be RF or EU or some other form of power transfer if that's desired for other versions or other mods. I'd like to be able to provide power from catenary poles that are in Electrical Age itself (for several reasons); it would simply target the IR locomotive entities in the vicinity of the pole system in loaded chunks. Obviously, other mods (or IR) could add RF/EU based power via their own catenary.

I'm also wondering if it would be possible to add 3rd rail capabilities to the Track API, but I can make a separate issue there if desired.

Applications of the suggestion Electrical locomotives, of the type commonly found in the Northeast Corridor of the United States, as well as many other countries worldwide. Fuel and water commonly found in IR would not be required for this class of locomotive (although dual diesel-electric systems could also work, and instead, electrical or RF/EU/etc. power would be required for operation.

I did make a prototype with some code that allowed for electric minecarts and that works well, except for the fact that I wasn't able to figure out how to make the minecarts themselves survive world reloads and/or create a UI for them - so I didn't release them into the mod yet.

https://github.com/age-series/ElectricalAge/tree/feature/electric-minecarts

LavaHoleD commented 8 months ago

Mentioning another great train mod for 1.7.10, it would be incredibly cool to see this in Zora no Densha

jrddunbr commented 8 months ago

I didn't propose it for that mod because it appears to be licensed All Rights Reserved with maybe just visible source, although I'm not against the idea if the original author is okay with that sort of interop.