1. Post #201
    Soren's Avatar
    May 2008
    1,188 Posts
    Does nutscript 1.1 still break chat after a random amount of time?
    Reply With Quote Edit / Delete Reply Windows 10 Chrome United States Show Events Agree Agree x 1 (list)

  2. Post #202
    Shadico's Avatar
    August 2009
    178 Posts
    I'm having issues running console commands in Nutscript, even with Lua strings.

    This is the code I want to implement:

    Code:
    PLUGIN.name = "PAC Patch"
    PLUGIN.author = "Tazmily"
    PLUGIN.desc = "Clears your PAC upon character load."
    
    function PLUGIN:PostPlayerLoadout(client)
    client:ConCommand("pac_clear_parts")
    end;
    Nothing happens, despite the fact that I get no errors. I try to manually run the command in my server but I get nothing. Are console commands disabled in Nutscript deliberately? Is there any way I can change that?

    EDIT: Nevermind.

  3. Post #203

    April 2009
    193 Posts
    So, to avoid weapon model positioning issues I switched to player models instead of NPC models. It fixed everything except for the F1 menu.
    How on earth do I fix this? Some weapons even appear under the players feet when in the menu. I would imagine it's PAC related, but I don't know.

  4. Post #204

    July 2013
    252 Posts
    Am I dumb or is the documentation just poor? I'm looking at creating items, but I don't see any of the attributes, just the functions. I don't see stuff like ITEM.ammo, ITEM.price, ITEM.ammoDesc as in the ModernRP schema

    Are these custom defined? I'm a bit new to lua, but still.
    Reply With Quote Edit / Delete Reply Windows 7 Chrome United States Show Events Agree Agree x 1 (list)

  5. Post #205
    Scriptmonkey's Avatar
    June 2016
    16 Posts
    Need help. When people die in my server, they spawn back halfway through the ground where they died. (But for everyone else they are simply standing in their normal spawn) When they go into third person, from their point of view they start noclipping backwards. What is the cause of this, and how do I fix this?

    Second issue: I have no idea how to add M9K weapons to a vendor.
    Reply With Quote Edit / Delete Reply Windows 10 Chrome Norway Show Events Dumb Dumb x 2 (list)

  6. Post #206
    robinkooli's Avatar
    October 2012
    120 Posts
    Is NutScript 1.1 abandoned?
    Reply With Quote Edit / Delete Reply Windows 10 Chrome Finland Show Events Late Late x 1 (list)

  7. Post #207
    Soren's Avatar
    May 2008
    1,188 Posts





    i wish people would put more time into ui design for character create in gamemodes
    Reply With Quote Edit / Delete Reply Windows 10 Chrome United States Show Events Artistic Artistic x 1 (list)

  8. Post #208
    orc

    September 2015
    157 Posts
    I like that, is that released or private?

  9. Post #209
    Soren's Avatar
    May 2008
    1,188 Posts
    I like that, is that released or private?
    if someone wants it ill send it to them, its in a private version of nutscript that's half-broken lol

  10. Post #210
    aka Devul
    mib999's Avatar
    September 2010
    1,487 Posts
    I think it looks pretty bad to be honest. A mix of things everywhere..
    Reply With Quote Edit / Delete Reply Windows 10 Chrome United Kingdom Show Events Agree Agree x 2Disagree Disagree x 2Informative Informative x 1 (list)

  11. Post #211
    Soren's Avatar
    May 2008
    1,188 Posts
    I think it looks pretty bad to be honest. A mix of things everywhere..


    i guess? i just wanted everything on one page without scrolling, wasnt sure how to explain the menu w/o using tool tips but there's so little buttons the user should be able to grasp what they should be doing just by clicking on random stuff


    also it's suppose to give a passport type vibe

  12. Post #212
    Gold Member
    Zelpa's Avatar
    December 2011
    889 Posts


    i guess? i just wanted everything on one page without scrolling, wasnt sure how to explain the menu w/o using tool tips but there's so little buttons the user should be able to grasp what they should be doing just by clicking on random stuff


    also it's suppose to give a passport type vibe
    isn't wintermute the name of that shitty point and click engine used for Limbo of the Lost?
    Reply With Quote Edit / Delete Reply Android Unofficial Facepunch Android App Australia Show Events Zing Zing x 2 (list)

  13. Post #213
    Soren's Avatar
    May 2008
    1,188 Posts
    isn't wintermute the name of that shitty point and click engine used for Limbo of the Lost?
    http://williamgibson.wikia.com/wiki/Wintermute
    Reply With Quote Edit / Delete Reply Windows 10 Chrome United States Show Events Informative Informative x 1 (list)

  14. Post #214
    Reply With Quote Edit / Delete Reply Android Unofficial Facepunch Android App Australia Show Events Informative Informative x 1 (list)

  15. Post #215

    July 2013
    252 Posts
    This project dead? Everybody on the github is saying it's dead, and hasn't been updated in over a year, which sucks, because it's a really nice project. I've been encountering some bugs with writing code for it (which I'm 90% sure isn't my fault), and I'm not really into paying for CW (since I really don't like it)

  16. Post #216
    I'm living in the Best Korea. 사랑해요 김치맨!
    rebel1324's Avatar
    December 2008
    2,161 Posts
    blame korean army dood I couldn't finished all the things I've started.
    I did fixed a lot of NS 1.1 framework for my private project with my friend but it went too far :(
    Reply With Quote Edit / Delete Reply Windows 10 Chrome Korea, Republic of Show Events Agree Agree x 1Funny Funny x 1 (list)

  17. Post #217

    July 2013
    252 Posts
    blame korean army dood I couldn't finished all the things I've started.
    I did fixed a lot of NS 1.1 framework for my private project with my friend but it went too far :(
    It's alright man. I was just wondering, because I have been having some problems with the base. Don't stress.

  18. Post #218
    Glunar's Avatar
    January 2017
    72 Posts
    I used to play in a server which is running NutScript. Thanks for releasing it and making it for free.
    Reply With Quote Edit / Delete Reply Windows 10 Chrome Turkey Show Events Dumb Dumb x 1 (list)

  19. Post #219

    July 2013
    252 Posts
    I used to play in a server which is running NutScript. Thanks for releasing it and making it for free.
    It was always free.
    Reply With Quote Edit / Delete Reply Windows 7 Chrome United States Show Events Agree Agree x 1 (list)

  20. Post #220
    orc

    September 2015
    157 Posts
    blame korean army dood I couldn't finished all the things I've started.
    I did fixed a lot of NS 1.1 framework for my private project with my friend but it went too far :(
    Welcome back.

  21. Post #221

    December 2016
    12 Posts
    Welcome back.
    fix this is plugin.
    https://github.com/Thadah/NSPlugins/tree/master/looting
    bug:
    [ERROR] gamemodes/nutscript/gamemode/core/libs/sh_item.lua:283: attempt to concatenate local 'uniqueID' (a table value)

    new - gamemodes/nutscript/gamemode/core/libs/sh_item.lua:283
    unknown - gamemodes/nutscript/gamemode/core/libs/sh_item.lua:381
    func - gamemodes/nutscript/gamemode/core/libs/thirdparty/sh_netstream2.lua:155
    unknown - lua/includes/extensions/net.lua:32
    Edited:

    blame korean army dood I couldn't finished all the things I've started.
    I did fixed a lot of NS 1.1 framework for my private project with my friend but it went too far :(
    Welcome back.

  22. Post #222

    April 2011
    125 Posts
    ^ you can't use NS 1 plugins with NS 1.1.

    Code:
    nut.flag.add("i", "Flag for a basic loadout.", function(client, isGiven)
    		if (isGiven) then
    			inventory:add("blz_416")
    		end
    end)
    upon receiving the flag, the console prints this error:
    Code:
    [ERROR] gamemodes/ww3/schema/sh_schema.lua:11: attempt to index global 'inventory' (a nil value)
      1. callback - gamemodes/ww3/schema/sh_schema.lua:11
       2. giveFlags - gamemodes/nutscript/gamemode/core/libs/sh_flag.lua:60
        3. onRun - gamemodes/nutscript/gamemode/core/sh_commands.lua:84
         4. run - gamemodes/nutscript/gamemode/core/libs/sh_command.lua:145
          5. parse - gamemodes/nutscript/gamemode/core/libs/sh_command.lua:180
           6. Run - gamemodes/nutscript/gamemode/core/hooks/sv_hooks.lua:248
            7. unknown - gamemodes/nutscript/plugins/chatbox/sh_plugin.lua:69
             8. func - gamemodes/nutscript/gamemode/core/libs/thirdparty/sh_netstream2.lua:117
              9. unknown - lua/includes/extensions/net.lua:32
    anyone have a solution?

  23. Post #223

    December 2016
    12 Posts
    ^ you can't use NS 1 plugins with NS 1.1.

    Code:
    nut.flag.add("i", "Flag for a basic loadout.", function(client, isGiven)
    		if (isGiven) then
    			inventory:add("blz_416")
    		end
    end)
    upon receiving the flag, the console prints this error:
    Code:
    [ERROR] gamemodes/ww3/schema/sh_schema.lua:11: attempt to index global 'inventory' (a nil value)
      1. callback - gamemodes/ww3/schema/sh_schema.lua:11
       2. giveFlags - gamemodes/nutscript/gamemode/core/libs/sh_flag.lua:60
        3. onRun - gamemodes/nutscript/gamemode/core/sh_commands.lua:84
         4. run - gamemodes/nutscript/gamemode/core/libs/sh_command.lua:145
          5. parse - gamemodes/nutscript/gamemode/core/libs/sh_command.lua:180
           6. Run - gamemodes/nutscript/gamemode/core/hooks/sv_hooks.lua:248
            7. unknown - gamemodes/nutscript/plugins/chatbox/sh_plugin.lua:69
             8. func - gamemodes/nutscript/gamemode/core/libs/thirdparty/sh_netstream2.lua:117
              9. unknown - lua/includes/extensions/net.lua:32
    anyone have a solution?
    Code:
    	nut.flag.add("i", "Flag for a basic loadout.", function(client, isGiven)
    		if (isGiven) then
    			client:getChar():getInv():add("blz_416")
    		end
    	end)

  24. Post #224

    April 2011
    125 Posts
    that didn't work.

  25. Post #225
    KiruKiru's Avatar
    January 2016
    23 Posts
    I fu**ed a lot with development S.T.A.L.K.E.R. RP schema on nutscript, now i just got stuck at trying to setup armor adding when equipping jacket.
    ITEM.armorBoost = 20
    ...
    onEquip = function(item)
    ...
    if (item.armorBoost) then
    item.player:SetArmor(armorBoost)
    end

    Chessnut, where i coded wrong? It's literally not working, i tried over 9000 times.

  26. Post #226
    Kemerd's Avatar
    September 2013
    487 Posts
    I fu**ed a lot with development S.T.A.L.K.E.R. RP schema on nutscript, now i just got stuck at trying to setup armor adding when equipping jacket.
    ITEM.armorBoost = 20
    ...
    onEquip = function(item)
    ...
    if (item.armorBoost) then
    item.player:SetArmor(armorBoost)
    end

    Chessnut, where i coded wrong? It's literally not working, i tried over 9000 times.
    Code:
    ITEM.armorBoost = 20
    ...
    onEquip = function(item)
    ...
    if (ITEM.armorBoost) then
    item.player:SetArmor(ITEM.armorBoost)
    end
    LUA is case sensitive.

  27. Post #227
    sannys's Avatar
    August 2016
    469 Posts
    LUA is case sensitive.
    Now that's some good irony.
    Reply With Quote Edit / Delete Reply Windows 10 Chrome Show Events Agree Agree x 6Funny Funny x 1 (list)

  28. Post #228

    February 2017
    29 Posts
    Hey, for some reason the sample schema just says "Unknown" as name and doesn't have an option to create any characters, only to quit.

  29. Post #229
    I'm living in the Best Korea. 사랑해요 김치맨!
    rebel1324's Avatar
    December 2008
    2,161 Posts
    fixed pretty much problems of 1.1 but it needs it's own thread.
    If you still do RP or use NS 1.1
    Stay tune

    I'm coming with new schemas and stuffs
    Reply With Quote Edit / Delete Reply Windows 10 Chrome Korea, Republic of Show Events Winner Winner x 8Lua King Lua King x 1 (list)

  30. Post #230
    SellMG's Avatar
    August 2015
    8 Posts
    fixed pretty much problems of 1.1 but it needs it's own thread.
    If you still do RP or use NS 1.1
    Stay tune

    I'm coming with new schemas and stuffs
    I follow you in Github and I've seen your new repositories, waiting for it!

  31. Post #231
    I'm living in the Best Korea. 사랑해요 김치맨!
    rebel1324's Avatar
    December 2008
    2,161 Posts
    Also, It will take some time to do something about the chat.
    It just breaks and few things will be changed or fixed/deleted from the Framework because they're buggy and not working.

    Changelist and all of functions will be documented.
    If you have some good wiki to use in your mind, suggest me some.
    Reply With Quote Edit / Delete Reply Windows 10 Chrome Korea, Republic of Show Events Winner Winner x 3 (list)

  32. Post #232
    robinkooli's Avatar
    October 2012
    120 Posts
    Reply With Quote Edit / Delete Reply Windows 10 Chrome Finland Show Events Agree Agree x 1Winner Winner x 1 (list)

  33. Post #233
    Soren's Avatar
    May 2008
    1,188 Posts
    Also, It will take some time to do something about the chat.
    It just breaks and few things will be changed or fixed/deleted from the Framework because they're buggy and not working.

    Changelist and all of functions will be documented.
    If you have some good wiki to use in your mind, suggest me some.
    i spent awhile trying to find a way to fix the chat, i think i fixed it by not having the chat lua stuff as a plugin? i dont remember

    also the default radio is wacky, maybe because of the way the actual chat channels/filters are setup?

    while im mentioning things, a way to search players inventories would be great, i had to make my own function for it but i never got it to work