Catalyst Gaming

General => Support & Help => Topic started by: putin on June 05, 2011, 03:39:17 PM

Title: How to get started in LUA?
Post by: putin on June 05, 2011, 03:39:17 PM
So this summer I want to start learning LUA and possibly make a simple deathmatch gamemode or a edit of DarkRP or something not to hard. I want to know how other developers first went abouts learning LUA. This would be my first programming language so keep that in mind.
Title: Re: How to get started in LUA?
Post by: Martinerrr on June 05, 2011, 03:48:08 PM
Take LUA classes, try wiki, but LUA classes is a must.
Title: Re: How to get started in LUA?
Post by: Jeff2307 on June 05, 2011, 04:03:32 PM
And where can you get these classes?
Title: Re: How to get started in LUA?
Post by: Crap-Head on June 05, 2011, 04:10:19 PM
http://wiki.garrysmod.com/?title=Getting_Started_With_Lua

That should be it :3

And this is basicly where all the infomation is: http://wiki.garrysmod.com/?title=Main_Page
Title: Re: How to get started in LUA?
Post by: Martinerrr on June 05, 2011, 04:11:17 PM
But it's too basic, you can't do shit with the wiki imo.
Title: Re: How to get started in LUA?
Post by: alaskan thunderfuck on June 05, 2011, 04:37:53 PM
The wiki will help quite a bit, once you've gone over those tutorials a few times I'd try going through a few different gamemodes to see how they do certain things.
Title: Re: How to get started in LUA?
Post by: wakeboarderCWB on June 05, 2011, 05:18:27 PM
http://www.lua.org/pil

That's a great resource, and helped me out quite a bit. You can also buy, or download..., the second edition. I downloaded a copy and it's great.

The wiki is a great tool for GLua functions, hooks, and other stuff that only GLua uses. You can also look around in other people's work like gamemodes, addons, or just small code snippets.
Title: Re: How to get started in LUA?
Post by: putin on June 05, 2011, 11:54:00 PM
The wiki will help quite a bit, once you've gone over those tutorials a few times I'd try going through a few different gamemodes to see how they do certain things.
I'll probally go through PERP and DarkRP n shit. I really want to figure out how people make sexy huds.

http://www.lua.org/pil

That's a great resource, and helped me out quite a bit. You can also buy, or download..., the second edition. I downloaded a copy and it's great.

The wiki is a great tool for GLua functions, hooks, and other stuff that only GLua uses. You can also look around in other people's work like gamemodes, addons, or just small code snippets.
I'm a cheap jew. Is it possible you can send me a copy of the book?
Title: Re: How to get started in LUA?
Post by: Canadian on June 06, 2011, 09:27:13 AM
Hey its great that you want to start lua!

If i was you i would start off with an easy game mode like Darkrp and work up from there
because PERP is a very unstable game mode and is very hard to set up without having problems.

Like i said DarkRP works out of its self so you could use Darkrp then just screw around and see how things work
and try to creat your own cool stuff in the game mode.
Title: Re: How to get started in LUA?
Post by: Meatwad on June 07, 2011, 12:27:32 PM
Lua is incredibly easy to learn, but I must admit there's a few very complex lua codes out there.
Title: Re: How to get started in LUA?
Post by: JoshB on June 12, 2011, 11:47:54 AM
Lua is pretty easy to learn. I am not a major lua coder and I coded a basic create a class gamemode. I posted it on facepunch and it didn't have a sexy HUD so I was hated on mercilessly.
And classes, the lua book and PIL are all okay. I only used the wiki, though. Personally I think it is easier to have someone explain things to you.
SimplePortal 2.3.7 © 2008-2025, SimplePortal