Author Topic: Axem's Script & Lua SEXP Collection  (Read 442 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.

https://github.com/AxemP/AxemFS2Scripts

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).

 
Re: Axem's Script & Lua SEXP Collection
Well, i think, that it is possible, that i will report issues sometimes  :D
"This account was hacked.

'HLPisaverydetailedFS2communitymodcentre' was not a good password."

To the unknown hacker:

Because i am able to hack myself, i was able to break into my own account again.

Your changed password was not better in the end.

 

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!

Quote
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!