Hard Light Productions Forums

Modding, Mission Design, and Coding => The Scripting Workshop => Topic started by: Axem on April 18, 2014, 08:31:47 pm

Title: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: Axem on April 18, 2014, 08:31:47 pm
Improving upon Goober's idea from a few years ago...


Press Alt+J, get that system viewer screen, click a planet, hit jump to and watch yourself be transported to your destination!

Of course this doesn't have to be a navigational system, it could used just for reference purposes to let people explore the system they're in. Outside of gameplay the Jump To button won't appear. As well the script allows for per-mission system loading (so the map can change as your campaign's events unfold), as well as a simple hierarchy of map "zoom levels".

Like below in this test Sol layout, you can click on Earth and "zoom in" to load a new map that's just Earth and the Moon.
(http://lazymodders.fsmods.net/axemart/FreeSpace/screen0455.jpg)
(http://lazymodders.fsmods.net/axemart/FreeSpace/screen0456.jpg)

There's lots of other little customizations you'll be able turn on or off. Orbits can be turned off, icons can be added. You can even draw arrows to show fleet or force movements!

All I need to do is stop starting new things and actually finish what I start...
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: niffiwan on April 18, 2014, 09:30:02 pm
Very cool :yes:
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: Black Wolf on April 18, 2014, 09:31:22 pm
Wow! This looks amazing!

Admiral MS has the FSRTS active again in his thread - maybe one day we can use this and have an FSRPG as well! :D So much potential with this, Axem, well done!
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: m!m on April 19, 2014, 02:29:18 am
This is looking great, excellent work Axem! :yes:
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: Admiral MS on April 19, 2014, 03:21:31 am
Wow! I don't even have an idea how he does this magic :yes:
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: procdrone on April 19, 2014, 03:43:25 am
Amazing!
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: Kobrar44 on April 19, 2014, 04:32:20 am
Since when you make a jump you end the mission and get to the next one, does that mean that you can save your progress in the open world? I was thinking if that would work and it's cool to see that happen  :yes:
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: Dragon on April 19, 2014, 05:42:43 am
Freespace: Privateer! :) I remember playing Goober's tech demo, it was quite a nice idea.
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: The Dagger on April 19, 2014, 06:52:00 am
Wow, this looks amazing!  :eek:
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: mjn.mixael on April 19, 2014, 08:31:43 am
Since when you make a jump you end the mission and get to the next one, does that mean that you can save your progress in the open world? I was thinking if that would work and it's cool to see that happen  :yes:

It would take some crazy FREDing, but this + Admiral MS's shipsave script could probably do what you are thinking.
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: X3N0-Life-Form on April 19, 2014, 01:06:28 pm
Witchcraft!
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: Lorric on April 19, 2014, 01:15:06 pm
Oh wow, Axem... just... wow...

Could someone show me what Goober's idea was please? That must be around here somewhere, yes?
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: Axem on April 19, 2014, 01:24:59 pm
This was the original FreeSpaceLancer (from 9 years ago!): http://www.hard-light.net/forums/index.php?topic=29170.0
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: Lorric on April 19, 2014, 01:40:03 pm
This was the original FreeSpaceLancer (from 9 years ago!): http://www.hard-light.net/forums/index.php?topic=29170.0

Thank you Axem. That was an interesting read. So what gave you the idea to try this? Reading that thread made me wonder.
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: Axem on April 19, 2014, 01:50:34 pm
I've had many campaign ideas where you choose where to go next. Not quite with completely open world concepts like this, but using the original idea of FreeSpaceLancer shows the extent that this can be used for. You could have this pop up at the end of a mission or just in a hub mission. The possibilities are endless!
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: Dragon on April 19, 2014, 01:52:28 pm
Axem, do you think that could make it possible to do a fully dynamic campaign in FS? Something like in Starshatter, you have a system/sector/galaxy map, and your only objective is to conquer it. So you can choose the target, the mission and it'd either generate your sortie based on the strategic situation, or engage a storyline mission (something Starshatter lacks, TBH). I imagined something like Carrier Command, except with fighters and capship command. :)
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: Axem on April 19, 2014, 02:24:20 pm
I would say its totally possible to do. But it would also be pretty challenging to do, and I've got enough stuff to do right now so someone else would have to give it a try.
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: T-Man on April 19, 2014, 02:55:53 pm
:eek2: How?

No. Seriously. How did you manage this (That chromium add-in thing?) I'm genuinely speechless.

But aye so much potential with this, especially for campaigns that like rich stories or want to show a bigger picture (I've always loved the idea of the world 'beyond the player' being shown like that). And yeah something like this would work really well with the RTS project Admiral MS is working on (am suddenly reminded of Nexus: The Jupiter Incident's briefings, sounds like something to that affect would be very doable).

But nah, this is genuinely unbelievable. I am officially scared of your skills now :lol:.
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: Axem on April 19, 2014, 03:43:19 pm
Nope, not chromium, just lua. I designed my own interface backend (I called it AXUI, also used for the Journal) that does all the grunt work with buttons and special graphical elements. The rest is parsing a config file to create the system layout. When the time comes to press "jump to", I throw the destination's name into a sexp variable and let FreeSpace do the rest.

Really this is a overly complicated script to modify a single sexp variable. ;)
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: General Battuta on April 19, 2014, 04:49:58 pm
Maybe the dreamscape war map doesn't have to be a gigantic ship any more.
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: karajorma on April 20, 2014, 02:30:47 am
Axem, do you think that could make it possible to do a fully dynamic campaign in FS? Something like in Starshatter, you have a system/sector/galaxy map, and your only objective is to conquer it. So you can choose the target, the mission and it'd either generate your sortie based on the strategic situation, or engage a storyline mission (something Starshatter lacks, TBH). I imagined something like Carrier Command, except with fighters and capship command. :)


I'd suggest looking up Babylon History X threads from on here. IP Andrews had much of that working years ago.
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: Rheyah on April 20, 2014, 04:30:36 am
So does this work as in mission jumps or does it work to change between missions ala Bem Cavalgar?  I was thinking about how you'd go about doing something like this.

As for dynamic mission generation, I think you could do that without too much trouble :)
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: Axem on April 20, 2014, 08:08:56 am
Either works. Like I said the one interaction the script has with the mission is it changes a string variable and from there you have a bunch of string-equals sexps in the mission to see what was chosen. There's also an option in the config file that determines if the selected destination causes the player to warp out, so if that's set to no then you could use it for in system jumps.

Otherwise you warp out and the links made in the campaign editor determine where you go next.
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: 666maslo666 on April 21, 2014, 02:46:47 am
this is great

when can we download it?
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: AdmiralRalwood on April 26, 2014, 04:29:05 pm
This would be amazingly perfect for a campaign idea I had. I was going to make the player use prompt boxes to pick jump destinations, but a full-blown GUI approach would be so much better. Nice work as usual, Axem!
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: Axem on April 26, 2014, 05:19:30 pm
This is "mostly done". I just need a small code request done. I'll probably release this (and the Journal) sometime next month!
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: TwentyPercentCooler on April 26, 2014, 05:34:49 pm
WOW. You guys...you guys never cease to amaze me with your wizardry. It's only a matter of time before Freespace becomes sentient. >.>
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: chief1983 on April 28, 2014, 01:56:54 pm
God, if only there was some way to combine this with SquadWar...
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: WorldsDawn on May 05, 2014, 04:21:44 pm
Wow, Axem...

You really perform some black magic here! *brings torches and pitchforks*
I really want to see what you guys can do with it :)

I did not think something like that would be possible but thanks for keeping my dreams alive, Axem :3

Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: Echelon9 on May 06, 2014, 07:09:56 am
Really great - I would love to see a campaign implement this.
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: mjn.mixael on May 08, 2014, 01:30:57 am
BtA will be using this, not as a way to select missions or to travel the local system, but more as a tech room type place. It will allow players to view Antares (our main setting), explore it to see more detailed information, and to just become more familiar with the system. It's optional fluff, I suppose, but it's way cool. The map will change as the campaign progresses to keep track of fleet locations, major events, and stuffs.

I'm really only just beginning the setup.. but oh the possibilities!


Yeah, that's right... planet models. 2D maps are so 2013.

EDIT: Tomorrow I do a planet with rings, because why not?

Also, Axem will hate me because this makes me want another feature.. to be able to control rotation speed of models!  :nervous:
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: niffiwan on May 08, 2014, 01:42:40 am
woah, that's way cool! :)
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: The E on May 08, 2014, 02:53:27 am
That is indeed spectacular. Finally a good use for planet models!
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: Luis Dias on May 08, 2014, 03:59:50 am
Wow O_o getting a huge Mass Effect vibe there, that's awesome Mixael!
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: Axem on May 08, 2014, 07:20:56 am
Mjn: Fine, but only because the stuff you're doing is so cool.
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: mjn.mixael on May 08, 2014, 08:13:18 am
Mjn: Fine, but only because the stuff you're doing is so cool.

Yay! So that means I can ask for light position and rotation tilt control as well? :)
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: procdrone on May 08, 2014, 08:15:01 am
(http://i1.kym-cdn.com/photos/images/newsfeed/000/641/298/448.jpg)

Just WOW...
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: Luis Dias on May 08, 2014, 08:57:49 am
ADD IN BACKLIGHT! lol
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: Lepanto on May 08, 2014, 09:04:08 am
SO AWESOME! This is truly a great achievement!  :nod:

I already want to use this as a strategic map for a strategic-command campaign of mine.
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: Lorric on May 08, 2014, 09:05:37 am
I know it's a good thing and all, but I can't put my finger on why this excites me as much as it does. It's very rare I feel that way about anything in gaming these days.
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: mjn.mixael on May 08, 2014, 09:11:51 am
I finished a few more, including a gas giant. The gas giant is what really shows off the weird tilt-spin/lighting. I'll deal with it if it's not adjustable, but it would be handy to be able to tweak the look of it.

Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: Luis Dias on May 08, 2014, 09:15:45 am
You could handwavexplain it with how planets in your universe are all tidal locked to their stars...
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: Axem on May 08, 2014, 09:24:51 am
Changing the lighting would be a no-no.  :( I render the models with the render tech room model function, which has no lighting controls, just rotation controls.
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: Luis Dias on May 08, 2014, 09:36:54 am
can't you hack the camera placement coordinates?
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: mjn.mixael on May 08, 2014, 11:21:11 am
can't you hack the camera placement coordinates?

Might be able to do that using $closeup pos: in ships.tbl... I'll have to test that when I get home.
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: Luis Dias on May 08, 2014, 11:29:24 am
It won't solve the tidal lock appearance though... but if you can modify the rotation axis and do that it would be the solution.
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: Axem on May 08, 2014, 12:02:25 pm
Oh, you know what. I might be able to fix the tilt actually. I make all the rendered objects tilt a little bit down because with ships having an edge-on only view is kind of boring, but I can see with planets that its not a good thing to have. I can definitely add more config options for that.

Light position though... maybe not still.  :doubt:
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: mjn.mixael on May 08, 2014, 12:29:46 pm
If I can move the "camera" with $Closeup pos: and I can alter the rotation angle (tilt), then I could conceivably cheat the light. Essentially, I'd move the camera to match the light source location (which seems to be straight up), and then alter the rotation tilt based and model orientation based on that.

Of course that all assumes that $closeup pos: moves the camera as intended and doesn't mess with the light source at all... which is a fact I'm not counting on.
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: mjn.mixael on May 09, 2014, 04:25:27 pm
Yeah... $closeup pos: doesn't do what I had hoped. But, I just had another idea.. I could set the rotation to 0 in the script and create rotation in the POF and then tilt the planets... BOOM.

I'll do that next, but for now.. planets with slower rotation, variable size.. and RINGS! :)

Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: niffiwan on May 09, 2014, 06:44:47 pm
wow, looking awesome guys  :nod:
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: mjn.mixael on May 09, 2014, 07:49:22 pm
Suck it FSO. Tilted rotation.  :)

Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: CommanderDJ on May 09, 2014, 10:07:14 pm
This is unbelievably cool.
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: X3N0-Life-Form on May 10, 2014, 02:50:46 am
Damn wizards. They're everywhere these days! (Not that I'm complaining :))
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: Rodo on May 13, 2014, 08:41:58 am
Oh god! first time I see this awesome piece of work. So cool!!!
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: fightermedic on May 17, 2014, 07:09:11 pm
how could i miss this?
this is as awesome as it gets!
Title: Re: FreeSpaceLancer v2.0 / System Viewer (WIP)
Post by: mjn.mixael on May 29, 2014, 01:51:15 am
My team and I have continued to build our system. This tool has greatly helped us flesh out BtA's setting. I don't know if I could have made Antares feel more alive without this one. Anyhow.. here's a few examples of neat things we've got going.