Lua

Discuss all aspects of editing for ZDoom.
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Lua

Postby randi » Thu May 24, 2007 8:57 pm

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.
User avatar
randi
Site Admin
 
Joined: 09 Jul 2003

Postby skadoomer » Thu May 24, 2007 10:20 pm

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?
skadoomer
 
Joined: 05 Sep 2003

Postby solarsnowfall » Thu May 24, 2007 10:50 pm

My interrest is piqued, and I have all of the same questions skadoomer has.
User avatar
solarsnowfall
 
Joined: 30 Jun 2005

Postby Niya » Fri May 25, 2007 12:13 am

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
Niya
 
Joined: 14 Sep 2006

Postby Vaecrius » Fri May 25, 2007 12:22 am

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
Vaecrius
Team Bad Allocation, blast off at the speed of light!
 
Joined: 04 Jan 2004
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia

Postby Niya » Fri May 25, 2007 12:33 am

The link that randy provided has all the info you need, including a vast array of examples.
User avatar
Niya
 
Joined: 14 Sep 2006

Postby Nash » Fri May 25, 2007 1:58 am

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
Nash
http://twitter.com/ISurvivorGame
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia

Postby edward850 » Fri May 25, 2007 2:46 am

...

...


...




I’m sure that is the most retarded language known to... well... all of existence!
I hope reading that didn’t brain my damage.
User avatar
edward850
Zeppelin powers, activate!
 
Joined: 19 Jul 2005
Location: New Zealand

Postby Kinsie » Fri May 25, 2007 2:59 am

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
Kinsie
Television Monk
 
Joined: 22 Oct 2004
Location: MAP33

Postby Grubber » Fri May 25, 2007 3:02 am

I personally don't like Lua. It looks ugly.

edward850 wrote:I’m sure that is the most retarded language known to... well... all of existence!

http://en.wikipedia.org/wiki/Malbolge_programming_language ;)
User avatar
Grubber
I can wire anything directly into anything. I am the professor!
 
Joined: 15 Oct 2003
Location: Czech Republic

Postby edward850 » Fri May 25, 2007 3:04 am

me got :( be You kidding to
:lol:
Ok, my brain has left the building
User avatar
edward850
Zeppelin powers, activate!
 
Joined: 19 Jul 2005
Location: New Zealand

Postby Niya » Fri May 25, 2007 3:11 am

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 retarded language known to... well... all of existence!

http://en.wikipedia.org/wiki/Malbolge_programming_language ;)


You gotta be f**kin kidding.
User avatar
Niya
 
Joined: 14 Sep 2006

Postby Doomguy0505 » Fri May 25, 2007 3:29 am

That's like Brain rape!
User avatar
Doomguy0505
sudo rm -rf /
 
Joined: 29 Mar 2005

Postby Phobus » Fri May 25, 2007 3:33 am

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
Phobus
 
Joined: 05 May 2005
Location: Histon, Cambridge

Postby Graf Zahl » Fri May 25, 2007 3:36 am

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.
User avatar
Graf Zahl
 
Joined: 19 Jul 2003
Location: Germany

Next

Return to Editing

Who is online

Users browsing this forum: Bing [Bot], Enjay and 1 guest