I am using Oatmeal's offline jumping script and the teleport/position save commands arent working.
Here is the code:
sv_cheats "1"
sv_allow_wait_command "1"
tf_weapon_criticals "0"
tf_damage_disablespread "1"
tf_use_fixed_weaponspreads "1"
mp_waitingforplayers_cancel "1"
mp_disable_respawn_times "1"
//Regen
give func_regenerate
bind mouse1 "+attack; impulse 101"
alias regen "give func_regenerate; alias regenloop +loop; regenloop"
alias unregen "ent_Fire !self sethealth 200; alias regenloop null"
alias regenloop "+loop"
alias +loop "impulse 101;wait 100;-loop"
alias -loop "wait 100;regenloop"
regen
echo "#### Regen activated ####"
//Offline Teleports
con_timestamp 0
con_logfile console.log
//Binds
bind F1 gotoPosition1
bind F2 gotoPosition2
bind F3 gotoPosition3
bind F4 gotoPosition4
bind F5 gotoPosition5
bind ALT +savePosition
//Code
alias +savePosition "bind F1 savePosition1; bind F2 savePosition2; bind F3 savePosition3; bind F4 savePosition4; bind F5 savePosition5"
alias -savePosition "bind F1 gotoPosition1; bind F2 gotoPosition2; bind F3 gotoPosition3; bind F4 gotoPosition4; bind F5 gotoPosition5"
alias resetLogfile "con_logfile console.log"
alias savePosition1 "con_logfile cfg/position1; getpos; resetLogfile;"
alias savePosition2 "con_logfile cfg/position2; getpos; resetLogfile;"
alias savePosition3 "con_logfile cfg/position3; getpos; resetLogfile;"
alias savePosition4 "con_logfile cfg/position4; getpos; resetLogfile;"
alias savePosition5 "con_logfile cfg/position5; getpos; resetLogfile;"
alias gotoPosition1 "exec position1.log"
alias gotoPosition2 "exec position2.log"
alias gotoPosition3 "exec position3.log"
alias gotoPosition4 "exec position4.log"
alias gotoPosition5 "exec position5.log"
echo "##### Listen server teleports loaded #####"
echo "# Use <Alt> + <F1> to save a location #"
echo "# Use <F1> to teleport to that location #"
echo "# <F1> - <F5> are available #"
// Noclip button
bind mouse4 noclip
// Disable waiting for players and respawn times again (on demand)
alias annoyingshit "mp_waitingforplayers_cancel 1; mp_disable_respawn_times 1"
bind mouse3 annoyingshit
echo "#### Jumping script loaded #####"
Whenever I try to tp to a position I saved, I get this 'error' message in console "''position1.log' not present; not executing."
Any idea why it won't save my position and let me tp?
I am using Oatmeal's offline jumping script and the teleport/position save commands arent working.
Here is the code:
[code]sv_cheats "1"
sv_allow_wait_command "1"
tf_weapon_criticals "0"
tf_damage_disablespread "1"
tf_use_fixed_weaponspreads "1"
mp_waitingforplayers_cancel "1"
mp_disable_respawn_times "1"
//Regen
give func_regenerate
bind mouse1 "+attack; impulse 101"
alias regen "give func_regenerate; alias regenloop +loop; regenloop"
alias unregen "ent_Fire !self sethealth 200; alias regenloop null"
alias regenloop "+loop"
alias +loop "impulse 101;wait 100;-loop"
alias -loop "wait 100;regenloop"
regen
echo "#### Regen activated ####"
//Offline Teleports
con_timestamp 0
con_logfile console.log
//Binds
bind F1 gotoPosition1
bind F2 gotoPosition2
bind F3 gotoPosition3
bind F4 gotoPosition4
bind F5 gotoPosition5
bind ALT +savePosition
//Code
alias +savePosition "bind F1 savePosition1; bind F2 savePosition2; bind F3 savePosition3; bind F4 savePosition4; bind F5 savePosition5"
alias -savePosition "bind F1 gotoPosition1; bind F2 gotoPosition2; bind F3 gotoPosition3; bind F4 gotoPosition4; bind F5 gotoPosition5"
alias resetLogfile "con_logfile console.log"
alias savePosition1 "con_logfile cfg/position1; getpos; resetLogfile;"
alias savePosition2 "con_logfile cfg/position2; getpos; resetLogfile;"
alias savePosition3 "con_logfile cfg/position3; getpos; resetLogfile;"
alias savePosition4 "con_logfile cfg/position4; getpos; resetLogfile;"
alias savePosition5 "con_logfile cfg/position5; getpos; resetLogfile;"
alias gotoPosition1 "exec position1.log"
alias gotoPosition2 "exec position2.log"
alias gotoPosition3 "exec position3.log"
alias gotoPosition4 "exec position4.log"
alias gotoPosition5 "exec position5.log"
echo "##### Listen server teleports loaded #####"
echo "# Use <Alt> + <F1> to save a location #"
echo "# Use <F1> to teleport to that location #"
echo "# <F1> - <F5> are available #"
// Noclip button
bind mouse4 noclip
// Disable waiting for players and respawn times again (on demand)
alias annoyingshit "mp_waitingforplayers_cancel 1; mp_disable_respawn_times 1"
bind mouse3 annoyingshit
echo "#### Jumping script loaded #####"[/code]
Whenever I try to tp to a position I saved, I get this 'error' message in console "''position1.log' not present; not executing."
Any idea why it won't save my position and let me tp?
alias savePosition1 "con_logfile cfg/position1; getpos; resetLogfile;"
alias savePosition2 "con_logfile cfg/position2; getpos; resetLogfile;"
alias savePosition3 "con_logfile cfg/position3; getpos; resetLogfile;"
alias savePosition4 "con_logfile cfg/position4; getpos; resetLogfile;"
alias savePosition5 "con_logfile cfg/position5; getpos; resetLogfile;"
Here's where the error is occuring. con_logfile must have the txt or log file extension (e.g
con_logfile cfg/test.txt
) otherwise the logfile will not be created.
Here's a future list of rules with con_logfile (source: 2018 code leak of TF2):
- Newlines and carriage returns are not allowed.
- Network paths (\\), Absolute Paths (:), and the parent file path character (..) are not allowed.
- con_logfile must have the txt or log file extension.
So the script should really be:
sv_cheats "1"
sv_allow_wait_command "1"
tf_weapon_criticals "0"
tf_damage_disablespread "1"
tf_use_fixed_weaponspreads "1"
mp_waitingforplayers_cancel "1"
mp_disable_respawn_times "1"
//Regen
give func_regenerate
bind mouse1 "+attack; impulse 101"
alias regen "give func_regenerate; alias regenloop +loop; regenloop"
alias unregen "ent_Fire !self sethealth 200; alias regenloop null"
alias regenloop "+loop"
alias +loop "impulse 101;wait 100;-loop"
alias -loop "wait 100;regenloop"
regen
echo "#### Regen activated ####"
//Offline Teleports
con_timestamp 0
con_logfile console.log
//Binds
bind F1 gotoPosition1
bind F2 gotoPosition2
bind F3 gotoPosition3
bind F4 gotoPosition4
bind F5 gotoPosition5
bind ALT +savePosition
//Code
alias +savePosition "bind F1 savePosition1; bind F2 savePosition2; bind F3 savePosition3; bind F4 savePosition4; bind F5 savePosition5"
alias -savePosition "bind F1 gotoPosition1; bind F2 gotoPosition2; bind F3 gotoPosition3; bind F4 gotoPosition4; bind F5 gotoPosition5"
alias resetLogfile "con_logfile console.log"
alias savePosition1 "con_logfile cfg/position1.log; getpos; resetLogfile;"
alias savePosition2 "con_logfile cfg/position2.log; getpos; resetLogfile;"
alias savePosition3 "con_logfile cfg/position3.log; getpos; resetLogfile;"
alias savePosition4 "con_logfile cfg/position4.log; getpos; resetLogfile;"
alias savePosition5 "con_logfile cfg/position5.log; getpos; resetLogfile;"
alias gotoPosition1 "exec position1.log"
alias gotoPosition2 "exec position2.log"
alias gotoPosition3 "exec position3.log"
alias gotoPosition4 "exec position4.log"
alias gotoPosition5 "exec position5.log"
echo "##### Listen server teleports loaded #####"
echo "# Use <Alt> + <F1> to save a location #"
echo "# Use <F1> to teleport to that location #"
echo "# <F1> - <F5> are available #"
// Noclip button
bind mouse4 noclip
// Disable waiting for players and respawn times again (on demand)
alias annoyingshit "mp_waitingforplayers_cancel 1; mp_disable_respawn_times 1"
bind mouse3 annoyingshit
echo "#### Jumping script loaded #####"
[code]alias savePosition1 "con_logfile cfg/position1; getpos; resetLogfile;"
alias savePosition2 "con_logfile cfg/position2; getpos; resetLogfile;"
alias savePosition3 "con_logfile cfg/position3; getpos; resetLogfile;"
alias savePosition4 "con_logfile cfg/position4; getpos; resetLogfile;"
alias savePosition5 "con_logfile cfg/position5; getpos; resetLogfile;"[/code]
Here's where the error is occuring. con_logfile [i]must[/i] have the txt or log file extension (e.g [code]con_logfile cfg/test.txt[/code]) otherwise the logfile will not be created.
Here's a future list of rules with con_logfile (source: 2018 code leak of TF2):
[list]
[*] Newlines and carriage returns are not allowed.
[*] Network paths (\\), Absolute Paths (:), and the parent file path character (..) are not allowed.
[*] con_logfile [i]must[/i] have the txt or log file extension.
[/list]
So the script should really be:
[code]sv_cheats "1"
sv_allow_wait_command "1"
tf_weapon_criticals "0"
tf_damage_disablespread "1"
tf_use_fixed_weaponspreads "1"
mp_waitingforplayers_cancel "1"
mp_disable_respawn_times "1"
//Regen
give func_regenerate
bind mouse1 "+attack; impulse 101"
alias regen "give func_regenerate; alias regenloop +loop; regenloop"
alias unregen "ent_Fire !self sethealth 200; alias regenloop null"
alias regenloop "+loop"
alias +loop "impulse 101;wait 100;-loop"
alias -loop "wait 100;regenloop"
regen
echo "#### Regen activated ####"
//Offline Teleports
con_timestamp 0
con_logfile console.log
//Binds
bind F1 gotoPosition1
bind F2 gotoPosition2
bind F3 gotoPosition3
bind F4 gotoPosition4
bind F5 gotoPosition5
bind ALT +savePosition
//Code
alias +savePosition "bind F1 savePosition1; bind F2 savePosition2; bind F3 savePosition3; bind F4 savePosition4; bind F5 savePosition5"
alias -savePosition "bind F1 gotoPosition1; bind F2 gotoPosition2; bind F3 gotoPosition3; bind F4 gotoPosition4; bind F5 gotoPosition5"
alias resetLogfile "con_logfile console.log"
alias savePosition1 "con_logfile cfg/position1.log; getpos; resetLogfile;"
alias savePosition2 "con_logfile cfg/position2.log; getpos; resetLogfile;"
alias savePosition3 "con_logfile cfg/position3.log; getpos; resetLogfile;"
alias savePosition4 "con_logfile cfg/position4.log; getpos; resetLogfile;"
alias savePosition5 "con_logfile cfg/position5.log; getpos; resetLogfile;"
alias gotoPosition1 "exec position1.log"
alias gotoPosition2 "exec position2.log"
alias gotoPosition3 "exec position3.log"
alias gotoPosition4 "exec position4.log"
alias gotoPosition5 "exec position5.log"
echo "##### Listen server teleports loaded #####"
echo "# Use <Alt> + <F1> to save a location #"
echo "# Use <F1> to teleport to that location #"
echo "# <F1> - <F5> are available #"
// Noclip button
bind mouse4 noclip
// Disable waiting for players and respawn times again (on demand)
alias annoyingshit "mp_waitingforplayers_cancel 1; mp_disable_respawn_times 1"
bind mouse3 annoyingshit
echo "#### Jumping script loaded #####"[/code]
AimIsADickalias savePosition1 "con_logfile cfg/position1; getpos; resetLogfile;"
alias savePosition2 "con_logfile cfg/position2; getpos; resetLogfile;"
alias savePosition3 "con_logfile cfg/position3; getpos; resetLogfile;"
alias savePosition4 "con_logfile cfg/position4; getpos; resetLogfile;"
alias savePosition5 "con_logfile cfg/position5; getpos; resetLogfile;"
Here's where the error is occuring. con_logfile must have the txt or log file extension (e.g con_logfile cfg/test.txt
) otherwise the logfile will not be created.
Here's a future list of rules with con_logfile (source: 2018 code leak of TF2):
- Newlines and carriage returns are not allowed.
- Network paths (\\), Absolute Paths (:), and the parent file path character (..) are not allowed.
- con_logfile must have the txt or log file extension.
Ty that fixed it!
[quote=AimIsADick][code]alias savePosition1 "con_logfile cfg/position1; getpos; resetLogfile;"
alias savePosition2 "con_logfile cfg/position2; getpos; resetLogfile;"
alias savePosition3 "con_logfile cfg/position3; getpos; resetLogfile;"
alias savePosition4 "con_logfile cfg/position4; getpos; resetLogfile;"
alias savePosition5 "con_logfile cfg/position5; getpos; resetLogfile;"[/code]
Here's where the error is occuring. con_logfile [i]must[/i] have the txt or log file extension (e.g [code]con_logfile cfg/test.txt[/code]) otherwise the logfile will not be created.
Here's a future list of rules with con_logfile (source: 2018 code leak of TF2):
[list]
[*] Newlines and carriage returns are not allowed.
[*] Network paths (\\), Absolute Paths (:), and the parent file path character (..) are not allowed.
[*] con_logfile [i]must[/i] have the txt or log file extension.
[/list][/quote]
Ty that fixed it!