Hard Light Productions Forums

Hosted Projects - Standalone => Diaspora => Diaspora 3rd Party Missions, Mods & Campaigns => Topic started by: mightyjoe83 on March 07, 2013, 08:55:27 pm

Title: Having another problem with the Launching my Viper.
Post by: mightyjoe83 on March 07, 2013, 08:55:27 pm
Ok, so iv completed the tutorial about the Viper Tube Launch, however iv run into another snag. My Viper doesn't launch!!! and I get these error message that are in the events. attached is the file for the game. im new at this so i figured im going to make mistakes. any help with this is greatly appreciated thanks.

[attachment deleted by a basterd]
Title: Re: Having another problem with the Launching my Viper.
Post by: karajorma on March 07, 2013, 09:25:19 pm
What error message do you get?
Title: Re: Having another problem with the Launching my Viper.
Post by: mightyjoe83 on March 08, 2013, 05:48:12 pm
Ok sorry for my late reply, but here is the messages I get. attached is the PDF.

[attachment deleted by a basterd]
Title: Re: Having another problem with the Launching my Viper.
Post by: karajorma on March 08, 2013, 09:17:23 pm
Somehow you'd managed to create a variable with a space in it. FRED doesn't like those.

Try it now.



[attachment deleted by a basterd]
Title: Re: Having another problem with the Launching my Viper.
Post by: mightyjoe83 on March 09, 2013, 08:09:44 am
ok Iv replaced the original file with the one you sent me, and there are no more error messages however, when i load the game my Viper still doesn't launch from the Tube. I don't know what else I could be doing wrong? should I realign the viper in the tube?
Title: Re: Having another problem with the Launching my Viper.
Post by: mightyjoe83 on March 09, 2013, 09:16:20 pm
now, instead of my viper launching correctly, every time i load the game my viper shoots right out the tube and then the game goes right to debriefing.
Title: Re: Having another problem with the Launching my Viper.
Post by: karajorma on March 09, 2013, 11:58:25 pm
eh? It goes straight to a "No debriefing for test launch.fs2" message?
Title: Re: Having another problem with the Launching my Viper.
Post by: mightyjoe83 on March 10, 2013, 12:40:20 am
I dont know what I could be doing wrong?
Title: Re: Having another problem with the Launching my Viper.
Post by: ThePsuedoMonkey on March 16, 2013, 05:13:22 pm
Sounds like your viper isn't being spawned at the start of the mission.  Double-check the arrival cues of yourself and anything you're docked to.
Title: Re: Having another problem with the Launching my Viper.
Post by: mightyjoe83 on March 18, 2013, 08:58:46 pm
when I click on my player ship, It doesn't have an arrival or departure cue.
Title: Re: Having another problem with the Launching my Viper.
Post by: karajorma on March 19, 2013, 01:25:07 am
Okay, I finally have a machine I can test this on and the reason it's failing is quite funny. You've docked the player's viper to the Persephone but when you try to launch it you've forgotten to undock it (i.e use something like jettison cargo). So it remains attached.

I'm definitely not getting the error you mentioned though.
Title: Re: Having another problem with the Launching my Viper.
Post by: mightyjoe83 on March 19, 2013, 07:13:25 am

when you say use Jettison cargo, do I have to add that in the Events editor, or is that in the ship editor menue?
Title: Re: Having another problem with the Launching my Viper.
Post by: karajorma on March 19, 2013, 11:21:26 am
It's a SEXP. I always had weird issues with it though.

If the tutorial isn't telling you to use it, do whatever the tutorial did instead.
Title: Re: Having another problem with the Launching my Viper.
Post by: mightyjoe83 on March 19, 2013, 06:45:48 pm
i did everything the tutorial instructed me to do, however I don't understand about how to use jettison Cargo where would I add that in the events editor? or maybe ill just start all over from scratch.
Title: Re: Having another problem with the Launching my Viper.
Post by: karajorma on March 19, 2013, 07:38:57 pm
You jettison cargo when you start the ship moving. But the fact that it's not in the tutorial makes me wonder as it's quite a large thing to miss out. Are you sure the ship is still meant to be docked to the Persephone?
Title: Re: Having another problem with the Launching my Viper.
Post by: Water on March 21, 2013, 12:02:01 am
From the beginning of the tutorial. Easy to miss.



Your battlestar can be at pretty much any angle, but you need to make sure that the player's fighter is properly aligned and centered at the back of the tube. Using the object orientation editor can help with this.

A trick to do alignments:
Set the viper docked to one of the launch tubes of the battlestar in the ships editor.
Close ships editor
Open ship editor again and undock the Viper.
The Viper's position will return to where it was, but is now perfectly aligned in the tube.

This is especially helpful if the battlestar has been rotated around.
Title: Re: Having another problem with the Launching my Viper.
Post by: mightyjoe83 on March 27, 2013, 04:04:05 pm
can you take another look at the file again iv attached. I hate to burden you with this again. but my viper still cant launch from the tube. i dont know if i over looked something.

[attachment deleted by ninja]
Title: Re: Having another problem with the Launching my Viper.
Post by: mightyjoe83 on April 01, 2013, 05:31:25 pm
Can someone help me with this?
Title: Re: Having another problem with the Launching my Viper.
Post by: karajorma on April 02, 2013, 08:33:46 am
I'll take a look at it tomorrow.
Title: Re: Having another problem with the Launching my Viper.
Post by: mightyjoe83 on April 02, 2013, 03:36:51 pm
ok thank you I appreciate that :)
Title: Re: Having another problem with the Launching my Viper.
Post by: karajorma on April 02, 2013, 11:59:46 pm
Okay, I took a look at the missions and you'd basically made a couple of silly mistakes which were causing the problem. While I could just flat out tell you what you did wrong, I think it's better if I just hint and put the actual solution in spoiler tags (When it comes to debugging I strongly encourage teaching someone how to do it instead of simply doing it myself).

Mistake 1)

This is in the first half of the FLUSH event ( A repeating event)

when
- >
--InLaunchTube[1]
--0
-when
-- =
---InLaunchTube[1]
--- 1
--play-sound-from-file
--set-camera-shudder
--set-mobile
--modify-variable
---InLaunchTube[1]
---0
-when
-- =
---InLaunchTube[1]
---2
--modify-variable
--set-object-speed-z

The second of the inner when SEXPs is what actually launches the viper and it's not actually being triggered. Look at the rest of the SEXP and you should soon see why.

Spoiler:
The first inner When will set the value of the variable to 0 instead of 2. As a result the outer when will always fail from then on.

Mistake 2)

You'll only see mistake 2 once you fix mistake 1 and run the game. The problem is caused by your velocity going up too slowly because you've forgotten to do something.

Spoiler:
You forgot to set the interval time to 0. It's currently set to 1 which means that the viper will get 1 metre/second faster every second rather than every frame.
Title: Re: Having another problem with the Launching my Viper.
Post by: mightyjoe83 on April 04, 2013, 10:42:20 pm
thank you!!!! I fixed the problem I figured it out. :) now my next question is there a tutorial on how to launch a Viper squadron? or do I use the same concept I did for the player viper?
Title: Re: Having another problem with the Launching my Viper.
Post by: karajorma on April 05, 2013, 01:08:44 am
Pretty much. There are some things you obviously don't need to do when dealing with AI ships.
Title: Re: Having another problem with the Launching my Viper.
Post by: mightyjoe83 on April 05, 2013, 06:56:18 am
can you give some examples?
Title: Re: Having another problem with the Launching my Viper.
Post by: karajorma on April 05, 2013, 10:00:23 pm
Well you don't need to put the ship under AI control for one. :p
Title: Re: Having another problem with the Launching my Viper.
Post by: mightyjoe83 on April 06, 2013, 04:32:52 pm
OK, so when I set up the AI viper for launch, what command do I give it to launch in the SEXPs?
Title: Re: Having another problem with the Launching my Viper.
Post by: mightyjoe83 on April 06, 2013, 04:36:09 pm
would I have to create another event for that in the event editor? im sorry to be asking so many questions, I am still a Novice at this, and I want to learn as much as I can about Creating my own missions, and Launching and Landing Squadrons.
Title: Re: Having another problem with the Launching my Viper.
Post by: karajorma on April 07, 2013, 12:29:28 am
Yeah, you'd need another event. The best thing to do is get hold of a VP viewing program and look at how the Diaspora team did it. Check the Tools forum and you'll find quite a few.
Title: Re: Having another problem with the Launching my Viper.
Post by: mightyjoe83 on April 07, 2013, 09:34:27 am
VP viewing programs?
Title: Re: Having another problem with the Launching my Viper.
Post by: mightyjoe83 on April 07, 2013, 09:40:54 am
where can I find the tools Forum?
Title: Re: Having another problem with the Launching my Viper.
Post by: karajorma on April 07, 2013, 09:50:11 am
Here's one (http://www.hard-light.net/forums/index.php?topic=84266.0) but no one has built it for Windows yet apparently. There are more on that forum. Using that will allow you to open the .vp files that contain all the Diaspora data. You can then extract the missions and open them in FRED. Looking at how other people made their missions is one of the best ways to learn how to do it yourself.

Whatever you do though, don't ever change the contents of one of the Diaspora VPs.
Title: Re: Having another problem with the Launching my Viper.
Post by: mightyjoe83 on April 07, 2013, 10:55:11 am
I downloaded VPviewer32, where can I find missions that other modders have created?
Title: Re: Having another problem with the Launching my Viper.
Post by: newman on April 11, 2013, 05:39:01 am
I downloaded VPviewer32, where can I find missions that other modders have created?

They're in the same sub forum as this thread :)