New FC campaign; Wing Commander: Affliction

Post the piece of the code with the problem.

Now for your questions:
1) as a rule, if you are unsure what a function does and it is not mentioned in its description then just try it out in a mission...anyway that function just means KABOOM...or in other words the ship will blow up as if it was destroyed by something (except nothing actually does the destroying it just explodes)
2) a function..... :rolleyes:





okay, okay, essientially a function set to go off on the creation of a ship or nav, this function will be called only once and on the appearance of that ship or nav. This is not to say that the function itself cannot be reused in other nav's and ship's function calling boxes.
 
Now the game just goes... CRASH! here is the code of it

dofile "flightcommander.lua"

function Uniden()
Ship_destory("Uniden",true)
end

anything wrong with it? (there must be or I would be posting it :p.)

Here is the mission (since eddieb requires it to help solve it)

<?xml version="1.0" encoding="UTF-8"?>
<mission name = "" sector="blue" can_eject="false" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="mission.xsd">
<navpoints number="2">
<navpoint numships="11" numwaves="1">
<ship name="midway" pilot="Uniden" comm="casey" video="helmet" autopilot="false" alignment="friend" wave="0" scriptid="uniden">
<location>
<point x="1808.1301" y ="0.0" z ="-1495.9349" />
</location>
<rotation>
<point x="0.0" y ="213.0" z ="0.0" />
</rotation>
<script oncreate="Uniden" />
</ship>
<ship name="panther" pilot="player" comm="" video="" autopilot="true" alignment="friend" wave="0">
<location>
<point x="16.02671" y ="0.0" z ="40.066776" />
</location>
<rotation>
<point x="0.0" y ="0.0" z ="0.0" />
</rotation>
</ship>
<ship name="tigershark" pilot="Cerberus Escort" comm="maniac" video="helmet" autopilot="true" alignment="friend" last_autopilot_nav="1" wave="0">
<location>
<point x="-69.44908" y ="0.0" z ="-50.75125" />
</location>
<rotation>
<point x="0.0" y ="0.0" z ="0.0" />
</rotation>
</ship>
<ship name="tigershark" pilot="Cerberus Escort" comm="maestro" video="helmet" autopilot="true" alignment="friend" last_autopilot_nav="1" wave="0">
<location>
<point x="104.17362" y ="0.0" z ="-40.066776" />
</location>
<rotation>
<point x="0.0" y ="0.0" z ="0.0" />
</rotation>
</ship>
<ship name="sar" pilot="Shuttle One" comm="midway" video="helmet" autopilot="true" must_survive="true" alignment="friend" last_autopilot_nav="1" wave="0">
<location>
<point x="69.44908" y ="0.0" z ="-181.63606" />
</location>
<rotation>
<point x="0.0" y ="0.0" z ="0.0" />
</rotation>
</ship>
<ship name="sar" pilot="Shuttle Two" comm="midway" video="helmet" autopilot="true" must_survive="true" alignment="friend" last_autopilot_nav="1" wave="0">
<location>
<point x="-42.737896" y ="0.0" z ="-170.95158" />
</location>
<rotation>
<point x="0.0" y ="0.0" z ="0.0" />
</rotation>
</ship>
<ship name="sar" pilot="Shuttle Three" comm="stiletto" video="helmet" autopilot="true" must_survive="true" alignment="friend" last_autopilot_nav="1" wave="0">
<location>
<point x="13.355593" y ="0.0" z ="-267.11185" />
</location>
<rotation>
<point x="0.0" y ="0.0" z ="0.0" />
</rotation>
</ship>
<ship name="shrike" pilot="Mage" comm="stiletto" video="helmet" autopilot="true" alignment="friend" last_autopilot_nav="1" wave="0">
<location>
<point x="130.88481" y ="0.0" z ="-293.82303" />
</location>
<rotation>
<point x="0.0" y ="0.0" z ="0.0" />
</rotation>
</ship>
<ship name="shrike" pilot="Shrike 2" comm="maestro" video="helmet" autopilot="true" alignment="friend" last_autopilot_nav="1" wave="0">
<location>
<point x="208.34724" y ="0.0" z ="-347.2454" />
</location>
<rotation>
<point x="0.0" y ="0.0" z ="0.0" />
</rotation>
</ship>
<ship name="shrike" pilot="Shrike 1" comm="maniac" video="helmet" autopilot="true" alignment="friend" last_autopilot_nav="1" wave="0">
<location>
<point x="72.1202" y ="0.0" z ="-355.25876" />
</location>
<rotation>
<point x="0.0" y ="0.0" z ="0.0" />
</rotation>
</ship>
<ship name="vampire" pilot="Saviour" comm="maestro" video="helmet" autopilot="true" alignment="friend" last_autopilot_nav="1" wave="0">
<location>
<point x="229.71619" y ="0.0" z ="-165.60934" />
</location>
<rotation>
<point x="0.0" y ="0.0" z ="0.0" />
</rotation>
</ship>
</navpoint>
<navpoint numships="6" numwaves="1">
<ship name="cstarbase" pilot="" comm="" video="" autopilot="false" alignment="friend" wave="0">
<location>
<point x="-141.56927" y ="0.0" z ="-571.6194" />
</location>
<rotation>
<point x="0.0" y ="0.0" z ="0.0" />
</rotation>
</ship>
<ship name="cstarbase" pilot="" comm="" video="" autopilot="false" alignment="friend" wave="0">
<location>
<point x="291.15192" y ="0.0" z ="-320.5342" />
</location>
<rotation>
<point x="0.0" y ="0.0" z ="0.0" />
</rotation>
</ship>
<ship name="cstarbase" pilot="" comm="" video="" autopilot="false" alignment="friend" wave="0">
<location>
<point x="389.9833" y ="0.0" z ="-697.1619" />
</location>
<rotation>
<point x="0.0" y ="0.0" z ="0.0" />
</rotation>
</ship>
<ship name="crelay" pilot="" comm="" video="" autopilot="false" alignment="friend" wave="0">
<location>
<point x="-681.1352" y ="0.0" z ="-718.5309" />
</location>
<rotation>
<point x="0.0" y ="0.0" z ="0.0" />
</rotation>
</ship>
<ship name="cerberus" pilot="Cerberus" comm="" video="" autopilot="false" alignment="friend" wave="0">
<location>
<point x="-50.75125" y ="0.0" z ="2.6711185" />
</location>
<rotation>
<point x="0.0" y ="0.0" z ="0.0" />
</rotation>
</ship>
<ship name="cerberus" pilot="Unamed Quick Strike Carrier (unmaned)" comm="" video="" autopilot="false" land="true" alignment="friend" wave="0">
<location>
<point x="-627.7128" y ="0.0" z ="-299.16528" />
</location>
<rotation>
<point x="0.0" y ="0.0" z ="0.0" />
</rotation>
</ship>
</navpoint>
</navpoints>
</mission>
 
Hey eddieb, how would a randomized eject pick up work? I found the proper script for the friendly eject pickup, but I need an example to look at. I think it should look like

(math.random(v,x))
if (result == v ) then
Mission_setFriendlyEjectPickup(false)
elseif ( result == x) then
Mission_setFriendlyEjectPickup(true)
end

Would that be correct? (v and x or 0 and 1 are the same right?)
 
I'd suggest writing some small test scripts that just print to the console to see what your random number generator and variables are doing.
 
Well, after about I think 6 months of silence, I have some news of Affliction. The game saw a complete overhaul when a friend of mine joined the project. He thought the game had trouble on focusing on the story line. So we changed it quite a bit, followed by a whole new campaign, we introduced a new pilot, with his own comms. Plenty of missions even we have trouble with. The only problem geocities does not offer anything I need for free. So I would need help getting web space for it. The game changed to Combat Zone for now, until we have successfully completed the game 100% and then we will think of a real name for it.
 
I'm sure you'll find a place to put it with some googling, or ask the site admins here. Can't wait to try it.
 
The only problem geocities does not offer anything I need for free. So I would need help getting web space for it.

What do you need for free? If you don't need anything database driven I'd recommend 110mb. FTP access, 5 GB of space and 300 GB bandwidth.
 
Well, Geocities does not offer anything worth while for uploads, I have a limit for uploads which is only 4.5 megabytes an hour, I have a file which is 14.7 megabytes, and this project isn't even done yet. So Geocities won't offer what I need for much longer. I really don't want this project to cost me money, that is the last thing I wanted. If anyone could share a place that offers more than that, please tell me. I really don't want to use solsector (since this is only minor, and someone else out their might be doing a total conversion.)
 
Ugh... I REALLLY like what 110mb has, BUT I still won't be able to upload my whole file. Which, means more downloading on everyones part. I'll take it for now, I'll do what I can, but it will take time for everything I have to be uploaded.
 
Looks promising. Don't forget that you don't need to have auido in order to put in custom coms. Subtitles are a decent place holder. The com assigned to the player varies from mission to mission.
 
Your instructions are really confusing. First you say use Flight Commander 1.5, but you don't even provide a link. Then on the same page, you say extract to
(ex. C:\Program Files\Flight Commander 1.4). Try to make it easier for people to use. Also, zips are much preferred.

And about these "random game crashes". Thats bad advertising for yourself. If you can give me reproducible test case, that goes a long way into getting bugs fixed.

Anyways, about to try it out now, yay!!
 
First of all, good job, I enjoyed playing through the first few missions. Some suggestions.

It looks like you forgot to include some comm videos avi files in the download.

Quite a few comms are messed up. Either you didn't enter in a pilot name, or there are humans piloting bug ships.

Use proper punctuation in the briefings. It will help the text to speech have a little better intonation.

If you want to change the music, you can look at music.xml, it might be easier. I like hearing the Prophecy music, but having a mix of Prophecy style and WC2 style is odd.

For the SWACS mission, you might want to edit formation.xml, and make it so the SWACS is behind the fighters. This will look nicer when they all autopilot together.

I'm adding a link to the FC main page, keep up the good work.
 
I really couldn't recreate the crashes. Sometimes I play and they happen, other times I can play for hours and nothing. If you have any suggestions on what they could be, it like to hear them. It always happens after launch, if you have any suggestions please tell me. Thanks for the suggestions eddieb, I'll make sure to put them in. By the way, is it possible to remove music from the musc.xml? Just wondering.
 
I really couldn't recreate the crashes. Sometimes I play and they happen, other times I can play for hours and nothing. If you have any suggestions on what they could be, it like to hear them. It always happens after launch, if you have any suggestions please tell me. Thanks for the suggestions eddieb, I'll make sure to put them in. By the way, is it possible to remove music from the musc.xml? Just wondering.

Not really, you should provide music for all the places I ask for.
 
Back
Top