Upvote Upvoted 3 Downvote Downvoted
Script messed up
posted in Q/A Help
1
#1
0 Frags +

Hello guys, I made this script:

alias loadout_pres_0 "say_team "Item preset 0"; bind f demolp_0; alias demo_lp load_itempreset 0; demo_lp"
alias loadout_pres_1 "say_team "Item preset 1"; bind f demolp_1; alias demo_lp load_itempreset 1; demo_lp"
alias loadout_pres_2 "say_team "Item preset 2"; bind f demolp_2; alias demo_lp load_itempreset 2; demo_lp"
alias loadout_pres_3 "say_team "Item preset 3"; bind f demolp_3; alias demo_lp load_itempreset 3; demo_lp"

alias demolp_0 "load_itempreset 0"
alias demolp_1 "load_itempreset 1"
alias demolp_2 "load_itempreset 2"
alias demolp_3 "load_itempreset 3"

bind kp_end loadout_pres_0
bind kp_downarrow loadout_pres_1
bind kp_pgdn loadout_pres_2
bind kp_leftarrow loadout_pres_3

demo_lp

(this script is for demoman, for other classes is only every word demo changed to another class)

It's for forward respawning, for supplementing ammo and health without touching a cabin or while playing ultiduo, it let you change spawn as medic without loosing your uber and it remebers the last preset on every class.

So the problem is: after you choose a class and spawn, after 0.5 sec you will move (the same like when ur changing item presets), yes i know according to script it should do this, but problem is - it didnt do it. I went on vacation, came back and now this. When i was on vacation TF2 was updated (July 15, 2015) but i can see nothing that could relate to my script.

Anybody knows why is this now happening and how to fix it?

Thanks in advance

Edit:
I recorded videos explaining where is my problem:
This is short video from demo, showing how it was working: https://www.youtube.com/watch?v=6uJFVrwG3P4
This is what is happening now after changing class: https://www.youtube.com/watch?v=tplAiBbSuuA

Hello guys, I made this script:

[quote]
alias loadout_pres_0 "say_team "Item preset 0"; bind f demolp_0; alias demo_lp load_itempreset 0; demo_lp"
alias loadout_pres_1 "say_team "Item preset 1"; bind f demolp_1; alias demo_lp load_itempreset 1; demo_lp"
alias loadout_pres_2 "say_team "Item preset 2"; bind f demolp_2; alias demo_lp load_itempreset 2; demo_lp"
alias loadout_pres_3 "say_team "Item preset 3"; bind f demolp_3; alias demo_lp load_itempreset 3; demo_lp"

alias demolp_0 "load_itempreset 0"
alias demolp_1 "load_itempreset 1"
alias demolp_2 "load_itempreset 2"
alias demolp_3 "load_itempreset 3"

bind kp_end loadout_pres_0
bind kp_downarrow loadout_pres_1
bind kp_pgdn loadout_pres_2
bind kp_leftarrow loadout_pres_3

demo_lp[/quote]
(this script is for demoman, for other classes is only every word demo changed to another class)

It's for forward respawning, for supplementing ammo and health without touching a cabin or while playing ultiduo, it let you change spawn as medic without loosing your uber and it remebers the last preset on every class.

So the problem is: after you choose a class and spawn, after 0.5 sec you will move (the same like when ur changing item presets), yes i know according to script it should do this, but problem is - it didnt do it. I went on vacation, came back and now this. When i was on vacation TF2 was updated (July 15, 2015) but i can see nothing that could relate to my script.

Anybody knows why is this now happening and how to fix it?

Thanks in advance

Edit:
I recorded videos explaining where is my problem:
This is short video from demo, showing how it was working: https://www.youtube.com/watch?v=6uJFVrwG3P4
This is what is happening now after changing class: https://www.youtube.com/watch?v=tplAiBbSuuA
2
#2
-3 Frags +

You can't switch spawns or resupply by changing loadouts now, at least from what I heard and witnessed

You can't switch spawns or resupply by changing loadouts now, at least from what I heard and witnessed
3
#3
2 Frags +
HerganYou can't switch spawns or resupply by changing loadouts now, at least from what I heard and witnessed

yes you can https://youtu.be/pi2RMaEoogM

[quote=Hergan]You can't switch spawns or resupply by changing loadouts now, at least from what I heard and witnessed[/quote]
yes you can https://youtu.be/pi2RMaEoogM
4
#4
0 Frags +

I'm sorry I don't really understand your problem or your script.
Do you just want an script that changes your loadout? There are a bunch of scripts that can do that, just use one of them.

I'm sorry I don't really understand your problem or your script.
Do you just want an script that changes your loadout? There are a bunch of scripts that can do that, just use one of them.
5
#5
0 Frags +

well, it's loadout changing that also allows you to change to forward/backward spawns, with stuff like keeping your uber without must having 2 presets with the same loadout, only one hat changed
i found it very confortable and useful, so i'd like to get back 100% fuction

well, it's loadout changing that also allows you to change to forward/backward spawns, with stuff like keeping your uber without must having 2 presets with the same loadout, only one hat changed
i found it very confortable and useful, so i'd like to get back 100% fuction
6
#6
2 Frags +

You can just "change" to the loadout you are already using and you will spawn forward.

You can just "change" to the loadout you are already using and you will spawn forward.
7
#7
0 Frags +
deguCZyou change spawn as medic without loosing your uber

Keep in mind this is disallowed in some leagues, check with your league's rule page.

_______________________________

So where is this script? Demoman.cfg? Or is this in an all-class reset.cfg sort of location?

Have you tried just directly binding the keys to the item preset without your intermediary aliases?

TF2 doesn't like quotes within quotes so maybe try re-working a bit to not have "quotes "within quotes"".

Lastly, what is demolp for? Could you not just omit demolp entirely?

alias announce_team_0 "say_team Item Preset 0"
alias announce_team_1 "say_team Item Preset 1"
alias announce_team_2 "say_team Item Preset 2"
alias announce_team_3 "say_team Item Preset 3"

bind kp_end "announce_team_0; load_itempreset 0; alias f_swap load_itempreset 0"
bind kp_downarrow "announce_team_1; load_itempreset 1; alias f_swap load_itempreset 1"
bind kp_pgdn "announce_team_2; load_itempreset 2; alias f_swap load_itempreset 2"
bind kp_leftarrow "announce_team_3; load_itempreset 3; alias f_swap load_itempreset 3"

alias f_swap "load_itempreset 0"
bind f f_swap

Try this. Should function as you want it to. Just remember that aliases cannot retain information after closing the game, so the first time you press F without touching a loadout key it'll be set to preset 0. I also removed your nasty nested binds which can cause issues when changing stuff in the future.

[quote=deguCZ]you change spawn as medic without loosing your uber [/quote]

Keep in mind this is disallowed in some leagues, check with your league's rule page.

_______________________________

So where is this script? Demoman.cfg? Or is this in an all-class reset.cfg sort of location?

Have you tried just directly binding the keys to the item preset without your intermediary aliases?

TF2 doesn't like quotes within quotes so maybe try re-working a bit to not have "quotes "within quotes"".

Lastly, what is demolp for? Could you not just omit demolp entirely?

[quote]alias announce_team_0 "say_team Item Preset 0"
alias announce_team_1 "say_team Item Preset 1"
alias announce_team_2 "say_team Item Preset 2"
alias announce_team_3 "say_team Item Preset 3"

bind kp_end "announce_team_0; load_itempreset 0; alias f_swap load_itempreset 0"
bind kp_downarrow "announce_team_1; load_itempreset 1; alias f_swap load_itempreset 1"
bind kp_pgdn "announce_team_2; load_itempreset 2; alias f_swap load_itempreset 2"
bind kp_leftarrow "announce_team_3; load_itempreset 3; alias f_swap load_itempreset 3"

alias f_swap "load_itempreset 0"
bind f f_swap
[/quote]

Try this. Should function as you want it to. Just remember that aliases cannot retain information after closing the game, so the first time you press F without touching a loadout key it'll be set to preset 0. I also removed your nasty nested binds which can cause issues when changing stuff in the future.
8
#8
-1 Frags +

There is literally a setting in the option menus that does this.

There is literally a setting in the option menus that does this.
9
#9
0 Frags +
JojoThere is literally a setting in the option menus that does this.

Minus the parts of his script where he wants F to use his current equipped loadout for insta-regen, and the team announcing.

[quote=Jojo]There is literally a setting in the option menus that does this.[/quote]

Minus the parts of his script where he wants F to use his current equipped loadout for insta-regen, and the team announcing.
10
#10
0 Frags +
KairudeguCZyou change spawn as medic without loosing your uber
Keep in mind this is disallowed in some leagues, check with your league's rule page.

_______________________________

So where is this script? Demoman.cfg? Or is this in an all-class reset.cfg sort of location?

Have you tried just directly binding the keys to the item preset without your intermediary aliases?

TF2 doesn't like quotes within quotes so maybe try re-working a bit to not have "quotes "within quotes"".

Lastly, what is demolp for? Could you not just omit demolp entirely?
alias announce_team_0 "say_team Item Preset 0"
alias announce_team_1 "say_team Item Preset 1"
alias announce_team_2 "say_team Item Preset 2"
alias announce_team_3 "say_team Item Preset 3"

bind kp_end "announce_team_0; load_itempreset 0; alias f_swap load_itempreset 0"
bind kp_downarrow "announce_team_1; load_itempreset 1; alias f_swap load_itempreset 1"
bind kp_pgdn "announce_team_2; load_itempreset 2; alias f_swap load_itempreset 2"
bind kp_leftarrow "announce_team_3; load_itempreset 3; alias f_swap load_itempreset 3"

alias f_swap "load_itempreset 0"
bind f f_swap

Try this. Should function as you want it to. Just remember that aliases cannot retain information after closing the game, so the first time you press F without touching a loadout key it'll be set to preset 0. I also removed your nasty nested binds which can cause issues when changing stuff in the future.

Thanks!
Yes it's different for each class.
Yes, I tried, result was the same.
Demolp (scoutlp...) is "demoman last preset", so after executing class config it will load last preset loaded with script. And if I choose for example preset 1 as demo, I won't have iteam preset 1 as scout, but I'll have 0 as last time I played scout. (after forward spawning with F)

EDIT:
I turned on half of my brain and made this:

alias loadout_pres_0 "say_team "Item preset 0"; alias "demo_lp" "load_itempreset 0"; demo_lp"
alias loadout_pres_1 "say_team "Item preset 1"; alias "demo_lp" "load_itempreset 1"; demo_lp"
alias loadout_pres_2 "say_team "Item preset 2"; alias "demo_lp" "load_itempreset 2"; demo_lp"
alias loadout_pres_3 "say_team "Item preset 3"; alias "demo_lp" "load_itempreset 3"; demo_lp"

bind f demo_lp

bind kp_end loadout_pres_0
bind kp_downarrow loadout_pres_1
bind kp_pgdn loadout_pres_2
bind kp_leftarrow loadout_pres_3

in class confings
+

bind alt "+joinclass"
alias +joinclass "bind 1 scout1; bind 2 soldier1; bind 3 pyro1; bind 4 demoman1; bind 5 heavy1; bind 6 engineer1; bind 7 medic1; bind 8 sniper1; bind 9 spy1"
alias -joinclass "bind 1 "aslot1"; bind 2 "aslot2"; bind 3 "aslot3"; bind 4 "aslot4"; bind 5 "clear"; bind 6 "clear"; bind 7 "clear"; bind 8 "clear"; bind 9 "clear""
alias scout1 "join_class scout; exec scout; scout_lp"
alias soldier1 "join_class soldier; exec soldier; solly_lp"
alias pyro1 "join_class pyro; exec pyro; pyro_lp"
alias demoman1 "join_class demoman; exec demoman; demo_lp"
alias heavy1 "join_class heavyweapons; exec heavyweapons; heavy_lp"
alias engineer1 "join_class engineer; exec engineer; engie_lp"
alias medic1 "join_class medic; exec medic; medic_lp"
alias sniper1 "join_class sniper; exec sniper; sniper_lp"
alias spy1 "join_class spy; exec spy; spy_lp"

in my autoexec

it seems working

[quote=Kairu][quote=deguCZ]you change spawn as medic without loosing your uber [/quote]

Keep in mind this is disallowed in some leagues, check with your league's rule page.

_______________________________

So where is this script? Demoman.cfg? Or is this in an all-class reset.cfg sort of location?

Have you tried just directly binding the keys to the item preset without your intermediary aliases?

TF2 doesn't like quotes within quotes so maybe try re-working a bit to not have "quotes "within quotes"".

Lastly, what is demolp for? Could you not just omit demolp entirely?

[quote]alias announce_team_0 "say_team Item Preset 0"
alias announce_team_1 "say_team Item Preset 1"
alias announce_team_2 "say_team Item Preset 2"
alias announce_team_3 "say_team Item Preset 3"

bind kp_end "announce_team_0; load_itempreset 0; alias f_swap load_itempreset 0"
bind kp_downarrow "announce_team_1; load_itempreset 1; alias f_swap load_itempreset 1"
bind kp_pgdn "announce_team_2; load_itempreset 2; alias f_swap load_itempreset 2"
bind kp_leftarrow "announce_team_3; load_itempreset 3; alias f_swap load_itempreset 3"

alias f_swap "load_itempreset 0"
bind f f_swap
[/quote]

Try this. Should function as you want it to. Just remember that aliases cannot retain information after closing the game, so the first time you press F without touching a loadout key it'll be set to preset 0. I also removed your nasty nested binds which can cause issues when changing stuff in the future.[/quote]

Thanks!
Yes it's different for each class.
Yes, I tried, result was the same.
Demolp (scoutlp...) is "demoman last preset", so after executing class config it will load last preset loaded with script. And if I choose for example preset 1 as demo, I won't have iteam preset 1 as scout, but I'll have 0 as last time I played scout. (after forward spawning with F)

EDIT:
I turned on half of my brain and made this:
[quote]alias loadout_pres_0 "say_team "Item preset 0"; alias "demo_lp" "load_itempreset 0"; demo_lp"
alias loadout_pres_1 "say_team "Item preset 1"; alias "demo_lp" "load_itempreset 1"; demo_lp"
alias loadout_pres_2 "say_team "Item preset 2"; alias "demo_lp" "load_itempreset 2"; demo_lp"
alias loadout_pres_3 "say_team "Item preset 3"; alias "demo_lp" "load_itempreset 3"; demo_lp"

bind f demo_lp

bind kp_end loadout_pres_0
bind kp_downarrow loadout_pres_1
bind kp_pgdn loadout_pres_2
bind kp_leftarrow loadout_pres_3[/quote]
in class confings
+
[quote]bind alt "+joinclass"
alias +joinclass "bind 1 scout1; bind 2 soldier1; bind 3 pyro1; bind 4 demoman1; bind 5 heavy1; bind 6 engineer1; bind 7 medic1; bind 8 sniper1; bind 9 spy1"
alias -joinclass "bind 1 "aslot1"; bind 2 "aslot2"; bind 3 "aslot3"; bind 4 "aslot4"; bind 5 "clear"; bind 6 "clear"; bind 7 "clear"; bind 8 "clear"; bind 9 "clear""
alias scout1 "join_class scout; exec scout; scout_lp"
alias soldier1 "join_class soldier; exec soldier; solly_lp"
alias pyro1 "join_class pyro; exec pyro; pyro_lp"
alias demoman1 "join_class demoman; exec demoman; demo_lp"
alias heavy1 "join_class heavyweapons; exec heavyweapons; heavy_lp"
alias engineer1 "join_class engineer; exec engineer; engie_lp"
alias medic1 "join_class medic; exec medic; medic_lp"
alias sniper1 "join_class sniper; exec sniper; sniper_lp"
alias spy1 "join_class spy; exec spy; spy_lp"[/quote]
in my autoexec

it seems working
11
#11
0 Frags +
KairuJojoThere is literally a setting in the option menus that does this.
Minus the parts of his script where he wants F to use his current equipped loadout for insta-regen, and the team announcing.

I honestly decided that the team announcing probably wasn't worth all the trouble. The rebinding f as needed is pretty cool though and I just missed that part of the script so thanks for the enlightenment.

[quote=Kairu][quote=Jojo]There is literally a setting in the option menus that does this.[/quote]

Minus the parts of his script where he wants F to use his current equipped loadout for insta-regen, and the team announcing.[/quote]

I honestly decided that the team announcing probably wasn't worth all the trouble. The rebinding f as needed is pretty cool though and I just missed that part of the script so thanks for the enlightenment.
Please sign in through STEAM to post a comment.