Issue 227: "[ev_menu/tab_ranks.lua:23] attempt to index field '?' (a nil value)"
Status:  Started
Owner: ----
Reported by hans...@gmail.com, Sep 25, 2010
"[ev_menu/tab_ranks.lua:23] attempt to index field '?' (a nil value)" (only one and a half tabs show(on mac))
Jan 16, 2011
#1 Austech...@gmail.com
yea, I noticed this too, I was wondering if anyone looked into the code. I noticed Line 113 was erred aswell.
Jan 19, 2011
#2 puiterw...@gmail.com
The workaround for this problem is to set your rank to guest by console or other (super) admin/owner, and then back to owner, AFTER you have seen this error.

Maybe someone could use this to determine the error?
Jan 19, 2011
Project Member #3 overv161@gmail.com
How do you reproduce this?
Status: Started
Jan 19, 2011
#4 puiterw...@gmail.com
Just try to open the Evolve Admin Menu on the Mac OS X edition of Garry's Mod
Jan 19, 2011
Project Member #5 overv161@gmail.com
I don't have a Mac.
Jan 19, 2011
#6 puiterw...@gmail.com
Just say what you want me to test, and I'll be glad to help you.

Or do you want me to look into it and try to fix it?
Jan 19, 2011
Project Member #7 overv161@gmail.com
What do you do before opening the menu and making it error?
Jan 19, 2011
#8 puiterw...@gmail.com
I am promoted to Owner (or super admin, gets the same messages) and just press the key to which I bound the menu.

The same also happens if I'm an Owner or Super Admin at the moment I access the server.
Feb 1, 2011
#12 xFROzENFUSiONx
Just had this issue on a Mac as well.

Joined the server (owner rank), pressed my bind, spammed with this.  The menu is also missing the Bans and Ranks tabs I believe.
Feb 5, 2011
#13 puiterw...@gmail.com
Okay, I've fixed it.
It was because of the "vgui.create(): could not create EvolveButton" warnings.

A patch is attached which fixes this issue.

Or, if you are not familiar with patches, just open up addons/evolvemod/lua/autorun/client/ev_autorun.lua, and add 'include( "ev_menu/tab_players_controls.lua")' just before 'include( "ev_menu/cl_menu.lua" )'.

REMEMBER TO CHANGE THIS ON THE SERVER; The lua files from the server are the only ones that will be executed.

I hope this can be inserted in the SVN repository.
fix_error_evolvemod.diff
435 bytes   View   Download