Binding Keys / Problem

TugBoatTugBoat Join Date: 2004-04-22 Member: 28077Members
<div class="IPBDescription">Why does this happen.</div> Hi,

Just curiouse as I have learnt a little on scripting, binding keys to say certain things, but for some strange reason, when I put them in the config.cfg file, save them, load ns, they run fine.

Heres the bit I cant understand, when I exit ns, load NS again, the keys are still bound, but doesnt say the text I bound them to, then I look in the config.cfg file, and the Alias I put for the text to be spammed isnt there, it like deletes it or something....

Now I was reading somewhere about userconfig.cfg, I dont have one of those in my ns file, am I to put the alias stuff in that? over my head. I get sick of copy and paste just to bind some keys ta spam a message.

Please hepl thanks.

Also, sometimes ive found that when I go in NS, happened 2 times now, I had no crosshair, no key actions, everything was like gone... , I was told I had ta reinstall NS, as its some bug or sumething.

Comments

  • SariselSarisel .::&#39; ( O ) &#39;;:-. .-.:;&#39; ( O ) &#39;::. Join Date: 2003-07-30 Member: 18557Members, Constellation
    Sometimes, HL decides to throw out certain lines out of your config.cfg file - specifically aliases. There are two ways to get around this.

    The first is to go to the file's properties and set it to be read-only. That way HL won't be able to touch it - however, you won't be able to save any changes that you make from inside of the game. Everything you do will have to be manual - editing the file from notepad or what not. Actually, if you want total control of your game, then read-only is a very good thing.

    The less extreme thing to do is to create a file in your nsp folder called <span style='color:blue'>autoexec.cfg</span>. The game doesn't touch this file, and it is executed as it is each time the game starts.

    You can either put all your scripts (and certain settings) in there, or you could create more .cfg files and then execute them through autoexec.cfg using "exec *insertconfigfilenamehere*.cfg" lines.

    For reference, <a href='http://www.ticclan.com/tutorials/meangoofs-script-lessons/lesson1.html#files-used-in-scripts' target='_blank'>read up on this.</a> I'm glad to see that you're taking time to get to know the game a little bit better.
  • TugBoatTugBoat Join Date: 2004-04-22 Member: 28077Members
    Thanks a bunch, that has solved me many copy and pastes <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo-->, and some nice info as well <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo-->
Sign In or Register to comment.