bad argument #1 to 'find' (string expected, got nil)
31 replies, posted
lua\includes\extensions\string.lua:33: bad argument #1 to 'find' (string expected, got nil)
i that some broken in Garry's Mod, or does it have something to do with my Gamemode ?
Its something to do with your gamemode
Ok thanks :)
what is the thing that noramlly cause this bug?
Your passing nil to string.Explode somewhere
what does that mean.. if you should explain that for some one who is not a coder.. ?
The error means a function got nil as one of the arguments when it wanted a string. A variable is nil if it doesn't exist.
Can we see some code?
i am trying to fix it.. :) i will post a reply in here if i need more help with it :D
[QUOTE=grunewald;23181754]i am trying to fix it.. :) i will post a reply in here if i need more help with it :D[/QUOTE]
Selfish we help you you don't share any code, maybe we/i should stop helping.
WTF are i am just saving you guys for more "work" sorry man.. but i like to do it on my own :)
Dont listen to him :/
[QUOTE=Willox;23184249]Dont listen to him :/[/QUOTE]
I am not listen him, and thanks for your support :)
[QUOTE=Willox;23184249]Dont listen to him :/[/QUOTE]
Won't need too, fact is your stupid and i won't be helping no more.
Calm down - he said he's going to try and fix it on his own, and ask us if he hits another wall. If anything it's good that he's trying to solve problems without instantly resorting to help.
Indeed. Don't listen to him; if he doesn't want to help, let him cry in a corner. If you need any more help, feel free to post.
i guys.. i found a older version on my PC so i work for that point where i di get .. :)
Is this error blue (server) or yellow (client)? Also, when exactly does this error come up - when the server appears, spammed when you hold a button down etc?
here is the console print when i use changegamemode rp_downtown_v2 undergroundrp
[code]
---- Host_Changelevel ----
CLIENT: 299 active EHandles!
SOLID_VPHYSICS static prop with no vphysics model! (models/props_lab/corkboard001.mdl)
Lua initialized (Lua 5.1)
KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file In
Users, (*admin*),
======== Installing Table (De)Serialiser Module | ver: 1.4 ========
======== Beam NetVars Lib v0.71 Installed ========
=== Loading Wire Menus ===
ERROR! Module 'zlib_b64' not found!
==== Advanced Duplicator v.1.72 shared module installed! ====
Added EntCheckHook: AdvDupe_NoItems
Added EntCheckHook: AdvDupe_DisallowedClasses
Added EntCheckHook: AdvDupe_ModelCheck
==== Advanced Duplicator v.1.84 server module installed! ====
lua\includes\extensions\string.lua:33: bad argument #1 to 'find' (string expected, got nil)
Registering gamemode 'sandbox' derived from 'base'
Registering gamemode 'undergroundrp' derived from 'sandbox'
ScriptEnforce: We are protected.
Loading Wire Tools
...ire\lua\entities\gmod_wire_expression2\core\init.lua:49: attempt to index field 'DT' (a nil value)
...ire\lua\entities\gmod_wire_expression2\core\init.lua:49: attempt to index field 'DT' (a nil value)
...ire\lua\entities\gmod_wire_expression2\core\init.lua:49: attempt to index field 'DT' (a nil value)
...ire\lua\entities\gmod_wire_expression2\core\init.lua:49: attempt to index field 'DT' (a nil value)
...ire\lua\entities\gmod_wire_expression2\core\init.lua:49: attempt to index field 'DT' (a nil value)
...ire\lua\entities\gmod_wire_expression2\core\init.lua:49: attempt to index field 'DT' (a nil value)
...ire\lua\entities\gmod_wire_expression2\core\init.lua:49: attempt to index field 'DT' (a nil value)
...ire\lua\entities\gmod_wire_expression2\core\init.lua:49: attempt to index field 'DT' (a nil value)
...ire\lua\entities\gmod_wire_expression2\core\init.lua:49: attempt to index field 'DT' (a nil value)
...ire\lua\entities\gmod_wire_expression2\core\init.lua:49: attempt to index field 'DT' (a nil value)
...ire\lua\entities\gmod_wire_expression2\core\init.lua:49: attempt to index field 'DT' (a nil value)
...ire\lua\entities\gmod_wire_expression2\core\init.lua:49: attempt to index field 'DT' (a nil value)
Compressing lua files into data pack..
Skipped. Datapack exists.
Executing listen server config file
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
exec: couldn't exec listenserver.cfg
[L] UnderGroundRP
Map: rp_downtown_v2
Players: 1 / 8
Build: 4231
Server Number: 23
No pure server whitelist. sv_pure = 0
InitFastCopy: only 51% fast props. Bug?
Decompressing data pack into virtual file system..
Data pack loaded: 767 files. (0.679s)
Lua initialized (Lua 5.1)
======== Beam NetVars Lib v0.71 Installed ========
======== Installing Table (De)Serialiser Module | ver: 1.4 ========
Ignoring autorun\opcodes.lua because SE is on and it's not in the VFS
=== Loading Wire Menus ===
Ignoring autorun\clock.lua because SE is on and it's not in the VFS
Ignoring autorun\phx_content.lua because SE is on and it's not in the VFS
Ignoring autorun\Sickness.lua because SE is on and it's not in the VFS
Ignoring autorun\tf_concommands.lua because SE is on and it's not in the VFS
Ignoring autorun\tf_gm_hooks.lua because SE is on and it's not in the VFS
Ignoring autorun\tf_npc_spawnmenu.lua because SE is on and it's not in the VFS
Ignoring autorun\opcodes.lua because SE is on and it's not in the VFS
Ignoring autorun\WiremodAdmin.lua because SE is on and it's not in the VFS
ERROR! Module 'zlib_b64' not found!
RunConsoleCommand blocked - sent before player spawned (ZLib_Installed)
==== Advanced Duplicator v.1.72 shared module installed! ====
==== Advanced Duplicator v.1.741 client module installed! ====
--- Missing Vgui material modelsduckehuttons
=== Loading Wire Model Packs ===
Loaded: PHXWireModels.txt
Loaded: default.txt
Loaded: expression2.txt
Loaded: cheeze_buttons2.txt
Loaded: wire_model_pack_1.txt
Loaded: wire_model_pack_1plus.txt
Adding Cheeze's Buttons Pack
Jaanus' Thruster Pack
Beer's Model pack
loading materials
loading material: cable/rope_icon
loading material: cable/cable2
loading material: cable/xbeam
loading material: cable/redlaser
loading material: cable/blue_elec
loading material: cable/physbeam
loading material: cable/hydra
loading material: arrowire/arrowire
loading material: arrowire/arrowire2
Registering gamemode 'sandbox' derived from 'base'
Registering gamemode 'undergroundrp' derived from 'sandbox'
Loading Wire Tools
Ignoring weapons\weapon_real_base_reddot\cl_init.lua because SE is on and it's not in the VFS
Ignoring weapons\smexyarrow\shared.lua because SE is on and it's not in the VFS
Ignoring weapons\remotecontroller\shared.lua because SE is on and it's not in the VFS
Ignoring entities\gmod_wire_expression\parser.lua because SE is on and it's not in the VFS
Ignoring entities\gmod_wire_fx_emitter\fx_default.lua because SE is on and it's not in the VFS
KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file settings/spawnlist/nova_props.txt
0, (*Entries*), (*7*), (*8*),
KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file settings/spawnlist/teletubbies_hl2mp.txt
1, (*Entries*), (*4*),
KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file settings/spawnlist/[phx]super flat bars.txt
SpawnMenu, (*Entries*),
KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file settings/spawnlist/[phx]super flat plates.txt
SpawnMenu, (*Entries*),
KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file settings/spawnlist/[phx]super flat tris.txt
SpawnMenu, (*Entries*),
Sending 916 'User Info' ConVars to server (cl_spewuserinfoconvars to see)
Creating money account for: Grunewald
AdvDupeShared: Server Compression: false
--- Missing Vgui material texturemissing
Redownloading all lightmaps
[/code]
this is blue ..
[code]
lua\includes\extensions\string.lua:33: bad argument #1 to 'find' (string expected, got nil)
[/code]
wanna se the code.. ?
Yes.
How many times do we have to ask you to let us see the code? we cant fix it if we dont have it.
can it be something like this
[lua]
local current = tonumber( pl:GetPData( "inv_pistol_ammo" ) )
if current > 0 then
[/lua]
No, look for string.Explode
there is none in my script.. :(
i did use the search function in Notepad++.. was searching for Explode
[QUOTE=grunewald;23206381]there is none in my script.. :(
i did use the search function in Notepad++.. was searching for Explode[/QUOTE]
That error says otherwise
.. so you say that first time i every did see the text string.Explode was in here and then i did in some random way add for my script? LOL :)
well the string.Explode thing is NOT in my gamemode. is it possible at there is ohter reason?
[QUOTE=grunewald;23206982].. so you say that first time i every did see the text string.Explode was in here and then i did in some random way add for my script? LOL :)
well the string.Explode thing is NOT in my gamemode. is it possible at there is ohter reason?[/QUOTE]
If the error causes your gamemode not to load correct then its in your gamemode if not it could be in an addon or another lua file in lua/autorun
Well, the actual function where it's going wrong is string.find, so do you have that in your code anywhere?
I just run this command changegamemode rp_downtown_v2 sandbox
this is the console print
[code]
changegamemode rp_downtown_v2 sandbox
---- Host_Changelevel ----
SOLID_VPHYSICS static prop with no vphysics model! (models/props_lab/corkboard001.mdl)
Lua initialized (Lua 5.1)
KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file In
Users, (*admin*),
======== Installing Table (De)Serialiser Module | ver: 1.4 ========
======== Beam NetVars Lib v0.71 Installed ========
=== Loading Wire Menus ===
ERROR! Module 'zlib_b64' not found!
==== Advanced Duplicator v.1.72 shared module installed! ====
Added EntCheckHook: AdvDupe_NoItems
Added EntCheckHook: AdvDupe_DisallowedClasses
Added EntCheckHook: AdvDupe_ModelCheck
==== Advanced Duplicator v.1.84 server module installed! ====
lua\includes\extensions\string.lua:33: bad argument #1 to 'find' (string expected, got nil)
Registering gamemode 'sandbox' derived from 'base'
ScriptEnforce: We are protected.
Loading Wire Tools
...ire\lua\entities\gmod_wire_expression2\core\init.lua:49: attempt to index field 'DT' (a nil value)
...ire\lua\entities\gmod_wire_expression2\core\init.lua:49: attempt to index field 'DT' (a nil value)
...ire\lua\entities\gmod_wire_expression2\core\init.lua:49: attempt to index field 'DT' (a nil value)
...ire\lua\entities\gmod_wire_expression2\core\init.lua:49: attempt to index field 'DT' (a nil value)
...ire\lua\entities\gmod_wire_expression2\core\init.lua:49: attempt to index field 'DT' (a nil value)
...ire\lua\entities\gmod_wire_expression2\core\init.lua:49: attempt to index field 'DT' (a nil value)
...ire\lua\entities\gmod_wire_expression2\core\init.lua:49: attempt to index field 'DT' (a nil value)
...ire\lua\entities\gmod_wire_expression2\core\init.lua:49: attempt to index field 'DT' (a nil value)
...ire\lua\entities\gmod_wire_expression2\core\init.lua:49: attempt to index field 'DT' (a nil value)
...ire\lua\entities\gmod_wire_expression2\core\init.lua:49: attempt to index field 'DT' (a nil value)
...ire\lua\entities\gmod_wire_expression2\core\init.lua:49: attempt to index field 'DT' (a nil value)
...ire\lua\entities\gmod_wire_expression2\core\init.lua:49: attempt to index field 'DT' (a nil value)
Compressing lua files into data pack..
Skipped. Datapack exists.
Executing listen server config file
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
exec: couldn't exec listenserver.cfg
[L] Sandbox
Map: rp_downtown_v2
Players: 1 / 8
Build: 4231
Server Number: 10
No pure server whitelist. sv_pure = 0
InitFastCopy: only 51% fast props. Bug?
Decompressing data pack into virtual file system..
Data pack loaded: 748 files. (0.637s)
Lua initialized (Lua 5.1)
======== Beam NetVars Lib v0.71 Installed ========
======== Installing Table (De)Serialiser Module | ver: 1.4 ========
Ignoring autorun\opcodes.lua because SE is on and it's not in the VFS
=== Loading Wire Menus ===
Ignoring autorun\clock.lua because SE is on and it's not in the VFS
Ignoring autorun\phx_content.lua because SE is on and it's not in the VFS
Ignoring autorun\Sickness.lua because SE is on and it's not in the VFS
Ignoring autorun\tf_concommands.lua because SE is on and it's not in the VFS
Ignoring autorun\tf_gm_hooks.lua because SE is on and it's not in the VFS
Ignoring autorun\tf_npc_spawnmenu.lua because SE is on and it's not in the VFS
Ignoring autorun\opcodes.lua because SE is on and it's not in the VFS
Ignoring autorun\WiremodAdmin.lua because SE is on and it's not in the VFS
ERROR! Module 'zlib_b64' not found!
RunConsoleCommand blocked - sent before player spawned (ZLib_Installed)
==== Advanced Duplicator v.1.72 shared module installed! ====
==== Advanced Duplicator v.1.741 client module installed! ====
--- Missing Vgui material modelsduckehuttons
=== Loading Wire Model Packs ===
Loaded: PHXWireModels.txt
Loaded: default.txt
Loaded: expression2.txt
Loaded: cheeze_buttons2.txt
Loaded: wire_model_pack_1.txt
Loaded: wire_model_pack_1plus.txt
Adding Cheeze's Buttons Pack
Jaanus' Thruster Pack
Beer's Model pack
loading materials
loading material: cable/rope_icon
loading material: cable/cable2
loading material: cable/xbeam
loading material: cable/redlaser
loading material: cable/blue_elec
loading material: cable/physbeam
loading material: cable/hydra
loading material: arrowire/arrowire
loading material: arrowire/arrowire2
Registering gamemode 'sandbox' derived from 'base'
Loading Wire Tools
Ignoring weapons\weapon_real_base_reddot\cl_init.lua because SE is on and it's not in the VFS
Ignoring weapons\smexyarrow\shared.lua because SE is on and it's not in the VFS
Ignoring weapons\remotecontroller\shared.lua because SE is on and it's not in the VFS
Ignoring entities\gmod_wire_expression\parser.lua because SE is on and it's not in the VFS
Ignoring entities\gmod_wire_fx_emitter\fx_default.lua because SE is on and it's not in the VFS
KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file settings/spawnlist/nova_props.txt
0, (*Entries*), (*7*), (*8*),
KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file settings/spawnlist/teletubbies_hl2mp.txt
1, (*Entries*), (*4*),
KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file settings/spawnlist/[phx]super flat bars.txt
SpawnMenu, (*Entries*),
KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file settings/spawnlist/[phx]super flat plates.txt
SpawnMenu, (*Entries*),
KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file settings/spawnlist/[phx]super flat tris.txt
SpawnMenu, (*Entries*),
Sending 916 'User Info' ConVars to server (cl_spewuserinfoconvars to see)
AdvDupeShared: Server Compression: false
--- Missing Vgui material texturemissing
Redownloading all lightmaps
[/code]
EDIT:
so much fail, it was not mine gamemode, but sandbox.
my gamemode do DeriveGamemode("sandbox")
EDIT:
Gonna delete all the autorun things i have.. maybe that fix it :)
[QUOTE=MegaJohnny;23207152]Well, the actual function where it's going wrong is string.find, so do you have that in your code anywhere?[/QUOTE]
string.Explode uses string.find the error is due to string.Explode being sent a nil value
[editline]07:18PM[/editline]
[QUOTE=grunewald;23207202]
so much fail, it was not mine gamemode, but sandbox.
my gamemode do DeriveGamemode("sandbox")
[/QUOTE]
Sandboxs works fine stop trying to blame your errors on it
Looking at the console log it seems to be Wire, as your gamemode is loading fine.
Registering gamemode 'undergroundrp' derived from 'sandbox'
yea i am gotta get the newst wire now
[editline]08:15PM[/editline]
lol i am sorry for all this, after installing the alpha updated wire i got this when i use changegamemode
[code]
---- Host_Changelevel ----
SOLID_VPHYSICS static prop with no vphysics model! (models/props_lab/corkboard001.mdl)
Lua initialized (Lua 5.1)
KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file In
Users, (*admin*),
================================
=== Wire 2137 (exported) Installed ===
================================
ERROR! Module 'zlib_b64' not found!
Registering gamemode 'sandbox' derived from 'base'
Registering gamemode 'undergroundrp' derived from 'sandbox'
ScriptEnforce: We are protected.
Compressing lua files into data pack..
Skipped. Datapack exists.
Executing listen server config file
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
exec: couldn't exec listenserver.cfg
[L] UnderGroundRP
Map: rp_downtown_v2
Players: 1 / 8
Build: 4231
Server Number: 3
No pure server whitelist. sv_pure = 0
InitFastCopy: only 51% fast props. Bug?
Decompressing data pack into virtual file system..
Data pack loaded: 788 files. (0.770s)
Lua initialized (Lua 5.1)
--- Missing Vgui material ignore_this_error
Ignoring autorun\phx_content.lua because SE is on and it's not in the VFS
Ignoring autorun\tf_concommands.lua because SE is on and it's not in the VFS
Ignoring autorun\tf_gm_hooks.lua because SE is on and it's not in the VFS
Ignoring autorun\tf_npc_spawnmenu.lua because SE is on and it's not in the VFS
ERROR! Module 'zlib_b64' not found!
Registering gamemode 'sandbox' derived from 'base'
Registering gamemode 'undergroundrp' derived from 'sandbox'
--- Missing Vgui material texturemissing
Ignoring weapons\weapon_real_base_reddot\cl_init.lua because SE is on and it's not in the VFS
KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file settings/spawnlist/nova_props.txt
0, (*Entries*), (*7*), (*8*),
KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file settings/spawnlist/teletubbies_hl2mp.txt
1, (*Entries*), (*4*),
KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file settings/spawnlist/[phx]super flat bars.txt
SpawnMenu, (*Entries*),
KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file settings/spawnlist/[phx]super flat plates.txt
SpawnMenu, (*Entries*),
KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file settings/spawnlist/[phx]super flat tris.txt
SpawnMenu, (*Entries*),
Sending 954 'User Info' ConVars to server (cl_spewuserinfoconvars to see)
Creating money account for: Grunewald
================================
=== Wire revision: 0 ===
=== Local Wire revision:0 ===
================================
Redownloading all lightmaps
[/code]
Sorry, you need to Log In to post a reply to this thread.