Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - MrPresident

Pages: 1 2 [3] 4 5 6
31
Hello Everyone!

This is my first official module release for ULX since Garry's Mod 13.

This is in addon format. Drop the ULX_TempAddUser folder inside of the .zip file into your addons folder.
Temporarily add a user for a certain amount of time

Usage
ulx tempadduser <player> <group> <time(minutes)> <group>

player - Player name on server who you wish to temporarily promote
group - Group you wish to promote the user into
time - Time in minutes you wish the player to be in the group. NOTE: this is real time from when you run the command. NOT TIME PLAYED. (ex: 1440 would promote the player for 24 real-time hours)
group - The group the player should return to after their time is up. Set this to user if you wish the player to be the default user rank after.

ulx tempadduserid <steamid> <group> <time(minutes)> <group>

steamid - SteamID of the player you wish to temporarily promote.
group - Group you wish to promote the user into
time - Time in minutes you wish the player to be in the group. NOTE: this is real time from when you run the command. NOT TIME PLAYED. (ex: 1440 would promote the player for 24 real-time hours)
group - The group the player should return to after their time is up. Set this to user if you wish the player to be the default user rank after.


Please let me know if there are any bugs.


ChangeLog

Version: 2.4
+ Added the ability to add offline players using their steamid.
+ Fix for Linux compatibility. (Thanks fopje)
+ Possible fix for some of the issues some players have been having with groups not being reverted. Please let me know if this continues.

Version: 2.3
+ Fixed an issue where loading a player's existing temp data when joining a server was trying to compare a number with a string data. Opps!

Version: 2.2
+ Added some code (Thanks Stickly) that fixes the groups not showing up properly in the autocomplete.
+ Fixed the parameter hints to help users with XGUI
+ Hopefully fixed the bug that was showing up client-side displaying an error for IsConnected.

Version: 2.1
+ The script now checks all connected players every 30 minutes rather than setting a timer up to 24 hours on a connected player.
+ Cleaned up the code (removed a lot of debugging commented out code)
+ Commented the functions so users can see what is being done

Version: 2.0
+ Release

32
FAQs / How do I find my SteamID?
« on: September 18, 2012, 12:54:32 AM »
This guide will outline how to find your Steam_ID

What is a Steam_ID?
Your STEAM_ID is a unique identifier that servers use to identify you. No one will ever share a STEAM_ID with you and you will never have the same ID as another user.

How do I find my STEAM_ID?
To find your STEAM_ID is very simple. First you need to be connected to any multiplayer server. Listen Servers do not count.
Once connected, open your console (see below if you do not know how) and type status and press enter.
This prints out a list of all of the users connected to the server and some information about them.
Find the line that has your user name and find within that line your STEAM_ID. (see picture below) It should be listed after your name.

^^ Example of where to find a STEAM_ID within a status report ^^

How do I open my developers console?
While in a game, press ~ (located right above the TAB key)
If pressing that key does nothing, you will need to enable the use of the developers console
To enable the console, Open your options (EXC by default) and select options. Within the options menu, select the Keyboard Options tab and check the box that enables the use of the developers console.

33
FAQs / How do I make myself admin? (3 simple foolproof methods)
« on: September 18, 2012, 12:43:37 AM »
This guide will give you instructions and examples on how to add yourself as the root or superadmin for your new ULX installation

RCon Command from the server console while you are connected to the server.
This is very important. You will need to perform this command from the SERVER console. You will need to be connected to the server before you try and perform this command. If you do not have access to your server console (you rent your server from a 3rd party) you will need to use one of the other methods.
Command: ulx adduser <your user name> superadmin
Notes: You can use a partial name. For example if your name is Super Money Socks, you may enter ulx adduser monkey superadmin

RCon Command from the server console while you are not connected to the server.
This is very important. You will need to perform this command from the SERVER console. For this method you do not need to be connected to the server at the time of running this command. You will need to know your STEAM_ID. If you do not know your STEAM_ID, connect to any multiplayer server and type status into your console. If you do not have access to your server console (you rent your server from a 3rd party) you will need to use one of the other methods.
Command: ulx adduserid <Steam_ID> superadmin
Notes: Make sure you properly format your STEAM_ID of this method will not work. An example would be STEAM_0:1:123456

If you do not have access to your server console at all or the RCon password.
This method is a little more complicated than running the console command. It will involve you editing a default garry's mod file. ULX by default will pull admins from the default garry's mod file as well as its own files.
First shut down your server. After your server is shut down, navigate to your users.txt file garrysmod\settings\users.txt
Inside of the users.txt file find the section for 'superadmin' and you should see garry listed there. Don't worry he is commented out by default. Replace his name and Steam_ID with your own and remove the // from in front of the name. This will uncomment out the entry and allow it to take effect. Once you have done this, restart your server and connect.


^^ Directory location of the users.txt file ^^


^^ What a modified users.txt file should look like ^^

34
FAQs / Factory Resetting ULX/ULib Installation
« on: September 18, 2012, 12:18:43 AM »
This simple guide is designed to assist you with resetting your ULX and ULib installations to factory default.

Why would I want to reset my installation?
By resetting your installation you can clear out any corrupted files you may have that could be causing any number of things. Corrupted data files could cause your permissions or the permissions of users to not load correctly.

How do I reset my installation?
This is very simple.

  • Shut down your server.
  • go into your Garrysmod/data folder and remove the ULib and ULX folders. (See image below)
  • Restart your server.
Upon restarting your server these folders will be recreated with the default settings.

After restarting my server, I am no longer an admin!
This is normal. You have just factory reset your ULib/ULX installation so you will need to re-add yourself as an admin. After giving yourself admin privleges you can then reconfigure your groups and add users as needed.


35
So... I ran in to a problem today.. I am going to start work again on a gamemode that I started a couple years ago which is a medieval RPG / MMO style gamemode. It was going pretty good last time when I ran in to the same problem.. The maps were too detailed and I had reached sources brush limit.

The only 2 solutions for this problem are:

1. Tone down the map and make it less detailed.. This was not an option for me because the detail was one of the things that made the gamemode awesome. Also I wasn't even CLOSE to done with the map so already reaching the limit was a bit of a let down.

2. Convert some repetitive things into models. This would have worked for me in the past because some of the houses were cut and paste so I could have easily converted these to models and it would have worked great. The only issue at the time was that I didn't know how to do this...

^That all changed.. today.

https://developer.valvesoftware.com/wiki/Propper

This little addon for hammer allows you (with a little bit of tweaking) to take a grouping of brushes and straight up convert them into a model. It preserves the textures and there is no need to retexture the prop at all. The only thing that it doesn't do is preserve the mesh types. So the prop I'm about to demonstrate is made up of wood/glass/concrete and brick. If I would have left these as brushes you would get the hit effects in game when you shot them and the sounds as the different types of meshes. also if you are detecting the mesh types of things in your gamemode, this might be a problem now. You can set a single mesh for the entire prop, but it doesn't separate it for you.

Anyway.. here we go.. demonstration time:

In this image we have the house that I created in hammer. This house is fairly detailed (not really... but sort of) there are 88 brushes that make up this building. As you can see.. it is not even that detailed and is already using 88 brushes.


As a stress test, I decided to copy/paste this house about...... 120 times on a single map to see if it would compile. Not that my gamemode would have 120 houses.. but that was just a good round number to test with.

Turns out I was using about 25x the max amount of brushes.

I started doing some research and found the tool that I linked up above and after some reading on the wiki and playing around with it, I got it to compile the house into a single prop which I then put back in the map as a static prop. (Note: Static props are treated in the game as world brushes but don't count toward the brush count. They can not be manipulated in any way like dynamic props or changed or removed.. the client must still have the model and textures installed to see them though or they will get the red error in it's place)

This is what I got...


Army of houses..

The final map size of the second image was actually about half a meg smaller than the first one. Even though there are about 126 more houses.


Just thought I would share in case anyone else might find this useful! Enjoy.

36
Off-Topic / SG:S - Current Project
« on: July 23, 2012, 02:39:25 AM »
I've been lua(ing) a LOT lately... 8-12 hours a day (yay for having a laid back job where I can mess around with my own system when I'm not working)



If you want to see some more info about it check here is the website (it's not complete yet)
http://www.g4p.org/Stranded

Also there is a lot of discussion going on in our forum.
http://g4p.org/Forum/forumdisplay.php?fid=38

37
Off-Topic / Vaccation in the Sun!
« on: November 26, 2011, 09:30:39 PM »
So.. I feel like it was just 27 months since I wrote this post, my how the time sure does fly when you're having fun!


Anyway, all joking aside. I will be leaving very soon for Afghanistan. We are going to the southern region, near Kandahar. I've come a long way since my last deployment to Iraq and I think I'm more prepared mentally and physically for what lies ahead.

As usual, I'll be out of the States for 12 months and I say my goodbyes now because I don't know what is lying in store for me there. I could have internet, but I am not banking on that fact.

I hope that you all continue to grow as developers and more importantly as a community in my absence. I'll be back and when I get back I plan on diving head first into everything I've been missing out on.

So, until next time, I'll catch everyone later!



P.S. I hope I have good internet there, and then it'll be like nothing changed, but either way. Just thought you all should know. :)

38
Off-Topic / Gone for a month
« on: August 04, 2011, 02:19:29 AM »
I leave in about an hour for the National Training Center at Fort Irwin, California.

I'll be there roughly a month!

I may have very extremely limited internet via my android, but that's about it.

Talk to you all in September!!

39
Off-Topic / When MineCraft torches attack!
« on: June 11, 2011, 08:51:38 PM »
*Disclaimer - I was running this server so there were no mods installed that could have possibly done what I am about to recount. I'd used all server mods before and after this and never saw this happen nor has it ever happened since. This is not a joke and it actually happened to a group of us playing MineCraft one night.*


It all started when a group of us from G4P were all playing on our MC server. We had just started a new map and were starting to build up our settlement. It was getting to be night so we placed a few torches outside around the ground to keep the monsters from spawning all up on us while we were trying to build.

I was building inside of my wooden structure when I noticed there were a few extra torches on the walls than what I remembered placing, and I am usually pretty anal when it comes to placing torches very symmetrically.

I walked outside to see who was placing torches in my house when I noticed that there were quite a few more torches outside too... and they were placed in a very grid-like way. I started asking questions over Ventrilo and that's when we started to notice that the torches were actually duplicating and expanding their influence... much like the creep in StarCraft.

here are some Screen Shots (since I know if there are none.. then it didn't happen):


This was taken from where we were building.


This one was me running out until the end of the spawned area.


More from inside the town.


As far as you can see almost.


Ground Zero: Towards the end... as you can see there is a torch in every single available space...



Cartographer #1



Cartographer #2 - 20 minutes after #1


And finally.. here is a video:
It was late and we were all pretty tired... so excuse the over-excitedness and occasional swearing.
http://youtu.be/IT3MB-MZBbY

40
First off.. this is provided AS IS... It should be fairly straight forward for anyone with any knowledge in these things. I MIGHT provide some support if anyone has any questions, but this is not a release and none should be expected.
Second... this is not a release. It's a little sloppy and was coded to suite MY needs, I just thought I'd share it with you guys since a LOT of people have been asking for it.


This requires the MySQL module found HERE

I swiped some of the connection code from UBan. I didn't think Megiddo would mind, especially since it's for personal use. So that being said... thanks to him for the code to connect and query the database.


The database needs to be set up with 4 columns. (steamid, pname, pgroup, banned)

steamid = Player's SteamID
pname = Last known name the player connected with.
pgroup = their ULib user group
banned = boolean value. If the player is banned globally. This works a little different than UBan as it does not add the player to the ban table. It simply kicks them on authentication. kind of a hacky way, but I wanted to display a custom message to banned users telling them to visit our website to appeal, which as far as I know, can't be done with regular banning protocol.

Please make sure you edit the code accordingly. (I.E: remove/change the ban message where it points them to MY website. The concommands are all g4p_ you might want to change that if you want to.)


Anyways.. here is the code. It works... I'm running it on 2 servers right now with plans to put it on at least 3 more, so I know it works. If you can't get it working and are not retarded, reply and I'll try and help you.


Code: Lua
  1.  
  2. --------------------
  3. --     Config     --
  4. --------------------
  5. local host = "127.0.0.1"
  6. local username = "root"
  7. local password = ""
  8. local database = "gmodtest"
  9. local port = 3306
  10. local table = "test"
  11.  
  12. local persistent = true -- Use a persistent MySQL connection?
  13.  
  14. require( "mysql" )
  15. local db
  16.  
  17.  
  18. function DoQuery( query, type )
  19.         local result, isok, err = mysql.query( db, query, type or mysql.QUERY_NUMERIC )
  20.  
  21.         if not isok and err == "" then isok = true end -- False positive
  22.  
  23.         if not isok then
  24.                 error( tostring( err ), 2 )
  25.                 return nil
  26.         end
  27.  
  28.         if result then
  29.                 -- print( query ) -- For debug
  30.                 -- PrintTable( result )
  31.         end
  32.  
  33.         return result
  34. end
  35.  
  36. function Connect()
  37.         if db then return db end -- Still connected
  38.  
  39.         db, err = mysql.connect( host, username, password, database, port )
  40.         if db == 0 then
  41.                 db = nil
  42.                 error( tostring( err ), 1 )
  43.                 return
  44.         end
  45.  
  46.         return db
  47. end
  48.  
  49. function Disconnect( force )
  50.         if not db then return end -- Already disconnected
  51.         if persistent and not force then return end -- Don't disconnect, persistent
  52.  
  53.         local succ, err = mysql.disconnect( db )
  54.         if not succ then
  55.                 error( tostring( err ), 2 )
  56.         end
  57.        
  58.         db = nil
  59. end
  60. hook.Add( "ShutDown", "G4P_SQL", function() Disconnect( true ) end ) -- Force closed on shutdown.
  61.  
  62. function Escape( str )
  63.         if not db then
  64.                 Msg( "Not connected to DB.\n" )
  65.                 return
  66.         end
  67.        
  68.         if not str then return end
  69.  
  70.         local esc, err = mysql.escape( db, str )
  71.         if not esc then
  72.                 error( tostring( err ), 2 )
  73.                 return nil
  74.         end
  75.  
  76.         -- print( "esc=" .. esc ) -- For debug
  77.         return esc
  78. end
  79.  
  80. -- Because we use this a lot
  81. function Format( str )
  82.         if not str then return "NULL" end
  83.         return string.format( "%q", str )
  84. end
  85.  
  86. function G4PSQL_Auth( ply, sid, uid )
  87.         Connect()
  88.         local results = DoQuery( "SELECT * FROM " .. table .. " WHERE steamid = '" .. sid .. "'" )
  89.         Disconnect()
  90.        
  91.         if not results[1] then
  92.                 ServerLog("No Results Found ... Creating Entry")
  93.                 --print("INSERT INTO " .. table .. " ( steamid, pname, pgroup, banned ) VALUES( " ..Format( Escape( sid ) ) .. ", " ..Format( Escape( ply:Nick() ) ) .. ", " ..Format( Escape( "user" ) ) .. ", " ..Format( Escape( "FALSE" ) ).. " )")
  94.                 local result = DoQuery( "INSERT INTO " .. table .. " ( steamid, pname, pgroup, banned ) VALUES( " ..Format( Escape( sid ) ) .. ", " ..Format( Escape( ply:Nick() ) ) .. ", " ..Format( Escape( "user" ) ) .. ", " ..Format( Escape( "FALSE" ) ).. " )" )
  95.         else
  96.                 ServerLog("Results Found ... Loading Results")
  97.                 ply.steamid = results[1][1]
  98.                 ply.name = results[1][2]
  99.                 ply.group = results[1][3]
  100.                 ply.banned = results[1][4]
  101.                 ServerLog("Name: " .. ply.name)
  102.                 ServerLog("SteamID: " .. ply.steamid)
  103.                 ServerLog("Group: " .. ply.group)
  104.                 ServerLog("Banned?: " .. ply.banned)
  105.                
  106.                 if ply.name != ply:Nick() then
  107.                
  108.                         ServerLog( "Updating name for player: " ..ply:Nick() )
  109.                         --print("UPDATE " .. table .. " SET pname="..Format( Escape( ply:Nick() ) ) .. " WHERE sid=" ..Format( Escape( sid ) ) )
  110.                         local result3 = DoQuery( "UPDATE " .. table .. " SET pname="..Format( Escape( ply:Nick() ) ) .. " WHERE steamid=" ..Format( Escape( sid ) ) )
  111.                        
  112.                 end
  113.                
  114.                 ServerLog( "AUTHING PLAYER: " ..ply:Nick().. " in group (" ..ply.group..")." )
  115.                 ULib.ucl.addUser( ply:SteamID(), _, _, ply.group )
  116.  
  117.         if ply.banned == "TRUE" then
  118.                 ULib.kick( ply, "BANNED! Visit our website at WEBSITE HERE to dispute this ban." )
  119.         end
  120.                
  121.         end
  122.        
  123. end
  124. hook.Add( "PlayerAuthed", "G4PSQL_Auth", G4PSQL_Auth )
  125.  
  126.  
  127. function G4PSQL_ChangeGroup( ply, cmd, args )
  128.         local sid = args[1]
  129.         local group = string.lower(args[2])
  130.        
  131.        
  132.         if !IsValid( ply ) or ply:IsAdmin() then
  133.  
  134.                
  135.                 if #args != 2 then
  136.                         if ply then
  137.                                 ULib.tsay(ply, "Not enough arguements!", true)
  138.                         else
  139.                                 ServerLog("Not enough arguements!")
  140.                         end
  141.                 end
  142.        
  143.                 Connect()
  144.                 local results = DoQuery( "SELECT * FROM " .. table .. " WHERE steamid = '" .. sid .. "'" )
  145.                 Disconnect()
  146.                
  147.                 if not results[1] then
  148.                         Connect()
  149.                         local result = DoQuery( "INSERT INTO " .. table .. " ( steamid, pname, pgroup, banned ) VALUES( " ..Format( Escape( sid ) ) .. ", " ..Format( Escape( "SET BY CONSOLE" ) ) .. ", " ..Format( Escape( group ) ) .. ", " ..Format( Escape( "FALSE" ) ).. " )" )
  150.                         Disconnect()
  151.                         if ply then
  152.                                 ULib.tsay(ply, "created player: (" ..sid.. ") with group (" ..group.. ")", true)
  153.                                 ServerLog("created player: (" ..sid.. ") with group (" ..group.. ")")
  154.                         else
  155.                                 ServerLog("created player: (" ..sid.. ") with group (" ..group.. ")")
  156.                         end
  157.                 else
  158.                         Connect()
  159.                         --print( "UPDATE " .. table .. " SET group="..Format( Escape( group ) ) .. " WHERE steamid=" ..Format( Escape( sid ) ) )
  160.                         local result = DoQuery( "UPDATE " .. table .. " SET pgroup="..Format( Escape( group ) ) .. " WHERE steamid=" ..Format( Escape( sid ) ) )
  161.                         Disconnect()
  162.                         if ply then
  163.                                 ULib.tsay(ply, "set player: (" ..sid.. ") to group (" ..group.. ")", true)
  164.                                 ServerLog("set player: (" ..sid.. ") to group (" ..group.. ")")
  165.                         else
  166.                                 ServerLog("set player: (" ..sid.. ") to group (" ..group.. ")")
  167.                         end
  168.                 end
  169.                 ULib.ucl.addUser( sid, _, _, group )
  170.                
  171.         else
  172.                 ULib.tsay(ply, "This command is reserved for administrators only!", true)
  173.         end
  174. end
  175. concommand.Add( "g4p_setgroup", G4PSQL_ChangeGroup)
  176.  
  177. function G4PSQL_Ban( ply, cmd, args )
  178.         local sid = args[1]
  179.        
  180.         if !IsValid( ply ) or ply:IsAdmin() or ply:IsUserGroup("moderator") then
  181.  
  182.                
  183.                 if #args != 1 then
  184.                         if ply then
  185.                                 ULib.tsay(ply, "Not enough arguements!", true)
  186.                         else
  187.                                 ServerLog("Not enough arguements!")
  188.                         end
  189.                 end
  190.        
  191.                 Connect()
  192.                 local results = DoQuery( "SELECT * FROM " .. table .. " WHERE steamid = '" .. sid .. "'" )
  193.                 Disconnect()
  194.                
  195.                 if not results[1] then
  196.                         if ply then
  197.                                 ULib.tsay(ply, "Player with SteamID (" ..sid..") does not exist!", true)
  198.                                 ServerLog("Player with SteamID (" ..sid..") does not exist!")
  199.                         else
  200.                                 ServerLog("Player with SteamID (" ..sid..") does not exist!")
  201.                         end
  202.                 else
  203.                         Connect()
  204.                         local result = DoQuery( "UPDATE " .. table .. " SET banned="..Format( Escape( "TRUE" ) ) .. " WHERE steamid=" ..Format( Escape( sid ) ) )
  205.                         Disconnect()
  206.                         if ply then
  207.                                 ULib.tsay(ply, "Banned player with SteamID: (" ..sid.. ")", true)
  208.                                 ServerLog("Banned player with SteamID: (" ..sid.. ")")
  209.                         else
  210.                                 ServerLog("Banned player with SteamID: (" ..sid.. ")")
  211.                         end
  212.                         ULib.tsay(_, "Player with SteamID (" ..sid.. ") was globally banned!", true)
  213.                         for _, v in pairs( player.GetAll() ) do
  214.                                 if v:SteamID() == sid then
  215.                                         ULib.kick( v, "BANNED! Visit our website at WEBSITE HERE to dispute this ban." )
  216.                                 end
  217.                         end
  218.                 end
  219.                
  220.                
  221.         else
  222.                 ULib.tsay(ply, "This command is reserved for administrators only!", true)
  223.         end
  224. end
  225. concommand.Add( "g4p_gban", G4PSQL_Ban)
  226.  
  227. function G4PSQL_UnBan( ply, cmd, args )
  228.         local sid = args[1]
  229.        
  230.         if !IsValid( ply ) or ply:IsAdmin() or ply:IsUserGroup("moderator") then
  231.  
  232.                
  233.                 if #args != 1 then
  234.                         if ply then
  235.                                 ULib.tsay(ply, "Not enough arguements!", true)
  236.                         else
  237.                                 ServerLog("Not enough arguements!")
  238.                         end
  239.                 end
  240.        
  241.                 Connect()
  242.                 local results = DoQuery( "SELECT * FROM " .. table .. " WHERE steamid = '" .. sid .. "'" )
  243.                 Disconnect()
  244.                
  245.                 if not results[1] then
  246.                         if ply then
  247.                                 ULib.tsay(ply, "Player with SteamID (" ..sid..") does not exist!", true)
  248.                                 ServerLog("Player with SteamID (" ..sid..") does not exist!")
  249.                         else
  250.                                 ServerLog("Player with SteamID (" ..sid..") does not exist!")
  251.                         end
  252.                 else
  253.                         Connect()
  254.                         local result = DoQuery( "UPDATE " .. table .. " SET banned="..Format( Escape( "FALSE" ) ) .. " WHERE steamid=" ..Format( Escape( sid ) ) )
  255.                         Disconnect()
  256.                         if ply then
  257.                                 ULib.tsay(ply, "Unbanned player with SteamID: (" ..sid.. ")", true)
  258.                                 ServerLog("Unbanned player with SteamID: (" ..sid.. ")")
  259.                         else
  260.                                 ServerLog("Unbanned player with SteamID: (" ..sid.. ")")
  261.                         end
  262.                         ULib.tsay(_, "Player with SteamID (" ..sid.. ") was globally unbanned!", true)
  263.                 end
  264.                
  265.                
  266.         else
  267.                 ULib.tsay(ply, "This command is reserved for administrators only!", true)
  268.         end
  269. end
  270. concommand.Add( "g4p_gunban", G4PSQL_UnBan)
  271.  

Create a lua file in garrysmod/lua/autorun and past the above code into it. Happy Administrating!

edit: Fixed something in the code.
edit - JamminR; Corrected URL of SQL module to remove extra http (apparently, SMF doesn't need quotes around the url bb tagged address.)

41
General Chat & Help and Support / Advertisement Order Bug?
« on: August 31, 2010, 10:03:03 PM »
Sorry if this has been reported before..

I created a table group for advertisements to test the new grouping function and here is what I found...


Code: [Select]
"my_group"
{
"Advertisement A" "5"
"Advertisement B" "5"
"Advertisement C" "5"
"Advertisement D" "5"
"Advertisement E" "5"
}

Though in the chat box this is what I got... (cut from console)
Code: [Select]
Redownloading all lightmaps
Advertisement E
65992 gametitle fade
Advertisement C
Advertisement A
Advertisement B
Advertisement D
Advertisement E
Advertisement C
Advertisement A
Advertisement B
Advertisement D
Advertisement E
Advertisement C
Advertisement A
Advertisement B
Advertisement D
Advertisement E
Advertisement C
Advertisement A
Advertisement B
Advertisement D
Advertisement E
Advertisement C
Advertisement A
Advertisement B
Advertisement D
Advertisement E
Disconnect: Server shutting down.
Disconnect: Server shutting down.

Not that this is a huge problem, adverts don't have to be in any order for me I suppose.. but was this intentional?



42
Developers Corner / Garrysmod specific lua question.
« on: July 18, 2010, 09:28:20 AM »
Just thought I'd rub your noggins before I try Facepunch... because trying to get info from them is like trying to pull teeth..


1. Do you know if it's possible to override the 'Q-Menu' Hook. So that when pressing Q it does something else? Example, in a gamemode I am working on, I would like the allow the user to free their mouse by pressing Q without actually displaying the Q menu.


No need to research this... just if anyone knows off the top of their head. I'm going to continue to look for an answer and I'll post it if I find it. Thanks.

43
Developers Corner / Mirroring GLua Wiki
« on: July 17, 2010, 04:24:44 AM »
For my own personal use, I found a program that let me basically mirror any website I wanted to. I set it up to mirror the GMod Lua wiki because one of the major obstacles to me being able to code out here or when I'm traveling is because I don't have access to the wiki which I need on occasion. I set it up to go 3 levels deep starting at http://wiki.garrysmod.com/?title=Lua. So far it's grabbed about 1200 files and it's not even close to being done. It's at about 20MB and counting.

I'm just letting you guys know that once it's done I can zip it and upload it somewhere if anyone else is interested in having it for personal use. I wouldn't recommend trying to host it or anything, but there is no harm in having an offline copy of the wiki for personal use.

Anyways, if anyone is interested, let me know and I can upload it when I get back from Iraq in a few weeks.

44
Off-Topic / Almost done!!
« on: June 28, 2010, 11:11:22 AM »
So, after nearly a year I can finally see that nice little light at the end of the tunnel. That's right... I'm coming home! I'm so happy to be saying that... It's not like this has been out here or anything, unless you consider the living conditions...

Anyways... mission complete. I will be leaving this Country mid July and should be home back in Washington State by 1 August.

I look forward to getting back into the swing of things with all of you.

Anyways again... Could someone please let me know what the current state of GMod is? I mean I've been reading Garry's blog.. but I haven't been able to play at all really the whole time I was out here. I had a copy on my craptop for a while.. but I could never work on anything because I... unfortunately... don't have the lua language memorized by heart yet and didn't have access to the wiki.. so I just gave up.

If things are going well, I'd like to step back into the swing of things. Full swing! I miss coding and I miss all of you guys on Steam and the forums and occasionally the gmod server experience.. lol. so yeah, just let me know whats up.. if it's even worth getting back into.

Also, no need to congratulate me or anything... if you are a working american tax payer... it is ME who should be thanking you! :)

45
I'm planning to rewrite my Warning module for ULX and I want to do what people had suggested by making it cross-session. I'd like to use sqlite that GMod comes with and I know HOW to use it.. but Id also like to be able to explore the database to make sure things are structuring corectly without writing some kind of script that just prints it in my console. Any ideas?

Pages: 1 2 [3] 4 5 6