• NutScript - Nutty name, serious framework
    2,778 replies, posted
[QUOTE=riekelt;46318472]This is some really good stuff for making e.g. wallets, boxes and shiz. I could even think of a building system working with this, e.g. dragging Hard Drives, Chips and such in and out of electronic devices. Keep up the good work Chessnut! [sp]get rekt CW[/sp][/QUOTE] All of this stuff is possible with Clockwork's item system. The only difference is that NutScript's is now represented in a grid... Clockwork has had networked item data functionality for a long time. As for dragging one item on to another, this is something that is being worked on currently. We just have a fundamentally different philosophy for Clockwork and we don't think this grid based inventory would work for what we're trying to achieve, otherwise I'd have done that in the first place when developing the inventory system, I chose not to all the way back when TS2 had it.
[QUOTE=riekelt;46318472]e.g. dragging Hard Drives, Chips and such in and out of electronic devices.[/QUOTE] *cough* [url]http://steamcommunity.com/sharedfiles/filedetails/?id=258842949[/url] *cough*
[QUOTE=imacc2009;46319443]*cough* [url]http://steamcommunity.com/sharedfiles/filedetails/?id=258842949[/url] *cough*[/QUOTE] [img]http://puu.sh/coPak/6d3adb7043.jpg[/img] *cough*
[QUOTE=kurozael;46318526]-I don't like grid Inventory-[/QUOTE] good luck with your stuff then.
[QUOTE=mib999;46320184][img]http://puu.sh/coPak/6d3adb7043.jpg[/img] *cough*[/QUOTE] *cough* Exactly *cough*
There shouldn't be much of a problem with the grid inventory aslong as you can stack items and set the inventory size.
[QUOTE=imacc2009;46320794]*cough* Exactly *cough*[/QUOTE] Man I think you should check out that cough ^^
Just like an old time. Small piece of code caused my headache for few fucking weeks
Kurozael, I was under the impression you got permanently banned from Facepunch. Isn't there a rule stating you're not allowed to make alts to bypass bans? [URL="http://facepunch.com/member.php?u=61824"]Kurozael's banned main account.[/URL] [URL="http://facepunch.com/showthread.php?t=1399185"]The thread he was permanently banned for.[/URL] I have good faith that justice will be served upon this filthy rule breaker.
[QUOTE=Pastor_Necro;46326554]Kurozael, I was under the impression you got permanently banned from Facepunch. Isn't there a rule stating you're not allowed to make alts to bypass bans? [URL="http://facepunch.com/member.php?u=61824"]Kurozael's banned main account.[/URL] [URL="http://facepunch.com/showthread.php?t=1399185"]The thread he was permanently banned for.[/URL] I have good faith that justice will be served upon this filthy rule breaker.[/QUOTE] owned
[media]http://www.youtube.com/watch?v=_1l5QiAiH-c[/media]
[QUOTE=Pastor_Necro;46326554]Kurozael, I was under the impression you got permanently banned from Facepunch. Isn't there a rule stating you're not allowed to make alts to bypass bans? [URL="http://facepunch.com/member.php?u=61824"]Kurozael's banned main account.[/URL] [URL="http://facepunch.com/showthread.php?t=1399185"]The thread he was permanently banned for.[/URL] I have good faith that justice will be served upon this filthy rule breaker.[/QUOTE] Darn, you got me. [highlight](User was permabanned for this post ("Alt of permabanned user(s)" - NiandraLades))[/highlight]
Inventory progress! [media]http://www.youtube.com/watch?v=mSsfbu7Joy0[/media]
I wonder if I can use this grid inventory for craft-able stuff.
[QUOTE=pilot;46332476]I wonder if I can use this grid inventory for craft-able stuff.[/QUOTE] That would be awesome :D
why not?
[QUOTE=pilot;46332476]I wonder if I can use this grid inventory for craft-able stuff.[/QUOTE] If we there's a function to get the inventory as a table, then yes, that is one of the epic things you could do. I'm looking forward to intergrate this with my cellphone system, steal people's sim cards and prank call security. >:)
client:getChar():getInv():getItems() gets all items with the key being the itemID and the value being the value object.
Where is all the inventory stuff at? cl_hooks?
[url]https://github.com/Chessnut/NutScript/blob/1.1/gamemode/core/meta/sh_inventory.lua[/url]
[QUOTE=kurozael;46329055]Darn, you got me. [highlight](User was permabanned for this post ("Alt of permabanned user(s)" - NiandraLades))[/highlight][/QUOTE] owned
I got a some bug on a Nutscript 1.0 when a player status is ragdoll(Like. ulx !ragdoll) and then someone kill that player (ragdoll) ragdoll player cant respawn. just wander like ghost there is any solutions? I used vanilla NS and HL2RP. sorry for my english
[QUOTE=tctno1;46351029]I got a some bug on a Nutscript 1.0 when a player status is ragdoll(Like. ulx !ragdoll) and then someone kill that player (ragdoll) ragdoll player cant respawn. just wander like ghost there is any solutions? I used vanilla NS and HL2RP. sorry for my english[/QUOTE] Dont use ULX with nutscript?
[QUOTE=riekelt;46351734]Dont use ULX[/QUOTE] This needs to be said more often.
What are the things I need to do to make an item add armor or health on use or equip etc? EDIT: One other problem, I wanted to ask also how to delete items from people's inventories in sv.db. Everytime I try to remove a broken item it says the database is malformed, so :< I need some help with that. I'm not too experienced with databases and such.
[QUOTE=Boom Rainbow;46371485]What are the things I need to do to make an item add armor or health on use or equip etc? EDIT: One other problem, I wanted to ask also how to delete items from people's inventories in sv.db. Everytime I try to remove a broken item it says the database is malformed, so :< I need some help with that. I'm not too experienced with databases and such.[/QUOTE] you just better delete all your characters item db.
Figured out the health and armour thing kinda sorta, but yeah I was just trying to remove items from the database but I'm not sure how. That doesn't really help because the database only gets "malformed" if I remove the entire item line. I don't know how to actually do anything within there though.
I have created a schema, built off the Sample Schema. but when I enter nut_setowner into the server console, it returns with Unknown Command nut_setowner EDIT: Couldn't find a fix for that, but got a workaround instead. Another thing, I have a weapons pack, but the weapons are under entities not weapons, so when I create them as an Item, Nutscript will not allow me to equip them. Is there any way of fixing that?
What is the weapons pack that you're using?
Here, this is how you make a weapon, for example I have this m9k weapon: [lua] ITEM.name = "H&K G36 Compact" ITEM.uniqueID = "m9k_g36" ITEM.category = "Weapons" ITEM.model = Model("models/weapons/w_hk_g36c.mdl") ITEM.class = "m9k_g36" ITEM.type = "primary" ITEM.price = 800 ITEM.desc = "A black assault rifle engineered in Germany.\nThere are %ClipOne|0% shots left in the magazine." ITEM.data = { Equipped = false, CombineLocked = 0, ClipOne = -1 } [/lua] All you have to do is copy the entities name to clip board and paste it into ITEM.class and ITEM.unique ID. The item model should be the w_model of the weapon so when you drop it, it looks like the gun you're holding. That's all, simple as that.
Sorry, you need to Log In to post a reply to this thread.