Author Topic: Lua may be getting axed, how many people care?  (Read 3078 times)

Offline Coolthulhu

  • Contributor
  • Survivor
  • ****
  • Posts: 3623
    • View Profile
Lua may be getting axed, how many people care?
« on: March 04, 2017, 03:50:28 PM »
https://github.com/CleverRaven/Cataclysm-DDA/issues/20172

Supporting that Lua interface takes far more work than porting all the known Lua scripts to C++ and supporting that.

How many mods actually make use of that Lua interface? How extensively?

Offline Zhilkin

  • NPC
  • **
  • Posts: 107
    • View Profile
Re: Lua may be getting axed, how many people care?
« Reply #1 on: March 05, 2017, 08:32:43 AM »
Most people would care about `Stats through skills` mod

Offline pisskop

  • Survivor
  • ***
  • Posts: 3376
  • So Noble he farts Helium
    • View Profile
Re: Lua may be getting axed, how many people care?
« Reply #2 on: March 05, 2017, 01:20:38 PM »
i dont use it.  but then again I don't explicitly know howto lua

Offline Rivet

  • Administrator
  • Survivor
  • *****
  • Posts: 2663
  • C:DDA Developer
    • View Profile
    • Rivet's Git profile
Re: Lua may be getting axed, how many people care?
« Reply #3 on: March 05, 2017, 06:43:25 PM »
I think all the LUA is used for is the StatsThroughSkills mod, which could be rewritten in C++ just as easily.

My vote is to nix it.
“No! I must kill the demons” she shouted
The radio said “No, Rivet. You are the demons”
And then Rivet was a zombie.

Offline Kevin Granade

  • Administrator
  • Survivor
  • *****
  • Posts: 5351
  • I code dead people.
    • View Profile
Re: Lua may be getting axed, how many people care?
« Reply #4 on: March 05, 2017, 07:35:49 PM »
To be clear, along with this would be overhauling fast zombies, slow zombies, tough zombies, stats through skills, and zombie nightvision to no longer depend on lua support.

The fact that this list of mods is so short is the problem here, we have thousands of lines of code in the game to support this handful of features.
Its like a fun family cookout, except your family is burning in flames while trying to eat you. -secretfire
I'm more excited than a survivor on meth and toast'ems. -Nighthawk
The the giant wasp is slammed through the zombie brute!

Offline Coolthulhu

  • Contributor
  • Survivor
  • ****
  • Posts: 3623
    • View Profile
Re: Lua may be getting axed, how many people care?
« Reply #5 on: March 05, 2017, 08:50:43 PM »
fast zombies, slow zombies, tough zombies

Pretty sure those are already overhauled.

Offline Kevin Granade

  • Administrator
  • Survivor
  • *****
  • Posts: 5351
  • I code dead people.
    • View Profile
Re: Lua may be getting axed, how many people care?
« Reply #6 on: March 05, 2017, 09:21:08 PM »
Each has a main.lua, so they're either not switched over or they have leftovers.
Those are the trivial ones anyway, stats through skills is the only one that isn't a simple map over the list of monsters.
Its like a fun family cookout, except your family is burning in flames while trying to eat you. -secretfire
I'm more excited than a survivor on meth and toast'ems. -Nighthawk
The the giant wasp is slammed through the zombie brute!

Offline wad67

  • Survivor
  • ***
  • Posts: 356
    • View Profile
Re: Lua may be getting axed, how many people care?
« Reply #7 on: March 22, 2017, 01:53:38 PM »
Providing prevent zombie revivification gets ported over I wouldn't mind.

Offline Taberone

  • NPC
  • **
  • Posts: 151
    • View Profile
Re: Lua may be getting axed, how many people care?
« Reply #8 on: April 02, 2017, 04:32:12 PM »
What about the lua console in the debug menu? Is that going to be axed, too?

Providing prevent zombie revivification gets ported over I wouldn't mind.

I also wouldn't mind if prevent zombie revival got overhauled to not need lua support.
Something like 15:00-18:00 is good time to kill the children
This is art right here

Offline Zhilkin

  • NPC
  • **
  • Posts: 107
    • View Profile
Re: Lua may be getting axed, how many people care?
« Reply #9 on: April 02, 2017, 06:02:35 PM »
There won't be Lua in any form, so console won't be available.

Online Slax

  • Survivor
  • ***
  • Posts: 1253
  • Crash Test Dummy
    • View Profile
Re: Lua may be getting axed, how many people care?
« Reply #10 on: April 05, 2017, 11:41:48 AM »
Convert all of the things, then get rid of lua. Everyone wins!

Offline pisskop

  • Survivor
  • ***
  • Posts: 3376
  • So Noble he farts Helium
    • View Profile
Re: Lua may be getting axed, how many people care?
« Reply #11 on: April 05, 2017, 02:36:02 PM »
I actually know of a few mods that could conceptually rely upon lua or hard coding.  but idk if they have the skillset to use it.

not me, though undoubtedly I could.

Offline Kevin Granade

  • Administrator
  • Survivor
  • *****
  • Posts: 5351
  • I code dead people.
    • View Profile
Re: Lua may be getting axed, how many people care?
« Reply #12 on: April 05, 2017, 05:52:56 PM »
"Could conceptually rely upon lua" is what got us into this situation, if it's not someone actually using Lua it doesn't matter.
Its like a fun family cookout, except your family is burning in flames while trying to eat you. -secretfire
I'm more excited than a survivor on meth and toast'ems. -Nighthawk
The the giant wasp is slammed through the zombie brute!

Offline BorkBorkGoesTheCode

  • Survivor
  • ***
  • Posts: 733
  • What could possibly go wrong....
    • View Profile
Re: Lua may be getting axed, how many people care?
« Reply #13 on: April 05, 2017, 08:15:25 PM »
What can Lua actually do?
Inactive.

If you have questions about my posts, send me a PM.

Offline Zhilkin

  • NPC
  • **
  • Posts: 107
    • View Profile
Re: Lua may be getting axed, how many people care?
« Reply #14 on: April 06, 2017, 12:22:53 AM »
What can Lua actually do?

Toggle player gender and increase INT by 1 once a minute.

Code: [Select]
local MOD = {}

mods["ZS_LuaSandbox"] = MOD

function MOD.on_minute_passed()
game.add_msg("One minute has passed! Swapping gender!! You are getting smarter!!!!")

--local m = player.male
player.male = not (player.male)

player.int_max = player.int_max + 1

end