[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4921: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3896)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4923: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3896)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4924: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3896)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4925: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3896)
TrainSimDev.com • View topic - How can I add lua modules in engine scripts?

How can I add lua modules in engine scripts?

Re: How can I add lua modules in engine scripts?

Postby TrabantDeLuxe » Mon Sep 03, 2018 8:46 am

Still no luck unfortunately. I need someone with patience here.

@VictoryWorks: A reputable source showed me the same over discord the other day. I haven't experimented with this method, but it really seems to suit my needs just fine. I'm a bit busy with work lately, but I'll try it one day.

@AndiS: When using require, do you store the table of functions in a local or global variable (more precise, a pointer), or do you have another way of doing it. Including the full path did not work by the way.
TrabantDeLuxe
Passed Fireman
 
Posts: 246
Images: 7
Joined: Mon Mar 21, 2016 10:10 pm
Location: Delft, NL
Has thanked: 176 times
Been thanked: 263 times

Re: How can I add lua modules in engine scripts?

Postby AndiS » Mon Sep 03, 2018 10:02 am

AndiS
Top Link Driver!
 
Posts: 637
Joined: Wed Apr 09, 2014 5:48 pm
Has thanked: 261 times
Been thanked: 302 times

Previous

Return to Rolling Stock General

Who is online

Users browsing this forum: No registered users and 0 guests