News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

Remove electrification from railtrack.

Started by Combuijs, October 22, 2009, 11:13:07 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Combuijs

After a question in the Dutch forum:

Does anyone an easy way to remove the electrification from railtrack? The only ways I could think of, is to delete it on every tile, or to remove the whole track en rebuild it. But I would not call that easy...
Bob Marley: No woman, no cry

Programmer: No user, no bugs



hvdkooij

The original post was mine so let me clarify this.

If I start the game I find it is cheaper to operate a tram between 2 cities but layout the track so I can upgrade to full train operations later.

But at after I switched from trams to trains I have no need for electrical vehicles on that line for quite a while. So I rather get rid of the extra overhead (costs). But it is a pain to do this on tracks of 30 or more tiles. An the occasonal powerline that may cross such a line will be cut as well this way.

So if there is an easier way for this I would love to hear about it.

Fabio

IIRC a way-objects (such as electrification) removal tool should be in TODO list.

DirrrtyDirk

Actually simutrans has this fuction already (it was added some weeks ago). It still needs to be added to the menus (via menuconf.tab) in the various paksets. So if anyone feels like drawing a nice icon for it, I could include it into pak128 at least...
  
***** PAK128 Dev Team - semi-retired*****

megasycophant

Hey, what's the status on this, and does it apply to trolleybus electrification as well? If it's already there, could someone let me know how to go about adding it to menuconf?

Caspercom

Tough that was a pretty massive bump, would not mind hearing about a feature like that as well.

60% of all people on forums have witty signatures. Copy this if you like cookies.

sdog

i've seen the tool in pak.german already.

ӔO

yes, it's in pak.german ex "remove wayobj waytype" tool that's in all the rail types, but not there for road. Presumably it's not there for road, because there are no trolleybuses and therefore no trolley electrification, but I would guess it's possible.

Is it not listed in the wiki?
My Sketchup open project sources
various projects rolled up: http://dl.dropbox.com/u/17111233/Roll_up.rar

Colour safe chart:

DirrrtyDirk

It is possible. All you need is an icon and an entry in menuconf.tab.

But since menuconf.tab is... let's say a little tricky, it's also tricky to explain.

You'd need a line in the road tools (waytype 1) section, something like this:

toolbar[x][y]=general_tool[33],z,,1

red numbers need to fit into your road tools section (if the last entry says e.g. [3][10] make yours [3][11] and put it beneath it - if you do this wrong, many things in menus may not work properly anymore until you fix the error, so I strongly advise working carefully here!), blue is the icon number (a separate file, with its name here, might also work - but I never tested that).

Again, for most inexperienced users, I would not recommend fiddling with menuconf.tab. If you insist on trying, please make a backup of the orginal file first.
  
***** PAK128 Dev Team - semi-retired*****

megasycophant

In my menuconf.tab for pak128, 33 is assigned to WKZ_REMOVE_WAYOBJ. Does anything else fall into the "way object" category other than electrification? (Other things the tool would delete as well?)

DirrrtyDirk

Well, one can define way-objects that do not electrify anything (and are thus used just for the looks) and those would be deleted by this tool as well, yes. But such objects are rare in Simutrans. I think the telegraph poles in pak.german may fall in this category (although I believe they are on waytype=track) or the extended runway lighting in pak128's airports. But since you can only build one set of way-objects on each waytype there will only be either electrification or eye candy - never both (on the same waytype and tile).
  
***** PAK128 Dev Team - semi-retired*****

megasycophant

Thanks much, Sir DirDir.

While you've lent me your ear, one more quick one -- how do I determine the icons in menu.GeneralTools.pak? Pak files can't be extracted (boggles my mind that paks aren't just standard archives) and I even pulled the source from SVN -- no button graphics.

Thanks again!


DirrrtyDirk

In pak64 sources, these are under other\wkz_icons.png and other\new_menus.dat

pak128 is not open souce yet and neither is pak.german...
  
***** PAK128 Dev Team - semi-retired*****