Fortress Forever

Go Back   Fortress Forever > Editing > Mapping

Reply
 
Thread Tools Display Modes
Old 09-18-2006, 11:24 PM   #1
o_imbrifer
 
o_imbrifer's Avatar
 
Join Date: May 2005
Location: Changes every few months
Posts Rated Helpful 0 Times
LUA Questions

Well, I have some questions about LUA for new game types and such, so I figured I'd make a thread so everyone could post questions about LUA, since im sure lots of mappers have them.

1. Is it possible to have a 'grav gun' for just one map?

2. Can you give flags properties like damage over time?

3. Is it possible to make corpses into prop_physics after the player dies?

4. Can you attach physics objects to different parts of players?
o_imbrifer is offline   Reply With Quote


Old 09-19-2006, 01:22 AM   #2
Circuitous
Useless
Retired FF Staff
 
Join Date: Jun 2005
Class/Position: D Soldier, O Scout
Gametype: AvD
Posts Rated Helpful 9 Times
Send a message via AIM to Circuitous Send a message via MSN to Circuitous Send a message via Yahoo to Circuitous Send a message via Skype™ to Circuitous
2 I'm certain can be done, the others I could only speculate.
__________________
Look at all those dead links.
Circuitous is offline   Reply With Quote


Old 09-19-2006, 10:37 PM   #3
o_nezumi
 
o_nezumi's Avatar
 
Join Date: Mar 2005
Location: The Peoples Republic of Harmfull Free Radicals
Posts Rated Helpful 0 Times
Here's my question:

1. Please explain LUA.

It's not so much a question I guess.
o_nezumi is offline   Reply With Quote


Old 09-20-2006, 01:03 AM   #4
o_imbrifer
 
o_imbrifer's Avatar
 
Join Date: May 2005
Location: Changes every few months
Posts Rated Helpful 0 Times
I knew the two of you would hop in this thread pretty quick.

I guess a general question about LUA would be:

5. What can you not change?

For example (with my corpses question): Can we change what is serverside clientside? Can we change physics or fundamental game mechanics? Could I make it so every player is followed around by a pink frog? Could I make one map an entire mod/total conversion of FF?
o_imbrifer is offline   Reply With Quote


Old 09-20-2006, 02:20 PM   #5
Mulchman MM
Retired FF Staff
 
Mulchman MM's Avatar
 
Join Date: Dec 2004
Location: Lacey, WA
Posts Rated Helpful 0 Times
Send a message via ICQ to Mulchman MM Send a message via AIM to Mulchman MM Send a message via MSN to Mulchman MM Send a message via Yahoo to Mulchman MM Send a message via Skype™ to Mulchman MM
Yeah, sorry for never responding to your second pm :P
__________________
Head of the Orca Revolution (TM)
Mulchman MM is offline   Reply With Quote


Old 09-20-2006, 03:20 PM   #6
mirvin_monkey
Fortress Forever Staff
 
mirvin_monkey's Avatar
 
Join Date: Dec 2004
Location: Cape Town, SA
Posts Rated Helpful 8 Times
guys Lua isn't an acronym!!

also people who write MOD as if that's an acronym are pretty silly but that's a debate for another time
mirvin_monkey is offline   Reply With Quote


Old 09-20-2006, 03:42 PM   #7
o_ivaqual
 
o_ivaqual's Avatar
 
Join Date: Feb 2005
Location: Europe, Front Yard
Posts Rated Helpful 0 Times
well i guess you could backronym it in to Modification Of Data but yeah it's silly

what does lua mean then ? is it an abbreviation ?
o_ivaqual is offline   Reply With Quote


Old 09-20-2006, 03:50 PM   #8
o_kam
 
o_kam's Avatar
 
Join Date: Dec 2004
Location: Melbourne
Posts Rated Helpful 0 Times
Lua means moon in Portuguese and is pronounced LOO-ah.

http://www.lua.org/about.html
o_kam is offline   Reply With Quote


Old 09-20-2006, 06:48 PM   #9
o_crazy carl
 
Join Date: Jan 2005
Posts Rated Helpful 0 Times
Maybe they're just SHOUTING.

"Hey guys I am making a MOD with LUA!"
o_crazy carl is offline   Reply With Quote


Old 09-20-2006, 07:33 PM   #10
Circuitous
Useless
Retired FF Staff
 
Join Date: Jun 2005
Class/Position: D Soldier, O Scout
Gametype: AvD
Posts Rated Helpful 9 Times
Send a message via AIM to Circuitous Send a message via MSN to Circuitous Send a message via Yahoo to Circuitous Send a message via Skype™ to Circuitous
Quote:
Originally Posted by mirvin_monkey
guys Lua isn't an acronym!!

also people who write MOD as if that's an acronym are pretty silly but that's a debate for another time
It's not? Not even a backronym? Well I'll be damned.
__________________
Look at all those dead links.
Circuitous is offline   Reply With Quote


Old 09-20-2006, 07:45 PM   #11
o_imbrifer
 
o_imbrifer's Avatar
 
Join Date: May 2005
Location: Changes every few months
Posts Rated Helpful 0 Times
Quote:
Originally Posted by Mulchman MM
Yeah, sorry for never responding to your second pm :P
Uh.. so... will I ever find out..?

Anyway, will we find out about any of these Lua questions?
o_imbrifer is offline   Reply With Quote


Old 09-20-2006, 08:51 PM   #12
o_nodnarb
 
o_nodnarb's Avatar
 
Join Date: Jul 2006
Location: Austin, Texas
Posts Rated Helpful 0 Times
the LOO-ah questions?
o_nodnarb is offline   Reply With Quote


Old 09-21-2006, 02:39 AM   #13
o_nezumi
 
o_nezumi's Avatar
 
Join Date: Mar 2005
Location: The Peoples Republic of Harmfull Free Radicals
Posts Rated Helpful 0 Times
Quote:
Originally Posted by mirvin_monkey
guys Lua isn't an acronym!!
I believe this stands as the one and only time so far a dev here has ever given us a concrete piece of information about LUA.

So I don't have much hope for this thread. They treat it like it's one of their trade secrets or something. I don't get it.
o_nezumi is offline   Reply With Quote


Old 09-21-2006, 04:16 AM   #14
o_sh4x
 
o_sh4x's Avatar
 
Join Date: Jan 2005
Location: Montreal
Posts Rated Helpful 0 Times
In a bad mood Nezumi?
o_sh4x is offline   Reply With Quote


Old 09-21-2006, 11:39 AM   #15
Defrag
Retired FF Staff
 
Defrag's Avatar
 
Join Date: Dec 2004
Location: Scotland
Posts Rated Helpful 0 Times
We've discussed lua quite a bit, actually.
__________________
Fortress Forever.
Level Designer, Gameplay Dude and whatnot.
Defrag is offline   Reply With Quote


Old 09-21-2006, 03:32 PM   #16
mirvin_monkey
Fortress Forever Staff
 
mirvin_monkey's Avatar
 
Join Date: Dec 2004
Location: Cape Town, SA
Posts Rated Helpful 8 Times
Quote:
Originally Posted by Nezumi
So I don't have much hope for this thread. They treat it like it's one of their trade secrets or something. I don't get it.
Oh okay. Well we'll just give out feature lists and example scripts for a constantly evolving system then. I'm sure nobody will mind about how quickly these become hopelessly out of date and render useless any map that relied on them.
mirvin_monkey is offline   Reply With Quote


Old 09-21-2006, 07:13 PM   #17
trepid_jesse
Fortress Forever Staff
 
trepid_jesse's Avatar
 
Join Date: Jan 2005
Location: Texas
Posts Rated Helpful 0 Times
Say it in cockney, cause I still wanna hear that shit.
__________________
Support FF:

Trepid, what?
trepid_jesse is offline   Reply With Quote


Old 09-21-2006, 08:41 PM   #18
o_imbrifer
 
o_imbrifer's Avatar
 
Join Date: May 2005
Location: Changes every few months
Posts Rated Helpful 0 Times
Quote:
Originally Posted by Defrag
We've discussed lua quite a bit, actually.
I recall quite a bit about Lua, and how it can be employed to do something along the lines of.. 'anything'.

So I'll assume that means I can attach player corpses to players who whack them with crowbars, or turn them into prop_physics and give players gravity guns to carry them back to the grinders.. its just a matter of how bad that ends up impacting the speediness of the server.
Quote:
Originally Posted by mirvin_monkey
Oh okay. Well we'll just give out feature lists and example scripts for a constantly evolving system then. I'm sure nobody will mind about how quickly these become hopelessly out of date and render useless any map that relied on them.
Okay okay, I think I get it now. Its so open and wide, youd have to try something out to see if it is possible - when Lua is released, yes?
Quote:
Originally Posted by trepid_jesse
Say it in cockney, cause I still wanna hear that shit.
Lua can do anything your shopping desires'
o_imbrifer is offline   Reply With Quote


Old 09-22-2006, 10:21 PM   #19
o_nezumi
 
o_nezumi's Avatar
 
Join Date: Mar 2005
Location: The Peoples Republic of Harmfull Free Radicals
Posts Rated Helpful 0 Times
Quote:
Originally Posted by mirvin_monkey
Oh okay. Well we'll just give out feature lists and example scripts for a constantly evolving system then.
Excellent, thank you. This will help us get a frame of reference, at least.
o_nezumi is offline   Reply With Quote


Old 09-27-2006, 04:16 PM   #20
o_crazy carl
 
Join Date: Jan 2005
Posts Rated Helpful 0 Times
Listen, people, if you want to know about lua itself, just go to http://www.lua.org/ It's a general purpose scripting language that is designed to be embedded into C programs.

From the lua manual (http://www.lua.org/manual/5.1/manual.html#1):
"This host program (in this case, the FF .dll) can invoke functions to execute a piece of Lua code, can write and read Lua variables, and can register C functions to be called by Lua code. Through the use of C functions, Lua can be augmented to cope with a wide range of different domains, thus creating customized programming languages sharing a syntactical framework"

So when you hear that lua can do anything, what that really means is that lua can get information from the FF process, do any kind of logic you wish to write, and then talk back to FF.

What we don't know is how much the devs are going to link lua to the FF code. My understanding is that certain functions and variables in the FF code will be "lua enabled" enabling scripts to access them. Things like "which player has the flag" and "do damage to player x" are pretty obvious additions, but "make a client-side ragdoll" might not be available. I doubt you would be able to give a player a grav-gun, since there are no grav-guns in team fortress.

I'd certainly like to see a representative example of what can be done, even if it is a work in progress.
o_crazy carl is offline   Reply With Quote


Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:31 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.