lua_modules seems to crop at 64 chars

Discussion for any ET/ETPro/BayonET bugs or cheats you find...

Moderators: Forum moderators, developers

Post Reply
Major Zeman
Posts: 16
Joined: Tue Mar 20, 2007 1:37 am
Location: Czech Republic
Contact:

lua_modules seems to crop at 64 chars

Post by Major Zeman »

Hi,

I've encountered a weird problem when adding yet another lua mod to my server:
my config wrote: setl lua_modules "TJmod_mz.lua adrenaline.lua refmon.lua combinedfixes.lua rules.lua"
//setl lua_modules "TJmod.lua adrenaline.lua"
setl lua_allowedmodules ""
Previously the "rules.lua" wasn't in that line. When I added it, it didn't load, and the game reports
server console wrote:etpro: Loading TJmod_mz.lua
etpro: Loading adrenaline.lua
etpro: Loading refmon.lua
etpro: Loading combinedfixes.lua
etpro: etpro_LoadLuaVM Cannot find rules.llua_allowedmodules
etpro: Unable to load [rules.llua_allowedmodules] into lua VM
Also, when I check the cvar lua_modules, I get
lua_modules wrote:"lua_modules" is:"TJmod_mz.lua adrenaline.lua refmon.lua combinedfixes.lua rules.llua_allowedmodules" default:""
And another weird thing gets reported to the connected client:
client console wrote:etpro: lua_modules server CVAR violation - [TJmod_mz.lua adrenaline.lua refmon.lua combinedfixes.lua rules.lua] should be [TJmo
(message arrives cropped unfortunately).
lua > me
McSteve
Posts: 113
Joined: Tue Sep 12, 2006 7:41 am

Post by McSteve »

Yes, myself and others have encountered this before. Unfortunately when you get to so many lua modules the only thing you can do short of combining them is to rename them so the line is shorter.

However, this looks like a typo:
etpro: Unable to load [rules.llua_allowedmodules] into lua VM
(should be "rules.lua" surely)
GhosT:McSteve
Ghostworks Gaming Community
Major Zeman
Posts: 16
Joined: Tue Mar 20, 2007 1:37 am
Location: Czech Republic
Contact:

Post by Major Zeman »

Yeah looks like a typo but it's not. The config is as posted above and Im sure it's using it. If I add two spaces before the "rules.lua" part, I end up with this message:
console wrote:etpro: Loading TJmod_mz.lua
etpro: Loading adrenaline.lua
etpro: Loading refmon.lua
etpro: Loading combinedfixes.lua
etpro: etpro_LoadLuaVM Cannot find ruleslua_allowedmodules
etpro: Unable to load [ruleslua_allowedmodules] into lua VM
See? The ".l" got eaten from there and name of succeeding cvar in alphabetical order is leaking into it.
lua > me
Major Zeman
Posts: 16
Joined: Tue Mar 20, 2007 1:37 am
Location: Czech Republic
Contact:

Post by Major Zeman »

Okay I followed the hint given by client message I posted, and I found out something more:

if I set the cvar instead of setl, it works:

Code: Select all

    set lua_modules "TJmod_mz.lua adrenaline.lua refmon.lua combinedfixes.lua rules.lua"
That leads me to theory that it's the setl mechanism what's messing it up - the client message supports that, it looks like the cvar gets set in warmup, the setl messes it up, and when the config tries to set the cvar in round start the SERVER CVAR VIOLATION causes it to revert to the messed up form.
lua > me
User avatar
ReyalP
Posts: 1663
Joined: Fri Jul 25, 2003 11:44 am

Post by ReyalP »

Yes, setl restrictions is currently limited to 64 chars (or maybe 63). The only place this should really be an issue is certified configs, in which case, you will need to combine all your modules into one. Otherwise, just use set instead of setl.

This is a known problem which should be addressed in a future version.
send lawyers, guns and money
Major Zeman
Posts: 16
Joined: Tue Mar 20, 2007 1:37 am
Location: Czech Republic
Contact:

Post by Major Zeman »

Okay

/resolution duplicate
/close_bug
lua > me
Post Reply