Author Topic: Axem's Script & Lua SEXP Collection  (Read 925 times)

0 Members and 1 Guest are viewing this topic.

Offline Axem

  • Administrator
  • 211
Axem's Script & Lua SEXP Collection
I've finally put together some of my scripts and lua sexp creations for public consumption, so everyone can share in the wonderment of near effortless use of lua scripts!

I've put them all on GitHub, so you can download them from there, report issues, or create PRs if you want to fix my bad scripting. I'm only going to post in this thread about new scripts that get added, smaller updates will just be committed without much comment.

The README has a basic overview of what each script does. The Lua SEXP documentation gets into a bit more detail. There are sample missions in some of the folders were applicable.

In progress right now are:
Collection of miscellaneous Lua SEXPs
Item Drop script as seen in JAD
Infinite Ship spawning system as seen in JAD
Turret Control script that allows fine control of turrets (a lua-fire-turret sexp will be included!)


Offline wookieejedi

  • 28
  • Intensify Forward Firepower
Re: Axem's Script & Lua SEXP Collection
Awesome to see these in one easy to get place! Great for folks who want to use them and who want to learn from them (like me).
Custom Wingmen HUD Gauge

Team Member for FotG


Offline Novachen

  • 28
  • The one and only capella supernova
Re: Axem's Script & Lua SEXP Collection
Well, i think, that it is possible, that i will report issues sometimes  :D
Female FreeSpace 2 pilot since 1999.
Global moderator in the German FreeSpace Galaxy Forum.

Responsible for the german translation project FreiRaum - FreeSpace auf Deutsch.
Also responsible for the Nova Upgrade Project, which upgrades and fix older campaigns to make them play- and solveable again with current builds and MediaVPs.

Release List:
German Translations:
Between the Ashes 1, FreeSpace Port, Silent Threat: Reborn, The Destiny of Peace, Awakenings & Deneb III.

Nova Upgrades:
A Walk in the Sun, Into the Halls of Valhalla, Luyten Civil War, Renegade Resurgence, Rogues!, Storm Front Saga, The Deuterium Connection & Venice Mirror.


Offline Nightmare

  • 210
Re: Axem's Script & Lua SEXP Collection
Would it be possible to extend the scripting to other authors as well? Axem made a lot of fine scripts, but there are others too. Most scripting examples on the wiki are broken AFAIK, and the scripting release board is too chaotic to be sure to get the latest (or even only a working) version. To show what I mean, I made that Ships DB from all FS related community-made ships, not only those from Esarai or Nyctaeus.  Single source seems more useful than many tiny.


Offline Axem

  • Administrator
  • 211
Re: Axem's Script & Lua SEXP Collection
That is actually an interesting idea. An HLP Community FS Script github would be a good place that all scripts could be in one place and... hopefully in rather well enough maintained state. Anyone could become a contributor and add their scripts to it too.

The only concern I'd have is the really old scripts that no longer work because of API changes or were in pretty rough shape to begin with and only the original author knew how it worked exactly...


Offline Axem

  • Administrator
  • 211
Re: Axem's Script & Lua SEXP Collection
Just added a new script, an Extended Loading Screen script!

This script will allow the modder to more finely customize mission loading screens. Added features include customizeable loading bars, randomized loading images, ability to automatically draw the mission's title, and random text (for tips or lore, as well as associated images). Care must be taken with the placement of the loading bar, random text and images, since they will not scale with the game's resolution (however, the background does have the ability to scale). This script only overrides missions that are inside the loading screen table. (A nightly after July 23, 2018 is needed to use this script)

The best part about this script is you can now use loading screens of any resolution, and they'll look great!

This is also the first script to use the brand new tbl parser now available to lua scripting, no more needing to use JSON for the config files now!