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) [cpp] 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” );
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 );