Pirulax

Lua 5.3?

Recommended Posts

Is there any chance to see Lua 5.3 in MTA?

Mostly because of new features in 5.3, like goto statement, bitwise operators, and new metatable events.

 

Share this post


Link to post

This topic was considered many times, mta team said that "this can break already existed scripts" but there can be option to change version of lua, by default: 5.1

 

Share this post


Link to post

The current lua system is heavily modified; adding in an updated system would require a rewrite of hundreds of thousands lines of code that have accumulated over years. MTA simply doesn't have a big enough development team left to accomplish stuff such as that.

Edited by CodyJ(L)

Share this post


Link to post

With the amount of core changes done that would likely not be plausible.

Share this post


Link to post
On 30/05/2018 at 21:25, PolskiSebek12 said:

Not change to lua 5.3, but trying copy stuff from lua 5.3

What kind of features, in particular, are you looking for?

Share this post


Link to post
  • bitwise operators
  • goto statement
  • more metamethods
  • new function table.move
  • new function string.pack
  • new function string.unpack
  • new function string.packsize

this is only few

  • Like 1

Share this post


Link to post

Actually, it's not about code changes by MTA (there are a few changes, but those are easy to migrate). The real problem is that the bytecode changed which is why compiled scripts won't work any longer. Additionally, some features (like fenvs) were removed.

The only way to get support for Lua 5.3 is to add a field to the meta.xml to switch between Lua versions. The question is though: Is the confusion and community fragmentation caused by this worth the few new features?

  • Haha 1

Share this post


Link to post

In general I like upgrades but if there's nothing wrong with the current version and the whole community isn't invested into the upgrade then I would just say leave it.

Create a poll if you really want the community decision.

Share this post


Link to post
On 01/06/2018 at 18:48, PolskiSebek12 said:
  • bitwise operators
  • goto statement
  • more metamethods
  • new function table.move
  • new function string.pack
  • new function string.unpack
  • new function string.packsize

this is only few

It's amazing

More functions for package system

Edited by Debo15

Share this post


Link to post
On 05/06/2018 at 13:25, Jusonex said:

Actually, it's not about code changes by MTA (there are a few changes, but those are easy to migrate). The real problem is that the bytecode changed which is why compiled scripts won't work any longer. Additionally, some features (like fenvs) were removed.

The only way to get support for Lua 5.3 is to add a field to the meta.xml to switch between Lua versions. The question is though: Is the confusion and community fragmentation caused by this worth the few new features?

I hate to bump such an old topic, but theoretically could it be possible to have 5.1 be the "default" seen by MTA:SA unless manually changed by the user? Even as a long-term fix, that could be used to eventually promote users migrating over to newer versions, and eventually the default could be changed when the developers feel word has gotten around enough. (Kind of like the idea of how XP builds of MTA:SA still exist for those users while they are being encouraged to move over to a newer OS before XP support completely ceases in MTA:SA down the road).

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.