Board index DeFRaG How to DeFRaG

Can't get savepos to work.

Users helping users.

Can't get savepos to work.

Postby c9.diz » Jul 11th, '11, 7:35 pm

Hey there, I wanted to make a script to cycle between "normal" hotkeys and hotkeys for freestyle (which include savepos and another button for kill command). I'm using the following:
Code: Select all
//freestyle / normal mode swap
unbind h
unbind z
bind menu "vstr freestyle"
set possave "set saveposname pos1; savepos 0"
set normal "bind g kill; unbind h; unbind z; bind menu vstr freestyle; echo ^1normal binds loaded"
set freestyle "bind h kill; bind z vstr possave; bind g vstr pos1; bind menu vstr normal; echo ^1freestyle binds loaded"


However, pressing z doesn't save the position... I have tried various things and have read the .doc file on this topic but I could not get it to work even though it should... Any suggestions / ideas on how to get savepos working? Thx
c9.diz
 
Posts: 18
Joined: Jan 18th, '10, 8:45 pm

Re: Can't get savepos to work.

Postby <hk> » Jul 11th, '11, 10:06 pm

That's a rather complicated way to savepos.
I just tested your config to be sure. It works.

You may have forgotten to execute the freestyle script.
Code: Select all
/vstr freestyle
User avatar
<hk>
Menstruating 24/7
 
Posts: 1040
Joined: May 2nd, '09, 12:06 am
Location: Ingolstadt Germany

Re: Can't get savepos to work.

Postby c9.diz » Jul 12th, '11, 12:09 am

Nah I have a bind to execute freestyle (bound to menu) but I know it should work but it didn't... earlier it used to work in this way so I guess something's bugged out in my engine then... Thx for the reply anyway :)
c9.diz
 
Posts: 18
Joined: Jan 18th, '10, 8:45 pm


cron