Page 1 of 3 1 2 3

Search: Type: Posts; User: initrd.gz Search took 0.01 seconds.

  • Replies
    8
    Views
    256

    No, it takes a vararg

    No, it takes a vararg
  • Replies
    7
    Views
    217

    solved That's not how it works at all. It searches in...

    That's not how it works at all. It searches in the table you are indexing first, and if it doesn't find anything, then it calls (or searches) __index.
  • Replies
    2
    Views
    223

    My friend and I are getting this as well, in...

    My friend and I are getting this as well, in exactly the same spot. The material shows up in mat_texture_list and non-textured objects render, but materials either don't work at all (in my case) or...
  • Replies
    1
    Views
    103

    Apparently I have to call ...

    Apparently I have to call


    weapons.Register(gmod_tool, "gmod_tool")

    to reregister it and update existing entities with the function (they don't just get the functions from their class tables?)
  • Replies
    1
    Views
    103

    Can't overwrite SWEP functions

    I'm trying to forward calls to gmod_tool:GetViewModelPosition() to the stool object, like this:


    local gmod_tool = weapons.GetStored("gmod_tool")
    local old_getviewmodelposition =...
  • AFAIK it's either sv_cheats or sv_allowcslua; You...

    AFAIK it's either sv_cheats or sv_allowcslua; You only need to sv_allowcslua.
  • Replies
    3
    Views
    248

    You are technically overriding the OnTakeDamage...

    You are technically overriding the OnTakeDamage of the base Gmod entity. Also, why do you have a redundant return statement?
  • Ewww.... >_> I mean yea it works, but.... ew.

    Ewww.... >_>

    I mean yea it works, but.... ew.
  • Replies
    2,111
    Views
    112,850

    Oh, sorry, Chrome doesn't have a GB dictionary so...

    Oh, sorry, Chrome doesn't have a GB dictionary so it gets flagged as a misspelling. :/

    Also, for type checking, what's wrong with luaL_checkudata?
  • Replies
    2,111
    Views
    112,850

    Uh, yes, especially with LuaJIT where calls to...

    Uh, yes, especially with LuaJIT where calls to non-FFI C functions can't be compiled.

    Also it's "Optimizing" not "Optimising"
  • That's not the point. The point is that the...

    That's not the point. The point is that the addons shouldn't be relying on this, because it silences potential problems.

    I'll make it compatible with the GM implementation, but with a convar to...
  • Scripts shouldn't be passing non-integer values...

    Scripts shouldn't be passing non-integer values for repetitions; it doesn't make sense, and probably means that a calculation is going wrong somewhere.

    Also post here...
  • Improved Garry's Mod Functions (Timers capture errors, etc.)

    I've rewritten some of Garry's built in functions to provide more features and better performance.

    Download from the Github page

    Timers
    Improvements:
    • Error capturing (with full tracebacks...
  • Replies
    215
    Views
    7,085

    http://wiki.garrysmod.com/page/Global/CreateConVar...

    http://wiki.garrysmod.com/page/Global/CreateConVar

    Page is Global/CreateConVar but incorrectly documents some mashup of that and ConVarExists
  • Yea, I'm definitely going to rewrite the hook...

    Yea, I'm definitely going to rewrite the hook module...
  • Replies
    2,111
    Views
    112,850

    I'm looking through the hook code... for k,...

    I'm looking through the hook code...


    for k, v in pairs( HookTable ) do
    if ( v == nil ) then
    ErrorNoHalt("Hook '"..tostring(k).."' tried to call a nil function!\n")
    HookTable[ k ] = nil...
  • Replies
    12
    Views
    707

    NAN = Not A Number, ie the result of...

    NAN = Not A Number, ie the result of <anything>/0. It's not Java specific: http://en.wikipedia.org/wiki/NaN
  • Improved Timers (Error-Capturing+Tracebacks)

    New thread with more stuff: http://www.facepunch.com/showthread.php?t=1222105&p=38252042#post38252042
  • Replies
    361
    Views
    19,134

    That's not possible unless Garry switches to...

    That's not possible unless Garry switches to using FFI for everything. Any call to a 'Classic' C function (those defined via the C/Lua API, ie, almost every GMod built in function) aborts the...
  • Replies
    6
    Views
    380

    No it shouldn't. He isn't supposed calling the...

    No it shouldn't. He isn't supposed calling the function.
  • Replies
    361
    Views
    19,134

    net.WriteBit takes a boolean. net.ReadBit returns...

    net.WriteBit takes a boolean. net.ReadBit returns an integer.

    This is not cool when 0 evaluates to true. I spent over an hour trying to find out what was wrong with my code because of this.
  • Replies
    2,111
    Views
    112,850

    Where the hell did the changelist go? ...

    Where the hell did the changelist go?

    https://docs.google.com/document/d/1dVgp8ojkrIjxVRFADUF5uwZQiLLivHixkmV5PW5v9Fw/edit gives "Sorry, the page (or document) you have requested does not exist."...
  • Replies
    6
    Views
    332

    Why not make Normalize work like setmetatable or...

    Why not make Normalize work like setmetatable or ffi.gc where it returns the object you use it on as well as normalizing it? Then we could still use it in most equations without splitting it into...
  • Oh, for sounds. Uh, what is the purpose of the...

    Oh, for sounds.

    Uh, what is the purpose of the hook.Add's? 'Death' and 'Hurt' aren't defined.
  • Why would you want random file names?

    Why would you want random file names?
  • Yea this is a much better solution; I'm using it...

    Yea this is a much better solution; I'm using it in my game and it works extremely well. Foreign keys also help with consistency and moving rows around.
  • Replies
    50
    Views
    1,428

    Start single player game Realized I haven't...

    Start single player game
    Realized I haven't changed a piece of code that I needed to
    Alt+Tab -> Change it
    Wait for GM to finish loading so I can exit SP
    Exit
    Repeat
  • Replies
    9
    Views
    534

    Don't see why not. They both compile to DLLs...

    Don't see why not. They both compile to DLLs which are a standard format. According to http://www.mingw.org/wiki/MixingCompilers the only real problem is name mangling, which is AFAIK solvable...
  • Replies
    9
    Views
    377

    You can also use math.exp(1) instead of...

    You can also use math.exp(1) instead of hardcoding the constant.

    EDIT: Herp derp math.log = natural log.
  • Replies
    18
    Views
    764

    And this, cause the enums aren't documented on...

    And this, cause the enums aren't documented on the main wiki yet: http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index41fc.html

    Specifically NO_SELF_COLLISIONS
  • Replies
    11
    Views
    591

    By the way coroutines are broken in GM12. They're...

    By the way coroutines are broken in GM12. They're fixed in GM13 though.

    http://www.lua.org/manual/5.1/manual.html#2.11
  • Replies
    6,412
    Views
    180,182

    First things first; why a global variable? Make...

    First things first; why a global variable? Make it local to your script.
  • Results 1 to 32 of 120
    Page 1 of 3 1 2 3