Author Topic: Custom Mission Roles Gauge v0.2  (Read 949 times)

0 Members and 1 Guest are viewing this topic.

Offline wookieejedi

  • 28
  • Intensify Forward Firepower
Custom Mission Roles Gauge v0.2
Current Version 0.2
Released May 08, 2019

Custom Mission Roles HUD Gauge v0.2




Background:
Have you ever been playing a mission and completely forgot what each squadron or ship was supposed to do becuase you didn't take notes during the briefing? Wouldn't it be nice if the mission designer allowed you a cheat sheet to look at on the HUD? If you answered yes then you should tell the mission designer about this script!

Description:
This script allows modders/FREDers to create a HUD gauge that shows mission roles. The script displays a simple HUD gauge that shows a list of names, followed by a respective description. The FREDer can use lua sexps to add or remove entries from list at any point in the mission, and the gauge will display those changes.

Insallation:
Go to this link: https://github.com/wookieejedi/Custom-Mission-Role-Gauge
Download and copy the `cus_role_gauge-sexp.tbm` and `cus_role_gauge-sct.tbm` files into your mod's `data/tables` folder.

Useage:
Run FRED, and you will see a new sexps to add or remove entries to the list ("Change"->"Script_Action"). To set more specific parameters like gauge location on the HUD, simply open the script file in a text editor and change the `User Options` values. Don't worry if you aren't comfortable with editing script files, the `User Options` all have descriptions and are easy to change.   


Thanks!
« Last Edit: May 08, 2019, 07:40:57 am by wookieejedi »

 

Offline 0rph3u5

  • 211
  • Can we have a better version of this conversation?
    • Steam
    • Twitter
Re: Custom Mission Roles Gauge v0.1
This is interesting ... it might have more uses if you skip the briefing completely or in mods that have more "universalist" fighters than FS

I will give it a whirl some time down the line
"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

"For a theft, a true theft, must be practiced to be earned." - The Lantern King, Pathfinder: Kingmaker

"...because they are not Dragons."

 

Offline Colonol Dekker

  • HLP is my mistress
  • 213
  • Aken Tigh Dekker
    • My old squad sub-domain
Re: Custom Mission Roles Gauge v0.1
This is absolutely useful and a welcome addition.  Remember all the creative stuff Derelict did with retail?  I'm sure this role guage can be used equally creatively. 
Your friendly Orestes tactical controller
GO GO DEKKER RANGERSSSS!!!!!!!!!!!!!!!!!
President of the Scooby Doo Model Appreciation Society
The only good Zod is a dead Zod
NEWGROUNDS COMEDY GOLD, UPDATED DAILY
http://badges.steamprofile.com/profile/default/steam/76561198011784807.png

 

Offline Colt

  • 27
  • Needs more dakka
    • Steam
Re: Custom Mission Roles Gauge v0.1
Just gave it a spin and came across this error upon starting the mission after the briefing stage.

Code: [Select]
Invalid font index 4 specified, must be between 1 and 3!

------------------------------------------------------------------
ADE Debug:
------------------------------------------------------------------
------------------------------------------------------------------


------------------------------------------------------------------

stack traceback:
[C]: ?
[C]: ?
[string "cus_role_gauge-sct.tbm - On Game Init"]:100: in function 'Draw'
[string "cus_role_gauge-sct.tbm - On HUD Draw"]:205: in main chunk
------------------------------------------------------------------

1: Userdata [Fonts]
2: Number [4.000000]
------------------------------------------------------------------

 

Offline 0rph3u5

  • 211
  • Can we have a better version of this conversation?
    • Steam
    • Twitter
Re: Custom Mission Roles Gauge v0.1
Fonts.tbl might be required - I mean the examples use the FotG-HUD font.

EDIT: or it might be required for the version of script as-is; it might also be a simple oversight with regards of the index (you know 0 base index....)
« Last Edit: May 08, 2019, 04:34:51 am by 0rph3u5 »
"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

"For a theft, a true theft, must be practiced to be earned." - The Lantern King, Pathfinder: Kingmaker

"...because they are not Dragons."

  

Offline wookieejedi

  • 28
  • Intensify Forward Firepower
Re: Custom Mission Roles Gauge v0.1
Ah right, I forgot to change the fonts from 4/6 to 1/3. I just updated the script and it should work now! No custom fonts needed. Alternatively, if you use a recent nightly then this issue will also go away (as I fixed that bug in the engine a month or so ago, too).  :)
« Last Edit: May 08, 2019, 07:51:33 am by wookieejedi »

 

Offline Colt

  • 27
  • Needs more dakka
    • Steam
Re: Custom Mission Roles Gauge v0.2
All's good now!

 

Offline wookieejedi

  • 28
  • Intensify Forward Firepower
Re: Custom Mission Roles Gauge v0.2
Excellent, hope the gauges proves useful!