279 Results
[QUOTE=Darkwater124;38600508]What else (on a PHP webserver)?[/QUOTE] If you're, for some peculiar reason, restricted to a PHP webserver then whatever. There are free Python and Ruby hosts if that's the issue.
wizardsbane Developing Reply
[QUOTE=find me;38596397]Does anyone know how you send a rcon command to a server through php/html?[/QUOTE] [URL]https://developer.valvesoftware.com/wiki/RCON[/URL] [editline]lolno[/editline] P.S. Please don't use PHP unless you really, really have to.
wizardsbane Developing Reply
[QUOTE=Xervion;37292659]I know that, but where does the actual file go?[/QUOTE] Either shove it into the lua/ folder in garrysmod/garrysmod and then run it or shove it into the lua/autorun/client folder in the same root folder and it will auto-run.
wizardsbane Developing Reply
[QUOTE=samuel2213;36533779][IMG]http://cloud-2.steampowered.com/ugc/577834314289377848/786D84111D9FD5A0994403D09C37B69B02E15D08/[/IMG] I know there still are some nodraw parts. See if you can recognize the layout[/QUOTE] So I guess the jail gamemode has truly become an in...
wizardsbane Level Design Reply
[QUOTE=Banshee FrieNd;36509994]Should maybe disable the Normal map on those materials, or maybe "mat_bump 0" and show the results. That could fix the reflections. and run buildcubemaps twice to get the double reflection.[/QUOTE] I have no idea how to disable the Normal map, ...
wizardsbane Level Design Reply
[QUOTE=TurtleeyFP;36509889]How'd you get those reflections? What engine version/game is that in?[/QUOTE] Too many hours constantly adjusting cubemaps that I still couldn't get to form those amazing reflections in the photograph. Half Life 2: Episode 2, Source 2009.
wizardsbane Level Design Reply
Haven't mapped in ages, barely mapped even then. Had a sudden urge, so I just tried to reproduce an image in Hammer. Jesus this was exhausting. My imitation: [IMG]http://i48.tinypic.com/34y70v9.png[/IMG] The actual thing: [URL]http://upload.wikimedia.org/wikipedia/commons/5/...
wizardsbane Level Design Reply
[QUOTE=Map in a box;36011400]But photoshop has a spot healing tool that would probably pick up the lines so you'd just draw over hte letters.[/QUOTE] Dude, that's waaay too much work. Right click >> Colour Range. Also, not everyone buys (pirates) Photoshop or has a sophistic...
wizardsbane Programming Reply
[QUOTE=Ac!dL3ak;36011061]you didn't even post the code, how were we supposed to know you had written a program[/QUOTE] I think he just expected people to realise that no one would actually sit there and delete every small line in an image editor instead of just writing a s...
wizardsbane Programming Reply
[QUOTE=icantread49;35883306]Made a new video for Phyzicle: What do you guys think?[/QUOTE] As opposed to searching for recent keywords (which could be hectic with many thousands of people using the app), you could do a specialised friends list of keywords. Just a sugges...
wizardsbane Programming Reply
[QUOTE=Bluefire;35882782]Vim is one of the ones I can kind of use, but also can't at the same time. I'm terrible with memorization when commands are only a single letter. Especially when commands are also case sensitive on that same letter. Although if I was forced to use a...
wizardsbane Programming Reply
[QUOTE=shill le 2nd;35881268]GVim master race[/QUOTE] I was lost in shell vim land, but then I was found. All of a sudden, slate was the sexiest piece of syntax highlighting scheme to ever touch these ignorant eyes.
wizardsbane Programming Reply
Put the SteamID in quotes. It's a string.
wizardsbane Developing Reply
[QUOTE=JLea;35869068]I'm trying to get the angle between 2 lines. So usually I'd go result = secondAngle - firstAngle; However if the second angle is negative, and the first is positive, I get the wrong answer. Eg. -3-5 = -8. In my program it should be 2. [URL]http:/...
wizardsbane Programming Reply
[QUOTE=Axton;35869030]This helped me also. How would you add multiple Steam Id's? Thanks again.[/QUOTE] [lua] hook.Add("PlayerSpawn", "donator_health_stuff", function(ply) local donators = { <steamID_1>, <steamID_2>, <etc> } if table.HasValue(donators, ply:SteamID()) ...
wizardsbane Developing Reply
Update's on the SVN: [URL]http://facepunch.com/threads/695636?p=35760254&viewfull=1#post35760254[/URL] [QUOTE=thejjokerr;35760254]There already has been an update for it, the revision was made on the 18th according to the google code. Just get it of the svn.[/QUOTE]
wizardsbane Developing Reply
[QUOTE=Mrkrabz;35868801]I still don't understand from that how you would store this {steamid = "STEAM_0:1:16970247", team = 9, vip = 3} in each one of the txt files. Isn't what you posted doing pretty much the same as mine?[/QUOTE] Not the same at all. Full article on GLON: ...
wizardsbane Developing Reply
[lua] hook.Add("PlayerSpawn", "donator_health_stuff", function(ply) if ply:SteamID() == <steamID> then ply:SetMaxHealth(200) ply:SetHealth(200) end end) [/lua] Your donatorHealth function takes a ply argument that you never provide.
wizardsbane Developing Reply
[editline]fuckingeditor[/editline] Ah, misread. Thought he just needed the function to print things out in colour to the chat.
wizardsbane Developing Reply
[QUOTE=Noxic;35830320]If you mean that I should replace worldspawn's skyname keyvalue, that's not quite what I was hoping for, but I guess it's better than nothing. What I was hoping to do was to be able to change what the sky looks like in real-time.[/QUOTE] Ah, right, so...
wizardsbane Developing Reply
Looking through Foszor's code would inevitably give you the answer you're looking for.
wizardsbane Developing Reply
Wouldn't this more so belong in the 3D Modelling request section?
wizardsbane Developing Reply
[QUOTE=SB2DevTeam;35808164]In the end does it really matter what people use? Devs should just use what they prefer, it being git, svn, mercurial. It's pointless to try and get everyone to change just because (some) people prefer something else.[/QUOTE] You're correct, but i...
wizardsbane Developing Reply
Yeah, if MsgC() doesn't automatically print newlines and works on the same sort of stacking that regular Msg works with this should work (pretty similar to your way): [lua] function is_color(colorarr) --Small thing to check for a color table local flag = false if type(colo...
wizardsbane Developing Reply
[QUOTE=synthiackup;35803803]mouseover [vid]http://synthiac.net/videos/tri.webm[/vid][/QUOTE] Gaaaah, demos *cream*
wizardsbane Programming Reply
Isn't a single character 1 byte? If it is: code's just a bit misleading, because you're sending 32 bytes of information, not 32 bits. Ends up being 256 bits. Either way, that's a nice script you've got there. [SUB]A practise several people have rated me dumb for defending :([...
wizardsbane Developing Reply
cols = Color(255, 255, 255, 255)PrintTable(cols) returns: [code] a = 255 b = 255 g = 255 r = 255 [/code] if it's any help.
wizardsbane Developing Reply
[QUOTE=darkrei9n;35801436]Why would it need to be rendered in orthographic? Its rendering fine, just the grid is not a perfect square like it should be.[/QUOTE] I believe Lord Ned said that because Orthographic projection might provide a more accurate depiction of a simple 2...
wizardsbane Programming Reply
Just wondering if this has anything to do with it: Unpack the table into separate variables and then put those variables into MsgC with proper concatenation. If concatenation isn't the issue, I'd look at the syntax definition for MsgC: [code]MsgC( color, str, ... )[/code] and ...
wizardsbane Developing Reply
[QUOTE=Jcw87;35801957]Even the smallest amount of waste is bad. What happens when a server installs 20 addons that each waste a little network bandwidth? That small waste adds up, especially when the server has a lot of players on it. If you can make it more bandwidth efficien...
wizardsbane Developing Reply
[QUOTE=Jcw87;35797899]You should check out this [URL="http://hginit.com/00.html"]SVN user's guide to Mercurial[/URL]. Mercurial is a version control system that is conceptually similar to git, and all the same points apply.[/QUOTE] You're sort of correct if you're just plain...
wizardsbane Developing Reply
EDIT: Yeah, I was obviously wrong.
wizardsbane Developing Reply
[QUOTE=Banana Lord.;35793589]you can look at commit history/file changes in SVN too (depending on where you get it from) and SVN has branches, how is that different from GIT branches[/QUOTE] My point on branches had to do with git's branching bring a piece of the core o...
wizardsbane Developing Reply
[QUOTE=Remscar;35775189]I don't see the use of GIT. It seems exactly like SVN however except you have a local repository aswell, which seems stupid and pointless. Why does each developer need their own repository, they should just use the same and commit/update from it.[/QUOTE...
wizardsbane Developing Reply
[url]http://luabin.com/luasearch/index.php?keywords=Player.InVehicle[/url]
wizardsbane Developing Reply
Should we all move away from Subversion
wizardsbane Developing Thread
I find that the Garry's Mod development community is being fundamentally hindered by the prevalent support of the Subversion SCM protocol. This is a community full of people who want to contribute, but cannot do so as easily as another system (say git) due to the centralised a...
wizardsbane Developing Reply
[QUOTE=Banana Lord.;35764322]My last statement to this extremely dumb argument, but I never said it had no impact. Once again the impact is wasted bandwidth, processing time, and bad practices.[/QUOTE] I suppose it's extremely dumb, because it's impossible for there to be a...
wizardsbane Developing Reply
[QUOTE=Icedshot;35762558]I would say that C++ is pretty much the industry standard for writing commercial non 2d games in. Sure, you get a few in other languages, but C++ dominates, mostly due to the speed of the language and the available libraries out there for it. If you w...
wizardsbane Programming Reply
[QUOTE=Hentie;35761495][img]http://upload.wikimedia.org/wikipedia/commons/9/97/Centripetal_force.PNG[/img] r u happy[/QUOTE] Yes :3
wizardsbane Developing Reply
Here's a simpler one if you like: [lua] local water_start_time = 0 local water_drown_time = 40 --Time till drown hook.Add("Think", "water_drown_think", function() if LocalPlayer():Alive() and LocalPlayer():WaterLevel() >= 2 then if water_start_time == 0 then w...
wizardsbane Developing Reply
[QUOTE=Banana Lord.;35760967]the point isn't that it doesn't impact users, it's bad practice and still a waste of bandwidth.[/QUOTE] Yeah. Like I said, I'm agreeing to this. However, as you admit it has no impact, it is still valid to use. It may not be a [I]proper[/I], [I...
wizardsbane Developing Reply
[QUOTE=Hentie;35761154]I forgot to mention that the website I stole the from called centrifugal force "nonexistant force". The image doesn't address that, but I never said anything about simulating centrifugal force.[/QUOTE] I'm not saying you did. I'm commenting on the in...
wizardsbane Developing Reply
[QUOTE=LemONPLaNE;35759726]I'm more worked up about the fact that the guy holding the rope isn't the center of the circle.[/QUOTE] Haha, that was actually the first thing that entered my mind when I saw the image. I was worried about the misinformation, though. Faulty phys...
wizardsbane Developing Reply
[QUOTE=Killklli;35759818]Well I do seem to be noobish enough on lua to not know how to install it :P (im used to CSS eventscripts) But I tried putting the lua file in lua/autorun/server and it wont work?[/QUOTE] The use of the 'LocalPlayer' function is an indicator that th...
wizardsbane Developing Reply
[QUOTE=joyenusi;35759847]I had actually tried that but I had a few errors that were blocking one file from being read. Thanks a lot anyway.[/QUOTE] Are you doing this in GLua (Garry's Mod version of Lua) or vanilla Lua? If you're doing this in vanilla Lua, you'll hav...
wizardsbane Developing Reply
[QUOTE=Banana Lord.;35758524]the actual harm is that you think it's okay to use bad practices and you're wasting bandwidth.[/QUOTE] It's not [I]me[/I]. Oh! Heavens no. I'm just putting forth that if such a practise doesn't cripple or harm the systems and clients it interacts...
wizardsbane Developing Reply
Heil Ritchie, destroy the Stroustrup doomsday machines, write it in C.
wizardsbane Programming Reply
[QUOTE=SiPlus;35758319]Simulate it with slightly tilted towards the opposite of the prop velocity vector?[/QUOTE] You can simulate whatever you want. I'm commenting on the inaccuracy of that image which is supposed to be describing the forces present in that situation. Centrif...
wizardsbane Developing Reply
[QUOTE=Hentie;35753552]you need to simulate the centripetal force (normal) and path of inertia (perpendicular of the normal): [IMG]http://images.wikia.com/schools/images/a/a8/A4centfc.jpg[/IMG][/QUOTE] I must point out for the sake of accuracy that "centrifugal force" [B][U]...
wizardsbane Developing Reply
[lua]include("items_var_file.lua")[/lua]Goes into the file that needs to use the variables. The keyword 'local' prevents variables from transferring across files in this manner.
wizardsbane Developing Reply
I think this answers your question well: [url]http://stackoverflow.com/a/7780340[/url] [quote] Lua has no concept of a Unicode value. Lua has no concept of Unicode at all. All Lua strings are 8-bit sequences of "characters", and all Lua string functions will treat them as ...
wizardsbane Developing Reply
[QUOTE=Banana Lord.;35755004]it's wasteful and inefficient to send more than you need to[/QUOTE] Oh, alright, so this is more of a pragmatic programming thing than an actual harm.
wizardsbane Developing Reply
I would say no, if only because it would mean that function is utterly redundant.
wizardsbane Developing Reply
[QUOTE=Stillnex;35751164]Any idea why [B][URL="http://wiki.garrysmod.com/?title=Weapon.GetPrimaryAmmoType"]Weapon.GetPrimaryAmmoType [IMG]http://wiki.garrysmod.com/favicon.ico[/IMG][/URL][/B] returns a number rather than a string? I kind of need a way to find the weapon ammo t...
wizardsbane Developing Reply
[QUOTE=Banana Lord.;35747542]if you are using NWVars with more than 256 bytes of data you're really doing something wrong/shouldn't be using NWVars[/QUOTE] [QUOTE=DarKSunrise;35748555]In most situations it's a lot more effective to just use plain user messages instead. Lar...
wizardsbane Developing Reply
[QUOTE=DarKSunrise;35745881]You shouldn't be sending more than 256 bytes of data for a single networked variable in either case.[/QUOTE] Why not, exactly? How many dial-up Garry's Mod players are there?
wizardsbane Developing Reply
The Lua 'program' is necessary to compile/interpret and execute Lua on your computer. Notepad++ is just a text editor (and I would suggest Sublime 2 while on the subject [but it's all just personal preference]). Windows download: [URL]http://code.google.com/p/luaforwindows/[/U...
wizardsbane Developing Reply
[QUOTE=PvM_marcus;35719612]I have done all that, but it doesnt work, it doesnt write into my database.[/QUOTE] Then post your code. No one can help you if you don't give any information besides "I have a problem".
wizardsbane Developing Reply
[QUOTE=Fixed;35719594]Lol my bad, I thought 500 was walking speed. Though I got another question: timer.Create( "PlusStamina", 1, 0, function() if running == false || stamina < maxstamina then stamina = stamina + CFGstaminaReg endend) I want it to s...
wizardsbane Developing Reply
Do you mean the cut edge? Usually that's simply indicative of a poorly-designed sprite.
wizardsbane Developing Reply
What do you mean "setup"? Do you mean "how do I get the module and install it" or "how to I use MySQLOO"? Both of these things were found within seconds using Google. MySQL tutorial using MySQLOO: [URL]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexb25c.html?ti...
wizardsbane Developing Reply
Sigh. Found within 15 seconds using Google. [url]http://facepunch.com/threads/1172596?p=35285795&viewfull=1#post35285795[/url]
wizardsbane Developing Reply
This site has a search function. Google is also really good at searching things. Also, example code. You wouldn't have needed to spend a ridiculous 3 days searching if you'd actually used the search functionality of this site or Google is all I'm saying. [B]Argument retrieval...
wizardsbane Developing Reply
Your stamina code isn't setting the run speed anywhere except when it ends. IIRC, the regular run speed is 500, so it wouldn't make a difference. Have you tried setting the value to something extremely low or extremely high to test it? Did you make sure that your condition is ...
wizardsbane Developing Reply
It could just be how Garry's Mod is rendering the image. I believe that sv_loadingurl was meant for HTML pages. There are numerous, free webpage hosting sites. If you still believe that it is just the image hosting, here are a number of image upload services: [URL]http://tiny...
wizardsbane Developing Reply
I believe you'd have to create a sort of include file in lua/autorun/server with some of these: [URL]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index5809.html?title=Resource.AddFile[/URL] Only models have to be included, materials are automatically handled. [edi...
wizardsbane Developing Reply
[QUOTE=S W;35134394]That will add the command to the server/client so then the specific side will recognize it. I'm just wondering, are all commands that are ran on the client sent to the server? And if so how do I prevent them from being sent to the server to prevent unnece...
wizardsbane Developing Reply
Yes, there are clientside-only commands. No, I'm pretty sure not all commands are sent to the server. To make a purely clientside command, just do the usual concommand.Add in a client file. Severside command in a server file.
wizardsbane Developing Reply
Self and local are used for entirely separate purposes. Local keeps a variable locked into its containing file's scope. Local is usually used to prevent variable name clashing, IIRC. Self, forgive me if I'm speaking too much from other languages, assigns to and alters object...
wizardsbane Developing Reply
I believe these are what you're looking for: [url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index7b85.html?title=DColorMixer[/url] [url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index9a1f.html?title=DColorCube[/url] [url]http://maurits.tv/data/gar...
wizardsbane Developing Reply
I think this should work. DListView is your vgui panel. [lua] DListView.GetSelected().Paint = function() --Draw your stuff here end [/lua] [editline]16th February 2012[/editline] If that doesn't, then try this: [lua] local selected = DListView.GetSelected() selected.P...
wizardsbane Developing Reply
In what way is it "not working". Be specific if you want help. [editline]16th February 2012[/editline] [QUOTE=InfernalCookie;34720318] Also in cl_hud.lua[/QUOTE] There's no point in doing that. What you need to make sure to do is include all your clientside files in cl_ini...
wizardsbane Developing Reply
[QUOTE=Nigey Nige;34711638]Make a version that dumps a set number of images into a folder and upload it plz. In other news, I'm trying to simulate planetoid gravity. [IMG]http://i.imgur.com/JzBPa.png[/IMG] How do I find angle x if I know r and the co-ordinates of p?...
wizardsbane Programming Reply
Nevermind, different solution necessary when dealing with coordinates. Although, I would suggest listening to Zilk. His solution sounds the most physically sound from what I understand.
wizardsbane Programming Reply
[QUOTE=Stormbugz;34668773]Could you be more descriptive? What i found was this [lua] function GM:PlayerCanHearPlayersVoice() return true, true end [/lua] How to intergrate that in to my coding?[/QUOTE] Example from base gamemode: [lua] --[[--------------------------------...
wizardsbane Developing Reply
Remove "i486" and use "linux". I think that's what the fix implies.
wizardsbane Developing Reply
One last try: are you running this on a Linux machine? If you are, did you make sure to try what I think was Chrisaster's previous fix of renaming the original .dll to gmsv_mysqloo_linux.dll? [url]http://www.facepunch.com/threads/933647?p=32571520&viewfull=1#post32571520[/url]
wizardsbane Developing Reply
What's killing me is that your syntax is fine according to mysqloo's creator ([url]http://www.facepunch.com/threads/933647-Gm_MySql-v1.0-OO-edition[/url]), it's just that mysqloo is found to be a nil object, like it isn't being defined when you require it. [editline]12th Febr...
wizardsbane Developing Reply
[QUOTE=Mrkrabz;34666466]Didn't work, I'm pretty sure () work either way.[/QUOTE] Yeah, it was mostly just a prod at something that seemed odd. I mean, this code should work if the person who posted the original tutorial had tested the code. I'll look into it more, or someone...
wizardsbane Developing Reply
Failed suggestion.
wizardsbane Developing Reply
[QUOTE=Bel Irkalli;34665746]It's mainly for people that understand the concept that hooking is unnecessary and messy when coding for a gamemode when you are given simple, clean, and explicit gamemode functions to work with.[/QUOTE] FTFY.
wizardsbane Developing Reply
What was wrong with it? (For future reference)
wizardsbane Developing Reply
[QUOTE=brandonj4;34660471]That is defaultly checked.[/QUOTE] That's weird, usually works for me.
wizardsbane Developing Reply
[QUOTE=brandonj4;34660451]Whats the name of that? SRGB?[/QUOTE] Nah, it's like 8-bit alpha.
wizardsbane Developing Reply
Odd. Does it have an alpha layer in the vtf flags? Maybe that's the problem.
wizardsbane Developing Reply
[QUOTE=brandonj4;34660324]I made the backround black(.png) and it still didn't work.[/QUOTE] What did it look like after you made it black?
wizardsbane Developing Reply
[QUOTE=brandonj4;34660267]Thanks ill try that right now! Yes it is UnlitGeneric. What about the settings for making the vmt? and vtf? (Flags)[/QUOTE] Make sure there is no LOD and no mipmaps.
wizardsbane Developing Reply
Make sure the background of the original .PNG image is black, which is interpreted as an alpha of 0. And, of course, your vmt is UnlitGeneric right?
wizardsbane Developing Reply
Hm, I wish I could supplement a definition to this, but it really just executes the original function you're using. For example, how one might use self.BaseClass:<function>() in a gamemode: [lua] function GM:PlayerInitialSpawn(ply) print("This literally does nothing but p...
wizardsbane Developing Reply
[QUOTE=Failure;34620042]Well at the moment all I need is a simple way of storing an integer value :P[/QUOTE] Oh, well yeah. The clutter issue would arise if you suddenly needed to store some integers for different things, and being used to using files you continued to use th...
wizardsbane Developing Reply
[QUOTE=Killer_Steel;34615025]If you really wanna store small serverside data amounts, I'd use file.Write, and use a loading system with player files named via UniqueID. Longer data streams, like full amounts of information (key SteamID, you wanna store their weaponry, health,...
wizardsbane Developing Reply
You could do it with a little lua script if you wanted: [URL]https://developer.valvesoftware.com/wiki/Npc_combine_s[/URL] [URL]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index3d23.html?title=Ents.FindByClass[/URL] [URL]http://maurits.tv/data/garrysmod/wiki/wiki.g...
wizardsbane Developing Reply
Uh, one sec. [editline]9th February 2012[/editline] Like this: (I think, anyway) [lua] AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include('shared.lua') -- No globals. -- local healthpoints = 100 function ENT:Initialize( ) self:SetModel( "models/prop...
wizardsbane Developing Reply
Make your own little table entry for the entity: ent.treehealth = 100 Same trick is used to set prop owners. [editline]9th February 2012[/editline] This would mean, of course, not using a global for the value. Use the ent:Initialize() part of the script to set the default ...
wizardsbane Developing Reply
[QUOTE=Nexus435;34613402]What good purpose does this have then?[/QUOTE] Not everything has to have a purpose. He said himself that he didn't expect this to be utilised. What's cool is that he made his own scripting language. He probably spent a lot of time on this and decided...
wizardsbane Developing Reply
-ninja'd by 2 hours of this thread not being updated despite an F5...- That was weird.
wizardsbane Developing Reply
[QUOTE=Fantym420;34595510]Well thanks for trying, but either i don't understand the equation or it's just not working for me. I'll keep trying, a class in physics wouldn't hurt either i suppose.[/QUOTE] You're probably doing something right but I'm just not seeing it due to ...
wizardsbane Developing Reply
[QUOTE=Fishbrain;34595150]Thank you, but what I'm I ment to put in these so I can display the timer on the HUD: [LUA] draw.SimpleText(string.ToMinutesSeconds() [/LUA] And this. [LUA] usermessage.Hook("", MainHUD) [/LUA] And okay yeah I changed that bit of code but still cant ...
wizardsbane Developing Reply
[QUOTE=Fishbrain;34594279]Ah okay, and okay thank you :)[/QUOTE] Alright, here you are. Essentially a re-write of your original system but it works now. [lua] -- A simple time-based round system if CLIENT then local timeleft = 0 -- Sets the time left and returns nice out...
wizardsbane Developing Reply