Garry's Mod

Garry's Mod

You Touched it Last
 This topic has been pinned, so it's probably important
Zet0r  [developer] 18 Sep, 2015 @ 12:15pm
F.A.Q and Console Command List
What are the console commands available?
  • ytil_bombmintime [seconds]
    The minimum time the random timer can land on
  • ytil_bombmaxtime [seconds]
    The maximum time the random timer can land on. It will pick a number between this and the minimum after which the bomb will explode.
  • ytil_bombmanualenable [0/1]
    Enables/disables the bomb to be used in all other gametypes than the two bomb ones. It also uses the normal bombmaxtime and bombmintime to determine the time.
  • ytil_gametypecycle [1/0]
    Enables the cycling of gametypes following the table in customizeserver.lua. Setting this to 0 disables the cycling. It follows cycles through all gametypes that aren't infinite. You can edit the order, types, rounds, and bomb variables in customizeserver.lua.
  • ytil_bombshowtime [0/1]
    Enables/disables showing the time left on the bomb on the HUD.
  • ytil_runnermagic [0/1]
    Enables/disables regular runners to be able to use Magic to see the ball through walls (right-click).
  • ytil_postroundtime [seconds]
    Sets the time it takes before a new round begins after the round is done.
  • ytil_voteallowed [0/1]
    Enables/disables gametype voting (useful for server owners).
  • ytil_votepct [percent in decimal]
    Sets how many votes it takes to change gametype. It works by counting the votes at any time anyone votes, and if the vote count is above this percentage of the number of players, it will change. It subtracts votes on the current gametype.
  • ytil_afktime [seconds]
    Sets how many seconds of not moving causes you to move to Spectators. It only does this when the round restarts, so moving once secures you for the rest of the round. Setting to 0 disables this.
  • ytil_ballteletime [seconds]
    Sets how long time it will take to teleport your ball to your hand
  • ytil_preventsuicide [0/1]
    If set to 1, prevents players from suiciding.
  • ytil_startgametype [mode]
    Sets the mode the server will start at. It uses the number in the order they appear in the F1 menu and are described in the description.

    How can I change gametype?
    There's a couple ways to do it. The most obvious is using the F1-menu. To do this, you will first need to be a Super Admin, after which the Restart Round-button will appear. Click any gametype you want, then click that button. The other way to change is using the console command ytil_gametype followed by the number representing the gamemode (same order as the description of the workshop).

    Any useful tricks I probably didn't know?
    Judging from the Youtube videos and the comments, not many know that you can hold Right Click for 5 seconds (now changable with the convar) to teleport the ball back to you. Use this if it is out of the map. Another thing is that ball owners run slightly faster than normal runners.

    When I use the Bomb Time numbers in the F1-menu it doesn't change!
    Press Enter while still typing the numbers to send it to the server so it changes the convar values.

    How does ball teleporting work in Angelic?
    In Angelic, the black ball is teleported by the black player like normal. The white ball however works a bit differently. Right clicking and seeing the outline around it tells you its last owner. Only the last one to touch/throw the white ball can teleport it. However, if they are frozen, anyone can do it. In general, anyone can pick up the ball, so if you can't teleport it you can do it by picking it up normally and then throw it.

    Can I make/suggest my own gametypes?
    If you have the skill to make it, yes. I made it as simple as possible in gametypes.lua, where you can set functions such as OnPlayerHit and OnRoundBegin. It will automatically load this into the F1-menu as well. However I don't recommend customizing too much, as inconsistency between servers is bad.
    As to suggestions, I am always open to hear what people have to say. However it is unlikely I will add more gametypes as I feel that I don't want to oversaturate it. This all depends on how good the idea actually is.

    Halp! My server is spewing errors!
    It has come to my attention that some dedicated servers will not register the weapon, which will then chain into many other errors. Try and move your gamemode out of the addons folder and into the gamemodes folder. If it still doesn't work, use the bugs thread or add me.

    It keeps saying there's an update on the workshop!
    From my testing, the HTML fetching it uses to get the update date got a date in a time zone I'm not in. This leads me to assume it will universally pick this specific time zone. I removed the time and only look at the date, but it may still mismatch if you are in a date-shifting time zone. Check the change notes and see if you have the latest version. If so, ignore the message or send me feedback so I can improve it :)
Last edited by Zet0r; 26 Sep, 2015 @ 1:33pm
< >
Showing 1-15 of 22 comments
Killimanjaro117 24 Sep, 2015 @ 6:40pm 
could you add a way to choose who the next person in the death mode will be?
Zet0r  [developer] 26 Sep, 2015 @ 1:34pm 
Originally posted by Mr Jakkal:
could you add a way to choose who the next person in the death mode will be?
You can manually choose people for every role in the F1 menu if you are an admin. Just right click them and force them Ball Owners, and force the current one to Runner.
Fooxynn 27 Sep, 2015 @ 11:06am 
Where is the "costumizeserver.lua" file ?
Zet0r  [developer] 27 Sep, 2015 @ 11:43am 
Originally posted by 21399yoshi:
Where is the "costumizeserver.lua" file ?
Extract the gamemode .gma and it will be inside addons/you_touched_it_last/gamemodes/youtoucheditlast/costumizeserver.lua
Fooxynn 27 Sep, 2015 @ 12:28pm 
Originally posted by Zet0r:
Originally posted by 21399yoshi:
Where is the "costumizeserver.lua" file ?
Extract the gamemode .gma and it will be inside addons/you_touched_it_last/gamemodes/youtoucheditlast/costumizeserver.lua

Oh okay thanks, just search for "how extract .gma files".
:)

(for the black hole ball, can I pay you to unlock this ball on my server ?)
Last edited by Fooxynn; 27 Sep, 2015 @ 12:29pm
Zet0r  [developer] 27 Sep, 2015 @ 12:32pm 
Originally posted by 21399yoshi:
(for the black hole ball, can I pay you to unlock this ball on my server ?)
No, it's meant to be exclusive. Sorry, but I can't unlock something that has a certain condition for money xD
Fooxynn 27 Sep, 2015 @ 12:34pm 
Originally posted by Zet0r:
Originally posted by 21399yoshi:
(for the black hole ball, can I pay you to unlock this ball on my server ?)
No, it's meant to be exclusive. Sorry, but I can't unlock something that has a certain condition for money xD

I try ^^. Also, can I have your help to create another, I don't know how to do this.
Zet0r  [developer] 27 Sep, 2015 @ 12:37pm 
Originally posted by 21399yoshi:
I try ^^. Also, can I have your help to create another, I don't know how to do this.
It's all in the file, everything you need to know :P
(Of course excluding the basics of actually creating the texture, which has nothing to do with ytil itself, but with Source games in general.)
Fooxynn 27 Sep, 2015 @ 12:43pm 
Originally posted by Zet0r:
Originally posted by 21399yoshi:
I try ^^. Also, can I have your help to create another, I don't know how to do this.
It's all in the file, everything you need to know :P
(Of course excluding the basics of actually creating the texture, which has nothing to do with ytil itself, but with Source games in general.)

But I am not english ^^, hard to me...
And when I ask you to make tutorial video, you can also hide them, and give the (secret) link to me.

and...
"return ply.inYTLGroup" How I choose another group ?
Last edited by Fooxynn; 27 Sep, 2015 @ 12:44pm
Zet0r  [developer] 27 Sep, 2015 @ 2:13pm 
Originally posted by 21399yoshi:
"return ply.inYTLGroup" How I choose another group ?
It requires a little knowledge of Lua before you can mess with it. Basically "ply" is your player, and the word behind is a variable, the dot means it's stored on the player. Essentially I set this variable to true when a player joins the server. You can just use the ply:IsInSteamGroup(url) function to get steam groups.
girrrrrrr2 28 Sep, 2015 @ 1:34am 
I know this is dumb... but what do i put for the gamemode in the server.cfg?
Zet0r  [developer] 28 Sep, 2015 @ 6:15am 
Originally posted by girrrrrrr2:
I know this is dumb... but what do i put for the gamemode in the server.cfg?
It's always the name of the gamemode folder. In this case "youtoucheditlast"
girrrrrrr2 28 Sep, 2015 @ 12:29pm 
Strange, thats what i had, but its defaulting to sandbox.

Edit: Stranger, a few restarts fixed it.
Last edited by girrrrrrr2; 29 Sep, 2015 @ 9:12pm
Question:

I tried to do the commands in the server.cfg file but the console says "Unknown command: ytil_preventsuicide" and for all of the other commands. How do you change these values? Should I put them in autoexec.cfg, the .bat file for the server start, or what?
Zet0r  [developer] 8 Jan, 2017 @ 9:07am 
It should save so you should just be able to do it in the console once the server is up and running.
< >
Showing 1-15 of 22 comments
Per page: 1530 50