1,012 Results
snip, misread.
_nonSENSE Developing Reply
Spaces in filenames are usually not a good idea. Have you tried renaming the file (using _ instead)?
_nonSENSE Developing Reply
There's an extra comma at line 9 (near "_data mediumtext,").
_nonSENSE Developing Reply
[img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Entity/StopParticles]Entity:StopParticles[/url]
_nonSENSE Developing Reply
You are allowed to add font files but they are currently not being mounted properly, so you cannot use them. I've been bugging Robotboy655 about this for 6 months and he said he'd look into why they are not being mounted; nothing has come of it though.
_nonSENSE Developing Reply
[QUOTE=meharryp;48245260]Is fastdl really that hard to set up?[/QUOTE] That's beside the point. Why should we have to set up a fastdl server just to send some fonts when we provide all of our other content through the workshop? [editline]19th July 2015[/editline] [QUOTE=...
_nonSENSE Developing Reply
While I hate to be naggy about this and having to bring this up every few weeks, I'm gonna ask again about the status of the [URL="https://trello.com/c/qFjr4iTZ/29-fix-fonts-not-being-loaded-from-workshop-addons"][B]"font-from-workshop-addon-loading" issue[/B][/URL]. I rea...
_nonSENSE Developing Reply
Since it has been another 3 months, I'll go ahead and bump this again. [QUOTE=_nonSENSE;47256407]Has the "fonts not being loaded from workshop addons"-bug been addressed / fixed yet?[/QUOTE]
_nonSENSE Developing Reply
At first glance I'd say you are tying to compare an entity to a string, which won't work. You'll have to use tr.Entity:GetClass() == "hl2mp_ragdoll" instead of tr.Entity. [editline]7th June 2015[/editline] Also, make sure you check if the entity is valid (IsValid(tr.Entity))...
_nonSENSE Developing Reply
[QUOTE=Robotboy655;47737371]Sorry for missing the deadline, guys. Again. I have been dealing with some university stuff the past few weeks, I got two more weeks tops before I can spend more time on GMod. Kilburn is also busy with his non-GMod stuff for the past few month...
_nonSENSE Developing Reply
It's an SQLite database; you can try using an external program like [url]http://sqlitebrowser.org/[/url]
_nonSENSE Developing Reply
[QUOTE=Robotboy655;47401269]Can you give me a workshop addon that has a font?[/QUOTE] Sorry, I only have a content pack containg fonts without any lua files. Nevertheless, packed fonts should still be usable; I think of the workshop (with content packs) as a replacement fo...
_nonSENSE Developing Reply
[QUOTE=Robotboy655;47399621]Fonts are supposed to be extracted from the .gma after the addon is downloaded & decompressed. Do they not?[/QUOTE] As far as I can tell, players on my servers do not see the fonts in-game if they are being packed in the .gma file. It would be f...
_nonSENSE Developing Reply
Now that the crashing has been (temporarily) resolved, I'm just going to bump this post from a couple of weeks ago: [QUOTE=_nonSENSE;47256407]I have not been following the thread all that thoroughly so I'm just gonna play dumb and ask away: Has the [B][URL="https://trell...
_nonSENSE Developing Reply
What is the easiest way of finding ACT_ enums and corresponding animations for use with the Nextbot StartActivity function? I've been developing Nextbot NPCs for a while now and I've been having trouble finding certain attack / cast animations. Any ideas on how to do do thi...
_nonSENSE Developing Reply
How have I only just seen this? Fantastic work! I've always wanted to use SublimeLinter, but vanilla Lua was just not an option.
_nonSENSE Developing Reply
I have not been following the thread all that thoroughly so I'm just gonna play dumb and ask away: Has the [B][URL="https://trello.com/c/qFjr4iTZ/29-fix-fonts-not-being-loaded-from-workshop-addons"]"fonts not being loaded from workshop addons"-bug[/URL][/B] been addressed /...
_nonSENSE Developing Reply
[QUOTE=AIX-Who;47145425]What Phoenix said, in your server config set sv_region to 255 as NFO by default set it to the server region[/QUOTE] Makes no difference whatsoever.
_nonSENSE Developing Reply
[QUOTE=freakyy;46206509]I really wish you could extend NextBot's functionality...[/QUOTE] Agreed; there's quite a few things that are missing to make them actually useful. A proper clientside entity would be a good start.
_nonSENSE Developing Reply
[CODE] hook.Add("PlayersBlinking", "SCP173move", function() print("NEVER") scp:StepForward() end) [/CODE]
_nonSENSE Developing Reply
[QUOTE=Futt Bucker;45121040]With regards to query:Wait(), Does it need to be called every function that I create with it or is it not needed at all. The current server I am running is having some issues and trying to optimize code to see what may be causing some lag.[/QUOTE] ...
_nonSENSE Addons Reply
[QUOTE=JetBoom;44594820]It worked before the patch and didn't break on map restart either.[/QUOTE] [URL="http://facepunch.com/showthread.php?t=1234005"]gm_glsock2[/URL] seems to work fine for me even after the patch. Running win server, not sure of your setup though.
_nonSENSE Developing Reply
[url]http://facepunch.com/showthread.php?t=1357773[/url] or [url]http://facepunch.com/showthread.php?t=1220537[/url]
_nonSENSE Developing Reply
This looks extremely promising; donation sent! Keep up the good work!
_nonSENSE Addons Reply
[QUOTE=Feihc;43176859]I recently changed how the hammers deal damage so you can actually kill things with them.[/QUOTE] Gooood, now that you've got a hammerdin, write a bot and do baal runs 24/7
_nonSENSE Developing Reply
Set sv_downloadurl to "http://vixualgaming.x10host.com/fastdl/garrysmod/"
_nonSENSE Developing Reply
Been messing around with the surface library again and wanted to imitate HUD status icons (buffs / debuffs) from games like Dota 2. [IMG]http://i.imgur.com/Ol9nGZC.gif[/IMG] (Ignore the little stutter in the bottom left corner, that's where the gif loops [i think]) I...
_nonSENSE Developing Reply
Load *.pcf files and precache the particle systems on both client and server (can be done in "Initialize"): [lua] game.AddParticles("particles/item_fx.pcf") PrecacheParticleSystem("unusual_bubbles") [/lua]
_nonSENSE Developing Reply
[QUOTE=PotcFdk;41351048]Wasn't it [I]-icon[/I] ?[/QUOTE] Wow. Just... wow. Thank you.
_nonSENSE Developing Reply
Can't seem to publish any addons with this; getting "PublishWorkshopFile failed! (9)" and "PublishWorkshopFile failed! (16)" errors. [code] C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\bin>gmpublish.exe create -addon moronyard-content-pack.gma -logo "E:\GMOD ADD...
_nonSENSE Developing Reply
OnPlayerChat is called whenever [B]any[/B] player chats. Compare the player object passed by the hook to LocalPlayer() to make sure only that player's menu is opened.
_nonSENSE Developing Reply
[QUOTE=the idiots;38922375]an i help make the maps? i have some good ideas[/QUOTE] Sure! We have some guides on how to make maps for Smash / Slope on our forums. I meant to update this thread months ago, a lot has changed since this was posted. Oh well, it will probably on ...
_nonSENSE Addons Reply
Legacy addons do not support the autoreload feature; so yeah, you'll have to reload the map every time you change something.
_nonSENSE Developing Reply
[lua] for _, winner in pairs( player.GetAll() ) do if ( winner:Alive() ) then for _, v in pairs( player.GetAll() ) do if (v != winner) then v:ChatPrint(winner:Name().." is the winner!") else ...
_nonSENSE Developing Reply
AddCSLuaFile
_nonSENSE Developing Reply
In order for the ShouldCollide hook to be called for an entity, you need to do this: [lua] ent:SetCustomCollisionCheck( true ) -- in this case ent would be the player entity [/lua]
_nonSENSE Lua Developer Discussion Reply
That looks absolutely amazing.
_nonSENSE Addons Reply
I've run into an issue where setting the RenderMode of a SENT clientside in the [B]Draw[/B] hook does not work to adjust the alpha. What hook would I use to set different transparency values for individual entities? Here is some sample code that does no longer work (used to...
_nonSENSE Developing Reply
[lua] pl:SetColor(Color(255,255,255,50)) pl:SetRenderMode(RENDERMODE_TRANSALPHA) [/lua]
_nonSENSE Developing Reply
[QUOTE=Turtle95;38494978]I'm working on changing this "#mine turtle" to be "Mine Turtle" (which is proving difficult)[/QUOTE] [b][url=http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index1c47.html]Language.Add [img]http://wiki.garrysmod.com/favicon.ico[/img][/url]...
_nonSENSE Developing Reply
[QUOTE=andreasf11;38330741]how can i use custom fonts in my hud like this one: [URL]http://www.dafont.com/velocity.font[/URL] ?[/QUOTE] Put it into the resource/fonts folder and use surface.CreateFont. Don't forget to resource.AddFile the font as well.
_nonSENSE Developing Reply
The difference between the HTML panel and gui.OpenURL is the fact that you are not logged into steam community while using the HTML panel. So no, you can't abuse the addon voting with a HTML panel. On the other hand, I used gui.OpenURL primarily for the fact that the user w...
_nonSENSE Developing Reply
[QUOTE=Fisheater;38209349]Why doesn't Garry just default SE to off? If servers want SE on, they can turn the server convar to 1.[/QUOTE] Why don't servers who don't want SE on disable it?
_nonSENSE Developing Reply
The fact that JSON is already implemented in a lot of other languages and is still human-readable is the biggest advantage for me.
_nonSENSE Developing Reply
[QUOTE=Ruzza;38171851]Why on earth is WorldSound nil, theres no documentation.[/QUOTE] sound.Play [URL]http://garrysmod.com/post/31989743408/gmod-beta-update-34[/URL] Also: [URL]http://wiki.garrysmod.com/page/Global/WorldSound[/URL]
_nonSENSE Garry's Mod General Reply
Not sure if this has been reported or if I am just being retarded; pcf files that are sent to the client and put into "downloads/particles/" cannot be added via game.AddParticles("particles/custom_particles.pcf"). Moving them out of the downloads/particles folder into the /...
_nonSENSE Garry's Mod General Reply
[url]http://steamcommunity.com/dev[/url]
_nonSENSE Developing Reply
How I handle items with custom attributes in my addon: Each item has a base. This base item holds several properties that are set in stone for that base item, such as: - ID - Name - Description - Cost - Type ... I actually store all of these base items in a shared ...
_nonSENSE Lua Developer Discussion Reply
When you set up the query, you can specify several callback functions: [lua] local query1 = database:query("SELECT ID, Name, Cost FROM test WHERE Cost > 0.50") query1.onData = function(Q,D) print("Q1") PrintTable(D) end query1.onSuccess = printQuery query1.onError = f...
_nonSENSE Developing Reply
Check your onError callback, print the query you use and check for syntax mistakes. Lastly, check if you have your database set up to auto-commit changes.
_nonSENSE Developing Reply
Notepad++ or Sublime Text 2 are pretty great; both even support the GLua syntax and libraries. [url]http://notepad-plus-plus.org/[/url] [url]http://www.sublimetext.com/2[/url]
_nonSENSE Developing Reply
The font "TabLarge" is no longer a default font in GM13. Either recreate it with surface.CreateFont or use a different font.
_nonSENSE Developing Reply
The GM13 version seems to have broken after the latest update: [code] > require("mysqloo")... attempt to index a number value [/code]
_nonSENSE Developing Reply
-snip-, about 8 hours late.
_nonSENSE Developing Reply
[QUOTE=littleboyred1;37527351]I'm new to LUA, and modding in general, so here's a probably simple question: How do i make a function call at a very small interval? Like say, every 1/20 of a second? Kinda like the intervals in Expression 2. Thanks in advance.[/QUOTE] [b][ur...
_nonSENSE Developing Reply
[QUOTE=teras23;37522938]Oh so pl, ply are LocalPlayer() ?[/QUOTE] Not necessarily; pl and ply are just popular variable names used to identify player objects. The don't actually refer to a player object until you assign them properly or are passed by a called hook, etc. [lua...
_nonSENSE Developing Reply
[QUOTE=Python1320;37401660]Don't know if it works but blackawps compiled one for Windows: [url]http://code.google.com/p/blackawps-glua-modules/source/browse/#svn%2Ftrunk%2Fgmsv_furryfinder%2Fbin[/url][/QUOTE] Works perfectly!
_nonSENSE Addons Reply
Sorry, can't test this since I have no access to a linux server. Thanks anyway!
_nonSENSE Addons Reply
Could somebody update this for GM13 please?
_nonSENSE Addons Reply
[QUOTE=LEETNOOB;37376468]HUD[/QUOTE] That looks really nice.
_nonSENSE Developing Reply
[QUOTE=Banana Lord.;37375898]wasn't TTT born from one of these contests or something[/QUOTE] The official Fretta contest, yes.
_nonSENSE Addons Reply
Post code please.
_nonSENSE Developing Reply
[QUOTE=Drakehawke;37369980]Give me an example query that should work in a normal MySQL client and I'll see if I can get it working on here.[/QUOTE] [code] BEGIN WORK; UPDATE myTable SET value = value + 1 WHERE id = 1; UPDATE myTable SET value = value - 1 WHERE id = 2; ...
_nonSENSE Developing Reply
[QUOTE=Drakehawke;37325547]Code to replicate? I'm connecting to a database then running changelevel gm_construct and it's fine?[/QUOTE] It's complicated; I will try to isolate all the queries that are run and put them into a separate add-on. I'll let you know. [editline]2...
_nonSENSE Developing Reply
Still crashing for me on mapchange with the "GetTable - not a table!" error.
_nonSENSE Developing Reply
DImageButton inherits OnCursorEntered and OnCursorExited from DLabel: [lua] self.proceedButton.OnCursorEntered = function() -- do something end self.proceedButton.OnCursorExited = function() -- do something different end [/lua]
_nonSENSE Developing Reply
[lua]function SWEP:OnDrop() self:SetColor(Color(255,255,255,255)) -- this is for GM13 (Beta); for GM12, use SetColor(255,255,255,255) end[/lua]
_nonSENSE Developing Reply
[QUOTE=slayer3032;37031373]In my opinion I found myself updating my gamemodes far less overtime because changing the map to build a datapack and then having to download it, bz2 it on my computer and then upload it to the webserver being annoying as shit. Clients would always c...
_nonSENSE Developing Reply
[QUOTE=Kopimi;36956897]what is the most up to date method of sending data from server to client (and client to server as well i guess)? when i was into GLua it was umsgs but i remember garry added something like a "data" library that you're supposed to use instead. i'm trying ...
_nonSENSE Developing Reply
[QUOTE=KillerLUA;36756823]I am working on GMod IDE, with all the beta changes, it's hard to keep up. But I'm hoping to maybe release after beta. Since I went dark with the project, I got alot of new controls on it as well as getting parenting working... and [B]alot[/B] of bug ...
_nonSENSE Developing Reply
Should be this: [URL]http://www.facepunch.com/showthread.php?t=1195018[/URL]
_nonSENSE Developing Reply
[QUOTE=Teddi Orange;36634638]Runs fine. I believe the old "Timers don't run when no one is connected" was changed a while ago.[/QUOTE] Ah, thanks for the heads up. Disregard what I said earlier then.
_nonSENSE Developing Reply
[QUOTE=Ruzza;36633627][lua]timer.Create( "AntiTimeout", 30, 0, function() local Query = mysql:query( "SHOW STATUS LIKE 'uptime';" ) Query:start() end )[/lua][/QUOTE] Doesn't run if nobody is connected / has connected to the server. If your server is empty for a while ...
_nonSENSE Developing Reply
That is an issue with your MySQL configuration; increase the value of the [URL="http://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html#sysvar_wait_timeout"]wait_timeout[/URL] system variable. Alternatively, you can send a query every x seconds to keep the connecti...
_nonSENSE Developing Reply
Or table.remove(inventory, k).
_nonSENSE Developing Reply
Delete the contents of your cache folder in your garrysmod directory.
_nonSENSE Garry's Mod General Reply
Engine update broke this: [code][gm_luaerror] Signature scan failed. Report this please![/code]
_nonSENSE Developing Reply
Well incase he does mean the CommunityID, he can still have a look. Otherwise, the UniqueID, as Wizard of Ass already stated, can easily be calculated (CRC of ("gm_" + SteamID + "_gm")).
_nonSENSE Developing Reply
[URL="http://forums.alliedmods.net/showthread.php?t=60899"][B]This thread[/B][/URL] contains a lot of discussion and code snippets for the SteamID -> CommunityID conversion and vice-versa.
_nonSENSE Developing Reply
[QUOTE=Feihc;36403177]Anytime I reference the player object like that it's to overload functions i.e. [lua] local oldSetHealth = _R.Player.SetHealth function _R.Entity:SetHealth(amount) print("Health of " .. self .. " has been set to " .. amount") oldSetHealth(am...
_nonSENSE Developing Reply
ENT.Touch is serverside. You don't need to use any console commands. Just run the function you want to run.
_nonSENSE Developing Reply
Make sure you have the latest binaries, download them [B][URL="http://code.google.com/p/gmodmodules/source/browse/#svn%2Ftrunk%2Fgmsv_furryfinder%2Fbin%253Fstate%253Dclosed"]here[/URL][/B].
_nonSENSE Developing Reply
[QUOTE=Chessnut;36301736][lua] for i = 1, amount do -- Add one point. end; [/lua] Like that?[/QUOTE] Wow. I don't even know what to say. How about: [lua] --[[for i = 1, amount do -- Add one point. end;]] local newCash = oldCash + amount [/lua]
_nonSENSE Developing Reply
You can use resource.AddFile("models/whatever.mdl") to add the other files for that model (provided they have the same name).
_nonSENSE Developing Reply
[QUOTE=dannyoboy007;36213974] -A random ammo/weapon arsenal sometimes at spawn at the beginning of a map (Not sure if it happens if somebody buys an arsenal, but if the arsenal spawns at the start it can be picked up by anybody and placed back down so that they own it).[/QUOT...
_nonSENSE Addons Reply
[QUOTE=Nexus435;36217119]Is there any way to return the data in the same function the query is declared in without using wait()? It seems wait() just causes the server to lag.[/QUOTE] You are not supposed to use wait. Use the callback function(s) that the query object provides.
_nonSENSE Developing Reply
[QUOTE=gamerpaddy;36167107]oh common :( My Arduino stuff missing again in highlights! hate u[/QUOTE] [QUOTE=Spencer Sharkey;36164344] [Still adding highlights][/QUOTE] He will probably get to it.
_nonSENSE Developing Reply
[QUOTE=infinitywrai;36164936]Recently, I experienced some problems on my MySQL server and I had to reinstall. After reinstalling and restoring backups, I recreated the user accounts I had previously, so my SMF and Wordpress sites worked. Now however, my MySQLoo scripts no long...
_nonSENSE Developing Reply
[QUOTE=CapsAdmin;36132596]creepy stuff[/QUOTE] Nightmares, lots of nightmares.
_nonSENSE Developing Reply
[QUOTE=Spacetech;36113660] Nav:FindPathHull(mins, maxs, function(Nav, FoundPath, Path) end) -- Similar to FindPath but this will trace the specified hull along the path to ensure there is room for something with the hull size to move along it. Mins, and maxs are vectors ...
_nonSENSE Developing Reply
[QUOTE=Hentie;36111921]Can't wait until someone at your server spends hours collecting hats, and then logins one day to find his whole account wiped.[/QUOTE] Are you implying I could be that sadistic? :wink: We also have hourly backups so we should be good.
_nonSENSE Developing Reply
Multiline comments with --[[ only need to end in ]].
_nonSENSE Developing Reply
I have been playing too much Diablo III lately so all the items on our server can now have magic attributes (with affixes). I combined the random drop system and crafting system of TF2 with the affix system for items to create unlimited item possibilities. Oh yeah, there are a...
_nonSENSE Developing Reply
[url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index6402.html?title=Player.GetEyeTrace[/url] Check the trace result for the entity and use GetPos() on that.
_nonSENSE Developing Reply
[B][URL="http://facepunch.com/threads/1089200?p=33348412&viewfull=1#post33348412"]Here we go again...[/URL][/B]
_nonSENSE Developing Reply
-snip- (12 hours late)
_nonSENSE Developing Reply
[QUOTE=zzaacckk;36005045]AFAIK string.split is a fucked up function.[/QUOTE] How so? It just inverts the argument order and returns the result of string.Explode [URL="http://luabin.com/browse/?path=/lua/includes/extensions/string.lua"][Source][/URL].
_nonSENSE Developing Reply
[QUOTE=whitespace;35991314]Since when has 'continue' existed in gmod?[/QUOTE] [B][URL="http://www.facepunch.com/threads/1008655"]A while.[/URL][/B]
_nonSENSE Developing Reply
[IMG]http://www.moronyard.com/uploads/imgs/2012-05-15_15-00-57.png[/IMG] Looks pretty good! (sorry for being so horribly off-topic)
_nonSENSE Developing Reply
[QUOTE=DarkShadow6;35936853]Eclipse screenshots[/QUOTE] What's with the horrible font? No offense but I can barely decipher the names in the package explorer.
_nonSENSE Developing Reply