[RELEASE] Resistance Commander

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

User avatar
Ramirez
---- E L I T E ----
---- E L I T E ----
Posts: 628
Joined: Mon Nov 07, 2005 9:52 am
Location: London, UK

Re: Squadron Leader

Post by Ramirez »

Two bank holidays and lots of proper work in between equals not much Oolite action. However, here's an updated version of the Guerilla War test that uses the Shift-N function to activate/de-activate the squadron command system. You'll be given the equipment when you first sign up to the resistance or later whenever you agree to undertake a mission.

Guerilla War v0.2
Download Resistance Commander plus many other exciting OXPs HERE
User avatar
Staer9
---- E L I T E ----
---- E L I T E ----
Posts: 570
Joined: Fri Feb 18, 2011 4:53 pm
Location: Hatfield, Hertfordshire (poor industrial)

Re: Squadron Leader

Post by Staer9 »

do you still need at least 6 missile slots? or does the shift-n overide that?
Image
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Re: Squadron Leader

Post by Kaks »

You still need x missile slots in total, since the squadron interface uses the missile bays slots to implement its magic.

When pressing n, however, your hud will switch from showing your missiles to showing the squadron interface.
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
Commander Wilmot
Deadly
Deadly
Posts: 206
Joined: Thu Mar 17, 2011 10:12 pm
Location: Somewhere in galaxy 1, flying my Diamondback

Re: Squadron Leader

Post by Commander Wilmot »

I don't want to tell you what to do with your oxp, but in case your looking for inspiration or another game in addition to Oolite, here is a game similiar to what you are trying to do in Oolite. Arvoch Conflict
User avatar
Commander Wilmot
Deadly
Deadly
Posts: 206
Joined: Thu Mar 17, 2011 10:12 pm
Location: Somewhere in galaxy 1, flying my Diamondback

Re: Squadron Leader

Post by Commander Wilmot »

I have had some time to think on your oxp. I think it has great promise, but I felt like I didn't do that much. I targeted and destroyed a few of the asps and ordered my wingmen to engage a couple others, but the wingmen didn't do much. Only one got a kill and another got killed, the enemy asps just sat around until I attacked them, then they fought back briefly and fled way beyond the station's aegis. The enemy ai was not that great, I assume that the ai is just filler for a custom ai suited to this purpose.
Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 2411
Joined: Mon May 31, 2010 11:11 pm

Re: Squadron Leader

Post by Switeck »

It's very hard to get ai ships to attack escort type ships. The escorts generally won't attack them unless their mothership orders them to.
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Re: Squadron Leader

Post by Thargoid »

You can get some interesting results with the use of ship groups and groupAttackTarget.

See KW's wasps OXP for an example where it was used - I set them up there to be quite nasty when they swarm and attack...
User avatar
Ramirez
---- E L I T E ----
---- E L I T E ----
Posts: 628
Joined: Mon Nov 07, 2005 9:52 am
Location: London, UK

Re: Squadron Leader

Post by Ramirez »

Thanks for comments so far; here's what I've been up to.

For the base defence test mission I've now given the enemy a proper AI that makes them actually attack the Coriolis station. Previously I'd just given them a standard trader AI which is why they didn't attack.

More importantly I've been tweaking the squadron AI further in a bid to make them more effective. It seems no matter what I do they just don't seem to want to fight sometimes, even though they're using the standard performAttack routine used to great effect by police interceptors. It does seem that they're far more animated when pitched against ships that actually defend themselves. In contrast, when attacking a slow moving trader the tendency is to fire a few laser bursts (often missing in the process) before wheeling away to prepare another attack.

As a test I tried adding a fixed turret to the mambas and that seems much more effective. I was always going to have at least one ship amongst the selection with turrets of some sort, but I may expand this to some of the smaller ships as well if it makes the gameplay better. (I've noted some of the comments in the 'Accidental Fire' thread re turrets and if I do go down this route I'll be reducing the weapon energy or increasing the enemy's ship energy to balance things out properly).

I was going to work on some of the other mission types but I got sidetracked into developing the scoring mechanism, which after all will underpin the whole OXP. In turn that led me to create a nifty 'balance of power' graph to show how the war is going. This info needed a home so I created a new Ops Room screen, which also summarises total kills/losses sustained over the course of the campaign, as well as a news feed reporting any relevant intelligence. For the moment this is just there for a bit of flavour but I might have a more functional use for it in future. Will post some pics once I've done some cleaning up.
Download Resistance Commander plus many other exciting OXPs HERE
User avatar
maik
Wiki Wizard
Wiki Wizard
Posts: 2028
Joined: Wed Mar 10, 2010 12:30 pm
Location: Ljubljana, Slovenia (mainly industrial, feudal, TL12)

Re: Squadron Leader

Post by maik »

Added to the WIP section of the [wiki]OXP List[/wiki].
User avatar
Ramirez
---- E L I T E ----
---- E L I T E ----
Posts: 628
Joined: Mon Nov 07, 2005 9:52 am
Location: London, UK

Re: Squadron Leader

Post by Ramirez »

Thanks for the add, maik.

Here's a quick screenshot of the ops room:

Image
Download Resistance Commander plus many other exciting OXPs HERE
User avatar
Staer9
---- E L I T E ----
---- E L I T E ----
Posts: 570
Joined: Fri Feb 18, 2011 4:53 pm
Location: Hatfield, Hertfordshire (poor industrial)

Re: Squadron Leader

Post by Staer9 »

That looks great now Ramirez, I can't wait for the full oxp to come out.
Image
Zireael
---- E L I T E ----
---- E L I T E ----
Posts: 1396
Joined: Tue Nov 09, 2010 1:44 pm

Re: Squadron Leader

Post by Zireael »

I can only echo Staer9's opinion...
User avatar
Ramirez
---- E L I T E ----
---- E L I T E ----
Posts: 628
Joined: Mon Nov 07, 2005 9:52 am
Location: London, UK

Re: Squadron Leader

Post by Ramirez »

Another question: in the loadout selection screens I'd like to shift the ship display model into the top right corner rather than having it in the centre. I got the impression that mission.displayModel can be used to change position and orientation but I don't quite know how to go about this - something to do with frame callbacks?
Download Resistance Commander plus many other exciting OXPs HERE
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: Squadron Leader

Post by Svengali »

Simply setup your screen with the model:

Code: Select all

mission.runScreen({ model: "myModel"});
or

Code: Select all

mission.runScreen({ model: "myModel", spinModel: false });
Then set position and ortientation

Code: Select all

mission.displayModel.position=[x,y,z];
mission.displayModel.orientation=[w,x,y,z];
The question is if you want it to be rotating and if you want to control the rotation. spinModel:false gives you the possibility to control it on your own. Then you can use frame callbacks or timers to let it rotate. Advantage of a frame callback is that the rotation is really smooth.

Another approach is to use a control entity (like in Snoopers). Here the control entity scans for it and uses "safeScriptActionOnTarget: performTumble" in it's AI. This leads to random rotations, based on the shipdata declarations for max_flight_pitch and max_flight_roll.

But then the next tricky thing pops in - finding and correcting the right position based on users screen resolution...
User avatar
Ramirez
---- E L I T E ----
---- E L I T E ----
Posts: 628
Joined: Mon Nov 07, 2005 9:52 am
Location: London, UK

Re: Squadron Leader

Post by Ramirez »

I'm pleased to be able to post a further update to this work in progress. Once again, focus is on building the mechanics which I then hope to re-use for different missions, etc. Here's a bit of a changelog:
  • Moved ship displays to top right of loadout screen (thanks, Svengali!)
  • Altered the ship selection menu to cycle through available ships rather than selecting them through mission choices. This leaves more of the screen available to display the ship specs
  • Added some background art to various screens
  • Added an assault mission type that involves hyperspacing out of the current system (not I'm just using a rock hermit as a placeholder model)
  • Modified mission destinations so they're within 15ly or so of the resistance base - we don't want the player to have to cross the galaxy with their squadron in tow
  • Added mission summaries (kills, casualties, points) on debrief
  • Implemented an Ops Centre (see previous pic) with campaign summary, intelligence feed and overall score
  • Units now carry out a routine comms check after exiting witchspace
  • Improved in-flight squadron communications
  • Fitted Mambas and Kraits with low-power plasma turrets to improve combat effectiveness
  • Player is now assigned a specific squadron command with number and type
Image

Stuff that's on the way:
  • Scripting for remaining mission types
  • Rank and promotions system for squadron units
  • All sorts of balancing tweaks to make the OXP fun!
Guerilla War v0.3
Download Resistance Commander plus many other exciting OXPs HERE
Post Reply