Skip to main content
Topic: Slopes in tunnels (Read 47402 times) previous topic - next topic

Slopes in tunnels

Without dwachs' effort to the underground view, this would be useless, since it would be hard to get an overview about the tunnels...

Also a version which includes dwachs' underground view patch is appended (some posts below), could you make executables, wernieman?

[ You have to append something like
Code: [Select]
toolbar[8][15]=general_tool[33],7
toolbar[8][16]=general_tool[34],7
to your menuconf.tab ]

Re: A dream becomes true: Slopes in tunnels!

Reply #1
I... I can't believe my eyes! Is it true? Or am I dreaming?
  
***** PAK128 Dev Team - semi-retired*****

Re: A dream becomes true: Slopes in tunnels!

Reply #2
I work on it ....
I hope you understand my English

Re: A dream becomes true: Slopes in tunnels!

Reply #3
Admin note:

"A dream becomes true!" is not an useful topic... as punishment, I wil... I will... bah! Forget it! The topic title represents very well the moment as I'm seeing. ;)

I... I can't believe my eyes! Is it true? Or am I dreaming?

*facepalm*

You are not.  ;D

Re: A dream becomes true: Slopes in tunnels!

Reply #4
I think both patches are broken, slopes patch does not apply on top of latest dwachs underground mode patch I know of, and the underground+slopes patch is missing the new ceiling files (though one can get them from the slopes only patch with little effort :-)).

It certainly works though (at least for a single slope :-)).

Re: A dream becomes true: Slopes in tunnels!

Reply #5
I think both patches are broken, slopes patch does not apply on top of latest dwachs underground mode patch I know of, and the underground+slopes patch is missing the new ceiling files (though one can get them from the slopes only patch with little effort :-)).

I think the first patch is against a clean simutrans, the second one against simutrans with the new-underground-mode-patch applied. So at least one of the patch files is not broken ;)

@gerw: Nice work!  :)  Saves me programming time ;)
Parsley, sage, rosemary, and maggikraut.

Re: A dream becomes true: Slopes in tunnels!

Reply #6
Shid .. I don't get it to work!
Code: [Select]
simutrans@birgit ~/comp2 $ ./compilieren.sh
patching file simwerkz.cc
patching file simwerkz.h
patching file simmenu.h
patching file Makefile
patching file boden/tunnel_ceiling.cc
patching file boden/tunnel_ceiling.h
patching file boden/tunnelboden.cc
patching file boden/tunnelboden.h
patching file boden/grund.h
patching file simplan.cc
patching file bauer/wegbauer.cc
patching file bauer/tunnelbauer.cc
patching file bauer/tunnelbauer.h
patching file simmenu.cc
patching file simwerkz.cc
Hunk #2 FAILED at 357.
Hunk #20 FAILED at 1668.
Hunk #21 FAILED at 1693.
Hunk #22 succeeded at 1765 (offset 15 lines).
Hunk #23 succeeded at 1969 (offset 15 lines).
Hunk #24 FAILED at 1989.
Hunk #25 succeeded at 2333 (offset 16 lines).
Hunk #26 succeeded at 2345 (offset 16 lines).
Hunk #27 succeeded at 2511 (offset 16 lines).
Hunk #28 succeeded at 2566 (offset 16 lines).
Hunk #29 succeeded at 2635 (offset 16 lines).
Hunk #30 succeeded at 2730 (offset 16 lines).
Hunk #31 succeeded at 2782 (offset 16 lines).
Hunk #32 succeeded at 2829 (offset 16 lines).
Hunk #33 succeeded at 2845 (offset 16 lines).
Hunk #34 succeeded at 2887 (offset 16 lines).
Hunk #35 succeeded at 2969 (offset 16 lines).
Hunk #36 succeeded at 3066 (offset 16 lines).
Hunk #37 succeeded at 3139 (offset 16 lines).
Hunk #38 succeeded at 3298 (offset 16 lines).
Hunk #39 succeeded at 3351 (offset 16 lines).
Hunk #40 succeeded at 3385 (offset 16 lines).
Hunk #41 succeeded at 3418 (offset 16 lines).
Hunk #42 succeeded at 3467 (offset 16 lines).
Hunk #43 succeeded at 3507 (offset 16 lines).
Hunk #44 succeeded at 3546 (offset 16 lines).
Hunk #45 succeeded at 3682 (offset 16 lines).
Hunk #46 succeeded at 3753 (offset 16 lines).
4 out of 46 hunks FAILED -- saving rejects to file simwerkz.cc.rej
patching file simwerkz.h
Hunk #9 succeeded at 223 with fuzz 2 (offset 11 lines).
Hunk #10 succeeded at 282 (offset 11 lines).
Hunk #11 succeeded at 300 (offset 11 lines).
Hunk #12 succeeded at 316 (offset 11 lines).
Hunk #13 succeeded at 341 (offset 11 lines).
Hunk #14 succeeded at 385 (offset 11 lines).
Hunk #15 succeeded at 454 (offset 11 lines).
Hunk #16 succeeded at 582 (offset 11 lines).
Hunk #17 succeeded at 631 (offset 11 lines).
Hunk #18 succeeded at 689 (offset 11 lines).
Hunk #19 succeeded at 853 (offset 11 lines).
Hunk #20 succeeded at 864 (offset 11 lines).
Hunk #21 succeeded at 875 (offset 11 lines).
Hunk #22 succeeded at 886 (offset 11 lines).
Hunk #23 FAILED at 913.
1 out of 23 hunks FAILED -- saving rejects to file simwerkz.h.rej
patching file simmenu.h
Reversed (or previously applied) patch detected!  Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file simmenu.h.rej
patching file Makefile
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file Makefile.rej
patching file vehicle/simpeople.cc
patching file vehicle/simverkehr.cc
patching file vehicle/simvehikel.cc
patching file gui/colors.cc
patching file gui/components/gui_world_view_t.cc
patching file gui/colors.h
patching file gui/fahrplan_gui.cc
patching file simworld.cc
patching file boden/wege/weg.cc
patching file boden/brueckenboden.cc
patching file boden/tunnelboden.cc
Hunk #1 FAILED at 31.
1 out of 1 hunk FAILED -- saving rejects to file boden/tunnelboden.cc.rej
patching file boden/tunnelboden.h
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file boden/tunnelboden.h.rej
patching file boden/grund.cc
patching file boden/grund.h
Hunk #3 FAILED at 207.
1 out of 6 hunks FAILED -- saving rejects to file boden/grund.h.rej
patching file boden/fundament.cc
patching file boden/boden.cc
patching file boden/monorailboden.cc
patching file simplan.cc
Reversed (or previously applied) patch detected!  Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file simplan.cc.rej
patching file bauer/wegbauer.cc
Reversed (or previously applied) patch detected!  Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file bauer/wegbauer.cc.rej
patching file bauer/tunnelbauer.cc
Reversed (or previously applied) patch detected!  Skipping patch.
9 out of 9 hunks ignored -- saving rejects to file bauer/tunnelbauer.cc.rej
patching file bauer/tunnelbauer.h
Reversed (or previously applied) patch detected!  Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file bauer/tunnelbauer.h.rej
patching file simmenu.cc
Reversed (or previously applied) patch detected!  Skipping patch.
5 out of 5 hunks ignored -- saving rejects to file simmenu.cc.rej
patching file simview.cc
I hope you understand my English


Re: A dream becomes true: Slopes in tunnels!

Reply #8
Mirage or miracle? ;) At last we will get a "full version" of underground mode!

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

Re: A dream becomes true: Slopes in tunnels!

Reply #9
Yesterday, I had not much time, so it was a post with nearly zero information ;) Yes, the first patch-file is only my patch (against 2295) and the second is my patch + dwachs' patch (against 2295), but tunnel_ceiling.* is missing (**** svn add ... happens as often as forgetting mail attachment). I appended a new file.

@ijs: It should also work with many slopes. Even underwater tunnels are possible...

@Igor: Of course, we can rename it.

Re: A dream becomes true: Slopes in tunnels!

Reply #10
simply...

Re: A dream becomes true: Slopes in tunnels!

Reply #11
This looks quite cool. :-)


Re: A dream becomes true: Slopes in tunnels!

Reply #13
So at the moment, I only need the last patch for the compiling?
I hope you understand my English

Re: A dream becomes true: Slopes in tunnels!

Reply #14
Wow.  First rivers and now slopes in tunnels.  In less than 2 weeks!  I will have to start dreaming up more dreams to have included in simutrans soon!

Re: Slopes in tunnels

Reply #15
So at the moment, I only need the last patch for the compiling?
Yes. Just get a clean r2295 and then apply underground-2295_slopes.patch.

Edit:
With r2300 you will get
Code: [Select]
2 out of 46 hunks FAILED -- saving rejects to file simwerkz.cc.rej
but it doesn't matter, since these two hunks was included in r2298. So you can just compile it with r2300 and ignore the failed hunks.

Re: Slopes in tunnels

Reply #16
Some problems.
- Ways under sea level can't slope up or slope down anymore.
- With under ground patch, two orange zeigers shows on slope, and one of them never disappear.

Re: Slopes in tunnels

Reply #17
I compiled it, see http://patches.simutrans-germany.com/

The Name is 2295, but the Simutranscode Revision is 2300

And it is only the Programm, no dll (see nightly-page) or Translation/PAK ...
I hope you understand my English

Re: Slopes in tunnels

Reply #18
- Ways under sea level can't slope up or slope down anymore.
This is because the build_tunnel_slope only works with real 3d coordinates, but you can't select tiles underwater. I think, this is changeable with the new undergroundview.

Quote
- With under ground patch, two orange zeigers shows on slope, and one of them never disappear.
I can't reproduce this. Can you describe, what you have done? Edit: Now I've got it. I will have a look for it, when the underground view is included in trunk.

@wernieman: Thank you!

Re: Slopes in tunnels

Reply #19
I am very impressed - this is an extremely useful feature!
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Re: Slopes in tunnels

Reply #20
I'm really looking forward to this, too. Erotunnel in 1830, mwahahahaha! Napoleon will steamroll (on a steam train, after all ;) ) all the way to Edinburgh.

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

Re: Slopes in tunnels

Reply #21
Excellent work!

Hope this will make into the trunk among the new underground view soon.
  
***** PAK128 Dev Team - semi-retired*****

Re: Slopes in tunnels

Reply #22
Another problem.
I can make a slope down on the tile which have stop.
And stop name changed "undef".
( I didn't test this stop is valid or not.)

It need to check stop, depot, etc, and forbid it.

Re: Slopes in tunnels

Reply #23
@gerw: I wasn't reporting a bug with that "one slope" statement, just saying that I got it to build and work nevertheless, I didn't try more than a slope at that time, thus "one slope"...

...But here's a real issue, one can go into Simu-trans-dimensional with a simple enough trick :-D


Re: Slopes in tunnels

Reply #25
gauthier, you need the special .exe file and you need to add the two lines to your simuconf.tab (which will not work with a normal simutrans nightly! prepare to remove them again).
  
***** PAK128 Dev Team - semi-retired*****



Re: Slopes in tunnels

Reply #28
It need to check stop, depot, etc, and forbid it.
Ok. I will do this :)

...But here's a real issue, one can go into Simu-trans-dimensional with a simple enough trick :-D
Ups. Lost in space :) Edit: Since something similar is already possible, I will only prevent this, if simutrans is compiled with the 'ONLY_TUNNELS_BELOW_GROUND' setting in simconst.he


Re: Slopes in tunnels

Reply #30
The 2 lines shoud be added to the menuconf.tab, section: specialtools. The 3. colum may be modified to work.

The "up" slope works fine, but the "down" slope shows a marker on the surface


Re: Slopes in tunnels

Reply #32
Using the underground slope gives extra money, exact +42947272,96 cr  :D

Re: Slopes in tunnels

Reply #33
this is awesome! congrats!