TeamUlysses / ulib

ULib: A Lua library for more rapid development on Garry's Mod servers
http://ulyssesmod.net
Other
105 stars 55 forks source link

[ULib] RunConsoleCommand: Command is blocked! (exec) #61

Closed RalphORama closed 4 years ago

RalphORama commented 4 years ago

Steps to reproduce

  1. Create a cfg file in garrysmod/cfg (i.e. ttt.cfg)
  2. In a Lua script, run the code RunConsoleCommand("exec", "ttt.cfg")
  3. Error appears in console (see "Error(s) in server console" section)

Expected behavior

The console command exec ttt.cfg should execute without Ulib interference

Actual behavior

Execution is blocked

Error(s) in server console, if any

[ULib] RunConsoleCommand: Command is blocked! (exec)

  1. fn - addons/ttt_playercount_settings/lua/autorun/server/choose_config.lua:4
   2. unknown - lua/ulib/shared/hook.lua:109

Error(s) in player's console, if any

n/a

Version

ULib v2.63w
ULX v3.73w
Nayruden commented 4 years ago

This is a limitation in gmod and why we created a command to execute configs.

On Mon, Apr 20, 2020 at 18:50 Ralph Drake notifications@github.com wrote:

Steps to reproduce

  1. Create a cfg file in garrysmod/cfg (i.e. ttt.cfg)
  2. In a Lua script, run the code RunConsoleCommand("exec", "ttt.cfg")
  3. Error appears in console (see "Error(s) in server console" section)

Expected behavior

The console command exec ttt.cfg should execute without Ulib interference Actual behavior

Execution is blocked Error(s) in server console, if any

[ULib] RunConsoleCommand: Command is blocked! (exec)

  1. fn - addons/ttt_playercount_settings/lua/autorun/server/choose_config.lua:4
    1. unknown - lua/ulib/shared/hook.lua:109

Error(s) in player's console, if any

n/a Version

ULib v2.63w ULX v3.73w

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/TeamUlysses/ulib/issues/61, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAEBT2YIRN5D5K3XNTTTXDRNTGTLANCNFSM4MM2PGZQ .

RalphORama commented 4 years ago

This is a limitation in gmod and why we created a command to execute configs.

What is the command / Lua call? I'm paging through the Ulib documentation but don't see it.

Nayruden commented 4 years ago

http://ulyssesmod.net/docs/files/lua/ulib/shared/util-lua.html#execFile

On Mon, Apr 20, 2020 at 19:29 Ralph Drake notifications@github.com wrote:

This is a limitation in gmod and why we created a command to execute configs.

What is the command / Lua call? I'm paging through the Ulib documentation but don't see it.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/TeamUlysses/ulib/issues/61#issuecomment-616863472, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAEBTZGTTRI6SNUP6EYFEDRNTLD7ANCNFSM4MM2PGZQ .