No more user-chosen keyboard shortcuts? August 27, 2008, 12:05:04 pm In earlier versions of simutrans (pre 100.0; I think the last one I used was about 99.16 or 99.18 or some such) one could use Ctrl+F2 --- Ctrl+F12 to give a specific tool a shortcut (the Fx keys). I fail to do this in the 100.0, and wonder if there are another way of doing the same thing here? (that is, I get the keyboard help screen if I try, and this no longer mention this former ability)And if it's completely gone - well, that'd be a pity... I did look at menuconf.tab but realized at once that I don't understand anything there... (If I missed some discussion about this, I'm sorry, but I couldn't find any) Quote Selected
Re: No more user-chosen keyboard shortcuts? Reply #1 – August 27, 2008, 12:25:49 pm You can ****ign a keyboard shortcut for each menu element, if you edit the menuconf.tab. But I think there is no formal documentation regarding how to edit the menuconf.tab, apart from some explanation in the menuconf.tab file itself. Yes, it's complicated... Quote Selected
Re: No more user-chosen keyboard shortcuts? Reply #2 – August 27, 2008, 12:27:27 pm (I move this to bug reports, because I also liked that feature.)@NiWe: I ****ume you refer to ST version 100.0 - but which Pak (may have an impact)? Quote Selected
Re: No more user-chosen keyboard shortcuts? Reply #3 – August 27, 2008, 03:00:20 pm Quote from: NiWe – on August 27, 2008, 12:05:04 pmone could use Ctrl+F2 --- Ctrl+F12 to give a specific tool a shortcut (the Fx keys). It's completely gone from source code.But as yoshi said, you can define keyboard shortcut for your favorite tool.For example:Quote# F2... way.gavel_road, F3...bridge.Cl****icRoad, ctrl+s...BusStoptoolbar[5][11]=general_tool[14],,F2,gavel_roadtoolbar[5][12]=general_tool[15],,F3,Cl****icRoadtoolbar[5][13]=general_tool[19],,^s,BusStop Quote Selected
Re: No more user-chosen keyboard shortcuts? Reply #4 – August 27, 2008, 06:38:57 pm @whoami: pak64 (vanilla).@yoshi and z9999: That's cool, I'll try to edit that according to the examples. May I guess that the options such as "gavel_road" or "Cl****icRoad" are names of individual .pak files? (i.e. that "Cl****icRoad" refers to the file "bridge.Cl****icRoad.pak"?) Quote Selected
Re: No more user-chosen keyboard shortcuts? Reply #5 – August 27, 2008, 07:01:37 pm I think it's not the pak file, but the object name (which is often - but not always - identical). Quote Selected
Re: No more user-chosen keyboard shortcuts? Reply #6 – August 27, 2008, 07:10:41 pm The old system with CNTRL + Function was aparently not working on all backend and almost never somebody used it. At least no question, no thanks no praises. Restoring this function is possible though. Quote Selected
Re: No more user-chosen keyboard shortcuts? Reply #7 – August 28, 2008, 10:15:57 pm Quote from: prissi – on August 27, 2008, 07:10:41 pmalmost never somebody used it.How do you know that? Does the program report statistics back to you? <just kidding>The feature may not have been well-known, but it is very useful for things that need to be built very often, but don't have a pre-defined key, like bus stations, post boxes, signals, simple platforms etc..QuoteAt least no question, no thanks no praises.On the previous forum: http://archive.forum.simutrans.com/topic/06065.0/index.html, http://archive.forum.simutrans.com/topic/01742.0/index.html.QuoteRestoring this function is possible though.Menuconf.tab is helpful also for this, esp. because those settings are persistent, but it is less easy to configure, and cannot be changed in the game itself. Also: is it possible to use a separate file (instead of menuconf.tab) for user-specified settings, so they do not interfere with program updates (which can change the menue)? Quote Selected
Re: No more user-chosen keyboard shortcuts? Reply #8 – August 29, 2008, 07:44:38 am The problem is: The function keys are now freely ****ignable. Thus I removed it, becuase the same can be done (persistent too!) with editing menuconf.tab. Quote Selected
Re: No more user-chosen keyboard shortcuts? Reply #9 – September 27, 2008, 04:46:40 pm i don't know whether tis is intended, but in 100.0 the default shortcuts for tracks (t) and roads (s) don't use the last used type anymore, but only the default one... Quote Selected
Re: No more user-chosen keyboard shortcuts? Reply #10 – September 27, 2008, 05:24:01 pm That behaviour can be defined in menuconf.tab - you can link a specific set of, let's say tracks, to the "t" key or it can also be set to recall the last type used (at least with the nightlies). Quote Selected
Re: No more user-chosen keyboard shortcuts? Reply #11 – September 27, 2008, 07:22:19 pm This was an error and is gone in the nightlies. Quote Selected
Re: No more user-chosen keyboard shortcuts? Reply #12 – June 02, 2009, 12:25:24 am *shrugs*Ok, I haven't really had much time to play for quite a while, but found this bookmark I did look at menuconf.tab, but I still am at a loss how to find those object names. I tried to add my three favourite shortcuts, namely to Bus stops, postboxes and freight yards. As z9999 indicated above, the name for the bus stops is "BusStop" (also the name of the pak), and also the name of the post box seems to be a pak name ("PostStop"). But I can't find any pak with a name resembling "freight yard", and I don't know where else to find even suggestions for object names. Could anyone please point me to where I should look? Quote Selected
Re: No more user-chosen keyboard shortcuts? Reply #13 – June 02, 2009, 11:58:13 am Quote from: NiWe – on June 02, 2009, 12:25:24 amBut I can't find any pak with a name resembling "freight yard", and I don't know where else to find even suggestions for object names. Could anyone please point me to where I should look? I ****ume that'd be CarStop - i got this from the pak64 source files, which you can find in the SVN on Sourceforge. Other than the pak sources I wouldn't know how to get good clues. Quote Selected
Re: No more user-chosen keyboard shortcuts? Reply #14 – June 02, 2009, 02:54:32 pm Ah, that worked. Thanks! Quote Selected
Re: No more user-chosen keyboard shortcuts? Reply #15 – June 02, 2009, 03:21:43 pm You're welcome Although it's not 100% correct, I think you can just look for symbol.* files in your pak folder. (Those are the cursor objects or menu icons of the tools - I have forgotten the exact details). The part between the "symbol." and the ".pak" should be what you need to name the tools. Quote Selected
Re: No more user-chosen keyboard shortcuts? Reply #16 – June 02, 2009, 03:50:37 pm Not quite, I'm afraid. Even thought it does work with BusStop and CarStop, the pak file which I presume deal with the post stop isn't called "symbol.PostStop.pak" but merely "symbol.Post.pak". At least I guess that's the one as there is no file named symbol.PostStop.pak. BTW, I got that name from the pak file "building.PostStop.pak". Quote Selected
Re: No more user-chosen keyboard shortcuts? Reply #17 – June 02, 2009, 04:00:56 pm I'm aware it's not 100% correct. But browsing the pak sources from the SVN is quite hard for the less computer literates, and I was looking for an easier method that still gives some help. If it doesn't, then only the source is the source. Pun intended Quote Selected
Re: No more user-chosen keyboard shortcuts? Reply #18 – June 02, 2009, 04:16:22 pm Ah, it's ok, I just intended to say that one may have to look at more pak files than the symbol.*.pak (SVN I know absolutely nothing about myself, so I never even attempted that route. Well, as of yet ) Quote Selected
Re: No more user-chosen keyboard shortcuts? Reply #19 – June 03, 2009, 02:54:45 am http://en.wiki.simutrans.com/index.php/Translation shows how to get the internal texts of any kind: by creating an empty language. Note that names of vehicles and stops won't be replaced by switching the language, and that the exact spelling may not be apparent from the in-game view (but it gives at least a clue which pak file to look at). Another way is to look into the simutranslator application.Changing menuconf.tab isn't trivial, and I ****ume that there is not method to keep user-specified keyboard shortcuts in another file (under personal data, so it always stays). I would like such a method.I also think that some more shortcuts should be pre-defined for the most popular objects and actions, especially placement of standard signals, simple station platforms, bus stops and post boxes (these are often time-line dependent). The pak-set maintainers can add them, of course, but we should keep a common set of keys for all the pak-sets, in order to make transition easier, and to avoid help requests in this regard.(edit: added signals to the list of items that are used often) Quote Selected Last Edit: June 04, 2009, 12:50:57 am by whoami