So I've decided to make a game in Lua. You play it in the console in Garry's Mod.
You play it like this:
You start up Garry's Mod, start a singleplayer game, open the console and type lua_openscript level1.lua. From there the rest of the game is explained in the console.
I already have the 1st 'level' done. Here's the story for level one.
[I]Here's the story:[/I]
[b]As you awake in a building, a man says:
-*Welcome to the Sword Store*-
The Bronze Sword costs $150-
The Iron Sword costs $250-
The Steel Sword costs $400-
The Adamant Sword costs $700-
The Rune Sword costs $1000-
-*What would you like to buy?*-
You have $1000.
To choose an item, type the following:
To buy the Bronze Sword, type in the console, 'lua_openscript bronzesword.lua'
To buy the Iron Sword, type in the console, 'lua_openscript ironsword.lua'
To buy the Steel Sword, type in the console, 'lua_openscript steelsword.lua'
To buy the Adamant Sword, type in the console, 'lua_openscript adamantsword.lua'
To buy the Rune Sword, type in the console, 'lua_openscript runesword.lua'
To say 'No thanks' type in the console, 'lua_openscript leavestore.lua[/b]
Will update thread when more gets completed :D
Why not make concommands instead of lua_openscript.
I'm not quite sure on how to do that.
[lua]
AddConCommand "Goleft"
[/lua]
right?
[editline]12:45AM[/editline]
oh boy I feel dumb
[lua]
concommand.Add
[/lua]
No, Thats wrong.
And making games in the console is useless. if you want to make a game you can better learn a REAL programming language.
Lua IS a REAL programming language, but it is a light weight programming language.
How is making a game in the console useless? It's like a DOS box game, where it's all text.
Which is stupid because DOS games aren't all text.
I'm trying to remember the name for those games that you played in the black box, all text.
@OP
Stop... go to [url]http://love2d.org/[/url]...
Make a lua game with that... that is an actual lua game engine for doing things like what you want to do.
Uhm..Okay I'll give it a shot.
[editline]01:03AM[/editline]
But I will still work on my version for the Garry's Mod console just in case ;)
[editline]01:05AM[/editline]
I have the "LÖVE" started up, but it's only a tank driving and nothing else I can do.
[QUOTE=Chad Mobile;19204311]I'm trying to remember the name for those games that you played in the black box, all text.[/QUOTE]
Text Based Adventures. And then they became point and click adventures. And visual humor was fun.
I'm trying for that old Text Based 'Adventure'. (Thanks for the name, couldn't remember anything on it.)
Anyways, I can't figure out that LÖVE thing. It only came with an install of a tank driving, some trippy words, an avalance, and stuff.
[QUOTE=Chad Mobile;19204405]Uhm..Okay I'll give it a shot.
[editline]01:03AM[/editline]
But I will still work on my version for the Garry's Mod console just in case ;)
[editline]01:05AM[/editline]
I have the "LÖVE" started up, but it's only a tank driving and nothing else I can do.[/QUOTE]
Oh yay! 0.6 is out!! Good shit!
Uh, I haven't been into love cause I'm working with a 3D engine, but check out the documentation, tells you how to start stuff.
[url]http://love2d.org/docs/getting_started.html[/url]
[QUOTE=Chad Mobile;19204569]I'm trying for that old Text Based 'Adventure'. (Thanks for the name, couldn't remember anything on it.)
Anyways, I can't figure out that LÖVE thing. It only came with an install of a tank driving, some trippy words, an avalance, and stuff.[/QUOTE]
God I hate text based adventures.
One less person playing my game :crying:
[QUOTE=Chad Mobile;19204159]Lua IS a REAL programming language, but it is a light weight programming language.
How is making a game in the console useless? It's like a DOS box game, where it's all text.[/QUOTE]
Just stop you're way too stupid to understand, this isn't trolling it's the truth
[highlight](User was banned for this post ("This reply is not encouraging or helpful" - verynicelady))[/highlight]
Keep working on the Gmod one I like it.
[QUOTE=Termy58;19204656]Just stop you're way too stupid to understand, this isn't trolling it's the truth[/QUOTE]
Luv ya too hun <3
[editline]01:23AM[/editline]
[QUOTE=Howe;19204582]Oh yay! 0.6 is out!! Good shit!
Uh, I haven't been into love cause I'm working with a 3D engine, but check out the documentation, tells you how to start stuff.
[url]http://love2d.org/docs/getting_started.html[/url][/QUOTE]
Okay, I followed the instructions, created the main.lua, the code inside, drug it onto love.exe and a black screen pops up.
Heres the code:
[lua]
function love.draw()
love.graphics.print("Hello World", 400, 300)
end
[/lua]
It doesn't draw it on the screen though..
[QUOTE=Termy58;19204656]Just stop you're way too stupid to understand, this isn't trolling it's the truth[/QUOTE]
Well, that's a harsh way of putting it. But yes.
[QUOTE=Chad Mobile;19204739]
Heres the code:
[lua]
function love.draw()
love.graphics.print("Hello World", 400, 300)
end
[/lua]
It doesn't draw it on the screen though..[/QUOTE]
You have to drag the folder that contains main.lua I believe.
Let me try this myself and I will post results.
[QUOTE=Nerdeboy;19204794]Well, that's a harsh way of putting it. But yes.[/QUOTE]
I'm not sure if you've noticed but you haven't contributed anything useful.
[QUOTE=Howe;19204804]You have to drag the folder that contains main.lua I believe.
Let me try this myself and I will post results.
I'm not sure if you've noticed but you haven't contributed anything useful.[/QUOTE]
[QUOTE=Nerdeboy;19204222]Which is stupid because DOS games aren't all text.[/QUOTE]
[QUOTE=Nerdeboy;19204532]Text Based Adventures. And then they became point and click adventures. And visual humor was fun.[/QUOTE]
Bam.
[QUOTE=Nerdeboy;19204858]Bam.[/QUOTE]
I said useful.
Anyway, Chad, I was able to make a folder called helloworld with main.lua inside it, drag the folder over love.exe and it loaded and displayed fine.
If that doesn't work, please paste the contents of your stdout.txt and stderr.txt
Nerdeboy and Termy58, if you don't want to help, you don't need to be here.
[editline]01:36AM[/editline]
[QUOTE=Howe;19204898]I said useful.
Anyway, Chad, I was able to make a folder called helloworld with main.lua inside it, drag the folder over love.exe and it loaded and displayed fine.
If that doesn't work, please paste the contents of your stdout.txt and stderr.txt[/QUOTE]
I only have a stdout.txt
[QUOTE=stdout.txt]
Starting up LovelyBigPlanet
Loading mods
Loading map testmap
Loaded resource snakeface/block (image)
Loaded object gadget14 (gadget)
Loaded object gadget11 (gadget)
Loaded resource snakeface/platform (image)
Loaded object platform5 (platform)
Loaded object gadget1 (gadget)
Loaded object platform4 (platform)
Loaded resource snakeface/enemy (image)
Loaded object enemy (enemy)
Loaded object platform3 (platform)
Loaded object gadget12 (gadget)
Loaded object gadget4 (gadget)
Loaded resource snakeface/blockb (image)
Loaded object gadget2 (gadgetb)
Loaded object platform2 (platform)
Loaded object platform (platform)
Loaded object gadget10 (gadget)
Loaded object fgadget (floatinggadget)
Loaded resource snakeface/longblock (image)
Loaded object bridge (bridge)
Loaded resource HardPCM@freesound/Wood019 (music)
Loaded resource qubodup/sign_left_yellow-80x100 (image)
Loaded object helpsign (helpsign_left)
Loaded object gadget13 (gadget)
Loaded object gadget9 (gadget)
Loaded resource snakeface/player (image)
Loaded object player (player)
Loaded object gadget8 (gadgetb)
Loaded object gadget7 (gadget)
Loaded object gadget5 (gadgetb)
Loaded object gadget3 (gadget)
Loaded object gadget6 (gadget)
Loaded resource qubodup/darts_target (image)
Loaded object finish (finish)
Loaded resource bartbes/samplebackground (image)
Loaded map testmap
Message: Welcome to LovelyBigPlanet!
Go to the center of the top-left platform
Loading map testmap
Loaded object gadget14 (gadget)
Loaded object gadget11 (gadget)
Loaded object platform5 (platform)
Loaded object gadget1 (gadget)
Loaded object platform4 (platform)
Loaded object enemy (enemy)
Loaded object platform3 (platform)
Loaded object gadget12 (gadget)
Loaded object gadget4 (gadget)
Loaded object gadget2 (gadgetb)
Loaded object platform2 (platform)
Loaded object platform (platform)
Loaded object gadget10 (gadget)
Loaded object fgadget (floatinggadget)
Loaded object bridge (bridge)
Loaded object helpsign (helpsign_left)
Loaded object gadget13 (gadget)
Loaded object gadget9 (gadget)
Loaded object player (player)
Loaded object gadget8 (gadgetb)
Loaded object gadget7 (gadget)
Loaded object gadget5 (gadgetb)
Loaded object gadget3 (gadget)
Loaded object gadget6 (gadget)
Loaded object finish (finish)
Loaded map testmap
Message: Welcome to LovelyBigPlanet!
Go to the center of the top-left platform
Loading map testmap
Loaded object gadget14 (gadget)
Loaded object gadget11 (gadget)
Loaded object platform5 (platform)
Loaded object gadget1 (gadget)
Loaded object platform4 (platform)
Loaded object enemy (enemy)
Loaded object platform3 (platform)
Loaded object gadget12 (gadget)
Loaded object gadget4 (gadget)
Loaded object gadget2 (gadgetb)
Loaded object platform2 (platform)
Loaded object platform (platform)
Loaded object gadget10 (gadget)
Loaded object fgadget (floatinggadget)
Loaded object bridge (bridge)
Loaded object helpsign (helpsign_left)
Loaded object gadget13 (gadget)
Loaded object gadget9 (gadget)
Loaded object player (player)
Loaded object gadget8 (gadgetb)
Loaded object gadget7 (gadget)
Loaded object gadget5 (gadgetb)
Loaded object gadget3 (gadget)
Loaded object gadget6 (gadget)
Loaded object finish (finish)
Loaded map testmap
Message: Welcome to LovelyBigPlanet!
Go to the center of the top-left platform
Done.
Done. This was: 0.6.0 (Jiggly Juice)
[/QUOTE]
[editline]01:52AM[/editline]
Whoopsies, the file WAS a lua file, but it was NAMED main.lua
It works NOW.
[editline]02:08AM[/editline]
Alright, so far I've gotten it to:
Play music.
Display "Hello World"
I'm sure I will figure some stuff out soon :)
(I AM STILL WORKING ON THE GMOD GAME TOO.)
Alright good luck, need help you can always use their forums or PM me if you're really stuck.
And the reason I recommend love is cause you can make a standalone exe for other people to play (so it's not dependent on GMod)
So wait, you're making a game that is played in the Source engine's console inside of a game where you could be enjoying a unique 3D live-action experience? Makes perfect sense. :downs:
Well good luck, but it seems a bit ridiculous if you ask me. Why not use C++ or Visual Basic for this sorta thing?
Also, isn't lua a SCRIPTING language?
Why don't you just learn to code entities and real interactive stuff instead of limiting yourself to abstract stuff like algebra and the console? Learn to map, code enemies, items and such, and here goes your adventure game.
If you really want to stick to primitive and boring stuff, uninstall Garry's Mod and download the most primitive implementation of Lua that prints text to the console. That's kinda sad that you prefer to do this though.
[QUOTE=ddrl46;19210291]Also, isn't lua a SCRIPTING language?[/QUOTE]
Yes it is, your point however is?
[QUOTE=ddrl46;19210291]Also, isn't lua a SCRIPTING language?[/QUOTE]
It's a very light programming language. Similar to I Can't Believe it's not C++!
[QUOTE=grea$emonkey;19208902]So wait, you're making a game that is played in the Source engine's console inside of a game where you could be enjoying a unique 3D live-action experience? Makes perfect sense. :downs:
Well good luck, but it seems a bit ridiculous if you ask me. Why not use C++ or Visual Basic for this sorta thing?[/QUOTE]
Haha, yep. I realized a few people missed those old (boring) text games, so I started one. Until I find a better program that is a little easier and less time consuming, this is the way.
(Also I made a game :D
[url]http://www.mediafire.com/?5nnoizwm5mm[/url])
[QUOTE=ddrl46;19210291]Also, isn't lua a SCRIPTING language?[/QUOTE]
"[url=http://www.lua.org/]The Programming Language Lua[/url]"
Sorry, you need to Log In to post a reply to this thread.