Author Topic: Please help with .cfg files  (Read 15714 times)

l0ne

  • Posts: 31
  • Turrets: +0/-0
Please help with .cfg files
« on: April 30, 2015, 01:49:27 am »
I have tried to use .cfg commands with Tremulous 1.2 on Windows. Here's what I did:

     I created the files autogen.cfg, human.cfg, and alien.cfg

autogen.cfg
Code: [Select]
bind - "team humans; exec alien.cfg"
bind = "team aliens; exec human.cfg"

human.cfg
Code: [Select]
// Spawning
bind j "class rifle
bind k "class ackit; wait; class ckit"

// Weapons
bind 1 "sell all; buy rifle; buy helmet; buy larmor"
bind 2 "sell all; buy rifle; buy helmet; buy larmor; buy jetpack"
bind 3 "sell all; buy lcannon; buy helmet; buy larmor; buy battpack"
bind 4 "sell all; buy lcannon; buy helmet; buy larmor; buy jetpack"
bind 5 "sell all; buy lgun; buy helmet; buy larmor; buy battpack"
bind 6 "sell all; buy lgun; buy helmet; buy larmor; buy jetpack"
bind 9 "sell all; buy ackit; wait; buy ckit"
bind 0 "sell all; buy rifle"

// Teams
bind - "exec alien.cfg"
bind = "exec human.cfg"

alien.cfg
I haven't done anything with the alien text yet

I go into tremulous onto the AA2 server. I hit "-" and I go into the "Human" team as so. When I hit "j" to spawn as a rifle class, it does NOTHING

I've seen someone with near the same error (not exactly) and he said he did /exec human.cfg, so I tried it and here is what I got.
Code: [Select]
/exec human.cfg
Couldn't exec human.cfg

I don't know what these files do, and how they work. All I know basically is how to make the binds and vaguely how to use these .cfg files
« Last Edit: April 30, 2015, 02:03:16 am by l0ne »
If you're looking for me, look on AA2.
My name is l0ne and humans is my game.
Yeah... Run dretch run!

DarkMicrobe

  • Posts: 4
  • Turrets: +0/-1
Re: Please help with .cfg files
« Reply #1 on: April 30, 2015, 11:08:38 am »
My dear sir, "couldn't exec <file>" means that your .cfg files aren't in the correct location.
Move them to the same location that the autogen.cfg is in. Also why have a bind that puts you in aliens but executes human binds? and aren't the aa2 servers on 1.1? anyways I've made a guide on binding some time ago (for gpp but it's probably useful none the less) It might be useful to read trough: http://new-edge.org/forum/showthread.php?tid=494

l0ne

  • Posts: 31
  • Turrets: +0/-0
Re: Please help with .cfg files
« Reply #2 on: April 30, 2015, 09:02:21 pm »
My dear sir, "couldn't exec <file>" means that your .cfg files aren't in the correct location.
Move them to the same location that the autogen.cfg is in. Also why have a bind that puts you in aliens but executes human binds? and aren't the aa2 servers on 1.1? anyways I've made a guide on binding some time ago (for gpp but it's probably useful none the less) It might be useful to read trough: http://new-edge.org/forum/showthread.php?tid=494

Oh yeah. Sorry. I'm playing 1.1. And also the human.cfg file and the alien.cfg file are both in the base folder in tremulous. As for the flip flop THANK YOU for seeing that. I changed it so that it looks like this
autogen.cfg
Code: [Select]
bind - "team humans; exec human.cfg"
bind = "team aliens; exec alien.cfg"

I tried it immediately and it still won't work. Nothing from the human.cfg still won't work

As for the guide I'll get right to that
If you're looking for me, look on AA2.
My name is l0ne and humans is my game.
Yeah... Run dretch run!

l0ne

  • Posts: 31
  • Turrets: +0/-0
Re: Please help with .cfg files
« Reply #3 on: May 02, 2015, 09:32:37 pm »
I noticed that where it said "humans.cfg" in the "terminal", it said humans
Code: [Select]
/exec human.cfg
Couldn't exec humans.cfg
I don't know if that is anything. So then I changed it so that each one was with an "s" at the end.
I did change the autogen.cfg to this:

autogen.cfg
Code: [Select]
bind - "team humans; exec humans.cfg"
bind = "team aliens; exec aliens.cfg"

Once again the other ones are these:

humans.cfg
Code: [Select]
//Spawning
bind j "class rifle
bind k "class ackit; wait; class ckit"

//Weapons
bind 1 "sell all; buy rifle; buy helmet; buy larmor"
bind 2 "sell all; buy rifle; buy helmet; buy larmor; buy jetpack"
bind 3 "sell all; buy lcannon; buy helmet; buy larmor; buy battpack"
bind 4 "sell all; buy lcannon; buy helmet; buy larmor; buy jetpack"
bind 5 "sell all; buy lgun; buy helmet; buy larmor; buy battpack"
bind 6 "sell all; buy lgun; buy helmet; buy larmor; buy jetpack"
bind 9 "sell all; buy ackit; wait; buy ckit"
bind 0 "sell all; buy rifle"

//Teams
bind - "exec aliens.cfg"
bind = "exec humans.cfg"

I haven't done anything with the aliens.cfg yet...

aliens.cfg
Code: [Select]
// Evolves
// Teams
bind - "exec aliens.cfg"
bind = "exec humans.cfg"
If you're looking for me, look on AA2.
My name is l0ne and humans is my game.
Yeah... Run dretch run!

/dev/humancontroller

  • Posts: 1033
  • Turrets: +1002/-383
Re: Please help with .cfg files
« Reply #4 on: May 03, 2015, 08:48:24 am »
works for me. though the details r weird: autogen.cfg binds "-" to "team humans; exec humans.cfg", but humans.cfg rebinds "-" to "exec aliens.cfg" !

l0ne

  • Posts: 31
  • Turrets: +0/-0
Re: Please help with .cfg files
« Reply #5 on: May 04, 2015, 01:14:19 am »
oh yeah... I'll change that.

But it is still saying
Code: [Select]
Couldn't exec humans.cfg
When I go from Spectators (autogen.cfg)
If you're looking for me, look on AA2.
My name is l0ne and humans is my game.
Yeah... Run dretch run!

/dev/humancontroller

  • Posts: 1033
  • Turrets: +1002/-383
Re: Please help with .cfg files
« Reply #6 on: May 04, 2015, 07:07:46 am »
Code: [Select]
Couldn't exec humans.cfg
ORLY. then humans.cfg in the WRONG directory. put it in the directory of the mod (eg., "gpp", "zombie") where u want to use the binds, or put it in "base" for use in all mods.

l0ne

  • Posts: 31
  • Turrets: +0/-0
Re: Please help with .cfg files
« Reply #7 on: May 05, 2015, 02:10:20 am »
Code: [Select]
Couldn't exec humans.cfg
ORLY. then humans.cfg in the WRONG directory. put it in the directory of the mod (eg., "gpp", "zombie") where u want to use the binds, or put it in "base" for use in all mods.

The humans.cfg and the aliens.cfg are both in the base folder! Here's what's in the tremulous folder in Programs files (x86) and (See Attachments)
If you're looking for me, look on AA2.
My name is l0ne and humans is my game.
Yeah... Run dretch run!

/dev/humancontroller

  • Posts: 1033
  • Turrets: +1002/-383
Re: Please help with .cfg files
« Reply #8 on: May 05, 2015, 08:35:00 pm »
:O

ULTRA Random ViruS

  • Posts: 924
  • Turrets: +4/-101
    • ZdrytchX's reference website
Re: Please help with .cfg files
« Reply #9 on: June 14, 2015, 02:57:24 am »
Code: [Select]
//Spawning
bind j "class rifle
bind k "class ackit; wait; class ckit"
Not sure if you noticed this but you're missing a set of ""s

l0ne

  • Posts: 31
  • Turrets: +0/-0
Re: Please help with .cfg files
« Reply #10 on: June 14, 2015, 06:13:08 pm »
Code: [Select]
//Spawning
bind j "class rifle
bind k "class ackit; wait; class ckit"
Not sure if you noticed this but you're missing a set of ""s
That would be a problem...
I switched computers So I will have to do this all over again (the .cfg files) and hope to do it properly, and maybe it will work, but that's later...
If you're looking for me, look on AA2.
My name is l0ne and humans is my game.
Yeah... Run dretch run!