# Orbiter BETA Lua development

#### Ripley

##### Tutorial translator
Donator
Looking forward to your comeback BEEP.
Hope everything will work out for the best, Godspeed.

#### JMW

BEEP -
Very best wishes for things to resolve well.
Look forward to seeing you again soon!

#### kuddel

##### Donator
Donator
No problem.
Handle your real life first; Orbiter comes 2nd.

#### Face

Beta Tester
The pack of Post 45 should be self-contained.
Sorry for the long delay, somehow I've totally forgot that over the holidays and the stressy first weeks this year.

I've tried the pack referenced and it works as it should on beta r73 with MOGE. I.e. I see the building's chimney smoking.

#### BEEP

Thanks everybody for the kind words. Things are developing exceptionally well and I expect to be home again next week. Orbiter comes in 2nd but is a close 2nd to me and I hope I'll have some time left to employ in this magnific mind adventure. Rate will be slower but it will go on.

#### Donamy

Donator
Beta Tester
Go take care of priorities in your life. We'll be here when you back.:thumbup:

#### kuddel

##### Donator
Donator
LuaScriptPlus DLLs (for Orbiter 2016)

I've uploaded versions for Orbiter 2016 (see attachments in first post of this thread).
One ZIP containing the sources and the other the DLLs.

You may now try those Lua extensions for Orbiter 2016.
Note, that the contents of the ZIP will overwrite your files, so you might like to backup those before they get overwritten.
I've tried to link those statically with the runtime, so hopefully they work just by unzipping it.

The test scenario (\Scenarios\Tests\undock_test.scn) is a starting point to run the test script.
As Orbiter 2016 does not have the "automatic Lua script start from scenario" feature, you have to run/start that manually.
At the LuaConsole type:
Code:
run('test/undock_test')
Have fun (if it works for you, else please report back)

Last edited:

#### kuddel

##### Donator
Donator
LuaScript 2019-07-11.zip

I've uploaded a new ZIP[1], that is functionality-wise basically the same as the previous ZIP[2] but the directory layout has been adopted to the latest Orbiter BETA (r85++) layout and some LDoc documentation fixes were added.

As no functional change is done, the DLL package [3] is still valid.

The ZIP contains only files that differ from the HEAD revision (r87) of Orbiter BETA repository, to make it easer to spot the changes.

This is mainly a way to provide Martin a small help while he's doing more important stuff :thumbup:

[1] LuaScript 2019-07-11.zip ...available at the first post.
[2] LuaScript 2017-12-08.zip
[3] LuaScript 2017-12-07(dlls).zip

Here's a detailed list of changes (against Orbiter BETA r87):

-------------------------------------------------------------------------------
- LuaConsole\ConsoleInterpreter.cpp
- LuaConsole\ConsoleInterpreter.h
- LuaConsole\LuaConsole.cpp
- LuaConsole\LuaConsole.h
- LuaMFD\MfdInterpreter.cpp

unreachable code from ConsoleConfig:escription removed.
- LuaConsole\ConsoleCfg.cpp

[Del], [End] and [Pos1] key handling.
- LuaConsole\LuaConsole.cpp

Doc fix (missing full stop for LDoc).
- LuaInterpreter\Interpreter.cpp
- LuaInterpreter\lua_vessel_mtd.cpp

Doc fix (parameter names were missing).
- LuaInterpreter\lua_vessel_mtd.cpp
-------------------------------------------------------------------------------

or the other way around (what files have what changes):

-------------------------------------------------------------------------------
LuaConsole\ConsoleCfg.cpp
- unreachable code from ConsoleConfig:escription removed

LuaConsole\ConsoleInterpreter.cpp

LuaConsole\ConsoleInterpreter.h

LuaConsole\LuaConsole.cpp
- [Del], [End] and [Pos1] key handling.

LuaConsole\LuaConsole.h