Hard Light Productions Forums

Modding, Mission Design, and Coding => The Scripting Workshop => Topic started by: OldRookie on June 02, 2017, 11:36:52 am

Title: Standalone - how call a script during gameplay
Post by: OldRookie on June 02, 2017, 11:36:52 am
Hi,

because i didn't found myself a solution, i need your input.

I have a standalone Diaspora Server and need to run a LUA-Script during gameplay to export some flightdata to show them on another PC at a big screen :-)
If somebody host the game for multiplayer the script run without any problem in the $on frame: Hook
But the standalone did not reach this state, because he didn't render any picture...  :banghead: ;)

The script need not be called every "frame", once a second is enough.

Any ideas or solutions?  :confused:

Greetings
   OldRookie
Title: Re: Standalone - how call a script during gameplay
Post by: m!m on June 02, 2017, 11:39:23 am
$On Simulation should be run on every simulation frame which should include the standalone server. That only works with a nightly build so don't try this with 3.7.4.
Title: Re: Standalone - how call a script during gameplay
Post by: OldRookie on June 02, 2017, 11:44:20 am
WOW!!!!

You are my personal "Hero of the week" for such a quick response!!!!

I'll try and give feedback. If it works as i need you upgrade instantly to my "Hero of the Month"

OldRookie
Title: Re: Standalone - how call a script during gameplay
Post by: m!m on June 02, 2017, 11:46:07 am
Well, I might also be the reason you didn't find this information in the wiki because I forgot to update that page when I added the hook :nervous:
Title: Re: Standalone - how call a script during gameplay
Post by: OldRookie on June 02, 2017, 04:49:56 pm
okay.... not tested 'til the end, but... well...

m!m

is now my HERO of the month 2017.06
 :wakka:

:yes:  :nod:   :yes:  :nod:   :yes:  :nod:   :yes:  :nod:   :yes:  :nod:  :yes:



I think, now i can finish my projekt to have an DRADIS screen for our standalone DIASPORA server at the next BSG-LARP ;)

And may be more...