[QUOTE=andrewmcwatters;19217340]"[url=http://www.lua.org/]The Programming Language Lua[/url]"[/QUOTE]
It's an embedded programming language, which also makes it a scripting language.
[QUOTE=grea$emonkey;19217651]It's an embedded programming language, which also makes it a scripting language.[/QUOTE]
Yep, just wanted to point out it can be used as both.
Anywho, I don't see anything wrong with a console based game. Let the guy do what he wants, maybe he can even tie features into the main game, just be creative with it, and let it fly.
In fact, he could even create his own new panel for the game, so users wouldn't have to fall back on the developer console.
[QUOTE=andrewmcwatters;19217909]Yep, just wanted to point out it can be used as both.[/QUOTE]
It can't be used alone. It needs to be embedded into something. Although it is a language used for "programming," it is still only usable while embedded in a medium such as C, C++, PHP, etc.
[QUOTE=grea$emonkey;19218086]It can't be used alone. It needs to be embedded into something. Although it is a language used for "programming," it is still only usable while embedded in a medium such as C, C++, PHP, etc.[/QUOTE]
Yes it most certainly can: [url]http://luaforwindows.luaforge.net/[/url]
-snip
[QUOTE=aualin;19218517]Yes it most certainly can: [url]http://luaforwindows.luaforge.net/[/url][/QUOTE]
That isn't stand alone. It's using another application to carry out the commands.
For some reason my computer just won't connect to [url]http://luaforwindows.luaforge.net/[/url]
Firefox says: Server not found.
Internet Explorer Says: Internet Explorer cannot display the webpage. What you can try: Diagnose Connection Problems
Site's working fine for me.
I still don't understand why you wouldn't buy the Rune sword. I mean, who's going to choose a Bronze sword over a Rune sword?
:v:
[QUOTE=|FlapJack|;19219429]Site's working fine for me.[/QUOTE]
What's on the site? I can't connect.
[editline]01:38AM[/editline]
[QUOTE=Gbps;19221045]I still don't understand why you wouldn't buy the Rune sword. I mean, who's going to choose a Bronze sword over a Rune sword?
:v:[/QUOTE]
To save your money, ya neva know wat could happen :raise:
[SP](Hint, you might get mugged)[/SP]
How would I use this, and where?
What I would find EXTREMELY useful is a program I can download that simply runs Lua programs/scripts.
This way I would easily be able to make a longer game :dance:
[QUOTE=Chad Mobile;19222666]How would I use this, and where?
What I would find EXTREMELY useful is a program I can download that simply runs Lua programs/scripts.
This way I would easily be able to make a longer game :dance:[/QUOTE]
You ARE kidding right?
OK the link you cant open has said program, as will many other coding programs assuming you have the LUA backend.
Long story short is what has been asked of you: Why do it in LUA when you can do it in [url=http://www.microsoft.com/express/product/default.aspx]C#/C++ Express?[/url] If you're trying to learn the language there is no point doing so with such a project as you barely scratch the surface.
I'm not trying to learn Lua. I don't want to learn C#, C++ Express, or anything like that. I wanted to make a game and people started suggesting stuff, so I started asking stuff.
I can't open that link, so that's one less option.
Lay off the guy. It doesn't matter what he makes in Lua, if he wants to make it, you should let him do it. No point in flaming the guy, I'm sure he has his mind set :3:
Try using a different browser. It works for me.
@Gbps - I don't really have my mind set. I'm currently working on 2 games o.o
@grea$emonkey - I tried Normal I.E and Firefox, doesn't work for me :(
Hold control press F5
[QUOTE=Chad Mobile;19222666]How would I use this, and where?
What I would find EXTREMELY useful is a program I can download that simply runs Lua programs/scripts.
This way I would easily be able to make a longer game :dance:[/QUOTE]
Just use LÖVE, it works perfectly for that purpose.
Ok Chad, I'm not trying to be mean here or anything, but I think you need to learn a bit more Lua before continuing your project. Also, Lua is not a programming language, it's a scripting language. What is the difference? Programming languages are used to create whole entire applications that are compiled down in to binary code that is executed by computer's OS. Scripting languages are used to modify existing programs. For example, Garry's Mod, and the Source Engine are programmed in C++, and Add-Ons for those are scripted in Lua. Although if you are looking for a good general term to describe both, coding would be your best route. Also, for the others that would say something like "Oh well games like Unreal Tournament 3 and Natural Selection 2 are completely scripted!" I would say back to you, the game code is indeed script, but things like rendering, networking, etc. are handled by the various dlls ( binary modules ) that are programmed in C++. Also, it will be extremely difficult to code a game in Garry's Mod seeing as it detects infinite loops, and stops the code upon finding them, and seeing as most games rely on a controlled infinite loop, creating a game is going to be quite difficult. Never-the-less good luck in your endeavor. Man, I typed a lot of shit.
[QUOTE=Chad Mobile;19219286]For some reason my computer just won't connect to [url]http://luaforwindows.luaforge.net/[/url]
Firefox says: Server not found.
Internet Explorer Says: Internet Explorer cannot display the webpage. What you can try: Diagnose Connection Problems[/QUOTE]
Most likely a problem with your DNS, so here you go:
[url]http://hosting.overvprojects.nl/LuaForWindows_v5.1.4-30.exe[/url]
[QUOTE=grea$emonkey;19218871]That isn't stand alone. It's using another application to carry out the commands.[/QUOTE]
Tell me one single language that is not using another application to work.
I'll refer to wikipedia since they are never wrong: [url]http://en.wikipedia.org/wiki/Lua_(programming_language[/url])
You will see that they refer to it as a programming language, but they mentioned it is designed as a scripting language, but as you can see they still refer to it as a programming language. Also [url]http://luajit.org/[/url] if you call that an application embedding scripting then java is being used for the wrong thing... If you search around you can find quite a few jit compilers for lua. Still i believe that lua is ideal for embedding and scripting.
Please do not turn the whole programming world upside down
[QUOTE=Anthoni_c;19228039]Ok Chad, I'm not trying to be mean here or anything, but I think you need to learn a bit more Lua before continuing your project. Also, Lua is not a programming language, it's a scripting language. What is the difference? Programming languages are used to create whole entire applications that are compiled down in to binary code that is executed by computer's OS. Scripting languages are used to modify existing programs. For example, Garry's Mod, and the Source Engine are programmed in C++, and Add-Ons for those are scripted in Lua. Although if you are looking for a good general term to describe both, coding would be your best route. Also, for the others that would say something like "Oh well games like Unreal Tournament 3 and Natural Selection 2 are completely scripted!" I would say back to you, the game code is indeed script, but things like rendering, networking, etc. are handled by the various dlls ( binary modules ) that are programmed in C++. Also, it will be extremely difficult to code a game in Garry's Mod seeing as it detects infinite loops, and stops the code upon finding them, and seeing as most games rely on a controlled infinite loop, creating a game is going to be quite difficult. Never-the-less good luck in your endeavor. Man, I typed a lot of shit.[/QUOTE]
What this guy said.
Lua is being compiled into C++ files (I think) on game load and then being executed in GMod for us.
[QUOTE=grea$emonkey;19231912]What this guy said.
Lua is being compiled into C++ files (I think) on game load and then being executed in GMod for us.[/QUOTE]
Lua isn't being compiled, it is being interpreted.
(This is wrong)
[QUOTE=NullPoint;19231933]Lua isn't being compiled, it is being interpreted.[/QUOTE]
No, it is being compiled. On server start, everything is being compiled. Do you have any idea how expensive it would be to be reinterpreting a lua file into binary every server tick? This is why when the game/server starts, the files are interpreted [i]and[/i] compiled into C++(I think... maybe it's C).
[QUOTE=grea$emonkey;19232009]No, it is being compiled. On server start, everything is being compiled. Do you have any idea how expensive it would be to be reinterpreting a lua file into binary every server tick? This is why when the game/server starts, the files are interpreted [i]and[/i] compiled into C++(I think... maybe it's C).[/QUOTE]
Are you sure?
[editline]04:18PM[/editline]
I didn't think Lua was ever compiled.
(This is also wrong)
Lua is compiled by Gmod when it's loaded, yes, but C++ is just a language which gets compiled into machine code. Compiling something into C++ would be silly because then you have to compile from C++ into machine code. I'm not sure what it's compiled into, but it's something in binary form.
I re-read part of the PIL, Lua is compiled to an intermediate form before being run.
[QUOTE=thomasfn;19232085]Lua is compiled by Gmod when it's loaded, yes, but C++ is just a language which gets compiled into machine code. Compiling something into C++ would be silly because then you have to compile from C++ into machine code. I'm not sure what it's compiled into, but it's something in binary form.[/QUOTE]
Right, I meant binary. It's early in the morning. I'm surprised I even got close.
I may be way off, but isn't it compiled to bytecode?
[QUOTE=NullPoint;19232118]I re-read part of the PIL, Lua is compiled to an intermediate form before being run.[/QUOTE]
Well, it needs to be compiled into something the game can read.
Sorry, you need to Log In to post a reply to this thread.