[QUOTE=GamesPuff;44117832]Im making a private Schema for my community sorry :P[/QUOTE]
Alright so how private are we talking here, can you tell us a genre or title or is that the extent of the privacy?
I'm not sure if this can be fixed.
Let's just say you have a a full 100% inventory, but with an item that adds more stuff into your inventory. If you open that item then you have like 107% inventory. Do you know what I mean?
Well that happens if the item is forced into your inventory.
Also guess what this plugin is:
[img]http://i.imgur.com/OddNmzZ.png[/img]
cross server chat
[vid]https://dl.dropboxusercontent.com/u/24983881/gm_construct%202014-3-3%2017-37-41.webm[/vid]
There's a video showing it better.
[QUOTE=GTbrawlers;44118179]Alright so how private are we talking here, can you tell us a genre or title or is that the extent of the privacy?[/QUOTE]
I want to keep it a surprise for now but il pm you the ip when im done :)
Anyone know why menu music doesnt work?
[QUOTE=GamesPuff;44120414]Anyone know why menu music doesnt work?[/QUOTE]
Probably because you edited the framework.
Pastor_Necro no i didnt even with a default install it doesnt work.
Which schema are you using? Did you set it in the config?
I did chestnut im using a custom schema based off of sample
[QUOTE=Chessnut;44118999][vid]https://dl.dropboxusercontent.com/u/24983881/gm_construct%202014-3-3%2017-37-41.webm[/vid]
There's a video showing it better.[/QUOTE]
Gimme Gimme Gimme
[QUOTE=Chessnut;44118859]Well that happens if the item is forced into your inventory.
Also guess what this plugin is:
[img]http://i.imgur.com/OddNmzZ.png[/img][/QUOTE]
You should make it so /global, // and /ooc all work for cross server as those are the most commonly used prefixes for the command. .// and /looc are the only variants I've seen for local out of character.
Well, I'm trying to remake a noti-board that says the time, but of course, I am an awful coder. I know its an obvious error, I know it... Vote dumb as you wish.
[LUA]ENT.Type = "anim"
ENT.PrintName = "Clock (Time Board)"
ENT.Author = ""
ENT.Spawnable = true
ENT.AdminOnly = true
ENT.Category = "NutScript"
ENT.RenderGroup = RENDERGROUP_BOTH
if CLIENT then
local ftbl = {
font = mainFont,
size = 27,
weight = 500,
antialias = true,
}
surface.CreateFont("nut_NotiBoardFont", ftbl)
ftbl.blursize = 2
surface.CreateFont("nut_NotiBoardFont2", ftbl)
local ftbl = {
font = mainFont,
size = 33,
weight = 1000,
antialias = true
}
surface.CreateFont("nut_NotiBoardTitle", ftbl)
ftbl.blursize = 2
surface.CreateFont("nut_NotiBoardTitle2", ftbl)
end
if (SERVER) then
function ENT:Initialize()
self:SetModel("models/hunter/plates/plate1x2.mdl")
self:PhysicsInit(SOLID_VPHYSICS)
self:SetMoveType(MOVETYPE_VPHYSICS)
self:SetUseType(SIMPLE_USE)
self:SetColor(Color(0,0,0))
local physicsObject = self:GetPhysicsObject()
if (IsValid(physicsObject)) then
physicsObject:Wake()
end
end
function ENT:OnRemove()
end
function ENT:Use(client)
end
netstream.Hook("nut_NotiRequest", function(client, data)
if !(client:IsValid() and client:IsAdmin() and data[3] and data[3]:IsValid()) then return end
data[3]:SetNetVar(data[1], data[2])
end)
else
function ENT:Initialize()
end
function ENT:Draw()
self:DrawModel()
end
local scale = .5
local sx, sy = 95*4, 95
local distance = 1000
local SCREEN_OVERLAY
function ENT:DrawTranslucent()
local rt = RealTime()
local pos, ang = self:GetPos(), self:GetAngles()
pos = pos + self:GetUp()*2
ang:RotateAroundAxis( self:GetUp(), 90 )
local up = self:GetUp()
local right = self:GetRight()
local forward = self:GetForward()
local ch = up*sy*0.5*scale
local cw = right*sx*0.5*scale
local dist = LocalPlayer():GetPos():Distance(pos)
local distalpha = math.Clamp(distance-dist, 0, 255)
if (!SCREEN_OVERLAY) then
SCREEN_OVERLAY = Material("effects/combine_binocoverlay")
SCREEN_OVERLAY:SetFloat("$alpha", "0.7")
SCREEN_OVERLAY:Recompute()
end
local text = self:GetNetVar("text", print (os.date "%h"))
local title = self:GetNetVar("title", "The time")
if dist <= distance then
render.PushCustomClipPlane(up, up:Dot( pos-ch ))
render.PushCustomClipPlane(-up, (-up):Dot( pos+ch ))
render.PushCustomClipPlane(right, right:Dot( pos-cw ))
render.PushCustomClipPlane(-right, (-right):Dot( pos+cw ))
render.EnableClipping( true )
cam.Start3D2D(pos, ang, scale)
surface.SetDrawColor(22 , 22, 22, distalpha)
surface.DrawRect(-sx/2, -sy/2, sx, sy)
surface.SetFont("nut_NotiBoardTitle")
local tx, ty = surface.GetTextSize(title)
local tposx, tposy = -tx/2,-ty/2-19
surface.SetTextPos(tposx, tposy)
surface.SetTextColor(222, 222, 222, distalpha)
surface.DrawText(title)
surface.SetFont("nut_NotiBoardTitle2")
surface.SetTextPos(tposx, tposy)
surface.DrawText(title)
surface.SetFont("nut_NotiBoardFont")
local tx, ty = surface.GetTextSize(text)
local tposx, tposy = sx/2-((RealTime()*100)%(tx+sx)),-ty/2+23
surface.SetTextPos(tposx, tposy)
surface.DrawText(text)
surface.SetFont("nut_NotiBoardFont2")
surface.SetTextPos(tposx, tposy)
surface.DrawText(text)
surface.SetDrawColor(255, 255, 255, math.Clamp(distalpha,0,50))
surface.SetMaterial(SCREEN_OVERLAY)
surface.DrawTexturedRect(-sx/2, -sy/2, sx, sy)
cam.End3D2D()
render.PopCustomClipPlane()
render.PopCustomClipPlane()
render.PopCustomClipPlane()
render.PopCustomClipPlane()
render.EnableClipping( false )
end
end
end[/LUA]
Its line 85 and 86 causing the trouble. Basically, I spawn it then Gmod is like "SHIT!" then crashes.
Why didn't the guy in the video say "Bust a nut-script today!"
Rebel's suggestion didn't seem to work, Puff's did however. But according to you dudes, it's not good to use his because it's editing the schema. Any suggestions?
[QUOTE=imacc2009;44127100]os.date[/QUOTE]
os.date doesn't like wrong input. If it gets shitty input, gmod crashes.
Prevented transfer of items between characters.
Added character delete command.
Fixed disappearing characters.
Fixed Wiremod popups not showing.
Deprecated nut.attribs.Get
Neatened parts of NutScript code.
Changed the Help menu to be more organized.
Added client settings menu.
Added ability to hold space to leave an act.
Changed 3D text to look better.
Fixed DrawText on markup object giving wrong alpha value.
Changed it to external libraries load before regular libraries.
Added 3D HTML panels.
Fixed UTF-8 String issues with markup.
Added nut_showlogs 0/1 for administrators.
Fixed issue with factions stacking.
Added GetDefaultName gender parameter.
Aded item overwriting.
Fixed business menus not showing name of items.
Removed unused translations.
Fixed chat logs not being sent to administrators.
Fixed ban/unban commands.
Added ability to use steamID for banning.
Fixed nosave filter.
Added administrator logging.
[QUOTE=Chessnut;44131242][/QUOTE]
I seeeee.
So like /advertadd in CW?
[QUOTE=Blazer232;44128078]Rebel's suggestion didn't seem to work, Puff's did however. But according to you dudes, it's not good to use his because it's editing the schema. Any suggestions?[/QUOTE]
Blazer go ahead and pm me ill add you on steam and tell you how to edit without editing the Framework.
How can I grab a specific items itemTable.data?
I'm planning to change most of fixed string to changeable string. You know, language.
For Example, To translate most strings in NutScript Framework, You're going to need only one file/plugin. ( I mean NutScript Framework, that doesn't mean you can translate all of plugins of NutScript in one file. )
[QUOTE=Commander11;44133034]How can I affect a specific items itemTable.data?[/QUOTE]
Look at Weapon Base. then you'll understand.
Came across another thing. I tried to create an entity based off of the combine lock (Just for a different faction.) and whenever I try to place it, it's telling me I'm creating a null entity. Any help with this?
I love not editing the base gamemode, updating is so painless it's amazing.
[QUOTE=Johnny Guitar;44134286]I love not editing the base gamemode, updating is so painless it's amazing.[/QUOTE]IKR at first i didnt but now i am its so epic and easy :P
So let's just say we want to make our own sh_animation.lua file. Would I make a file in *myschema*/gamemode/schema/*create_a_libs_folder*/sh_animation.lua
Now, if I'm right about that all good. But, what does that do exactly? Does it tell the gamemode not to run the sh_animation.lua from the base gamemode and run the one you provided?
it runs yours after
to put this into perspective it's like doing this
[lua]
nut.util.blah = function(argument1, argument2)
end
[/lua]
Then later on in the file
[lua]
nut.util.blah = function(argument)
print(argument)
end
[/lua]
every time you call nut.util.blah() it would print 1 argument rather than being an empty function that takes two arguments.
you essentially overwrite everything
Added Metro 2033 style Bad Air plugin.
/badairadd, /badairremove
and mask requires filter to do it's job.
Sorry, you need to Log In to post a reply to this thread.