Author Topic: "main menu" wtf is this?  (Read 1747 times)

S8NSSON

  • Autococker
  • Posts: 709
"main menu" wtf is this?
« on: November 30, 2005, 02:22:47 PM »
Ok here's what i got...
I have LOC's set for a few maps.
My binds are as follows:
bind 0 "INC $LOC_HERE"
bind 9 "RETREATING $LOC_HERE"
bind 8 "FLAG $LOC_HERE"
bind 7 "CAMPING $LOC_HERE"

Now...what happens is this (and i will have to further test to see exactly when where this happens)

I press, say 7, with my current LOC being "RED water" i get this:
S8N: CAMPING RED water main menu

I can go into my config.cfg and my bind will be changed to:
bind 7 "CAMPING $LOC_HERE main menu"
So every time I press 7 "main menu" is appended onto all my LOCs for that key.

wth?

Most of my binds are set in an autoexec.cfg

jitspoe

  • Administrator
  • Autococker
  • Posts: 18801
Re: "main menu" wtf is this?
« Reply #1 on: November 30, 2005, 04:29:20 PM »
Weird.  I'll look into it and see what I can find.  I may need you to send me your config file.

Eiii

  • Autococker
  • Posts: 4595
Re: "main menu" wtf is this?
« Reply #2 on: November 30, 2005, 05:02:25 PM »
You should use the 'say' command. Like, say CAMPING $LOC_HERE. Also, use lowercase.

S8NSSON

  • Autococker
  • Posts: 709
Re: "main menu" wtf is this?
« Reply #3 on: November 30, 2005, 09:10:21 PM »
duh...i do...say_team just forgot to put it down

jitspoe

  • Administrator
  • Autococker
  • Posts: 18801
Re: "main menu" wtf is this?
« Reply #4 on: December 01, 2005, 01:30:54 AM »
The phrase "main menu" is nowhere in the code.  Are you sure that's exactly what it says?

I'm guessing it says "menu main", which is the command that gets executed when you go into the main menu.  My guess is that upon initialization, the buffers in the autoexec got executed, then the menu command got sent, but got tagged onto the last line of the autoexec.cfg.  If you put a newline at the end of the last line in your config, it should fix the problem.  I'll add something in the code that inserts an extra newline after executing a config file as well.