setting markers

setting markers

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
User avatar
ikaros
Posts: 13
Joined: 09 Nov 2007, 08:47

setting markers

Post 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?
tombom
Posts: 1933
Joined: 18 Dec 2005, 20:21

Post by tombom »

Try \. \+double click makes a text mark.

Yeah, foreign keyboards don't really work too great for some reason.
User avatar
ikaros
Posts: 13
Joined: 09 Nov 2007, 08:47

Post 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.
BaNa
Posts: 1562
Joined: 09 Sep 2007, 21:05

Post 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.
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post 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.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Post 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 "<".
User avatar
ikaros
Posts: 13
Joined: 09 Nov 2007, 08:47

Post 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.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Post 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.
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

uikeys.txt only gets loaded once during initialization, that would not be a bug.
User avatar
ikaros
Posts: 13
Joined: 09 Nov 2007, 08:47

Post 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.
User avatar
ikaros
Posts: 13
Joined: 09 Nov 2007, 08:47

Post 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.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

The button left to the 1 works for me even with the German layout.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post 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.
Post Reply

Return to “Help & Bugs”