145 Results
[QUOTE=TheDivinity;32948069]In Main.lua Find this function and remove it. [lua]local function PM(ply, args) local namepos = string.find(args, " ") if not namepos then return "" end local name = string.sub(args, 1, namepos - 1) local msg = string.sub(args, namepos + 1) ...
gmt2001 Addons Reply
Your column types need to be changed. Not all values should be longtext. That is just going to take up a ton of space on your database just for placing a small amount of text. steamid could be changed to VARCHAR(20) and donated looks like its supposed to be a simple true/false...
gmt2001 Developing Reply
According to the code it is supposed to still be showing the paper As an alternative try adding a file called "checkgunlicense.lua" to the darkrp/gamemode/modules folder and paste the following code into it [lua]function checkgunlicense(player, args) local target = ...
gmt2001 Developing Reply
If hes running a pirated GMod then tell him to buy the fucking game. Otherwise he needs to completely erase his GMod installation and re-install it
gmt2001 Addons Reply
[QUOTE=kickguy223;31294938]what do you do if you get this im posting this for a friend LS: entities/pcmod_base/shared.lua:281: attempt to call method 'EntIndex' (a nil value) oh yea im useing the svn that was posted above by tomasfn[/QUOTE]What did you do that caused it to th...
gmt2001 Addons Reply
[QUOTE=Viral_OutBreak;31164709]Alright, will try it today! [editline]17th July 2011[/editline] I tried it - it worked! Now i wanted to say, this mod has potential, I am not talking 100s of downloads I am talking 1000s of downloads, why don't you take up this mod again, make...
gmt2001 Addons Reply
Basically, the ResourceX module is meant to be used in exactly the same way as the built in Resource module with only 2 differences. 1. whether the files are downloaded as part of the server connection process or while you are already playing 2. you add an [b]x[/b] to the ...
gmt2001 Addons Reply
This is TD 2.0 which was made by ThomasFN and Bekka with help from me and a few others. Proper credits and info are in the old thread that ThomasFN posted [url]http://www.facepunch.com/threads/802541-TYE-Tower-Defence[/url] Therefore as one of the coders i demand immedia...
gmt2001 Garry's Mod General Reply
[QUOTE=sniperlover;29448306]Is there a way to stop the MySQL connection from timing out? I have no idea what I should do.[/QUOTE] see [url]http://www.facepunch.com/threads/933647-Gm_MySql-v1.0-OO-edition.?p=26221004&viewfull=1#post26221004[/url] for info about changing the...
gmt2001 Developing Reply
see [url]http://www.facepunch.com/threads/933647-Gm_MySql-v1.0-OO-edition.?p=26221004&viewfull=1#post26221004[/url] for info about changing the timeout at runtime
gmt2001 Developing Reply
[QUOTE=Fleamonji;29215914]Does this not work on Linux? I know that there's a binary for it, but it doesn't load. There's also no libthing that goes in orangebox [editline]16th April 2011[/editline] No libMYSQL.dll in the Linux one, that's it. Module won't load without...
gmt2001 Developing Reply
[QUOTE=leptooners;26527247]Is this mod still in progress? Where's PCMod 3?[/QUOTE] The mod is not supported anymore. Tom isnt even working on GMod stuff anymore
gmt2001 Addons Reply
[QUOTE=^seth;28837259]Does this module keep database connections over map restarts? I mean, if I restart the map frequently will I end up with 500 open MySQL connections?[/QUOTE] All MySQL servers have a timeout which will kill the connection after inactivity. This feature...
gmt2001 Developing Reply
[QUOTE=Buggzie;28870405][url]http://dumps.garrysmod.com/?view=847637057&refresh=15[/url] Still crashes, sorry :([/QUOTE] According to that dump you weren't even running sourcenet
gmt2001 Developing Reply
[QUOTE=PAL-18;28769755]The linux version doesnt contain any linux binaries (it just contains windows binaries). Can you fix it?[/QUOTE] [url]http://dev.mysql.com/downloads/connector/c/[/url]
gmt2001 Developing Reply
[QUOTE=mr.wolf;28653417]How would you have it not threaded and still not stall the server. Seems like any nonthreaded version would suspend the main thread until it was completed no?[/QUOTE] Pretty sure he is saying he does not agree with the method of threading used and i...
gmt2001 Developing Reply
[QUOTE=AzuiSleet;28614300]which means you are expecting it to execute synchronously. Executing the actual query on another thread and blocking the main thread for the result only ends up in serializing the flow, which wasted all the time to create a thread, call the function, ...
gmt2001 Developing Reply
[QUOTE=Teddi Orange;28520591]Is there any way to detect on the client if a model is missing? The reason I ask is because instead of slowly streaming the files to the client, I'd rather just do it on demand, ie client is missing model, send request and download the file. The re...
gmt2001 Addons Reply
Tell us where you put the files and show us an example of how you were using it (with your username/password/host ip removed of course)
gmt2001 Developing Reply
LUA is not threaded. This runs everything in background instead of making you wait for a return
gmt2001 Developing Reply
[QUOTE=Sassharkey;27950880]To convert their 64-bit SteamID to their 'normal' SteamID use this PHP function. [php] function GetAuthID($i64friendID) { $tmpfriendID = $i64friendID; $iServer = "1"; if(bcmod($i64friendID, "2") == "0") { $iServer = "0"; } $tmpfri...
gmt2001 Garry's Mod General Reply
[QUOTE=mikeym;27703620][code]mysqloo:query("SELECT steamid FROM users WHERE steamid='" .. Player:SteamID() .. "'",[/code] Error [code]attempt to call method 'query' (a nil value)(Hook: PlayerSpawn)[/code] Why does it keep returning a nil value, or why is query nil?[/QUOT...
gmt2001 Developing Reply
[QUOTE=raydan;27703289]private gamemode? release to public?[/QUOTE] If he releases the gamemode to the public it will die. Why hasnt anyone on facepunch figured this out yet?
gmt2001 Garry's Mod General Reply
[QUOTE=themaw;27657347]I made the first few waves a little easier. All the monsters have been made smoother. Shouldn't be a problem unless you play on a map with 4 or 3 spawns. I added kill count on the scoreboard and fixed and issue that cause the game to freeze when there...
gmt2001 Garry's Mod General Reply
Can you make players get 1.5x money for starting/killing if they are alone? You are guaranteed to fail if no one else is on
gmt2001 Garry's Mod General Reply
[QUOTE=gmod_letsbuild;26975516]could u help me install this with exsto on a gmod dedacated server as when i do it just crashes exsto i dont know where to install it on a dedacated server only your instructions are for the client version i think? thanks for help :S[/QUOTE] ...
gmt2001 Developing Reply
put quotes around the name that is being inserted otherwise a space could cause a SQL Syntax Error for example[code]sql.Query("UPDATE player_info SET name = "..newname.." WHERE id = '"..SteamID.."'")[/code] should be [code]sql.Query("UPDATE player_info SET name = '"..newnam...
gmt2001 Developing Reply
[QUOTE=whosdr;26711187]Could use some help. The module is causing me to crash under certain conditions. Can you guys check this string? "SELECT `all` FROM `chat` WHERE 'ID' = '0'"[/QUOTE] are you trying to select all available columns? It seems to me that it is what y...
gmt2001 Developing Reply
[QUOTE=Gbps;26596593]Good thing this is a dll and is a plugin for Garry's Mod.[/QUOTE] I have to agree with you Gbps, i didn't know all these years that exe and dll were the same thing In other news, this is pretty useless as anyone who is smart enough to use the output...
gmt2001 Addons Reply
might be that connection thread isn't null or false, but is still an invalid object, so it skips the bad thread error and tries to call member functions, thus raising an error. could also be that the sql db object invalidates itself and becomes the wrong data type to be passin...
gmt2001 Developing Reply
[QUOTE=Drakehawke;26206336]So the database is timing out the connection when it's not in use? What would I have to do to change that?[/QUOTE] You can run a query every few minutes such as[code]SHOW STATUS LIKE 'uptime'[/code] You can also try running this each time t...
gmt2001 Developing Reply
[QUOTE=lostone1993;25327098]where can you see or get pcmod 3 ?[/QUOTE] in toms head. theres nothing to see or get yet
gmt2001 Addons Reply
[QUOTE=lostone1993;25323226]has this addon been abadoned ? as this is an awesome mod[/QUOTE] Its been abandoned for a while. He is supposedly working on a PCMod 3
gmt2001 Addons Reply
That is because their achievements are designed as a client side addon to waste your time
gmt2001 Addons Reply
its an example to show you how to use it. this is for the SERVER OWNERS to create their own achievements. i have a life ya know. ya lazy bum
gmt2001 Addons Reply
update for what? i cant reproduce the problem under my current environment
gmt2001 Addons Reply
[b]<eof> expected near end[/b] means there are TOO MANY [b]end[/b] in the lua. It is expecting the end of the file instead of an [b]end[/b]. Find the unnecessary [b]end[/b] and remove it
gmt2001 Developing Reply
The final query is probably being written as SELECT * FROM rave1 WHERE steam = STEAM_0:1:10933873 when it should be SELECT * FROM rave1 WHERE steam = 'STEAM_0:1:10933873' or SELECT * FROM rave1 WHERE steam = "STEAM_0:1:10933873" Try this [lua] local tab, succ, error = mysql....
gmt2001 Developing Reply
We dont really like each other now but i helped fix some things that he was failing with while he was learning what he was doing wrong No server hosts it but its tested in a listenserver, i dont have a real server to run it on :(
gmt2001 Addons Reply
[QUOTE=Euphytose;18338176]Oh, of course it doesn't happen if I let the pop-up close before completing it.[/QUOTE] it seems to be working fine for me... try it again, make sure you are in MP and not SP. it is not designed for, nor tested in, SP [QUOTE=wirusass0;18381828]But ...
gmt2001 Addons Reply
Try again to see if it happens every time. Also try to see if it happens when you let the progress popup close before completing the achievement
gmt2001 Addons Reply
[QUOTE=Teh_Medic;18301334] I found a glitch, sorry for resolution. I wanted it to upload faster so I resized it. It occurs when the progress box had shown previously, the "Unlocked" notification gets stuck.[/QUOTE] que?
gmt2001 Addons Reply
You sir, fail. Did you even click the link and look? There is no SVN. Everyone on facepunch is now stupider from having read your post. I award you no points, you lose.
gmt2001 Addons Reply
[url]http://code.google.com/p/gmodsachievements/[/url] ^^ You didn't see anything ^^ :ninja:
gmt2001 Addons Reply
[QUOTE=wirusass0;18237342]Spy banned??? Can someone link me to that thread/post?[/QUOTE] click the calendar under his name
gmt2001 Addons Reply
Hooray. another dumb page!
gmt2001 Addons Reply
The answer is to fix the error or get rid of the addon thats causing it
gmt2001 Developing Reply
Its a trap new page oh noes! R.I.P Page 12!
gmt2001 Addons Reply
ENT.Type [url]http://wiki.garrysmod.com/?title=Entity_Hooks[/url] ENT.Base is the folder name of the base entity. The point of a base entity is if you wanted to say make a copy of the BouncyBall but override only 1 of its functions or add a new function of your own. The functi...
gmt2001 Developing Reply
[QUOTE=Sartek;18198992]Gmt 2001 your script has a error when i run it in game [code] Hook 'PlayerJoinedMoneySystem' Failed: autorun/MoneySave.lua:34: attempt to get length of local 'result' (a nil value) [/code][/QUOTE] my apologies. LUA is a bitch xD
gmt2001 Developing Reply
[QUOTE=cheiftiger;18190066]If I was returning true in one of them, it would block all of them correct? Well more than two chat commands work, in fact, all of them work fine except for the new ones I add. But I might just follow what foszor said and make it all in one hook. ...
gmt2001 Developing Reply
the functions use the [b]s_achievements[/b] prefix to avoid conflict with the clientside achievements. Otherwise its pretty much the same
gmt2001 Addons Reply
BTW, to answer your earlier question cl_init.lua is clientside only code shared.lua is client and server code init.lua is server only code
gmt2001 Developing Reply
You can save and load to a .txt file using GLON to use GLON you must make sure your file has the line [lua]require ( "glon" )[/lua]At the top TO use glon to save a file do this [lua] local data = glon.encode( table_i_want_to_save ) file.Write( file_i_want_to_save_to, data )[...
gmt2001 Developing Reply
Example script which loads and saves a players money [lua] --How much money do new players get? local defaultMoney = 100 --This function ensures that the database even has a table for the data function InitMoney() --If the table does not exist in the database... if (!sql.Ta...
gmt2001 Developing Reply
Yep. Today i fixed some errors which occurred from a few changes i was making. I also fixed a small visual problem with my popups. All that really needs to be done now is to make a few fixes to the derma, mainly the DButtons
gmt2001 Addons Reply
You cant really change the spawn menu, just override it to show something else you made in derma(only available when making a gamemode) or add tabs/tools to it
gmt2001 Developing Reply
[QUOTE=Teh_Medic;18154675]I'll test it for you if it helps. I don't think you need to add the achievement hud, In my opinion it will just take a lot of time and effort and won't really make a big difference. Because the time it will take to test it.. Agggh.[/QUOTE] Most lik...
gmt2001 Addons Reply
Things i need to do before distributing serverside: [LIST] [*]Fix a typo in particle effects [*]Finish the Achievements skin (DButton Text Placement) [*]Possibly add the Achievement HUD (the white bar/text with the floating +1's when you earn a point) [*]Test some more [...
gmt2001 Addons Reply
What do you mean?
gmt2001 Developing Reply
Its pretty much done although i might work on adding the achievements HUD
gmt2001 Addons Reply
[QUOTE=*Fish*;18097410]Just rember this anyone who steals your work when all the can get is client side shit clearly cant code there self so they wont be able to code the server side to make it work. This apples to about 90 percent of people who will steal your client side cod...
gmt2001 Developing Reply
[QUOTE=| FlapJack |;18097038]Why would you look at dua when you can log all incoming hooks through lua?[/QUOTE] paranoid people like to do it the hard way :P Besides isnt it easier to just override file.Read with a function that returns the string "DONT STEAL MY STUFF BI...
gmt2001 Developing Reply
[QUOTE=Bang Train;18096852]whats your point? i already know u can do that[/QUOTE] you can waste your time looking at DUA making it only allow approved hooks :P
gmt2001 Developing Reply
[QUOTE=Bang Train;18096713]u can hook them still......just have to know the name of the usermessage[/QUOTE] I dunno, seeing as we can override other functions there is a possibility that we could override usermessage.IncommingMessage to make it auto-hook a message when it come...
gmt2001 Developing Reply
We must be playing different games then. maybe consoles have different point values? these are the values from PC that i had posted. Barricades are also worth 10 points for each board/wall piece. The point values are fixed but there is a 2x bonus
gmt2001 Developing Reply
Also if you want you can concatenate the args instead of using PrintTable [lua]print( ply .. " used the command " .. cmd .. " with these args: "..table.concat( args, ":" ) ) [/lua] replacing ":" with your seperator For example using "," when the persons args are hello and w...
gmt2001 Developing Reply
You could make them entities and then program a ENT:PhysicsCollide to push the player back slightly
gmt2001 Developing Reply
The answer is generally no. If you dont want people stealing your stuff then rename your addons/gamemodes folder or move the stuff you want secret to your documents when your not using it.
gmt2001 Developing Reply
[QUOTE=Entoros;18088923]gmt, get out until you know derma. If you say EnableVerticalScrollbar(false) it makes it disappear, so you need the boolean argument. Anyway, Gun, what I meant was can you please post the code where you populate the DPanelList? (like, use the AddItem...
gmt2001 Developing Reply
Well then, i have a few spelling errors to correct and a final test run to do, and then ill consider it ;) Also this is the dumb page. all posts on this page must be rated dumb :P
gmt2001 Addons Reply
This is your current code [CODE] local JobsTab= vgui.Create( "DPanelList" ) JobsTab:SizeToContents() JobsTab:SetPos( 5, 50 ) JobsTab:SetSize( 150, 380 ) JobsTab:EnableVerticalScrollbar( true ) JobsTab:EnableHorizontal( true ) [/CODE] Try changing your code to this [CODE] loc...
gmt2001 Developing Reply
on the client replace [lua]LocalPlayer():ConCommand( RconCmd:GetValue() )[/lua] with [lua]LocalPlayer():ConCommand( "sv_dothis "..RconCmd:GetValue() )[/lua] on the server side [lua] concommand.Add( "sv_dothis", function( ply, cmd, args ) game.ConsoleCommand( table.concat( ar...
gmt2001 Developing Reply
i have a script which sues the same element types. I run EnableVerticalScrollbar with NO parameters, as it is written in my above post
gmt2001 Developing Reply
[QUOTE=CptFuzzies;18086797]The type of constraint, which is a "Weld".[/QUOTE] That was my guess but with garry you never know if it has some weird name written in 1337 speak or something Oh shit i think i just gave him an idea...
gmt2001 Developing Reply
what game are you playing? its 10 points for damage, 70 points for normal kill, 100 points for headshot kill, and 120 for knife kill
gmt2001 Developing Reply
JobsTab:EnableVerticalScrollbar() There are no parameters
gmt2001 Developing Reply
[lua] function ENT:PhysicsCollide( data, physobj ) local ent = data.HitEntity if (ent:GetClass() == "prop_physics" || ent:GetClass() == "prop_ragdoll") then constraint.RemoveConstraints( ent, "Weld" ) physobj:EnableMotion( true ) end end [/lua]Not exactly sure on the un...
gmt2001 Developing Reply
As long as its coded correctly, yes
gmt2001 Developing Reply
Its just what the function description says You are trying to run RunConsoleCommand("sv_gravity 100") but what you have to instead run is RunConsoleCommand("sv_gravity", "100")
gmt2001 Developing Reply
[QUOTE=Teh_Medic;18086006]Yeah, but you just vanished from the thread when you said you'd release it. =P[/QUOTE] You plus the lack of any support discouraged it
gmt2001 Addons Reply
[QUOTE=wirusass0;18058772]Achievements I guess... But why should "WE" do it?[/QUOTE] Already done, never released
gmt2001 Addons Reply
[QUOTE=Teh_Medic;18035764]On the other hand, we [b]could[/b] work on server-side ones.[/QUOTE] server-side what?
gmt2001 Addons Reply
Script Enforcer will handle all LUA hacks. If you want to block non-lua hacks then you are SOL
gmt2001 Developing Reply
[QUOTE=DarKSunrise;17894021]<eof> is also End of Function.[/QUOTE] i am aware of that, however in his case it means end of file
gmt2001 Addons Reply
double check that you diddnt forget to delete or comment an "end"
gmt2001 Addons Reply
[QUOTE=Euphytose;17814872]I just updated the SVN, and I still have this error: [LUA]autorun/achievements.lua:579: '<eof>' expected near 'end'[/LUA][/QUOTE] <eof> = End of File. Its saying that you have TOO MANY "end" not too little
gmt2001 Addons Reply
The auto-report is because you have .svn stuff in your zip
gmt2001 Addons Reply
Everything is case sensitive. That's the way coding works Like was said above. its trace.HitPos not trace.hitPos
gmt2001 Developing Reply
Guys SHUT THE FUCK UP. Having grease do something about the trolls doesn't help if the rest of you keep the discussion going EDIT: I dare one of you to continue the conversation, see what happens EDIT 2: Lol the person who rated Dumb must be scared
gmt2001 Garry's Mod General Reply
Yes but they have been trolling our topics for ages looking for every chance they can get to claim something is stolen from GMT
gmt2001 Garry's Mod General Reply
Guys. Stop trolling in our thread please. If you wanna bitch about people stealing from gmod tower then go in the OIFY section. It exists for a reason
gmt2001 Garry's Mod General Reply
try reinstalling gmod and then installing the latest versions of each addon
gmt2001 Garry's Mod General Reply
I recommend changing player to ply wherever you do not intend to use the player class
gmt2001 Developing Reply
lol i didn't read it well when i asked for the error. Now that i look at it. He is also being redundant. If 1 serverside file is doing AddCSLuaFile for a clientside file then you do NOT need to also do it in another file again. Also you do NOT need to be including shared.lua i...
gmt2001 Developing Reply
Very weird. That line looks ok to me. Give me the lines 39 to 59 please
gmt2001 Developing Reply
hmm. You do have a point. The result of game.GetMap might not be available when Initialize is called
gmt2001 Developing Reply
[QUOTE=Meiji;17278186]You're missing the point, everyone knows that people take ideas and work with them, it's human nature to imitate. The point is that "TYE" is too fucking proud to admit that right after GMT came out they all of sudden implemented a youtube player, a tetris...
gmt2001 Garry's Mod General Reply
Check server logs for errors. Post your findings
gmt2001 Developing Reply
RunConsoleCommand automatically does this. The first parameter of it is the command to run, the rest of the parameters are the arguments. It automatically spaces them, formats them (Adds quotation as needed), and then runs it Thus the line [lua]RunConsoleCommand( "sendmessage...
gmt2001 Developing Reply