• Porting a gamemode
    32 replies, posted
Okay, I might know how to do this. In sh_init, do you include scoreboards, libraries and plugins? I assume SH stands for Shared, so in English that means that those are shared with players who join the server AND the server host, right? That might be why I'm not getting any HUDs when I start up the gamemode.
Okay I just got Notepad++ and here's what's happening. This error appears whenever I start up the gamemode: [lua][ERROR] gamemodes/cider/gamemode/cl_init.lua:549: function arguments expected near ',' 1. unknown - gamemodes/cider/gamemode/cl_init.lua:0 Couldn't Load Init Script: 'cider/gamemode/cl_init.lua' [/lua] So I go into notepad++ in cl_init.lua and go to line 549: [lua]if ( !self:IsUsingCamera, w, h ) then[/lua] Which is part of: [lua]-- Called every time the HUD should be painted. function GM:HUDPaint( w, h ) if ( !self:IsUsingCamera, w, h ) then self:DrawInformation(cider.configuration["Website URL"], "ChatFont", ScrW(), ScrH(), Color(255, 255, 255, 255), 255, true, function(x, y, width, height) return x - width - 8, y - height - 8; end);[/lua] IsUsingCamera is causing the problem here. Anyone know how to fix? I can't open any menus in the game because cl_init isn't being loaded. If I fix this error, it might load and then I can open the gamemode's menu. And if it helps, the gamemode is derived from Sandbox.
Bump. Anyone...?
Sorry, you need to Log In to post a reply to this thread.