LibertyForce-Gmod / Enhanced-PlayerModel-Selector

It's the playermodel selector from Sandbox... but better! And available everywhere!
7 stars 13 forks source link

TTT2 - Bad Argument to SetMDL is Breaking Round Timer #6

Open ninekirby opened 4 years ago

ninekirby commented 4 years ago

Heyo, been trying to play TTT2 with some friends while using this. It's worked excellently in the past. About a week or two ago, it started causing an error which, after the initial prep phase, entered another 5:00 prep phase where the timer would tick down but not cause anything to happen. Players could not damage anyone during this period.

I've included the error in text form and a screenshot below:

[Enhanced PlayerModel Selector] lua/autorun/lf_playermodel_selector.lua:290: bad argument #2 to 'SetMDL' (string expected, got nil)

  1. SetMDL - [C]:-1
    1. SetModel - lua/autorun/lf_playermodel_selector.lua:290
    2. SetRole - gamemodes/terrortown/gamemode/shared/sh_player_ext.lua:135
      1. SelectRoles - gamemodes/terrortown/gamemode/server/sv_roleselection.lua:525
      2. unknown - gamemodes/terrortown/gamemode/server/sv_main.lua:1160

Timer Failed! [prep2begin][@gamemodes/terrortown/gamemode/server/sv_main.lua (line 946)]

ttt2 enhanced playermodel selector error

ninekirby commented 4 years ago

Hey! I found a quick and easy, temporary workaround. Apparently both TTT and the EPMS use the same SetMDL function, which is what's causing problems at the start of the round. Setting ttt_enforce_playermodel to 0 in the console will disable TTT's playermodel enforcement, allowing one to use the playermodel selector without errors.