Author Topic: Keeping the ships  (Read 5126 times)

0 Members and 1 Guest are viewing this topic.

Offline PotzUK

  • 28
    • PyroPort
Quick and easy question... is there a way to keep the chosen ship from Mission A to Mission B, with the ammo and damage amounts without having to use Red Alert?

I'm doing a mission where you follow you cap ship into subspace, so you shouldn't be able to change your ship or load-out, and as it's a low-key mission I dont need Red alert...

Cheers :)


 

Offline Colonol Dekker

  • HLP is my mistress
  • 213
  • Aken Tigh Dekker- you've probably heard me
    • My old squad sub-domain
Red alert carry status?


Maybeeeeeeeeeeeeeeee.............. :nervous:
Campaigns I've added my distinctiveness to-
- Blue Planet: Battle Captains
-Battle of Neptune
-Between the Ashes 2
-Blue planet: Age of Aquarius
-FOTG?
-Inferno R1
-Ribos: The aftermath / -Retreat from Deneb
-Sol: A History
-TBP EACW teaser
-Earth Brakiri war
-TBP Fortune Hunters (I think?)
-TBP Relic
-Trancsend (Possibly?)
-Uncharted Territory
-Vassagos Dirge
-War Machine
(Others lost to the mists of time and no discernible audit trail)

Your friendly Orestes tactical controller.

Secret bomb God.
That one time I got permabanned and got to read who was being bitxhy about me :p....
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 Shade

  • 211
You can fudge it with persistent variables. Store the needed values just before the first mission ends, then set them from the variables when the next mission starts. Then combine it with scramble so the player can't go check the loadout screen and discover your hoax before things get set properly.
Report FS_Open bugs with Mantis  |  Find the latest FS_Open builds Here  |  Interested in FRED? Check out the Wiki's FRED Portal | Diaspora: Website / Forums
"Oooooooooooooooooooooooooooooooooooooooh ****ing great. 2200 references to entry->index and no idea which is the one that ****ed up" - Karajorma
"We are all agreed that your theory is crazy. The question that divides us is whether it is crazy enough to have a chance of being correct." - Niels Bohr
<Cobra|> You play this mission too intelligently.

 

Offline PotzUK

  • 28
    • PyroPort
Decker : My post said I wont want to use the Red Alert function :P

Shade : Is there a how-to somewhere to show me how do set those variables?

 
The best how-to in the world:  Karajorma's FAQ. Check under FredOpen help.
"You need to believe in things that aren't true. How else can they become?" -DEATH, Discworld

 

Offline PotzUK

  • 28
    • PyroPort
Ahh - cheers :)

I've seen that before, but it didn't click.  I was expecting the sexp to be called 'set-variable'   ::)

Cheers guys

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
To be honest I've got no idea what happens if you do a red-alert with no briefing set from the Mission Specs editor but that would be the first thing I'd try.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

  

Offline Axem

  • 211
That would only work if no one actually enters subspace ('cept the player). Red alert keeps track if a ship left, so if it leaves and you red alert, it won't be there next time.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Good point. Shows how often I use Red-Alert these days :)
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline CP5670

  • Dr. Evil
  • Global Moderator
  • 212
To be honest I've got no idea what happens if you do a red-alert with no briefing set from the Mission Specs editor but that would be the first thing I'd try.

I'm using this in one mission and it works as you would expect. If there aren't any other missions in between, this is a much better way to do it than messing with the persistent variables.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Yep. That's why I suggested it. It will do all the work of storing all the subsystem data for you without having to roll your own SEXPs for every ship you want to store.

As long as you only have a couple of other ships making subspace jumps I'd probably still recommend doing things that way and using PVs to fill in the gaps.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline PotzUK

  • 28
    • PyroPort
Thanks guys, i'll give it a shot.

I only have the cap ship and 3 wingmates to worry about, so if I have to use PVs, then it shouldn't be too much of a headache :)

 

Offline Galemp

  • Actual father of Samus
  • 212
  • Ask me about GORT!
    • Steam
    • User page on the FreeSpace Wiki
:necro:

I'd like to confirm this is still the case: if I have a ship in a prior mission that I want to have identical status in a later mission, I need to record everything about it in variables? So I'd need one persistent variable for every subsystem?

If so I think I'd rather cut it down by just recording the hull strength and critical subsystems, like beam turrets, then using subsys-set-random for the rest. Consider this a feature request for a carry-status SEXP that works identical to Red Alert.
"Anyone can do any amount of work, provided it isn't the work he's supposed to be doing at that moment." -- Robert Benchley

Members I've personally met: RedStreblo, Goober5000, Sandwich, Splinter, Su-tehp, Hippo, CP5670, Terran Emperor, Karajorma, Dekker, McCall, Admiral Wolf, mxlm, RedSniper, Stealth, Black Wolf...

 
Wait, don't we have the ship save/load script that can easily carry over ships between missions even if they're not red-alert?
[19:31] <MatthTheGeek> you all high up on your mointain looking down at everyone who doesn't beam everything on insane blindfolded

 

Offline niffiwan

  • 211
  • Eluder Class
Creating a fs2_open.log | Red Alert Bug = Hex Edit | MediaVPs 2014: Bigger HUD gauges | 32bit libs for 64bit Ubuntu
----
Debian Packages (testing/unstable): Freespace2 | wxLauncher
----
m|m: I think I'm suffering from Stockholm syndrome. Bmpman is starting to make sense and it's actually written reasonably well...

 

Offline Galemp

  • Actual father of Samus
  • 212
  • Ask me about GORT!
    • Steam
    • User page on the FreeSpace Wiki
I've inspected the script and it seems to have a serious drawback:

Quote
saveship('shipname'):
In case the ship is destroyed, departed or not existing (including not arrived) it does save this status.

loadship('shipname'):
If the ship has departed, was destroyed before saving or not existent while saving, it uses ship-vanish on it.

Here's the issue: I want to save the status of the ship when it departs, so the player can chase it into a future mission and its status will be the same. This script seems to treat departed ships as nonexistent.

Is there a script that can save the status of specified ships either when they are departed or destroyed, or when the mission ends? Otherwise I'll probably use persistent variables when the ship has triggered its departure condition and reaches 40 m/s, has been destroyed, or when the RTB directive has been given and the player presses ALT-J.
"Anyone can do any amount of work, provided it isn't the work he's supposed to be doing at that moment." -- Robert Benchley

Members I've personally met: RedStreblo, Goober5000, Sandwich, Splinter, Su-tehp, Hippo, CP5670, Terran Emperor, Karajorma, Dekker, McCall, Admiral Wolf, mxlm, RedSniper, Stealth, Black Wolf...

 
Couldn't you just save the ship immediately before it departs?
The good Christian should beware of mathematicians, and all those who make empty prophecies. The danger already exists that the mathematicians have made a covenant with the devil to darken the spirit and to confine man in the bonds of Hell.

 

Offline MatthTheGeek

  • Captain Obvious
  • 212
  • Frenchie McFrenchface
Unless I'm wrong, as far as the engine is concerned, a departed ship doesn't exist anymore - it's got nothing to do with the script or any other way around, the engine simply can't make up info about ships that don't exist.

Like PH said, you'd have to save right before the ship departs.
People are stupid, therefore anything popular is at best suspicious.

Mod management tools     -     Wiki stuff!     -     Help us help you

666maslo666: Releasing a finished product is not a good thing! It is a modern fad.

SpardaSon21: it seems like you exist in a permanent state of half-joking misanthropy

Axem: when you put it like that, i sound like an insane person

bigchunk1: it's not retarded it's american!
bigchunk1: ...

batwota: steele's maneuvering for the coup de gras
MatthTheGeek: you mispelled grâce
Awaesaar: grace
batwota: oh right :P
Darius: ah!
Darius: yes, i like that
MatthTheGeek: the way you just spelled it it means fat
Awaesaar: +accent I forgot how to keyboard
MatthTheGeek: or grease
Darius: the killing fat!
Axem: jabba does the coup de gras
MatthTheGeek: XD
Axem: bring me solo and a cookie

 
Wheres the welcome beam speech

 

Offline Galemp

  • Actual father of Samus
  • 212
  • Ask me about GORT!
    • Steam
    • User page on the FreeSpace Wiki
Wheres the welcome beam speech

Not here... :wtf:

Couldn't you just save the ship immediately before it departs?

:doh: Of course... I'll set the script to evaluate BEFORE it leaves, same as I was doing with variables. Thanks.
"Anyone can do any amount of work, provided it isn't the work he's supposed to be doing at that moment." -- Robert Benchley

Members I've personally met: RedStreblo, Goober5000, Sandwich, Splinter, Su-tehp, Hippo, CP5670, Terran Emperor, Karajorma, Dekker, McCall, Admiral Wolf, mxlm, RedSniper, Stealth, Black Wolf...