• MODDING HELP - READ ME FIRST - LAST UPDATED 7th November 2017
    0 replies, posted
This forum is for help with modding Garry's Mod. This does NOT include Mapping or Modelling. Please use the following forums for help with those topics: Mapping: [URL]http://facepunch.com/forums/40[/URL] Modelling: [URL]http://facepunch.com/forums/38[/URL] Your first call should be [URL="http://wiki.garrysmod.com/page/Main_Page"]the official Garry's Mod Wiki[/URL]. If you don't find what you need - please post a thread in this forum asking for the information to be put on the wiki - that way you can help everyone. [B]LUA ERRORS[/B] If you are posting a Lua error you're getting - then [B]POST THE FULL ERROR AND THE CODE[/B]. Make sure you are posting the FIRST error you're getting - not the last error. Make thread titles descriptive. Naming your thread "Lua Help" and nothing else will probably get you banned. Do not post huge scripts and expect people to fix them. If you wrote the script then you should know why it doesn't work. If you're editing someone's script and can't get it to work then don't! Learn how to code! KEEP DARKRP QUESTIONS TO THIS THREAD: [URL]http://facepunch.com/showthread.php?t=1249475[/URL] KEEP SMALL QUESTIONS TO THIS THREAD: [URL]https://facepunch.com/showthread.php?t=1548067[/URL] OFFICIAL GARRY'S MOD WIKI DISCUSSION: [URL]http://facepunch.com/showthread.php?t=1250533[/URL] GMAD.EXE THREAD: [URL]http://facepunch.com/showthread.php?t=1242185[/URL] GMPUBLISH.EXE THREAD: [URL]http://facepunch.com/showthread.php?t=1244179[/URL] [B]Want to learn Lua & GLua?[/B] Assuming you have no knowledge of any kind of programming language, Lua is a good place to start because it is a high-level scripting language. That means it is easier to understand. Other good programming languages to start with include [URL="http://docs.oracle.com/javase/tutorial/"]Java[/URL] and [URL="http://msdn.microsoft.com/en-us/library/aa288436(v=vs.71).aspx"]C#[/URL] ( easier than [URL="http://www.cplusplus.com/doc/tutorial/"]C++[/URL] ). Before you start with any programming language, you will need a text editor, preferably with Syntax Highlighting. Here are some recommended ones: * [URL="http://notepad-plus-plus.org/"]Notepad++[/URL] ( + [URL="http://facepunch.com/showthread.php?t=1468732"]GLua highlighter plugin[/URL] ) - Fast and lightweight Windows only text editor * [URL="http://www.sublimetext.com/"]Sublime Text 3[/URL] ( + [URL="https://github.com/FPtje/Sublime-GLua-Highlight"]Falco's highlighting for GLua[/URL] ) - Lightweight Cross-platform text editor with many features * [URL="https://atom.io/"]Atom[/URL] - Free Chromium powered text editor with many features Note! [B]MS [/B][B]Word or Wordpad will [U]NOT[/U] work.[/B] Notepad will work, however, it's recommended to either use Notepad++ or Sublime, for syntax highlighting and extra convenience features.. GLua is a modified version of Lua 5.1, so you may find it beneficial to learn vanilla Lua first. Here are some great resources for that: - [URL="http://www.lua.org/manual/5.1/manual.html"]Official Reference Manual (5.1)[/URL] - This is the version Garry's Mod utilizes - [URL="http://www.lua.org/manual/5.3/manual.html"]Official Reference Manual (5.3)[/URL] - Latest version of Lua - [URL="http://www.lua.org/pil/"]Programming in Lua Book[/URL] - [URL="http://lua-users.org/wiki/LuaTutorial"]Lua Users Tutorial[/URL] - [URL="http://www.lua.org/gems/sample.pdf"]Sample Lua Book[/URL] - [URL="http://luatut.com/"]LuaTut[/URL] - [URL="http://learnxinyminutes.com/docs/lua/"]Learn X in Y[/URL] If you already know Lua, or you would rather go straight into GLua (it's highly recommended you start with some basic Lua first), here are many useful resources: - [URL="http://wiki.garrysmod.com/page/Main_Page"]Official Garry's Mod Wiki[/URL] - [URL="http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index4875.html"]Old Garry's Mod Wiki[/URL] - Very outdated to current version of GMod but still has some great tutorials. - [URL="http://samuelmaddock.github.io/glua-docs/"]GLua Docs[/URL] - Alternate website that provides the same information that the official wiki does If you are converting old code from past versions of GMod, these are very useful: - [URL="https://docs.google.com/document/d/157blpvgS7-TzierM0WehBGa5W65HGG8ITXcxpYfY2G4/edit"]"Why your scripts are now broken"[/URL] - [URL="https://docs.google.com/document/d/1KJTi7-krLUcJP0ALz8dC5deNdn2-FUcc6WMsRvkYjDw/edit?copiedFromTrash#heading=h.bw8fxkud8bet"]GMod13 File library changes[/URL] If you are more hands-on person that likes seeing examples, here are some YouTubers that do great tutorials: - [URL="http://www.youtube.com/user/goature?feature=watch"]Goature[/URL] - [URL="http://www.youtube.com/user/chessnutify?feature=watch"]Chessnut[/URL] - [URL="http://www.youtube.com/user/SimonovaSKS"]SimonovaSKS[/URL] - SWEPs & modeling - [URL="https://www.youtube.com/playlist?list=PLCFyE3cH3BEF_1Dxh6UiTSS7TwpXavZZO"]Erigitic - Gamemode Scripting[/URL] If you want to try Lua in other environments besides Garry's Mod - [URL="http://www.wowwiki.com/World_of_Warcraft_API"]World of Warcraft[/URL], [URL="http://wiki.roblox.com/index.php/Scripting"]Roblox[/URL] and [URL="http://love2d.org"]Love2D[/URL] (2D Game Engine) all utilize Lua in very modular ways. [URL="http://en.wikipedia.org/wiki/Category:Lua-scripted_video_games"]Here's a full list of games that utilize Lua[/URL].
Sorry, you need to Log In to post a reply to this thread.