extremlapin / badcoderz Goto Github PK
View Code? Open in Web Editor NEWFind unoptimized gmod addons and KILL the devs who made them
License: MIT License
Find unoptimized gmod addons and KILL the devs who made them
License: MIT License
[ERROR] addons/[gmodstore]_badcoderz/lua/badcoderz/sh_luajit_decompiler.lua:21: bad argument #1 to 'funcuvname' (function expected, got function)
what does this mean
Assuming you ever come back to working on this, you should try and make a VS Code extension that will scan through addons while they are being developed to find optimization issues in real time.
Implement tables metafunctions
Var type table is not implemented in BadCoderz, pls tell the dev
keep getting this in my console
Personal notes :
Hook function compilation as runstring/compilestring is a function call on a string
check location name, manually read file provided and it file doesn't exist or match bytecode then it's a runstring/compilestring call
then keep function in a list and assign UID + browse bytecode with glib
BadCoderz/lua/badcoderz/sh_work.lua
Line 61 in 8b60f3e
that's dirty
Why did you upload Bad Coderz to Github? I know this isn't an issue, but I kinda feel that I've been scammed.
local PANEL = {}
function PANEL:Init()
self:Dock(FILL)
end
function PANEL:Paint(w, h)
draw.RoundedBox(0, 0, 0, w, h, Color(255, 0, 0))
end
vgui.Register('home_panel', PANEL, 'Panel')
it seems that this isn't a optimal use of draw.RoundedBox, instead it would be better to use a variable, so:
local PANEL = {}
function PANEL:Init()
self:Dock(FILL)
self.color1 = Color(255, 0, 0)
end
function PANEL:Paint(w, h)
draw.RoundedBox(0, 0, 0, w, h, self.color1)
end
vgui.Register('home_panel', PANEL, 'Panel')
so my conclusion on this is that BadCoderz is showing that you shouldn't use the Color function on PANEL:Paint, because it would be runned multiple times, so instead one should use a variable so the Color function only runs once, am I correct?
also, it's weird because we usually learn the first method, and the wiki shows a example like that
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.