GoldenEye: Source Forums

Debriefing => Questions, Help, & How To's => Topic started by: VoltLab on November 11, 2009, 03:12:19 pm

Title: A Question about LUA
Post by: VoltLab on November 11, 2009, 03:12:19 pm
Hey there,
I got a little question. How did you guys include LUA into your SourceMod. I'm working on a RolePlay SourceMod and I ever wanted to include LUA into it. Is it possible if one of you guys tell me how you did that? The Tutorials on http://developer.valvesoftware.com didn't work. :/

Seeya,
VoltLab
Title: Re: A Question about LUA
Post by: Mark [lodle] on November 11, 2009, 03:21:28 pm
wouldnt suggest using lua as its a hard language to master. We are switching to python in our next release.
Title: Re: A Question about LUA
Post by: VoltLab on November 11, 2009, 03:34:45 pm
Hmm. Well thanks for the Info.

Seeya,
VoltLab
Title: Re: A Question about LUA
Post by: killermonkey on November 11, 2009, 07:37:16 pm
You can try to follow our Python tutorial that is on the developer wiki. Are you C++ skills strong?

http://developer.valvesoftware.com/wiki/Category:Python
Title: Re: A Question about LUA
Post by: VoltLab on November 11, 2009, 07:46:34 pm
Not realy, i'm new in c++ but i learn it very fast. I understand the most of the Source Code. My RolePlay is getting better and better. I just wanted to include LUA couse the leader of the MingeBag.de's is working with me on the Mod. He's pritty good in LUA , his skills are godlike. Well , i heard about Python. I'll try it out. Thanks for the tipp.
Title: Re: A Question about LUA
Post by: killermonkey on November 11, 2009, 08:53:46 pm
I find it impossible to be "god like" with LUA since you basically require to have a much higher god like person to make it work with C++. Python is no easier to implement. I think your lack of skill with C++ (and unfamiliarity with the source code) is hampering your ability to integrate LUA into it. The tutorial on the website is solid, there is nothing blatantly wrong with it.

I suggest you learn more C++ and more basic programming features (dynamic vs static linking, libraries and dependencies, polymorphism) and also run through the source code in the debugger a few times to understand the flow of the engine.

Suggested Reading:
http://developer.valvesoftware.com/wiki/Game_initialization
http://developer.valvesoftware.com/wiki/Frame_Order