Author Topic: Question on binds  (Read 4310 times)

TonkaTruck

  • Posts: 17
  • Turrets: +0/-0
Question on binds
« on: November 22, 2006, 07:37:57 pm »
Alright, I am currently using Basilisco's bind .cfg file and I really want to change it to my uses and such.

I tried making my own .cfg file by typing in the filepaths and such in hopes of getting it right and copied this into it:

Quote
bind 1 "buy ammo"
bind 2 "sell weapons;buy chaingun; itemact chaingun;class level3"
bind 3 "sell larmour; sell helmet; sell battpack; sell jetpack; buy bsuit"


bind ALT "boost"
bind CTRL "+movedown"
bind j "itemtoggle jetpack"
bind g "itemact gren"

//Team messages
bind F3 "say_team ^3!!!^1GRENADE^3!!!"
bind F4 "say_team ^3!!!^1INCOMING^3!!!"
bind F5 "say_team ^3Defend Base!"
bind F6 "say_team ^3Attack NOW!!"
bind F7 "say_team ^3Get Ready to attack in 1 minute!"
bind F8 "say_team ^3REACTOR/OM DOWN!"

//Quick Join
bind F9 "team aliens"
bind F10 "team humans"

//Clear screenshot
bind F12 "cg_drawgun 0; cg_draw2d 0; wait 25; screenshotjpeg; cg_drawgun 1; cg_draw2d 1"

//Demo
bind DEL "set g_synchronousClients 1; record"
bind END "stoprecord; set g_synchronousClients 0"


Well, would this work?
Also, how do I turn the previous bind file off and turn this particular one on.

If you can, make this into a proper .cfg file for me when you can.

bidubida

  • Posts: 12
  • Turrets: +0/-0
Question on binds
« Reply #1 on: November 22, 2006, 09:01:25 pm »
1st, put the file in tremulous/base folder
2nd, name it "autoexec.cfg" to run it automatically when you run the game, otherwise, you will need to type a command like /name.cfg, i don't emember of this command :/
3rd, encode the file in 'UTF-8' with a software like notpad++


(texts are in french i can't do better :/)

TonkaTruck

  • Posts: 17
  • Turrets: +0/-0
Question on binds
« Reply #2 on: November 22, 2006, 09:37:42 pm »
Should I mention I run Win98, not XP or some new fangled system?
And last time I checked, You can't do any encoding with a .txt document.

bidubida

  • Posts: 12
  • Turrets: +0/-0
Question on binds
« Reply #3 on: November 22, 2006, 10:14:39 pm »

Caveman

  • Guest
Question on binds
« Reply #4 on: November 22, 2006, 10:43:06 pm »
Not here too :(
DON'T spread any myths about UTF-8

Using Notepad w/o UTF-8 is fully sufficient

PIE

  • Posts: 1471
  • Turrets: +96/-52
    • http://www.mercenariesguild.net
Question on binds
« Reply #5 on: November 22, 2006, 11:21:40 pm »
Quote from: "TonkaTruck"
Should I mention I run Win98, not XP or some new fangled system?
And last time I checked, You can't do any encoding with a .txt document.


I don't know.. but frankly NOTEPAD++ IS AWESOME YOU SHOULD HAVE IT ANYWAY! (notepad can encode on XP)

"Would this work" - Why don't you find out?
"How do I turn the previous off and this one on?" - Rename the old one to something like bak-autogen.cfg and name this one autogen.cfg ...


a cfg file is a text file.... a proper cfg file is a text file.... i'm not even sure the encoding really matters because i'm pretty sure i opened mine up and edited it with notepad and didn't bother to check the encoding and my binds work dandy.

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
Question on binds
« Reply #6 on: November 23, 2006, 12:13:41 am »
I think the answer had more to do with 'exec' than text encoding...
Need help? Ask intelligently. Please share solutions you find.

Thats what we need, helpful players, not more powerful admins.

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Question on binds
« Reply #7 on: November 23, 2006, 04:45:44 am »
Quote from: "PIE"
NOTEPAD++ IS AWESOME YOU SHOULD HAVE IT ANYWAY! (notepad can encode on XP)
EMACS!!!!
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Question on binds
« Reply #8 on: November 23, 2006, 08:16:01 am »
Emacs??
VI!
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

WolfWings ShadowFlight

  • Posts: 140
  • Turrets: +0/-0
Question on binds
« Reply #9 on: November 23, 2006, 02:12:16 pm »
Quote from: "David"
Emacs??
VI!


Screw you both.

Nano -w.
img]http://wolfwings.us/sigs/WolfWings.jpg[/img]

raf

  • Posts: 75
  • Turrets: +0/-0
Question on binds
« Reply #10 on: November 23, 2006, 02:13:38 pm »
Quote from: "WolfWings ShadowFlight"

Nano -w.

that's disgusting

(vim ! ) :-)

vcxzet

  • Guest
Question on binds
« Reply #11 on: November 23, 2006, 03:51:39 pm »
maybe you dont know but the best editor for XP is scite
notepad2 is also not bad[/url]

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Question on binds
« Reply #12 on: November 23, 2006, 04:34:08 pm »
Quote from: "vcxzet"
maybe you dont know but the best editor for XP is scite
notepad2 is also not bad[/url]


SciTE is the best editor ever.

it and VI are all I use.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.