Page 1 of 1

setting markers

Posted: 12 Nov 2007, 15:38
by ikaros
this is not a bug.

i just can figure out how to set markers in game and draw things on map.

i found this paper: https://spring.clan-sy.com/svn/spring/trunk/README.html (sorry im not allowed to post hyperlinks as a new user here :) )

and it says:
§/`
Draw stuff in map that you and allies can see (mouse1=lines, mouse2=erase, mouse3=marker,doubleclick=named marker)

this just doesnt work for me.. is this a problem with the german keyboard layout i use?

Posted: 12 Nov 2007, 15:47
by tombom
Try \. \+double click makes a text mark.

Yeah, foreign keyboards don't really work too great for some reason.

Posted: 12 Nov 2007, 16:55
by ikaros
this doesnt work for me too.

i tried switching the keyboard layout to us american and i could is the key left to 1 to set markes propperly.. i wonder if any german could post how he is setting markes in game please.

Posted: 12 Nov 2007, 16:56
by BaNa
ikaros wrote:this doesnt work for me too.

i tried switching the keyboard layout to us american and i could is the key left to 1 to set markes propperly.. i wonder if any german could post how he is setting markes in game please.
is what i do too. set the keyboard to US ingame.

Posted: 12 Nov 2007, 17:08
by trepan
Read through the default uikeys.txt file, it should have enough information
to tell you how to setup your own keybinding. A handy in-game feature is
the /keydebug command, it will display keycodes / symbols / bindings for
keys that you press / release.

Posted: 12 Nov 2007, 17:08
by Auswaschbar
I did the following:
Edit file uikeys.txt (its in ~/.spring) and add the line:

Code: Select all

bind              Any+<  drawinmap
Then you can set markers while holding the "<" button and clicking somewhere. Of course you don't have to use "<".

Posted: 12 Nov 2007, 18:08
by ikaros
thx for the hints guys.

i've already had a look at the uikeys.txt.. i even tried to configure it the proper way.

it didnt do anything.

so now i tried ingame:
bind Any+< drawinmap
and this worked.

now my last question is why doesnt spring autoload the uikeys.txt?

i didnt find any doc on this.

i even have the file in ~/.spring/ and /usr/share/spring/ too.

Posted: 12 Nov 2007, 18:24
by Auswaschbar
Did you tried the entry in both files? If it works only in one file and the other one is ignored by the engine, then please fill a bugreport.

Posted: 12 Nov 2007, 18:30
by trepan
uikeys.txt only gets loaded once during initialization, that would not be a bug.

Posted: 12 Nov 2007, 18:48
by ikaros
ok this is really strange..

i have exactly this command in BOTH uikeys.txt files:
bind Any+< drawinmap

i first thought spring didnt load any of those files.
but i just used /keydebug and pressed <,
spring tells me something like
drawinmapp "drawinmapp"

the strange thing is the double p at the end. i checked uikeys.txt again but its correct there.

Posted: 12 Nov 2007, 18:54
by ikaros
ok.. got it fixed.

all i did was moving the command from the end of file to another line. now it works.. seems spring concats some kind of end of file codes to the command lol.

Posted: 12 Nov 2007, 19:34
by KDR_11k
The button left to the 1 works for me even with the German layout.

Posted: 12 Nov 2007, 19:38
by AF
It varies from machine to machine.

For example the |\ key next to the z and the elft shift key works on UK keyboard, but some configurations they dont, when i ran ubuntu I had to use the ~# key next to my return key.