Whats Up With This Script?
absent
Join Date: 2002-11-13 Member: 8378Members
in Tech Support
<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->
alias bas "hotkey86"
alias adv "hotkey87"
alias equ "hotkey88"
alias dev1 "developer 1"
alias dev0 "developer 2"
// -- build / movement commands --
bind "uparrow" "+scrollup"
bind "downarrow" "+scrolldown"
bind "leftarrow" "+scrollleft"
bind "rightarrow" "+scrollright"
bind "kp_ins" "hotkey59; dev1; echo health; dev0"
bind "kp_del" "hotkey60; dev1; echo ammo; dev0"
bind "kp_end" "hotkey61; dev1; echo mines; dev0"
bind "kp_downarrow" "hotkey64; dev1; echo shotgun; dev0"
bind "kp_pgdn" "hotkey39; dev1; echo jetpack; dev0"
bind "kp_leftarrow" "hotkey65; dev1; echo hvymg; dev0"
bind "kp_5" "hotkey66; dev1; echo grenlc; dev0"
bind "kp_rightarrow" "hotkey38; dev1; echo hvy armor; dev0"
bind "kp_home" "hotkey43; dev1; echo turret factory; dev0"
bind "kp_uparrow" "hotkey56; dev1; echo turret; dev0"
bind "kp_pgup" "hotkey62; dev1; echo welder; dev0"
bind "kp_plus" "hotkey53; dev1; echo scanner sweep; dev0"
<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
Now, when I press a key like the downarrow on keypad, the game crashes. Why? I had the correct alias in front of each "hotkey", but it didnt work so I removed them (bas; hotkey65; dev1; echo hvymg; dev0)
Whats up with it?
alias bas "hotkey86"
alias adv "hotkey87"
alias equ "hotkey88"
alias dev1 "developer 1"
alias dev0 "developer 2"
// -- build / movement commands --
bind "uparrow" "+scrollup"
bind "downarrow" "+scrolldown"
bind "leftarrow" "+scrollleft"
bind "rightarrow" "+scrollright"
bind "kp_ins" "hotkey59; dev1; echo health; dev0"
bind "kp_del" "hotkey60; dev1; echo ammo; dev0"
bind "kp_end" "hotkey61; dev1; echo mines; dev0"
bind "kp_downarrow" "hotkey64; dev1; echo shotgun; dev0"
bind "kp_pgdn" "hotkey39; dev1; echo jetpack; dev0"
bind "kp_leftarrow" "hotkey65; dev1; echo hvymg; dev0"
bind "kp_5" "hotkey66; dev1; echo grenlc; dev0"
bind "kp_rightarrow" "hotkey38; dev1; echo hvy armor; dev0"
bind "kp_home" "hotkey43; dev1; echo turret factory; dev0"
bind "kp_uparrow" "hotkey56; dev1; echo turret; dev0"
bind "kp_pgup" "hotkey62; dev1; echo welder; dev0"
bind "kp_plus" "hotkey53; dev1; echo scanner sweep; dev0"
<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
Now, when I press a key like the downarrow on keypad, the game crashes. Why? I had the correct alias in front of each "hotkey", but it didnt work so I removed them (bas; hotkey65; dev1; echo hvymg; dev0)
Whats up with it?
Comments
So it looks to me as if you can't bind anything before or after the hotkeyxx. So you can only have bind "key" "hotkeyxx".
For the crashing when pressing a key, don't know why he does that. Sorry
Also when I crashed, it messed up my gamma...
-Slappy
Yes, thats what I do too. I just wanted it to be even easier, with a keybind that opens the appropiate menu and selects the item. All I would need to do is press my mouse button. But I guess the dev team needs to fix this.
Have you looked at the binds that are already there for the commander? Try copying one of those.
-Slappy
this should be alias dev0 "developer 0"
developer 0 turns off developer mode. I have no idea what developer 2 does, but that's probably what is crashing it.
typing errors suck
This is exactly what has been disabled intentionally.
reboot