Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upBasic railroad track map tiles #6925
Conversation
added some commits
Mar 25, 2014
This comment has been minimized.
This comment has been minimized.
|
This is amazing! |
This comment has been minimized.
This comment has been minimized.
WeendVidente
commented
Mar 26, 2014
|
Good work! |
This comment has been minimized.
This comment has been minimized.
dwarfkoala
commented
Mar 26, 2014
|
One thing I notice is that the railroads themselves are not disassemblable Rails, of course, are extremely powerful ammo for railguns. On Wed, Mar 26, 2014 at 2:55 AM, WeendVidente notifications@github.comwrote:
|
This comment has been minimized.
This comment has been minimized.
|
@dwarfkoala: I had this idea, too. But I don’t know how to disassemble terrain or if this is even possible. |
This comment has been minimized.
This comment has been minimized.
gimlet90210
commented
Mar 26, 2014
|
Railguns are named that because they are constructed of electrical rails that carry current to accelerate the projectile, not because they use railroad rails as ammo. Also a railroad rail weighs over 100 pounds - the spikes used to nail the rails to the railroad ties would be MUCH better ammunition - those weigh something like 8 to 12 ounces each... |
This comment has been minimized.
This comment has been minimized.
|
So this adds map tiles but it doesn't actually spawn them? |
This comment has been minimized.
This comment has been minimized.
|
Would probably use the same general mapgen code as river generation, I'd think, since rail junctions are Out. |
This comment has been minimized.
This comment has been minimized.
BollandP
commented
Mar 26, 2014
|
This looks very impressive. Is it going to see some use in those subway/metro tunnels? I always found it awkward that those tunnels had no metal in them. I hope we also get simple junctions/crossings in future development, perhaps dynamically generated by just overlaying the pieces. Proper junctions/switches need a lot of effort to implement believably and can wait. |
This comment has been minimized.
This comment has been minimized.
|
@Rivet-the-Zombie: Yes. I leave the task of map generation to others. :P xD |
This comment has been minimized.
This comment has been minimized.
Unfortunately we don't merge code that doesn't actually do anything. You've come this far: you're gonna need to take another step and work it into mapgen somehow. Feel free to look at the code for subway lines and rivers; those are probably the closest fits. I got my start from copying and creatively reusing existing code. It's an entirely valid way to learn. |
This comment has been minimized.
This comment has been minimized.
|
As a more accessable alternative to trying to solve the (fairly difficult) |
Wuzzy2
changed the title
Basic railroad track map tiles
Basic railroad track map tiles [WIP]
Mar 28, 2014
This comment has been minimized.
This comment has been minimized.
|
I added “[WIP]” to the title because the inclusion to the map generator is missing. |
kevingranade
changed the title
Basic railroad track map tiles [WIP]
Basic railroad track map tiles
Aug 27, 2014
KA101
force-pushed the
CleverRaven:master
branch
from
a342a64
to
0da0595
Oct 30, 2014
This comment has been minimized.
This comment has been minimized.
|
This PR will probably not become mergeable. Closing. |
Coolthulhu
closed this
Apr 23, 2015
This comment has been minimized.
This comment has been minimized.
|
But the idea was solid. I'd love to see this concept revisited and completed. |
Wuzzy2 commentedMar 26, 2014
This adds some new terrain types and (over)map tiles to C:DDA. Those are all railroad-related.
New terrain types are: railroad tie (several directions), railroad track, buffer stop, railway crossing signal, crossbuck (wooden or metal).
New map tiles are: Straight rail, curved rail, rail ending with buffer stop, railway crossing (with crossbuck or railway crossing signal) and 2 kinds of railroad bridges.
The railway crossing signal, buffer stop and the crossbucks are smashable for wood or metal. The signal drops cheap electronics.
A (not accurate anymore) preview is here: http://smf.cataclysmdda.com/index.php?topic=5678.msg103528#msg103528
Please note there are no junctions for railroad tracks; these have been blacklisted.
To test, open the debug menu’s map editor and try everything with the word “rail” in it.