Tremulous Forum

General => General Discussion => Topic started by: TonkaTruck on November 22, 2006, 07:37:57 pm

Title: Question on binds
Post by: TonkaTruck 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.
Title: Question on binds
Post by: bidubida 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++

(http://img165.imageshack.us/img165/2952/bindsje3.jpg)
(texts are in french i can't do better :/)
Title: Question on binds
Post by: TonkaTruck 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.
Title: Question on binds
Post by: bidubida on November 22, 2006, 10:14:39 pm
Well, i copied, pasted and encoded.
http://files.filefront.com/autoexeccfg/;6229589;;/fileinfo.html
Title: Question on binds
Post by: Caveman 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
Title: Question on binds
Post by: PIE 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.
Title: Question on binds
Post by: Undeference on November 23, 2006, 12:13:41 am
I think the answer had more to do with 'exec' than text encoding...
Title: Question on binds
Post by: kevlarman 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!!!!
Title: Question on binds
Post by: David on November 23, 2006, 08:16:01 am
Emacs??
VI!
Title: Question on binds
Post by: WolfWings ShadowFlight on November 23, 2006, 02:12:16 pm
Quote from: "David"
Emacs??
VI!


Screw you both.

Nano -w.
Title: Question on binds
Post by: raf on November 23, 2006, 02:13:38 pm
Quote from: "WolfWings ShadowFlight"

Nano -w.

that's disgusting

(vim ! ) :-)
Title: Question on binds
Post by: vcxzet on November 23, 2006, 03:51:39 pm
maybe you dont know but the best editor for XP is scite
notepad2 is (http://www.flos-freeware.ch/notepad2.html) also not bad[/url]
Title: Question on binds
Post by: David 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 (http://www.flos-freeware.ch/notepad2.html) also not bad[/url]


SciTE is the best editor ever.

it and VI are all I use.