• Gamemode Fails
    6 replies, posted
Ok, I'm trying to make my own gamemode, because I tried using various others that wouldn't work how I wanted them to. So I'm making my own blah blah blah. Heres the problem at the moment, the client side HUD won't get networked variables that are set on the server, I know their set because when I run: [CODE]lua_run Msg(player.GetByID(1):GetNWString("unique_id"))[/CODE] In console I get an actual result thats valid. I'm not posting the whole damn code of each file on here, instead, heres a link to the google code area it's on. [url]http://code.google.com/p/gamemode-derp/source/browse/#svn/trunk/gamemode[/url] The HUD scripting is in cl_init.lua:105-109 and the networked variables are set in sh_player.lua:42-44 There is probably loads of useless code & unused crap, I'll clean it up & optimise it when it's working properly.
console > lua_run_cl Msg(player.GetByID(1):GetNWString("unique_id")) If it still shows the NWvar, there is something seriously wrong.
No variables seem to be accessible client side, not even through console. It's like they haven't transferred or something...
That's the 'beauty' of NWVars; I haven't used them in 2 months so I don't know why they wouldnt work. You should use usermessages instead. Sorry I can't be more useful :frown:.
I'm just trying that method. Am I right in thinking it may put some strain on network resources etc.
[QUOTE=mainman46;23937757]Am I right in thinking it may put some strain on network resources etc.[/QUOTE] Yes. :saddowns:
Shouldn't be too bad if I'm only calling it every so often, it won't be recurring at a regular interval.
Sorry, you need to Log In to post a reply to this thread.