Thrawn's Revenge

Mod & Network News => News & Updates => Topic started by: Corey on June 01, 2015, 02:49:52 PM

Title: Randomized Z-Layer
Post by: Corey on June 01, 2015, 02:49:52 PM
Most of what we're doing is currently not very visual, hence the lack of screenshots, but we've got some stuff going on in the background.

We (by we I mean Pox) have been working on a script to randomize the levels ships jump in on, so each instance of a ship class isn't always on the same level. This has been done previously in other mods with some story scripting that cycles between unit variants, but those tend to limit the possibilities, wouldn't work super well with era changes, and also tends to make selection a hassle. This alleviates those problems. It may have unintended side effects if larger ships end up in the middle, but we've chucked all Supers under everything else so that shouldn't be an issue, and that's what testing is for.

(http://media.moddb.com/cache/images/mods/1/8/7376/thumb_620x2000/swfoc_2015-06-01_14-44-51-65.png)
Title: Re: Randomized Z-Layer
Post by: Lord Xizer on June 01, 2015, 03:59:47 PM
I confess myself very excited for this development.
Title: Re: Randomized Z-Layer
Post by: Eclipse on June 03, 2015, 04:30:40 PM
This is going to be a very cool feautre, space battles will look even better now!
Title: Re: Randomized Z-Layer
Post by: tlmiller on June 03, 2015, 04:44:38 PM
Yeah, this will make space battles extremely cool looking.  No longer be able to actually command things because be in cinematic mode all the time.  :D
Title: Re: Randomized Z-Layer
Post by: Pali on June 04, 2015, 06:23:06 AM
That'll definitely affect tactics, not being able to rely on dropping frigates on top of capital ships for cover and local firepower.  Should be interesting to see how it plays out.

Also, how does it work when selecting a ship as a reinforcement?  For instance, if I select a ship to drop in, see it's coming in on a level I don't want it to (say, the top level), deselect it without bringing it in, and select it again, will it be coming in on the same level as the first time (top level) or will it randomize again?
Title: Re: Randomized Z-Layer
Post by: Vulcanus on June 04, 2015, 10:33:09 AM
That'll definitely affect tactics, not being able to rely on dropping frigates on top of capital ships for cover and local firepower.  Should be interesting to see how it plays out.

I may understand this wrong, but  movement class should still remain the same, even if z-layers are randomized. So stacking should still be possible. And if ships are set to randomize roughly at certain levels, cap ships may still be placed under frigates.
Title: Re: Randomized Z-Layer
Post by: Slornie on June 04, 2015, 12:21:04 PM
Also, how does it work when selecting a ship as a reinforcement?  For instance, if I select a ship to drop in, see it's coming in on a level I don't want it to (say, the top level), deselect it without bringing it in, and select it again, will it be coming in on the same level as the first time (top level) or will it randomize again?
I'm sure Corey or Pox will correct me if I'm wrong, but I don't think the reinforcement shadow will show you the z-layer the ship will be on.  As I understand the reinforcement shadow will just show the default level for that ship and then it will spawn at a random level when you actually bring it in.
Title: Re: Randomized Z-Layer
Post by: Pali on June 04, 2015, 03:39:13 PM
I may understand this wrong, but  movement class should still remain the same, even if z-layers are randomized. So stacking should still be possible. And if ships are set to randomize roughly at certain levels, cap ships may still be placed under frigates.

Yes, but relying on it would no longer be possible.

Quote
I'm sure Corey or Pox will correct me if I'm wrong, but I don't think the reinforcement shadow will show you the z-layer the ship will be on.  As I understand the reinforcement shadow will just show the default level for that ship and then it will spawn at a random level when you actually bring it in.

That could potentially cause problems, couldn't it?  Say I've got an ISD, and I want to drop in a VSD, and I put the reinforcement shadow over the ISD to drop the VSD on top of it, which the game would currently allow without trouble... and then the VSD comes in on the ISD's plane, having them occupy the same space.  How would that be resolved?
Title: Re: Randomized Z-Layer
Post by: Mat8876 on June 04, 2015, 04:14:37 PM
Yes, but relying on it would no longer be possible.

That could potentially cause problems, couldn't it?  Say I've got an ISD, and I want to drop in a VSD, and I put the reinforcement shadow over the ISD to drop the VSD on top of it, which the game would currently allow without trouble... and then the VSD comes in on the ISD's plane, having them occupy the same space.  How would that be resolved?
Correct me if i'm wrong but surely as they are two different ships surely the VSD will just slide into the ISD we have this "problem" already with the eclipse where you can get smaller ships inside it.
Title: Re: Randomized Z-Layer
Post by: Corey on June 04, 2015, 05:13:04 PM
It handles the VSD being on the same plane with the ISD the exact same way ut handles an ISD being on the same plane as an ISD.
Title: Re: Randomized Z-Layer
Post by: Pali on June 04, 2015, 10:07:59 PM
It handles the VSD being on the same plane with the ISD the exact same way ut handles an ISD being on the same plane as an ISD.

That was my guess, but my question is about the reinforcement shadow and how it relates to what plane the ship will come in on.

At current, if I have an ISD and select a VSD reinforcement, the shadow can be placed over an ISD and the VSD can jump in on top of it.  Under the randomized system, will that shadow reflect which plane the VSD is jumping into (i.e. the shadow turns red and won't let it jump in if it's coming in on the ISD's plane)?  And continuing that, if the shadow does reflect the plane it's coming into, when I deselect the VSD and reselect it, does the plane randomize again, or is the VSd fixed on that plane for the battle?
Title: Re: Randomized Z-Layer
Post by: Pox on June 05, 2015, 01:23:23 AM
The layer is randomized after the ship jumped in.
What this system does is basically making the ship invisible while it jumps in on its regular height, then spawns an invisible dummy unit on a random z layer and then forces the ship to jump in again on the new layer, this time visible of course. So the reinforcement shadow just shows at the ships regular z layer and you have no control over on which layer it's going to jump in.
Title: Re: Randomized Z-Layer
Post by: Pali on June 05, 2015, 03:11:33 AM
Thanks Pox, that's what I was wondering about.  So I'm guessing that it's prevented from picking a z-layer that already has a ship in that spot then, so my hypothetical VSD reinforcement called in with the shadow over my ISD would definitely end up on a different layer than the ISD - it wouldn't fail to jump in or glitch into the ISD's location.  Correct?
Title: Re: Randomized Z-Layer
Post by: Pox on June 05, 2015, 05:33:17 AM
Hmm...probably....?

The script doesn't prevent that. However, the z layer of the spawned dummy unit is relative to the regular z layer of your unit. So I think units should usually not end up glitching through each other, at least not more than in the base game.