Hi everyone, i'm very very new the the language of Lua and was wondering if you could take a look at this code and give me some pointers, I basically want to make a class system in where I can easily add people through the game modes commands, and would alter their stats and benefits in-game, anyway heres the code (sorry if it's the worst thing you've seen, like I said i'm new to this.)
local CLASS = {};
CLASS.wages = 200;
CLASS.color = Color(150, 125, 100, 255);
CLASS.factions = {FACTION_DONATOR};
CLASS.isDefault = false;
CLASS.wagesName = "Supplies";
CLASS.description = "The test subject of an Aperture Science experiment.";
CLASS.defaultPhysDesc = "Wearing tattered clothing";
CLASS_DONATOR = openAura.class:Register(CLASS, "Donator");
If you pay me I will do it
I thought Tech Support was what you paid Conna £150 for?
[QUOTE=King Flawless;30011215]If you pay me I will do it[/QUOTE]
Add me on Steam, paragonxv
[QUOTE=Dr Magnusson;30012080]I thought Tech Support was what you paid Conna £150 for?[/QUOTE]
That's exactly what I thought, you think for that much money you would receive better support, we got told to wait two weeks for a texture fix when all we had to do was add three letters to a file named wrong, on that note you'd think if you payed £150 they would at least name the bloody file right.
[QUOTE=Paragon;30012172]That's exactly what I thought, you think for that much money you would receive better support, we got told to wait two weeks for a texture fix when all we had to do was add three letters to a file named wrong, on that note you'd think if you payed £150 they would at least name the bloody file right.[/QUOTE]
An unsatisfied customer. I feel sorry for you, I really do.
[QUOTE=FlapadarV2;30012410]An unsatisfied customer. I feel sorry for you, I really do.[/QUOTE]
No.. it's fine..
[media]http://www.youtube.com/watch?v=EEs1GeaJvLg&t=7s[/media]
150£ and you get shit. Paragon, you should talk to Conna about that.
I agree. Paragon I think you should speak to Conna, you pay a lot of money but it has bugs?
Conna thinks he can sell OpenAura using the same marketing method as microsoft :v:
Woops, rated disagree. I wanted to rate funny. Sorry. :P
[QUOTE=Loures;30024813]Conna thinks he can sell OpenAura using the same marketing method as microsoft :v:[/QUOTE]
What's their method?
[QUOTE=nexusowner;30031108]What's their method?[/QUOTE]
Selling it as a beta riddled with bugs, and then claiming money gained goes towards development.
Now after a gmod patch we can't open entities and safeboxes...
[openaura\gamemode\openaura\sh_core.lua:1526] attempt to get length of field 'Panels' (a nil value)(Hook: KeyRelease)
[@openaura\gamemode\openaura\derma\cl_skin.lua:283] bad argument #1 to 'pairs' (table expected, got nil)
[@openaura\gamemode\openaura\derma\cl_skin.lua:283] bad argument #1 to 'pairs' (table expected, got nil)
[openaura\gamemode\openaura\sh_core.lua:1526] attempt to get length of field 'Panels' (a nil value)(Hook: KeyRelease)
[@openaura\gamemode\openaura\derma\cl_skin.lua:283] bad argument #1 to 'pairs' (table expected, got nil)
[@openaura\gamemode\openaura\derma\cl_skin.lua:283] bad argument #1 to 'pairs' (table expected, got nil)
[openaura\gamemode\openaura\sh_core.lua:1526] attempt to get length of field 'Panels' (a nil value)(Hook: KeyRelease)
[@openaura\gamemode\openaura\derma\cl_skin.lua:283] bad argument #1 to 'pairs' (table expected, got nil)
[openaura\gamemode\openaura\sh_core.lua:1526] attempt to get length of field 'Panels' (a nil value)(Hook: KeyRelease)
[@openaura\gamemode\openaura\derma\cl_skin.lua:283] bad argument #1 to 'pairs' (table expected, got nil)
[@openaura\gamemode\openaura\derma\cl_skin.lua:283] bad argument #1 to 'pairs' (table expected, got nil)
[openaura\gamemode\openaura\sh_core.lua:1526] attempt to get length of field 'Panels' (a nil value)(Hook: KeyRelease)
[@openaura\gamemode\openaura\derma\cl_skin.lua:283] bad argument #1 to 'pairs' (table expected, got nil)
[@openaura\gamemode\openaura\derma\cl_skin.lua:283] bad argument #1 to 'pairs' (table expected, got nil)
YAY FOR BUGS!!!
[img]http://chaoticsignal.com/sizer/510/510/image/facepalm/facepalm_picard.jpg[/img]
Cant blame conna for that one
[QUOTE=Paragon;30031835]Now after a gmod patch we can't open entities and safeboxes...
[openaura\gamemode\openaura\sh_core.lua:1526] attempt to get length of field 'Panels' (a nil value)(Hook: KeyRelease)
[@openaura\gamemode\openaura\derma\cl_skin.lua:283] bad argument #1 to 'pairs' (table expected, got nil)
[@openaura\gamemode\openaura\derma\cl_skin.lua:283] bad argument #1 to 'pairs' (table expected, got nil)
[openaura\gamemode\openaura\sh_core.lua:1526] attempt to get length of field 'Panels' (a nil value)(Hook: KeyRelease)
[@openaura\gamemode\openaura\derma\cl_skin.lua:283] bad argument #1 to 'pairs' (table expected, got nil)
[@openaura\gamemode\openaura\derma\cl_skin.lua:283] bad argument #1 to 'pairs' (table expected, got nil)
[openaura\gamemode\openaura\sh_core.lua:1526] attempt to get length of field 'Panels' (a nil value)(Hook: KeyRelease)
[@openaura\gamemode\openaura\derma\cl_skin.lua:283] bad argument #1 to 'pairs' (table expected, got nil)
[openaura\gamemode\openaura\sh_core.lua:1526] attempt to get length of field 'Panels' (a nil value)(Hook: KeyRelease)
[@openaura\gamemode\openaura\derma\cl_skin.lua:283] bad argument #1 to 'pairs' (table expected, got nil)
[@openaura\gamemode\openaura\derma\cl_skin.lua:283] bad argument #1 to 'pairs' (table expected, got nil)
[openaura\gamemode\openaura\sh_core.lua:1526] attempt to get length of field 'Panels' (a nil value)(Hook: KeyRelease)
[@openaura\gamemode\openaura\derma\cl_skin.lua:283] bad argument #1 to 'pairs' (table expected, got nil)
[@openaura\gamemode\openaura\derma\cl_skin.lua:283] bad argument #1 to 'pairs' (table expected, got nil)
YAY FOR BUGS!!!
[/QUOTE]
I just posted a fix for that one.
Navigate to openaura\gamemode\openaura\sh_core.lua and open your editor, I prefer Notepad++ as most do. Anything the code line numbers should work just fine.
Then, find line 1526. It should look like this:
[code]
local panel = menu.Panels[#menu.Panels];
[/code]
Change it to
[code]
local panel = nil;
[/code]
EDIT: That fixes the panels issue, anyways. The other one, not sure if it's related or not.
[QUOTE=Calmon;30051554]I just posted a fix for that one.
Navigate to openaura\gamemode\openaura\sh_core.lua and open your editor, I prefer Notepad++ as most do. Anything the code line numbers should work just fine.
Then, find line 1526. It should look like this:
[code]
local panel = menu.Panels[#menu.Panels];
[/code]
Change it to
[code]
local panel = nil;
[/code]
EDIT: That fixes the panels issue, anyways. The other one, not sure if it's related or not.[/QUOTE]
That fixed the panels thanks, well got rid of them lol, there's just this now,
[@openaura\gamemode\openaura\derma\cl_skin.lua:283] bad argument #1 to 'pairs' (table expected, got nil)(Hook: KeyRelease)
[
Which is the feature to open safeboxes and create characters if i'm right.
I like how people help without earn money, then I will get you a link to solve your problem. Here is your problem solved [url]http://www.facepunch.com/threads/1092374-OpenAura-help-(We-all-know-Conna-won-t-do-it-as-quickly-as-we-d-like)?p=30092018[/url]
I hope I help you (this thread help me as well)
Sorry, you need to Log In to post a reply to this thread.