Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Pages: [1] 2 3 4

Author Topic: Campaign Missions  (Read 17148 times)

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 13424
    • View Profile
Campaign Missions
« on: March 27, 2015, 12:08:31 AM »

Blog post here.
« Last Edit: March 27, 2015, 12:10:23 AM by Alex »
Logged

Jmdelrio

  • Lieutenant
  • **
  • Posts: 51
  • Blood Angel
    • View Profile
    • Twitter
    • Email
Re: Campaign Missions
« Reply #1 on: March 27, 2015, 12:25:29 AM »

Can enemy factions compete on a contract that I want to take?  That could get interesting and foster hostile shipping lanes and piracy :)
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 13424
    • View Profile
Re: Campaign Missions
« Reply #2 on: March 27, 2015, 12:29:43 AM »

Can enemy factions compete on a contract that I want to take?  That could get interesting and foster hostile shipping lanes and piracy :)

Depends on whether that's coded into the mission. Playing around with some piracy-related meddling in the "procurement contract" one, but not satisfied with the results of that yet.
Logged

MShadowy

  • Admiral
  • *****
  • Posts: 834
    • View Profile
    • Email
Re: Campaign Missions
« Reply #3 on: March 27, 2015, 12:36:06 AM »

Well, I see you're having fun.  Now this is definitely something I've been looking forward to for a long time now; should give some interesting tools to us modders... to say nothing of your teasing us with the other parts of the update.

Heh, keep it up.
Logged

Foxer360

  • Admiral
  • *****
  • Posts: 637
  • Recursion; See Recursion (n)
    • View Profile
    • Email
Re: Campaign Missions
« Reply #4 on: March 27, 2015, 12:37:15 AM »

Oh boy, contracts! Can't wait to make Citadel snap up jobs!

Do these missions use the rules.csv exclusively?
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 13424
    • View Profile
Re: Campaign Missions
« Reply #5 on: March 27, 2015, 12:48:52 AM »

Well, I see you're having fun.  Now this is definitely something I've been looking forward to for a long time now; should give some interesting tools to us modders... to say nothing of your teasing us with the other parts of the update.

Heh, keep it up.

:) Having fun indeed!


Do these missions use the rules.csv exclusively?

In modding terms, a "mission" is an event with a "MISSION" type. It also has a pre-event stage where it's available but not yet accepted; there's a separate plugin for that stage. It also needs a script that handles actually creating instances of the mission and making them available.

As far as rules.csv, it's used for conversations with people. I added a "CallEvent" command that can be used from rules.csv - basically, what it lets you do is have certain "commands" built in to the mission event code instead of having it float around as separate custom commands. So far, it's working out very well, in terms of not taking too long to code up - part of that is me getting used to how to work with that framework, and part of that is the CallEvent command, which makes running custom java code from rules.csv a breeze.

For example, when you complete a mission, one of the lines in the script is:
CallEvent $mpm_eventRef performDelivery

And then in the mission class, there's:
Code: java
public boolean callEvent(String ruleId, final InteractionDialogAPI dialog, List<Token> params, Map<String, MemoryAPI> memoryMap) {
String action = params.get(0).getString(memoryMap);

CampaignFleetAPI playerFleet = Global.getSector().getPlayerFleet();
CargoAPI cargo = playerFleet.getCargo();

if (action.equals("performDelivery")) {
cargo.removeItems(CargoItemType.RESOURCES, mission.getCommodityId(), mission.getQuantity());
...
...
Logged

Protonus

  • Captain
  • ****
  • Posts: 382
  • Not necessarily "strong"
    • View Profile
Re: Campaign Missions
« Reply #6 on: March 27, 2015, 01:01:16 AM »

I'm taking bets for Amassed Blue Cargo trades and Red's explicitly high demand of slaughtering countless lives just for the taking.
Logged

Join us. We have cookies.

Cycerin

  • Admiral
  • *****
  • Posts: 1635
  • beyond the infinite void
    • View Profile
Re: Campaign Missions
« Reply #7 on: March 27, 2015, 01:02:18 AM »

Excellent stuff. Add in exploration and we'll have made the Escape Velocity games completely redundant.

Quote
In other news, I’m in a bit of a rare situation where there’s actually a backlog of things to talk about. I’m rather excited about the next blog post (well, rather, the features it’ll talk about). I’ll give you two hints – it’s related the the infrastructure laid down during the mission work, and it’s not something I was planning to add in this release. Past that, my lips are sealed, so don’t even ask!

You complete bastard.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 13424
    • View Profile
Re: Campaign Missions
« Reply #8 on: March 27, 2015, 01:14:53 AM »

You complete bastard.

Not a question, so we're good.
Logged

The Soldier

  • Admiral
  • *****
  • Posts: 3729
  • Quartermaster
    • View Profile
Re: Campaign Missions
« Reply #9 on: March 27, 2015, 01:40:53 AM »

I say planet interactions?  Seems logical, since you're adding NPCs and missions to stations, planets shall follow suit with situations like invasions.
I can dream too!

Overall exciting update. :) Although Megas (being the munchkin that he is) might not enjoy the more lore-oriented part of it, I'll love it.  I still feel like the backstory (the Collapse, the ensuing chaos and everything about it) needs to be explained more in the game.  This seems like a very good time to start on that. :)
Logged
Quote from: Trylobot
I am officially an epoch.
Quote from: Thaago
Note: please sacrifice your goats responsibly, look up the proper pronunciation of Alex's name. We wouldn't want some other project receiving mystic power.

Xanderzoo

  • Captain
  • ****
  • Posts: 342
    • View Profile
Re: Campaign Missions
« Reply #10 on: March 27, 2015, 02:01:04 AM »

This is going to be awesome.  ;D
Logged

Zaphide

  • Admiral
  • *****
  • Posts: 794
    • View Profile
Re: Campaign Missions
« Reply #11 on: March 27, 2015, 02:03:35 AM »

As usual, looks great Alex :)

Perhaps the tease is something to do with the fact that we now have persistent NPC's with roles/memories and <stuff>... Hmm I wonder where this could also be useful... :D

Anyways, one thing I would really like to see possible is the ability to chain missions into an arc, and have the availability of missions in an arc dynamic/deterministic so that performance in previous missions affects the availability and content of subsequent missions.

e.g. a structure something like:
 - Event: Pirate attack on [outpost]
 - Mission 1: Transport [goods] to [outpost]
   - If completed within 20 days, make Mission 2 available, else straight to Mission 3
 - Mission 2: Collect and bring [weapons/ships/supplies] to [outpost]
 - Mission 3: Track down and destroy responsible pirate
   - [Mission dialog loads to custom battle]
   - If Mission 2 was completed then a small number of AI-controlled friendly ships joins the fight
   - If Mission 2 was completed and no AI-controlled friendly ships were destroyed then receive [greater reward]

A simplistic example (and you have probably already considered most of it), but I think the notion of 'missions' could fairly easily become 'story arcs' with a lot of depth, similar in the way that EV Override and EV Nova had numerous large story arcs to be discovered and experienced.

And, then there could be mods that consist entirely of new missions/story arcs to add to the game and/or other mods :D
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 13424
    • View Profile
Re: Campaign Missions
« Reply #12 on: March 27, 2015, 03:13:19 AM »

Anyways, one thing I would really like to see possible is the ability to chain missions into an arc, and have the availability of missions in an arc dynamic/deterministic so that performance in previous missions affects the availability and content of subsequent missions.

That sort of thing is definitely possible, as missions are created and accepted via mod code. You could easily have some logic when one mission is completed either make new missions available or just add them to the missions the player has taken on.
Logged

orost

  • Captain
  • ****
  • Posts: 430
    • View Profile
Re: Campaign Missions
« Reply #13 on: March 27, 2015, 03:33:08 AM »

HYPE DRIVE ENGAGED

Looks really good, this is the exact kind of thing that Starsector badly needs!
Logged

Aeson

  • Captain
  • ****
  • Posts: 394
    • View Profile
Re: Campaign Missions
« Reply #14 on: March 27, 2015, 03:37:14 AM »

It occurs to me that the bounty system we presently have isn't much different from an "open" mission (i.e. one which doesn't need to be accepted and which is on offer to anyone who can complete it). Will the bounty system be rolled into the mission system (and perhaps expanded upon), or will it remain a separate thing?

Will missions allow you to get around faction-level port lockouts? E.g. the dock master at Baetis has a soft spot for Volturnian lobster, and if you bring him some he'll turn a blind eye to the fact that you're parking an Atlas in his backyard when you're not supposed to be allowed docking space even for a personal shuttle due to past smuggling convictions, piracy, whatever.
Logged
Pages: [1] 2 3 4