Lua

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Lua

Post by randi »

I am seriously considering adding Lua scripting to ZDoom rather than roll my own based on UnrealScript. Lua is a cool little language, and I find it does most everything I could possibly want. Every time I start thinking about how to implement some language feature for "DoomScript," my thoughts always return to Lua. I just need to figure out a good way to interface it with the existing code. Unless I fail to do that, it's very likely that a good chunk of game code is going to get rewritten in Lua, hopefully sooner rather than later.

This post has been made as a public service announcement to warn everybody that if you "Wait For DoomScript," you'll probably be waiting a very, very long time.
skadoomer
Posts: 1026
Joined: Fri Sep 05, 2003 12:49 pm

Post by skadoomer »

I guess the question i have to ask is whether or not it will do everything you dreamed doomscript can do? I never really knew to what extent doomscript (or unreal script) would allow modders to have control over actors, data types, and level scripting.

Concerning its implementation, I'm a bit skeptical because of various additions in the past (floating pont and polymost) that are now vapor ware. Perhaps some members of the community share my skepticism in such a big decision for zdooms benefit. Re-writes are heavy things that take years and are often shrouded with secrecy.

From looking at this, lua seems pretty straight forward. If it will give us better flexibility with modding zdoom, i am very interested.

Speaking of which, why did floating point and polymost become discontinued?
User avatar
solarsnowfall
Posts: 1581
Joined: Thu Jun 30, 2005 1:44 am

Post by solarsnowfall »

My interrest is piqued, and I have all of the same questions skadoomer has.
User avatar
Niya
Posts: 150
Joined: Thu Sep 14, 2006 8:56 pm

Post by Niya »

Lua is very alien. Its has some strange constructs that seems drastically different from traditional ACS\DECORATE so people are going to have serious problems in the beginning. However, its appears that you can code extremely sophisticated algorithms with it and that will be great asset to Zdoom scripting, once "newness" phase passes and everyone learns to code it.

Go for it. :)
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

Post by Matt »

Are there any easily-intimidated-n00b-friendly guides on learning how to code in Lua?

And do you need some huge compiler thing like with C++ to even get started?
User avatar
Niya
Posts: 150
Joined: Thu Sep 14, 2006 8:56 pm

Post by Niya »

The link that randy provided has all the info you need, including a vast array of examples.
User avatar
Nash
 
 
Posts: 17487
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Post by Nash »

I'd say just go for it. It does look a little different but nothing impossible. As long as DoomScript isn't something like this it should be okay. ;)
User avatar
edward850
Posts: 5886
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

Post by edward850 »

...

...


...




I’m sure that is the most [censored word] language known to... well... all of existence!
I hope reading that didn’t brain my damage.
User avatar
Kinsie
Posts: 7402
Joined: Fri Oct 22, 2004 9:22 am
Graphics Processor: nVidia with Vulkan support
Location: MAP33
Contact:

Post by Kinsie »

I can only hope that Lua will not completely replace DECORATE and the like - the ease of creating new stuff in DECORATE is why I like editing for Zdoom.
User avatar
Grubber
Posts: 1031
Joined: Wed Oct 15, 2003 12:19 am
Location: Czech Republic
Contact:

Post by Grubber »

I personally don't like Lua. It looks ugly.
edward850 wrote:I’m sure that is the most [censored word] language known to... well... all of existence!
http://en.wikipedia.org/wiki/Malbolge_p ... g_language ;)
User avatar
edward850
Posts: 5886
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

Post by edward850 »

me got :( be You kidding to
:lol:
Ok, my brain has left the building
User avatar
Niya
Posts: 150
Joined: Thu Sep 14, 2006 8:56 pm

Post by Niya »

Nash wrote:I'd say just go for it. It does look a little different but nothing impossible. As long as DoomScript isn't something like this it should be okay. ;)
Holy Shit! :shock: ....Alot of people really have nothing to to. Its the only way someone can come up with something that.......I dont even know WHAT to call this type of shit.

Its amusing to say the least. I can see that sort of this being used to test people and based on how well they handle it you can pretty much measure their logical capacity.
Grubber wrote:I personally don't like Lua. It looks ugly.
edward850 wrote:I’m sure that is the most [censored word] language known to... well... all of existence!
http://en.wikipedia.org/wiki/Malbolge_p ... g_language ;)
You gotta be f**kin kidding.
User avatar
Doomguy0505
Posts: 625
Joined: Tue Mar 29, 2005 4:53 am
Contact:

Post by Doomguy0505 »

That's like Brain rape!
User avatar
Phobus
Posts: 5984
Joined: Thu May 05, 2005 10:56 am
Location: London
Contact:

Post by Phobus »

Well, just checking out that little tutorial there has given me confidence that it's a language I can learn if I have an inclination to, and after reading a little of the site, I've seen that it can be used as a scripting language of sorts for other programs, so in effect, it'd be not too different from ACS scripting, just a lot more powerful, with considerable control over everything randy would want us to mess about with.

So yeah, sounds good to me.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49225
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Grubber wrote:I personally don't like Lua. It looks ugly.
I'd have to agree with that. I really, *really* don't like this language - at all!

It's a real shame that they had to use crap BASIC syntax as a guideline to design their language.
Locked

Return to “Editing (Archive)”