Jump to content

Lua 5.3?


Recommended Posts

  • Discord Moderators
Posted

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.

 

Posted

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

 

Posted (edited)

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)
  • MTA Team
Posted
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?

Posted
  • 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
Posted

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
Posted

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.

  • 2 months later...
Posted (edited)
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
  • 1 month later...
Posted
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).

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...