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
toolbar[8][15]=general_tool[33],7
toolbar[8][16]=general_tool[34],7
to your menuconf.tab ]
I... I can't believe my eyes! Is it true? Or am I dreaming?
I work on it ....
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. ;)
*facepalm*You are not. ;D
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 :-)).
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 ;)
Shid .. I don't get it to work!
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 can't believe it either. It's a mirage for sure... ;)
Mirage or miracle? ;) At last we will get a "full version" of underground mode!
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.
simply...(http://www.greensmilies.com/smile/smiley_emoticons_hurra2.gif)
This looks quite cool. :-)
I intended mirage, but accept miracle as well. :)
So at the moment, I only need the last patch for the compiling?
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!
Yes. Just get a clean r2295 and then apply underground-2295_slopes.patch.
Edit:With r2300 you will get
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.
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.
I compiled it, see http://patches.simutrans-germany.com/ (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 ...
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.
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!
I am very impressed - this is an extremely useful feature!
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.
Excellent work!
Hope this will make into the trunk among the new underground view soon.
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.
@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
simply ... MAGNIFICAL ! Surely one of the better progress with rivers !
EDIT : just one thing ... How I must make these slopes ???
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).
I have downloaded the special exe (which has just crashed after creation of four cities connected by a High speed line which has bothered me to connect the central city's station ...)
but what are the lines to add to simuconf ?
In the very first post in this thread it says: ;)
Ok. I will do this :)
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
I added the two lines (not easy because of the horizontal presentation of the text ... I don't know why simuconf and menuconf are presented horizontally but in French I say : "c'est chiant !"). But no new toolbar, I looked at every toolbar but nothing new :( >:(
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
this is different for paksets
Using the underground slope gives extra money, exact +42947272,96 cr :D
this is awesome! congrats!
Can someone playing with pak128 send me his menuconf.tab ? It's driving me crazy !
Here.
Tools are at the end of the Special Tools menu (2x crane icon).
Remember: regular nightlies without this patch will not run with these entries in menuconf.tab !
ok ;) thanks a lot.
Yeah it works !
Most impressive!
My guess: you are using windows' notepad? Try wordpad instead.
I already saw a menuconf.tab verticaly presented in notepad :/
This is caused by the fact that line breaks are handled differently on different systems (http://en.wikipedia.org/wiki/Newline#Representations).
If in Windows, use WordPad rather than Notepad, which handles line breaks much better.
New Version is out ;D
I think the new version is about the "new underground view" patch, not this one here about UG slopes...
I make a new one if somebody make a new sloop.patch ... 8)
I think I will make post a new version of my patch this evening. I will also append a patch which includes the underground view.
just :
Thanks, with the opening of the 3rd dimension underground, I will transform this poor ground into ... a big piece of gruyere ! just like Pari with the METRO :P ;D ;)
(http://www.fidunion.com/images/metro_sm.gif)
(http://sfjacques1966.free.fr/pub/070628_ratp_metro_texte.jpg)
(http://www.plan-de-metro.fr/img/metro.jpg)
An comprehensive test :) Nice screenshot!
Now you can build crazy junctions in underground. OTTD junction: http://wiki.openttd.org/wiki/index.php/Image:NewQBMJ.png (http://wiki.openttd.org/wiki/index.php/Image:NewQBMJ.png) Who is first?
I feel really stupid now, but HOW THE HELL DO YOU GET THE SLOPES!!?? lol, i just can't seem to find out :( ???
Seems like right now, you can't. The previous .exe is no longer available on http://patches.simutrans-germany.com/ but wernieman will surely put another version up there, when available.
Gerw, that is monstrous. I hope Simutrans can avoid explicit need for such structures in any situation... Oh, and I can already spot some design mistakes :P
@VS: you (already) spotted mistakes? :o
Wow! That thing is so huge and complex that I haven't even begun figuring it out. But luckily, on the other hand, I can hardly think of a network that really requires such a construction - or even anything close. Or am I missing anything there?
I did not look too closely, but it is obvious that going up from tunnel on a bridge to cross a track is not too clever ;) And no, there isn't another tunnel under that.
(Oh and because of the required symmetry if forms an almost-swastika.)
Hmm, if junctions like that are necessary, there's something horribly wrong in the balancing somewhere requiring far too high a capacity.
New patches are out! Now the bugs posted in this thread are fixed - except the 'under water bug'. But I think this one can solved by allow viewing under water (maybe 2 levels) and prohibit too low tunnels.
Additional thanks to dwachs, who figured out whats going on with this orange markers!
I must use both Patches?
Then I get a Problem ...
simutrans@birgit ~/comp2 $ cat nohup.out
patching file simwerkz.cc
patching file simwerkz.h
patching file simmenu.h
patching file Makefile
patching file simplan.cc
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 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 #21 succeeded at 1714 with fuzz 2 (offset 14 lines).
Hunk #22 succeeded at 1771 (offset 14 lines).
Hunk #23 succeeded at 1975 (offset 14 lines).
Hunk #24 succeeded at 2338 (offset 14 lines).
Hunk #25 succeeded at 2350 (offset 14 lines).
Hunk #26 succeeded at 2571 (offset 14 lines).
Hunk #27 succeeded at 2640 (offset 14 lines).
Hunk #28 succeeded at 2735 (offset 14 lines).
Hunk #29 succeeded at 2787 (offset 14 lines).
Hunk #30 succeeded at 2834 (offset 14 lines).
Hunk #31 succeeded at 2850 (offset 14 lines).
Hunk #32 succeeded at 2892 (offset 14 lines).
Hunk #33 succeeded at 2974 (offset 14 lines).
Hunk #34 succeeded at 3071 (offset 14 lines).
Hunk #35 succeeded at 3144 (offset 14 lines).
Hunk #36 succeeded at 3303 (offset 14 lines).
Hunk #37 succeeded at 3356 (offset 14 lines).
Hunk #38 succeeded at 3390 (offset 14 lines).
Hunk #39 succeeded at 3423 (offset 14 lines).
Hunk #40 succeeded at 3472 (offset 14 lines).
Hunk #41 succeeded at 3512 (offset 14 lines).
Hunk #42 succeeded at 3551 (offset 14 lines).
Hunk #43 succeeded at 3687 (offset 14 lines).
Hunk #44 succeeded at 3758 (offset 14 lines).
1 out of 44 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/colors.h
patching file gui/fahrplan_gui.cc
patching file simworld.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 boden/tunnel_ceiling.cc
patching file boden/tunnel_ceiling.h
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 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.
8 out of 8 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
No! the first file contains both patches (underground view + slopes), whereas the second one contains only the slope patch (I think). Both patch files are against a clean simutrans.
Klaro? :)
O.K. ....
My Script use for patching a realy clean simutrans ... every time ;o)
compile MS VC++ 2005 EE
r2310 + file underground_view_slopes-2310.patch
I think you have to add the file boden/tunnel-ceiling.cc manually to the visual studio project.
I thought, I forget 'svn add' again, but this time all files are included in the patch. And dwachs is right: the first file contains both patches and the second only the slope patch. Both against clear r2310.
thanks, Dwachs it work
this warning
.. has nothing to do with the patches here :)
I put new Versions in patches.simutrans-germany.com
Atention: I dont test them!!!
After a short Test: it works fine
can anyone post the tutorial of slope in tunnels?
SQ - it's an experimental feature as yet, so I don't think that a full tutorial is available. This thread might contain some information as to how to use them somewhere. Hopefully, if/when the feature is integrated into the main version, information will be added to the help files on how to use it.
Great Work,
No touble after a lot of Hours testing.
Could you please use "up" and "down" Arrows for changing the Underground view. It would be better than the "left" and "right" Arrows
You mean in the 'Display dialogue' ? I will look, how this could be done.
Will there be a new version?
Here are new versions against r2329. As usual, the first patch includes also Dwachs' underground view.
I try and try ... and get an compiler error:
===> CXX bauer/tunnelbauer.cc
In file included from simplan.h:12,
from simworld.h:30,
from simwerkz.h:13,
from bauer/tunnelbauer.h:16,
from bauer/tunnelbauer.cc:13:
boden/grund.h: In member function `sint8 grund_t::get_disp_slope() const':
boden/grund.h:407: Warnung: enumeral and non-enumeral type in conditional
expression
bauer/tunnelbauer.cc:29:37: ../boden/tunnel_ceiling.h: Datei oder Verzeichnis nicht gefunden
bauer/tunnelbauer.cc: In static member function `static const char*
tunnelbauer_t::build_slope(karte_t*, spieler_t*, koord3d, bool)':
bauer/tunnelbauer.cc:588: error: Syntaxfehler before `(' token
make: *** [bauer/tunnelbauer.o] Fehler 1
the files boden/ceiling.* are missing in the first patch file ::) maybe you can take them (and only them) from the second (smaller) patch file.
Mhhh ... I could, but at the Moment I am ill at home.. so I don't like to use my brain (sorry ....)
Now with tunnel_ceiling.
Please use r2329, otherwise there will be conflicts.
I have a Problem with the Server. When I solved them I compile your patch ...
Edit:
There will be a new Version on patches.simutrans-germany.com next week (I hope)
Sorry for the waiting, but there are personal reasons ...
So .. I have a new Server and I whant to test him .. with your Patch ....
(Sorry for the waiting)
could I use it with the newest Version ore need I the Version r2329?
Sorry, that I'm answering late, but I didn't have access to the internet last week.
Currently, this patch will cause conflicts with new versions. I think there will be a new version next week (Wednsday or Thursday).
Here is a new version (of both patches) against r2391.
New version with the newest version of the underground view by dwachs.
Will be a new version on simutrans-germany.com?
I downloaded the patch and the menuconf for 2391, where i can find the modified .exe?
So now I sove the problem with my nightly-simutrans. So, I could make a new compilat for this patch.
Should I try with 2391 or if there a new version in the next week?
If I have some time, I will post a new version this week.
sorry if this question has been answered before but i couldn't find it...
How can I get these patches work in Simutrans 102 (r2366)? Are these only .exe-files? ???
MoTw
a patch file is a simple code. So you get no exe or .... you must compile simutrans fith the simutramns-code + the patchfile.
Or you can wait that somebody compile it for you
could we probably make a pinned topic that explains what patch files are? this question is asked in virtually every topic relating to some patch....
There is already a sticky explaining patches here (http://forum.simutrans.com/index.php?topic=1349.0), although perhaps it should be in the main forum, rather than a subforum.
well, it doesn't explain how to "use" this patch files (namely compiling rather than trying to execute them...), which is asked virtually every time...
blitzmaster - write what you would like to see and I'll make sure it gets to the right place.
(this tangent solved)
Patch against 2411.
Edit: Unfortunately this patch contains only the underground view...
I make a Compiler-Run für Linux (gcc3/4) and Windows (SDL/GDI)
Edit:
A new Compilerrun, see gerw post ...
What is this patch for ?
The filename contains "slope", but patch doesn't seem to have underground slope tool.
How can I use both underground slope and underground view ?
There are many similar patches, they are difficult to understand for me.
It's my fault. Maybe I've done "svn diff" in the wrong directory? I will have a look for it.
Edit: Patch attached.
Thank you, it worked.
I could dig deeper with new climate tool (http://forum.simutrans.com/index.php?topic=1861.0). ;)
I use the Version 2412 with your patch .... I hope it is O.K.
Look at the patchserver for the programm http://patches.simutrans-germany.com/ (http://patches.simutrans-germany.com/)
Freeze with road removing tool.
Fix freeze.
New Version on the patches Server
http://patches.simutrans-germany.com/ (http://patches.simutrans-germany.com/)
And .. can you give me a "Patch-Version-Number"?
Without it is not easy to see,if there is a new Version ...
When I build a tunnel in underground mode, simutrans quit without any error dialog.
I had the same problem with the track-tunnel.
This is a simple (wrong) ****ertion.
Since the cursor, tool, and slice underground mode will be redesigned for better acessibility of different height levels, I think the slopes will be introduced as normal slopes without further additions.
Same with me here.
I ****ume, to build an underground track works as usual: Start with a Ctrl+Tunnel and continue to work on the tracks (since building a track in underground mode is not working).
This leads to a crash on desktop and I even didn't get a log file.
I patched the latest nightly...
Greetings, Oliver
There is a notorious bug in some patch files. Does it help, if you change the following ****ert(..) statement in bauer/tunnelbauer.cc ??
const char *tunnelbauer_t::baue( karte_t *welt, spieler_t *sp, koord pos, const tunnel_besch_t *besch )
{
****ert( besch ); // delete the reference to underground_mode here!
Somehow the directory, where I have applied both patches get messed up...