I just need help with one small thing how do I get a faction to automatically set their bodygroups and subgroups to something?
Also, how do I edit these with /charsetbodygroup because it only activates/ deactivates one bodygroup whereas the models I'm using has different subgroup which I don't know how to edit.
Help is appreciated :>
Alright, I've updated the script but now I get constant lua errors and my inventory no longer works. Upon connecting, I get this error:
[quote][ERROR] gamemodes/nutscript/gamemode/libs/sh_item.lua:362: table index is nil
1. Register - gamemodes/nutscript/gamemode/libs/sh_item.lua:362
2. Load - gamemodes/nutscript/gamemode/libs/sh_item.lua:442
3. unknown - gamemodes/nutscript/gamemode/libs/sh_item.lua:462
4. include - [C]:-1
5. Include - gamemodes/nutscript/gamemode/sh_util.lua:29
6. IncludeDir - gamemodes/nutscript/gamemode/sh_util.lua:84
7. unknown - gamemodes/nutscript/gamemode/shared.lua:56
8. include - [C]:-1
9. unknown - gamemodes/nutscript/gamemode/cl_init.lua:18
10. DeriveGamemode - [C]:-1
11. unknown - gamemodes/hl2rp/gamemode/cl_init.lua:1
[/quote]
can anyone help resolve this?
Reinstall NutScript. Remove the nutscript folder and reinstall it completely.
Good thing you said that, I'm doing that as we speak.
e: done and fixed, thanks
e2: okay i've just re added the items i had before back in and now i'm getting this error
[quote][ERROR] gamemodes/nutscript/gamemode/libs/sh_item.lua:362: table index is nil
1. Register - gamemodes/nutscript/gamemode/libs/sh_item.lua:362
2. Load - gamemodes/nutscript/gamemode/libs/sh_item.lua:442
3. Init - gamemodes/nutscript/gamemode/libs/sh_schema.lua:36
4. unknown - gamemodes/hl2rp/gamemode/cl_init.lua:3
Couldn't Load Init Script: 'hl2rp/gamemode/cl_init.lua'[/quote]
e3: okay i guess i just have to recode all of the items in.
no biggie i guess.
Ah screw it -snip-
[QUOTE]A total of 241 items have been automatically generated.[/QUOTE]
heh
that's not even the total
For some reason people are seeing the name (rpname) and hp like in sandbox, anyone ever had this?
issue fixed.
[QUOTE=Blazer232;44143031]Good thing you said that, I'm doing that as we speak.
e: done and fixed, thanks
e2: okay i've just re added the items i had before back in and now i'm getting this error
e3: okay i guess i just have to recode all of the items in.
no biggie i guess.[/QUOTE]
The item format shouldn't have changed so you should be able to import them again. Or they should be in the schema folder which you didn't really have to uninstall unless that was updated too.
Well apparently it was changed somehow. The error is caused by the items. I removed them from the server and was able to connect and play the game just fine, but with the items added I got the error that I listed.
[QUOTE=Boom Rainbow;44142676]I just need help with one small thing how do I get a faction to automatically set their bodygroups and subgroups to something?
Also, how do I edit these with /charsetbodygroup because it only activates/ deactivates one bodygroup whereas the models I'm using has different subgroup which I don't know how to edit.
Help is appreciated :>[/QUOTE]
I still need help with this one. :P
Would anyone like a pull request to add something like
ITEM.color = Color(r,g,b,a)
So when you look at an item it sets the color of the item name to the color in the item table?
[QUOTE=Johnny Guitar;44151695]Would anyone like a pull request to add something like
ITEM.color = Color(r,g,b,a)
So when you look at an item it sets the color of the item name to the color in the item table?[/QUOTE]
That'd be a nice little addition. Maybe ITEM.textcolour, that way any future edits won't interfere if color actually corresponds to setting the colour of the model.
Well I know current item icon code is kinda messy.
It should be vgui element to make it easy to customze and change.
maybe addition of alternative 2d icon would be more good.
It was really simple
I'm not gonna bother committing 3 lines, all you have to do is insert this at line 63 in nut_item.lua
[lua]if (itemTable.color) then
color = Color(itemTable.color.r, itemTable.color.g, itemTable.color.b, alpha)
end[/lua]
[editline]6th March 2014[/editline]
[QUOTE=rebel1324;44152885]Well I know current item icon code is kinda messy.
It should be vgui element to make it easy to customze and change.
maybe addition of alternative 2d icon would be more good.[/QUOTE]
make it so we can set the entity for the spawnicon, so I can have other bodygroups and skins in the icons.
EDIT: this was committed to nutscript on github, go get it there :)
[QUOTE=Johnny Guitar;44152893]make it so we can set the entity for the spawnicon, so I can have other bodygroups and skins in the icons.[/QUOTE]
afaik spawnicon supports bodygroup and skin.
Well, let me look into it.
A total of 430 items have been automatically generated.
hehe
Well, I Added itemTable.bodygroup option.
[lua]
itemTable.bodygroup = {}
itemTable.bodygroup[1] = 1 -- Set bodygroup 1 to 1.
[/lua]
This will work if spawnicon.lua is not wrong.
Hi All,
-snip-
(sorry, worked it out.)
PS: From what I've seen so far Nutscript is a great way to develop new gamemodes (congrats to Chessnut and everyone else who's had input for making it so easy!)
Not sure if this has been posted (tl;dr thread), but Im using rp_stantsiya on my server, and I keep walking through map props. Im sure this isn't the map's fault, because it works in single player, and I was having problems with NS on mrp_stations, with disappearing map props and buttons.
Is there a fix for this, or do I just have to get used to walking through boxes and tables until it's fixed?
why blame a script that doesn't have anything to do with your server missing content *cough* *cough*
[editline]7th March 2014[/editline]
oh jesus christ conna what the fuck
Am I being a retard or;
The map required HL2E1+2 content, and its on my clientside game, but not the server. You're saying I have to put the HL2 content on the server and it'll fix it?
If yes, I love you
also; nice title
gg
anyone contributing on github to nutscript is doomed to have their title changed by the oppresive doo doo face conna
hm, I should buy all the CW members a title pointing here.
EDIT: Installing HL2E1+2 content on the server didn't fix it.
[url]http://puu.sh/7msp6.jpg[/url]
[url]http://puu.sh/7mspa.jpg[/url]
Me standing inside of boxes.
Odd, it seems some of the models are fixed. Ill try uploading the full content.
[QUOTE=Legionary74;44161140]hm, I should buy all the CW members a title pointing here.
EDIT: Installing HL2E1+2 content on the server didn't fix it.
[url]http://puu.sh/7msp6.jpg[/url]
[url]http://puu.sh/7mspa.jpg[/url][/QUOTE]
That's because those are CSS models iirc... :v:
Odd, CSS is mounted on the server as well as my client.
EDIT:
Scratch that, I installed the dedicated server for CSS, not the content...
Wow.
EDIT: Success! Well, thank you for making me realizing my mistake.
[QUOTE=Johnny Guitar;44161132]anyone contributing on github to nutscript is doomed to have their title changed by the oppresive doo doo face conna[/QUOTE]
This is why I'm never buying Clockwork. :v:
Oh what the hell, I liked my freaking title
ill paypal you and chessnut some $$$ once I get my echeck
Looks like titles is where the CloudSixteen profit goes to.
Sorry, you need to Log In to post a reply to this thread.