[video=youtube;m1qigz1MP1Y]http://www.youtube.com/watch?v=m1qigz1MP1Y[/video]
I'm not sure if this only on the HL2 schema or basicly the framework.
I can't get faction colours to work at all! I have 8 factions and the faction colours keep turning the same!
3 of my factions turned green and the rest turned orange despite them all having different colours codes!
For e.g.
[QUOTE]FACTION.color = Color(225, 0, 0)[/QUOTE][B]
came out green[/B]
[QUOTE]FACTION.color = Color(60, 63, 57)[/QUOTE]
[B]came out orange[/B]
and my personnel favourite
[QUOTE]FACTION.color = Color(128, 128, 128)[/QUOTE]
[B]Came out pink[/B]
Am I doing something wrong?
[QUOTE=imacc2009;45607406]Will schemas built on the current version of NS work with NS1.1?[/QUOTE]
They will require converting.
[QUOTE=Nope guy;45607740][video=youtube;m1qigz1MP1Y]http://www.youtube.com/watch?v=m1qigz1MP1Y[/video]
I'm not sure if this only on the HL2 schema or basicly the framework.[/QUOTE]
Happens to me, too, and my schema is based on 'sample', so yes, it's not just HL2RP.
Yo, Chessnut, Can I edit itemTable entries from an item inside the items base? Essentially trying to create a menu to edit the name, description, and the data from the data table inside the item, from the base.
Recently set up a Nutscript server using the HL2 Schema created by Chessnut. (Thank you Chessnut), but I'm getting a script error. This began happening after I removed all my addons and gamemodes besides the map, the schema, and the Nutscript Master from the server files. This is the error.
[code]
[ERROR] gamemodes/nutscript/gamemode/core/cl_hooks.lua:168: attempt to call method 'PaintWorldTips' (a nil value)
1. unknown - gamemodes/nutscript/gamemode/core/cl_hooks.lua:168 [/code]
If anyone could help that'd be appreciated.
EDIT: Fixed it by setting up a completely new server. Now I'm just wondering how to go up in classes. In the HL2 RP I only know how to get to the earliest class in each faction where applicable. Thanks in advance.
Did you happen to remove the base and/or sandbox gamemode?
[QUOTE=Chessnut;45621008]Did you happen to remove the base and/or sandbox gamemode?[/QUOTE]
Yeah. I did. You responded just as I was editing the post. Thanks though.
I feel guilty for posting so much, but how do you rank up in terms of faction classes?
I can make it to CP-Recruit but no further. Is there a timer? A command? Any sort of trigger?
EDIT: Figured it out, I think I should be good for a while, Thanks so much for the script, the schemas, and all, You're all great people!
-snip-
Hello. what the hell brothers? After fresh install of NS
[CODE][ERROR] gamemodes/nutscript/gamemode/derma/cl_inventory.lua:53: attempt to index local 'itemTable' (a nil value)
1. Init - gamemodes/nutscript/gamemode/derma/cl_inventory.lua:53
2. Create - lua/includes/extensions/client/panel/scriptedpanels.lua:153
3. OnClick - gamemodes/nutscript/gamemode/derma/cl_menu.lua:103
4. DoClick - gamemodes/nutscript/gamemode/derma/cl_menubutton.lua:30
5. unknown - lua/vgui/dlabel.lua:206[/CODE]
[QUOTE=thexant;45624577]I feel guilty for posting so much, but how do you rank up in terms of faction classes?
I can make it to CP-Recruit but no further. Is there a timer? A command? Any sort of trigger?
EDIT: Figured it out, I think I should be good for a while, Thanks so much for the script, the schemas, and all, You're all great people![/QUOTE]
Mind sharing?
-snip-
[QUOTE=steamchild;45658967]Hello. what the hell brothers? After fresh install of NS
[CODE][ERROR] gamemodes/nutscript/gamemode/derma/cl_inventory.lua:53: attempt to index local 'itemTable' (a nil value)
1. Init - gamemodes/nutscript/gamemode/derma/cl_inventory.lua:53
2. Create - lua/includes/extensions/client/panel/scriptedpanels.lua:153
3. OnClick - gamemodes/nutscript/gamemode/derma/cl_menu.lua:103
4. DoClick - gamemodes/nutscript/gamemode/derma/cl_menubutton.lua:30
5. unknown - lua/vgui/dlabel.lua:206[/CODE][/QUOTE]
Okay, i figured it out) By fresh install(second)
[editline]12th August 2014[/editline]
I have problem with TalkerNpc plugin and Quest Plugin. [B]1[/B] Talker not saves after server restart - entity of talker at the same location, but no settings(model, dialogue and with who he talk) not saves. [B]2[/B] Quest\journal plugin not working or i dont understand how he works. I see it in the list in the game, but don `t know how to use it.
In server console i have this
[IMG]http://i.gyazo.com/e4ef29d84c723ab698531ec09e1515b5.png[/IMG]
So uhh. I've been trying to use the plugins for the hl2rp schema. Most of them don't work for me for some reason, or they don't include the models/materials required. Am I doing something wrong?
[QUOTE=RonanZer0;45613895]Happens to me, too, and my schema is based on 'sample', so yes, it's not just HL2RP.[/QUOTE]
This happens on a server I play on, the character usually disappears the next time you connect. Not sure if this will work for you though
[code][ERROR] gamemodes/nutscript/gamemode/derma/cl_scoreboard.lua:58: table index is nil
1. PopulateList - gamemodes/nutscript/gamemode/derma/cl_scoreboard.lua:58
2. Init - gamemodes/nutscript/gamemode/derma/cl_scoreboard.lua:32
3. Create - lua/includes/extensions/client/panel/scriptedpanels.lua:153
4. unknown - gamemodes/nutscript/gamemode/derma/cl_scoreboard.lua:207[/code]
Any clue as to what I should do? I open up the scoreboard and get this script error then the scoreboard presents a mostly empty box and stays that way even on Garry's Mod's menu.
[QUOTE=ReapDaWrapper;45668657]Mind sharing?
-snip-[/QUOTE]
Not sure if you're snipping the inability to see SeC or the inability to change class. To change class just edit the RCT in their name to whatever rank you want.
To see SeC? Well that I don't know.
[QUOTE=thexant;45674674]Not sure if you're snipping the inability to see SeC or the inability to change class. To change class just edit the RCT in their name to whatever rank you want.
To see SeC? Well that I don't know.[/QUOTE]
I figured out both things! My problem now is the plugins provided on the github. For example, the moreweapons one has working weapons, but no models. I have no idea what's up with civil workers union either, but I get a lot of script errors from it. I could make my own whitelisted faction, but how can I allow multiple models to select from on character creation?
Also it shows 3DText as a plugin, but I have no clue what the commands are for that as they aren't listed anywhere. I'm assuming it's something similar to clockwork's 3d text.
[QUOTE=ReapDaWrapper;45676036]I figured out both things! My problem now is the plugins provided on the github. For example, the moreweapons one has working weapons, but no models. I have no idea what's up with civil workers union either, but I get a lot of script errors from it. I could make my own whitelisted faction, but how can I allow multiple models to select from on character creation?
Also it shows 3DText as a plugin, but I have no clue what the commands are for that as they aren't listed anywhere. I'm assuming it's something similar to clockwork's 3d text.[/QUOTE]
Well from what I hear the Civil Workers Union plugin is just broken in general. It doesn't work for me either. Either that or we're installing it wrong somehow. I don't know what to do about the missing models though.
[QUOTE=thexant;45676148]Well from what I hear the Civil Workers Union plugin is just broken in general. It doesn't work for me either. Either that or we're installing it wrong somehow. I don't know what to do about the missing models though.[/QUOTE]
Ah well that would explain the CWU. I have little to no experience in lua or scripting languages whatsoever, but just skimming through the configs and lua files I've been able to self-diagnose a lot of problems which is really nice. As for the models (for moreweapons plugin at least), It looks like the only thing the plugin contains is just script. No models/materials/sounds. So either it's supposed to have the models and something broke, or it's expecting me to already have the content loaded when I don't see anything telling me where the content is from. The melee weapon scripts point to models ported from warz. The extra firearms like the mp5k, ar3car, and sniper(is it combine sniper?) do not really point in any direction where they're from.
Aside from those few problems, I'm wondering how I can implement a faction that allows you to select from a range of models on character creation? Like I said, I don't really know lua, but I don't see anything in sh_citizen.lua and I've been scrolling through the schema configs to see anything in reference.
Hi, due the forum is broken I will ask some about charvars here.
How can I make a char var? I'm trying put in Schema the following lines:
[QUOTE]function SCHEMA:CreateCharVars(character)
character:NewVar("homeid", 0, CHAR_PRIVATE)
character:NewVar("localid", 0, CHAR_PRIVATE)
end[/QUOTE]
But it always send me that back:
[QUOTE]Query Error: UPDATE characters SET 'faction' = 3, 'money' = 3497, 'chardata' = '~"attrib_acrv":n9.7250000000002;"idv":n2511860687;"attrib_spdv":n6.525;"classv":n1;"attrib_endv":n8.05;"digitsv":"97925v""flagsv":"pttccenprtv""attrib_strv":n5.208;"ammov":{}', 'gender' = 'male', 'inv' = '', 'localid' = 0, 'model' = 'models/police.mdl', 'charname' = 'UPC-SeC.032', 'description' = 'TEST' WHERE steamid = 76561198022628061 AND id = 1 AND rpschema = 'hl2rp'
no such column: localid[/QUOTE]
Im not working with mysql module right now, I'm using SQLite for developing. That can be the fault?
[QUOTE=ReapDaWrapper;45676281]Ah well that would explain the CWU. I have little to no experience in lua or scripting languages whatsoever, but just skimming through the configs and lua files I've been able to self-diagnose a lot of problems which is really nice. As for the models (for moreweapons plugin at least), It looks like the only thing the plugin contains is just script. No models/materials/sounds. So either it's supposed to have the models and something broke, or it's expecting me to already have the content loaded when I don't see anything telling me where the content is from. The melee weapon scripts point to models ported from warz. The extra firearms like the mp5k, ar3car, and sniper(is it combine sniper?) do not really point in any direction where they're from.
Aside from those few problems, I'm wondering how I can implement a faction that allows you to select from a range of models on character creation? Like I said, I don't really know lua, but I don't see anything in sh_citizen.lua and I've been scrolling through the schema configs to see anything in reference.[/QUOTE]
sh_citizen doesn't have anything because those models are in there by default. But you can look at the code I found and edited for my Metro 2033 RP. Copying wont do you much, but editing the models and faction info will surely help.
[LUA]FACTION.name = "Survivor"
-- A description used in tooltips in various menus.
FACTION.desc = "Those left to deal with the horrors of the Metro."
-- A color to distinguish factions from others, used for stuff such as
-- name color in OOC chat.
FACTION.color = Color(20, 150, 15)
FACTION.maleModels = {
"models/half-dead/metroll/m1b1.mdl",
"models/half-dead/metroll/m2b1.mdl",
"models/half-dead/metroll/m4b1.mdl",
"models/half-dead/metroll/m5b1.mdl",
"models/half-dead/metroll/m6b1.mdl",
"models/half-dead/metroll/m7b1.mdl",
"models/half-dead/metroll/m8b1.mdl",
"models/half-dead/metroll/m9b1.mdl",
"models/half-dead/metroll/m1b1.mdl",
"models/half-dead/metroll/a1b1.mdl",
"models/half-dead/metroll/a2b1.mdl",
"models/half-dead/metroll/a3b1.mdl",
"models/half-dead/metroll/a4b1.mdl",
"models/half-dead/metroll/a5b1.mdl",
"models/half-dead/metroll/a6b1.mdl"
}
FACTION.femaleModels = {
"models/half-dead/metroll/f1b1.mdl",
"models/half-dead/metroll/f2b1.mdl",
"models/half-dead/metroll/f3b1.mdl",
"models/half-dead/metroll/f4b1.mdl",
"models/half-dead/metroll/f6b1.mdl",
"models/half-dead/metroll/f7b1.mdl"
}
-- FACTION.index is defined when the faction is registered and is just a numeric ID.
-- Here, we create a global variable for easier reference to the ID.
FACTION_CITIZEN = FACTION.index[/LUA]
Edit: Fixed lua tags
I've put 1.1 on a separate branch if anyone wants to see it.
[url]https://github.com/Chessnut/NutScript/tree/1.1[/url]
Is there an NS 1.1 sample schema to use?
[url]https://www.sendspace.com/file/p7wz3c[/url]
I've got an error saying the server is missing VC++ Redistributables, I can't find them to download if thats what it means.
[QUOTE=thexant;45676846]sh_citizen doesn't have anything because those models are in there by default. But you can look at the code I found and edited for my Metro 2033 RP. Copying wont do you much, but editing the models and faction info will surely help.
[LUA]FACTION.name = "Survivor"
-- A description used in tooltips in various menus.
FACTION.desc = "Those left to deal with the horrors of the Metro."
-- A color to distinguish factions from others, used for stuff such as
-- name color in OOC chat.
FACTION.color = Color(20, 150, 15)
FACTION.maleModels = {
"models/half-dead/metroll/m1b1.mdl",
"models/half-dead/metroll/m2b1.mdl",
"models/half-dead/metroll/m4b1.mdl",
"models/half-dead/metroll/m5b1.mdl",
"models/half-dead/metroll/m6b1.mdl",
"models/half-dead/metroll/m7b1.mdl",
"models/half-dead/metroll/m8b1.mdl",
"models/half-dead/metroll/m9b1.mdl",
"models/half-dead/metroll/m1b1.mdl",
"models/half-dead/metroll/a1b1.mdl",
"models/half-dead/metroll/a2b1.mdl",
"models/half-dead/metroll/a3b1.mdl",
"models/half-dead/metroll/a4b1.mdl",
"models/half-dead/metroll/a5b1.mdl",
"models/half-dead/metroll/a6b1.mdl"
}
FACTION.femaleModels = {
"models/half-dead/metroll/f1b1.mdl",
"models/half-dead/metroll/f2b1.mdl",
"models/half-dead/metroll/f3b1.mdl",
"models/half-dead/metroll/f4b1.mdl",
"models/half-dead/metroll/f6b1.mdl",
"models/half-dead/metroll/f7b1.mdl"
}
-- FACTION.index is defined when the faction is registered and is just a numeric ID.
-- Here, we create a global variable for easier reference to the ID.
FACTION_CITIZEN = FACTION.index[/LUA]
Edit: Fixed lua tags[/QUOTE]
Awesome. I was thinking i'd be able to do something like that but I don't know the syntax yet. That code would be from your factions folder, (sh_survivor.lua) right?
[QUOTE=imacc2009;45680002]I've got an error saying the server is missing VC++ Redistributables, I can't find them to download if thats what it means.[/QUOTE]
[url]http://www.microsoft.com/en-us/download/details.aspx?id=5555[/url]
[QUOTE=Chessnut;45680095][url]http://www.microsoft.com/en-us/download/details.aspx?id=5555[/url][/QUOTE] Hello brother! This is no helps with this. I am have this error too, and have Visual already
[IMG]http://i.gyazo.com/8b7a5be72f26a02d7c8aed67a6bc17f0.png[/IMG]
[editline]13th August 2014[/editline]
[QUOTE=imacc2009;45680002]I've got an error saying the server is missing VC++ Redistributables, I can't find them to download if thats what it means.[/QUOTE]
This helps [IMG]http://i.gyazo.com/e1d496a5056e1937bd7f52483b48c321.png[/IMG]
[editline]13th August 2014[/editline]
Or create mysql base. With sqlite i have many errors in console and black screen after character enter to the game.
I made another small, glass'y UI change. I'm gonna have an obsession soon :S
[t]http://i.imgur.com/r40xTjW.jpg[/t]
[editline]13th August 2014[/editline]
Nevermind, I removed it due to my sickness caused by it
Sorry, you need to Log In to post a reply to this thread.