• Nutscript help! Error cl_init?
    12 replies, posted
Nutscript will not start, this is the error that pops up! Very confused.. Couldn't include file 'nutscript\gamemode\cl_init.lua' (File not found) (@gamemodes/clonewarsrp/gamemode/cl_init.lua (line 1)) Couldn't Load Init Script: 'nutscript/gamemode/cl_init.lua' [ERROR] gamemodes/clonewarsrp/gamemode/cl_init.lua:3: attempt to index global 'nut' (a nil value) 1. unknown - gamemodes/clonewarsrp/gamemode/cl_init.lua:3 Couldn't Load Init Script: 'clonewarsrp/gamemode/cl_init.lua' ERROR: Trying to derive entity obj_patrolpoint from non existant entity base_gmodentity! ERROR: Trying to derive entity rail_shell from non existant entity base_gmodentity! ERROR: Trying to derive entity obj_npcspawner from non existant entity base_gmodentity! ERROR: Trying to derive entity turret_40mm_frag from non existant entity base_gmodentity! ERROR: Trying to derive entity obj_viewcam from non existant entity base_gmodentity! Failed to load custom font file 'c:/program files (x86)/steam/steamapps/common/garrysmod/garrysmod/workshop/resource/fonts/aurebesh.ttf' Failed to load custom font file 'c:/program files (x86)/steam/steamapps/common/garrysmod/garrysmod/workshop/resource/fonts/ds-digii.ttf' Failed to load custom font file 'c:/program files (x86)/steam/steamapps/common/garrysmod/garrysmod/workshop/resource/fonts/fontello.ttf' Failed to load custom font file 'c:/program files (x86)/steam/steamapps/common/garrysmod/garrysmod/workshop/resource/fonts/mrb.ttf' Failed to load custom font file 'c:\program files (x86)\steam\steamapps\common\garrysmod\garrysmod\cache\workshop\resource\fonts\clearsans-medium.ttf' Unable to read particle definition particles/error.pcf! UtlBuffer is the wrong type! Compact freed 475136 bytes
Where did you get the gamemode from?
militaryrp [editline]19th July 2017[/editline] [QUOTE=code_gs;52487405]Where did you get the gamemode from?[/QUOTE] militaryrp [editline]19th July 2017[/editline] [QUOTE=code_gs;52487405]Where did you get the gamemode from?[/QUOTE] militaryrp
[QUOTE=code_gs;52487405][B]Where[/B][/QUOTE]
[QUOTE=code_gs;52487473][/QUOTE] [ERROR] gamemodes/clonewarsrp/gamemode/cl_init.lua:3: attempt to index global 'nut' (a nil value) 1. unknown - gamemodes/clonewarsrp/gamemode/cl_init.lua:3 From command line I got it from here: [url]https://github.com/HappyGoLucky1/militaryrp[/url]
The error is within the clonewarsrp gamemode...
This is whats in both the cl_init.lua and init.lua in the clonewarsrp gamemode: DeriveGamemode("nutscript") nut.schema.Init()
[QUOTE=FrugalBread;52487528]This is whats in both the cl_init.lua and init.lua in the clonewarsrp gamemode: DeriveGamemode("nutscript") nut.schema.Init()[/QUOTE] Are you trying to use the clonewarsrp or the militaryrp?...
[QUOTE=Wavie;52487547]Are you trying to use the clonewarsrp or the militaryrp?...[/QUOTE] the military rp is renamed by myself to clonewarsrp. Iam trying to use the name clonewarsrp
[QUOTE=FrugalBread;52487558]the military rp is renamed by myself to clonewars rp. Iam trying to use the name clonewarsrp[/QUOTE] Well for starters, you're going to have to do more than just rename the folder.
[QUOTE=Wavie;52487572]Well, you're going to have to do more than just rename the folder.[/QUOTE] I did do more, I renamed the text file within it. What else must I do?
[QUOTE=FrugalBread;52487581]I did do more, I renamed the text file within it. What else must I do?[/QUOTE] Try to go a bit further, bud. I wouldn't try to rename a previously developed gamemode if you don't know how.
[QUOTE=Wavie;52487585]Try to go a bit further, bud. I wouldn't try to rename a previously developed gamemode if you don't know how.[/QUOTE] Well this shouldn't be difficult. All I did was rename the folder, rename the txt file inside the folder, and renamed the unique id as seen here SCHEMA.uniqueID = "clonewarsrp" -- Schema will be a unique identifier stored in the database. -- Using a uniqueID will allow for renaming the schema folder. located in the sh_schema.lua. This isn't clockwork for christ sakes, I know this is something little and stupid thats preventing it from working.
Sorry, you need to Log In to post a reply to this thread.