Tremulous Forum

General => Troubleshooting => Topic started by: Dark-Shadow on May 27, 2007, 01:34:33 pm

Title: Builder/Attacker configs
Post by: Dark-Shadow on May 27, 2007, 01:34:33 pm
hey there.

i thought i could create 2 configs on each side. one as a granger/builder and the other one as a dretch/rifler. good thing about that is, that i can bind 3 to build turret or to buy MD. well, it works well so far, but i got one problem:
when im granger, i have 3 evos and i want to exec dretch.cfg, my granger automatically evolves to the highest reachable class (would be mara here, if not s1). same as human, if im builder near an arm and exec rifle.cfg, itll buy the last weapon that is bound. ---> it runs all the commands from the config. now the question:

-how can i load the config without running the commands in it?
Title: Builder/Attacker configs
Post by: David on May 27, 2007, 04:10:45 pm
that shouldn't happen.
do you use vstr? if so, you'r probably running the wrong string somewhere.
Title: Builder/Attacker configs
Post by: Dark-Shadow on May 27, 2007, 05:35:34 pm
yes, i use vstr... shall i post my vstr config part?
Title: Builder/Attacker configs
Post by: TinMan on May 27, 2007, 05:52:26 pm
My config is a builder and fighter both in the same config with vstrs.

Check it out:
http://neonpulse.net/files/games/tremulous/base/autoexec.cfg
Title: Builder/Attacker configs
Post by: Dark-Shadow on May 27, 2007, 06:23:31 pm
ooh... ive read it several times and i think ill copy some things from your config ;)
thanks a lot!
Title: Builder/Attacker configs
Post by: Dark-Shadow on June 01, 2007, 10:56:06 am
nov i've got another question >.<
@tinman:
i copied your builder/fighter config part and it works pretty well so far.
but in former times i used
Quote
seta blah1 "sell weapons;buy rifle;bind 1 vstr blah2"
seta blah2 "sell weapons;buy ackit;buy ckit;bind 1 vstr blah1;wait 90;bind 1 vstr blah2"
vstr blah1


but that doesnt work anymore :( i want like 2 weapons bound on one key..
what i entered is:
Quote
seta battjet1 "sell upgrades;buy jetpack;buy helmet;buy larmour;set h1 vstr battjet2"
seta battjet2 "sell upgrades;buy larmour;buy helmet;set h1 vstr battjet1;wait 90;set h1 vstr battjet2"
vstr battjet1      

the first time i press it, it works. i buy larmour and helmet. but when i press it a second time, it doesnt work anymore :(
Title: Builder/Attacker configs
Post by: benmachine on June 01, 2007, 01:23:54 pm
I've come up against the same problem - notice in your example you are using set, not bind. For some reason, the latter works but not the former. In the first example you gave the command is bound directly to a key rather than set to a vstr - this is what you need to do.
Title: Builder/Attacker configs
Post by: Dark-Shadow on June 01, 2007, 10:11:06 pm
well, when i entered the thing with set, it worked once, but when i pressed it twice it didnt work. with the first example (bind) it didnt work at all :- \
Title: Builder/Attacker configs
Post by: zlou on June 29, 2007, 12:23:01 am
Quote from: "Dark-Shadow"
well, when i entered the thing with set, it worked once, but when i pressed it twice it didnt work. with the first example (bind) it didnt work at all :- \


This worked for me. Press "k" once to get fighter equipment, double tap "k" to get builder equipment.

Quote
set fighter "sell weapons;sell upgrades;buy larmour;buy helmet;buy rifle;bind k "vstr builder"; wait 90; bind k "vstr "fighter"
set builder "sell weapons;sell upgrades;buy ackit; buy ckit;buy larmour;buy helmet;bind k "vstr fighter"
bind k "vstr fighter"