LuaGetfile: Not Loading *\gamemode\cl_init.lua

So I’m building in cl_init.lua in my gamemode, but I seemed to have run into a problem.

When the map loads with my gamemode the following error appears in the console, and my HUD does not show up.

LuaGetfile: Not Loading Super Half-Life 64\gamemode\cl_init.lua
Couldn't include file 'Super Half-Life 64\gamemode\cl_init.lua' (File not found)
There was a problem opening the gamemode file 'Super Half-Life 64/gamemode/cl_init.lua'

I have tried adding a blank line to the start of each document, but other than that I have no where to go.

If anyone has had a similar problem please post your questions, and oh yeah here’s the code, it’s not much now:


include( ‘shared.lua’ )

local ExampleTexture = surface.GetTextureID( “SHL64/gui/melon.vtf” );

function PaintBoxToScreen()
local BoxSize = 128;
local Offset = BoxSize / 2;

surface.SetDrawColor( 255, 255, 255, 255 );
surface.SetTexture( ExampleTexture );
surface.DrawTexturedRect( ( ScrW() / 2 ) - Offset, ( ScrH() / 2 ) - Offset, BoxSize, BoxSize );


hook.Add( “HUDPaint”, “PaintBoxToScreen”, PaintBoxToScreen );

You cant have spaces in the gamemode folder name.

But shared.lua and init.lua work fine. Also the folders Spacebuild 2 and Spacebuild 3 BETA work fine, but I will give it a try.

[editline]2nd February 2011[/editline]

It works! Haha, please excuse my ignorance.