Help with your scripting

Extending Lua

Extending Lua

Postby StevenP » 15 Apr 2015, 19:56

Can I extend Lua's functionality via packages in Skyline (http://www.lua.org/manual/5.3/manual.html#6.3)?
User avatar
StevenP
Skyline Apprentice
 
Posts: 46
Joined: 07 Jun 2014, 21:19

Re: Extending Lua

Postby SolarPortal » 15 Apr 2015, 20:12

it might work, its worth a try to see if the modules will work, but it might only work through a lua compile.
We load and run lua scripts on the fly without the use of a compiled file.

Another problem i can see is the require() function call.
We will need to create this as a function in c++ like the sky.include() which replaced dofile() and dostring(). Then return the data table back through a lua function. Another user asked for this feature also.

The reason for all this is that require() won't run in an archived end game, as it needs a hard drive based file and cannot be streamed from my knowledge.
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: Extending Lua

Postby StevenP » 15 Apr 2015, 20:16

Makes sense. Thanks.
User avatar
StevenP
Skyline Apprentice
 
Posts: 46
Joined: 07 Jun 2014, 21:19


Return to Lua Scripting

Who is online

Users browsing this forum: No registered users and 12 guests

cron