Code Monkey home page Code Monkey logo

badcoderz's People

Contributors

autismgaming228 avatar aws0mee avatar extremlapin avatar patrickratzow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

badcoderz's Issues

Error when calling Color from C/C++

[ERROR] addons/[gmodstore]_badcoderz/lua/badcoderz/sh_luajit_decompiler.lua:21: bad argument #1 to 'funcuvname' (function expected, got function)

  1. funcuvname - [C]:-1
  2. disassemble_function - addons/[gmodstore]_badcoderz/lua/badcoderz/sh_luajit_decompiler.lua:21
    3. find_color_call_static_args - addons/[gmodstore]_badcoderz/lua/badcoderz/sh_luajit_decompiler.lua:81
    4. unknown - addons/[gmodstore]_badcoderz/lua/badcoderz/sh_work.lua:68
    5. unknown - lua/includes/util/color.lua:14
    6. unknown - [C]:-1

what does this mean

An idea for future updates to this repo

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.

Var type table?

Var type table is not implemented in BadCoderz, pls tell the dev

keep getting this in my console

Add compiled function browsing

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

Question [why is it free]

Why did you upload Bad Coderz to Github? I know this isn't an issue, but I kinda feel that I've been scammed.

Color on PANEL:Paint being a issue

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.