10sa / advanced-nutscript Goto Github PK
View Code? Open in Web Editor NEWNutscript 1.0 Based New RP Framework.
License: MIT License
Nutscript 1.0 Based New RP Framework.
License: MIT License
도움말에서 플러그인 항목 선택시 아래와 같은 에러 메세지 발생
[ERROR] gamemodes/nutscript/gamemode/libs/sh_plugin.lua:320: attempt to concatenate field 'desc' (a nil value)
아래는 libs/sh_plugin.lua 파일의 320번째 항목이 포함된 314 ~ 326번째 항목에 작성된 내용
if (CLIENT) then
AdvNut.hook.Add("BuildHelpOptions", "nut_PluginHelp", function(data)
data:AddHelp("플러그인", function()
local html = ""
for k, v in SortedPairs(nut.plugin.buffer) do
html = html.."<p><b>"..(v.name or k).."</b><br /> 제작자 : "..(v.author or "익명").."<br /> 설명 : "..v.desc or nut.lang.Get("no_desc").."</p>" <- 에러의 원인으로 예상되는 항목
end
return html
end, "icon16/plugin.png")
end)
end
인벤토리에서 착용형 아이템을 사용할 경우 해당 아이템이 사용되지만 장비된 아이템 항목으로 이동이 되지 않는 현상이 발생
추가적으로 무기 아이템의 경우 아래의 오류 메시지가 발생
[ERROR] gamemodes/hl2rp/gamemode/schema/items/base/sh_weapon.lua:55: attempt to compare number with nil
radio, door, broadcast 등의 엔티티가 저장되지 않습니다.
구역이나 프롭, 스폰 지점은 정상 저장됩니다.
별도의 에러 문구는 출력되지 않습니다.
local items = {}
for k, v in pairs( nut.item.GetAll() ) do
if (v.category == "폐품") then
items[k] = v
end
end
local RandomItem = table.Random(items)
nut.item.Spawn(self:GetPos() + Vector(0, 0, 8), nil, RandomItem)
위와 같은 코드로 생겨난 아이템을 조준할 시, 클라이언트 사이드에서 나오는 오류
[ERROR] gamemodes/nutscript/gamemode/libs/external/sh_pon.lua:406: attempt to call a nil value
- decode - gamemodes/nutscript/gamemode/libs/external/sh_pon.lua:406
- GetData - gamemodes/nutscript/entities/entities/nut_item.lua:40
3. DrawTargetID - gamemodes/nutscript/entities/entities/nut_item.lua:64
4. Run - gamemodes/nutscript/gamemode/kernel/cl_kernel.lua:401
5. unknown - gamemodes/nutscript/gamemode/kernel/cl_kernel.lua:172
alwaysRaised 작동하지 않음.
플레이어를 조준점으로 볼 경우, 이름표나 설명이 표기되지 않고 에러 발생
[ERROR] gamemodes/nutscript/gamemode/sh_util.lua:312: attempt to call method 'IsDoor' (a nil value)
- BlastDoor - gamemodes/nutscript/gamemode/sh_util.lua:312
- unknown - gamemodes/dissolution/entities/entities/nut_zombie/shared.lua:64
if (IsValid(entity) and string.find(entity:GetClass(), "door")) then
if (!string.find(entity:GetModel(), "metal")) then
timer.Simple(0.3, function()
entity:EmitSound("physics/wood/wood_plank_break"..math.random(1, 4)..".wav", 100, math.random(90, 130))
entity.nut_BreakHealth = (entity.nut_BreakHealth or 100) - math.random(5, 10)
if (entity.nut_BreakHealth <= 0) then
entity.nut_BreakHealth = 100
nut.util.BlastDoor(entity, self:GetForward() * 600) -- 64번째 줄
entity:EmitSound("physics/wood/wood_furniture_break"..math.random(1, 2)..".wav", 140)
util.ScreenShake(entity:GetPos(), 8, 8, math.Rand(0.6, 0.8), 560)
end
local effect = EffectData()
local position = entity:LocalToWorld(entity:OBBCenter()) + entity:GetRight()*math.random(-16, 16) + entity:GetUp()*math.random(-16, 16)
effect:SetStart(position)
effect:SetOrigin(position)
util.Effect("GlassImpact", effect)
util.ScreenShake(entity:GetPos(), 5, 5, math.Rand(0.2, 0.4), 360)
end)
self:PlaySequenceAndWait("swing", 1)
end
end
I can Reported Many Language Missing Bugs (in 0.19.* version later).
If you Found Missing Language Bug, Please Reporting in Here.
(Report is must include missing language key.)
snip
[ERROR] gamemodes/nutscript/plugins/mapscene/sh_commands.lua:9: attempt to index global 'PLUGIN' (a nil value)
- onRun - gamemodes/nutscript/plugins/mapscene/sh_commands.lua:9
- RunCommand - gamemodes/nutscript/gamemode/libs/sh_commands.lua:54
3. ParseCommand - gamemodes/nutscript/gamemode/libs/sh_commands.lua:137
4. Process - gamemodes/nutscript/gamemode/libs/sh_chatbox.lua:440
5. Run - gamemodes/nutscript/gamemode/kernel/sv_kernel.lua:275
6. unknown - gamemodes/nutscript/plugins/customchatbox/sh_chatbox.lua:331
7. func - gamemodes/nutscript/gamemode/libs/external/sh_netstream2.lua:106
8. unknown - lua/includes/extensions/net.lua:32
캐릭터 삭제 후 불러오기 메뉴에서 다음 버튼을 클릭하면 아래의 오류 메세지 발생
[ERROR] gamemodes/nutscript/gamemode/derma/cl_charmenu.lua:343: attempt to index a nil value
오류 메세지 발생 후 다음 버튼을 누르면 1페이지의 캐릭터와 2페이지의 캐릭터가 서로 겹쳐져서 나오며
다음 버튼을 다시 누르면 1페이지 캐릭터와 3페이지 캐릭터가 겹치는 문제가 발생
AdvNS require improved (Advanced) config management system. (ACMSystem)
In system panel, Require type. (but not supported)
So, Create Register function, Add more Advanced functions.
( Config table is must not Accept direct access. (Private) ) Accept Direct Access. (For legacy)
If not Matched Set function argument type, Throw error.
Maybe this Function is Breaking config legacy.
[ERROR] gamemodes/nutscript/plugins/improveddoors/sh_plugin.lua:9: attempt to index local 'entity' (a nil value)
- IsDoor - gamemodes/nutscript/plugins/improveddoors/sh_plugin.lua:9
- BlastDoor - gamemodes/nutscript/plugins/improveddoors/sh_util.lua:5
3. unknown - gamemodes/dissolution/entities/entities/nut_zombie/shared.lua:64Timer Failed! [Simple][@gamemodes/dissolution/entities/entities/nut_zombie/shared.lua (line 58)]
if (IsValid(entity) and string.find(entity:GetClass(), "door")) then
if (!string.find(entity:GetModel(), "metal")) then
timer.Simple(0.3, function() -- 58번 줄
entity:EmitSound("physics/wood/wood_plank_break"..math.random(1, 4)..".wav", 100, math.random(90, 130))
entity.nut_BreakHealth = (entity.nut_BreakHealth or 100) - math.random(5, 10)
if (entity.nut_BreakHealth <= 0) then
entity.nut_BreakHealth = 100
nut.util.BlastDoor(entity, self:GetForward() * 600) -- 64번 줄
entity:EmitSound("physics/wood/wood_furniture_break"..math.random(1, 2)..".wav", 140)
util.ScreenShake(entity:GetPos(), 8, 8, math.Rand(0.6, 0.8), 560)
end
local effect = EffectData()
local position = entity:LocalToWorld(entity:OBBCenter()) + entity:GetRight()*math.random(-16, 16) + entity:GetUp()*math.random(-16, 16)
effect:SetStart(position)
effect:SetOrigin(position)
util.Effect("GlassImpact", effect)
util.ScreenShake(entity:GetPos(), 5, 5, math.Rand(0.2, 0.4), 360)
end)
self:PlaySequenceAndWait("swing", 1)
end
end
캐릭터를 로드한 후 서버 콘솔에 아래와 같은 오류 발생
gamemodes/nutscript/gamemode/kernel/sv_kernel.lua:514: bad argument #1 to 'SetHealth' (number expected, got nil)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.