• lua_openscript do nothing on my gmod server
    21 replies, posted
Hi, i have a very strange problem : lua_openscript do nothing on my gmod server My addons list : Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/atmos' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/fakedoors' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/fallout3_radio' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/fallout_clutter' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/fallout_enhanced_citizens_-_hexed_mixture_of_skins' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/fallout_enhanced_damage_addon' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/fallout_food_and_ammo_props' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/fallout_fortifications' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/fallout_jukebox_fallout3_addon' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/fallout_map_materials1' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/fallout_misc_props' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/fallout_perma_props' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/fallout_player_models_[requires_content]' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/fallout_power_armors' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/fallout_ragdolls' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/fallout_removeprops' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/fallout_suit_wearing_citizens' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/fallout_ulib' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/fallout_ulx' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/fallout_vault_props' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/map1' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/map10' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/map11' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/map12' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/map13' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/map14' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/map15' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/map16' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/map17' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/map18' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/map19' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/map2' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/map3' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/map4' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/map5' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/map6' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/map7' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/map8' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/map9' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/nuka_cola_ fallout4' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/stimpaks_revamped' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/tfa_assault' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/tfa_base' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/tfa_heavy_weapons' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/tfa_small_arms' Adding Filesystem Addon '/home/gmod/32952/garrysmod/addons/third_person_flashlight' Thanks for anwsering me !
- snip -
sv_allowcslua = 1 but sv_allowcslua is only for clientside scripts
How are you trying to use lua_openscript?
Pretty sure lua_openscript will only work from [b]servers[/b] console in case you are trying to use it like lua_openscript_cl which only works from client's console.
I use mlua_openscript like this : lua_openscript test.lua in the server console In lua/test.lua : print("Shrek")
Name your file something unique, I've had issues with "test.lua" before
I have named my script : iloveshrekandthekrabs.lua and when id do lua_openscript iloveshrekandthekrabs.lua the console don't print Shrek
Does it print anything?
-snip-
Hi, no code_gs PS : my server.cfg : net_maxfilesize 9999 sv_password 1980 sv_allowcslua 1 sv_allowdownload 0 sv_allowupload 0
FYI - net_maxfilesize caps at 64 and is ignored when sv_downloadurl is set (FastDL does not have file limits).
Ok thanks Banana Lord ! Help with lua_openscript?
The Lua file is located on the server, correct? And you're running lua_openscript from the SRCDS console, not your game, correct?
Yes
[QUOTE=SuperMicronde;52080313]Yes[/QUOTE] Then it should be working. Could you post the exact path to your lua file and exactly what you write in the console?
My file path : /garrysmod/lua/iloveshrekandthekrabs.lua In the console i write : lua_openscript iloveshrekandthekrabs.lua
Try typing lua_run print"Foo" into console and see if it prints.
you have to put it in your SERVER CONSOLE BLACK THING THAT OPENS WHEN U RUN SERVER not the "console" in ur game when u press ~
code_gs lua_run print'foo' is functionally, and bloodmasked i know, maybe the problem is from ULX or ULIB
where is your file located and what are you typing in console
My file path : /garrysmod/lua/iloveshrekandthekrabs.lua In the console i write : lua_openscript iloveshrekandthekrabs.lua
Sorry, you need to Log In to post a reply to this thread.