Search the archive:
YaBB - Yet another Bulletin Board
 
   
 
Page Index Toggle Pages: 1
Send Topic Print
mission and campaign problems (Read 464 times)
Apr 17th, 2006 at 2:05am

piersyf   Offline
Colonel
Tasmania, Australia

Gender: male
Posts: 76
*****
 
Hi guys. Downloaded a campaign package that redoes the CFS1 Battle of Britain missions as a CFS2 campaign. Tried to play it but system says mission file is corrupt, so I go in to mission builder and it will open the mission but says the plane (Hurricane Mk I) is not in the object library and do I want to substitute another AC.
Having come across this before I said yes to let the mission load. It did, with all the other a/c and waypoints and so on. Looked fine, exept I had to fix the Hurricane. I used the pull down list and used a hurricane Mk1 I have already. System crashed.
Went back in to mission builder and made a dummy mission using that Hurricane Mk 1. Worked fine, so it's not the plane.
Any ideas on how to fix this, or do I have to go through the actual mission files in wordpad, seeing as the Mission Builder isn't able to help?

Piers
 
IP Logged
 
Reply #1 - Apr 17th, 2006 at 9:22pm

Cody_Coyote   Offline
Colonel

Posts: 92
*****
 
If the crash occurs as soon as you select the new Hurricane, or as soon as you click "Fly Now", or as soon as you try to save the mission, then try editing the mission using Notepad to replace the missing planes with ones in your livery.

If the crash occurs when you click on "Advanced Info" or when attempting to look at the map while in the mission then the problem is probably a conflict in the runway ID numbering system between what's in the converted missions and what's in your airbases.dat file.

Personally I shy away from CFS1 converted missions and recommend looking for ones written sprcifically for CFS2 or writing your own.
 
IP Logged
 
Reply #2 - Apr 17th, 2006 at 10:07pm

piersyf   Offline
Colonel
Tasmania, Australia

Gender: male
Posts: 76
*****
 
Thanks Cody. After I posted I did open the mission file in notepad and change the aircraft ID (sim name) but didn't change the aircraft ID number. When I opened the mission again the original aircraft was still listed, so maybe I need to open my dummy mission and look at the ID number itself and change both.
I'm not sure about the airfield data either, I've loaded several campaigns in my pacific theatre game and there are now overlaps in numbers and duplications of fields. I can't set up the Milne Bay campaign I got because I have to re-write the airfield data in the missions to match what's already in the airfields.dat file. A real management issue.
Thanks for the info on airfield data causing crashes with the 'advanced info' and 'map' buttons. Didn't know about that one.

Piers
 
IP Logged
 
Reply #3 - Apr 18th, 2006 at 12:59am

Cody_Coyote   Offline
Colonel

Posts: 92
*****
 
Assuming you have all of the aircraft, ships, and infrastructure that a mission calls for you can fly any mission in the game even if you don't have the airfield scenery installed.  When flying the mission your position is determined by the longitude and latitude written into the mission file, not by the airbase.dat entries. However, just because you can fly the mission doesn't mean it will work right.

If you're flying the mission out of Adak, Alaska but don't have that scenery installed you'll find yourself sitting on the tundra when you should be sitting on a runway.  Additionally, when you warp back to the base to land you may see nothing but bare ground. Another possible glitch is caused when you have one version of an airbase entered in your game but the mission author used a different version of the same base.  In that case you may find yourself sitting inside of a building or in a vacant field a quarter mile from where your base is located.  Again, this is caused by the mission using longitude and latitude to determine your position and his starting position lining up with his scenery, not yours. 

As you mentioned, this becomes a management issue with downloaded missions as you may have to tweak the takeoff and landing positions to get them to fly right for your setup.

The big problem comes when you try to look at the map or go to Advanced Information.  If the runway ID's shown in the mission file don't match the ones in your airbases.dat file you can get a crash.  None of these problems are insurmountable, but you may find that in some cases it is more bother than it's worth to tweak the missions, particularly if it is a very large campaign.
 
IP Logged
 
Reply #4 - Apr 18th, 2006 at 2:11am

piersyf   Offline
Colonel
Tasmania, Australia

Gender: male
Posts: 76
*****
 
Yeah, finding out all you've said. I changed the aircraft ID number and name in the mission folder using wordpad. Now the mission will open in Mission Builder without telling me it can't find the aircraft. I zoomed onto the player aircraft and found the position of the aircraft didn't line up with the airfield (Warmwell). When I tried to click and drag the aircraft icon to the actual runway, MB crashed to desktop. I think given the work involved in fixing the campaign I may as well just delete it, or just use the mission overviews as inspiration to write my own from scratch.

Thanks for the info  Grin

P
 
IP Logged
 
Reply #5 - Apr 18th, 2006 at 11:36pm

Tango_Romeo   Offline
Colonel
Campaign Cobbler
Tennessee

Gender: male
Posts: 1184
*****
 
Undecided At least two things have happened here:

1. The new Hurricane will not load in the mission and I'll bet it doesn't showup in Free Flight either.   This is because of one, or both of the following.   In the Sound and/or Panel folders of the new Hurricane either the panel.cfg and/or the sound.cfg files are aliasing to an aircraft that is not present in your CFS2/Aircraft folder.  This is probably the only problem you have.

If you don't find the problem there, then one of the files in the Hurricane folder is misnamed.....most probably either the DP or AIR file.   Check those file names.  The AIR, DP and CDP should carry the same name exactly as is defined in the Aircraft.cfg file under the 'sim=' entry.   Also check the Model folder to make sure that the Model.cfg file defines the 'normal=' value as the exact name of the MDL file.  That should fix the Hurricane.

2.  When you replaced the offending Hurricane in MB, the setting 'Takeoff From xxx' at WP1 probably defaulted to 'Turn' or 'Takeoff from Current Point'.  That's why your replacement aircraft wasn't on the runway anymore.   To fix that(and it can happen anytime you change an aircraft in MB) click on WP1 and under the Waypoints Tab, reset the command to 'Takeoff from xxx' (where xxx is the name of the airfield) on the dropdown menu for that WP, because I'll bet it reads 'Turn', or 'Takeoff from Current Point' when you open it.  (You can't just drag WP1 to where you want it and drop it, if it is set to 'Takeoff from Current Point'.  When you set it to 'Takeoff from xxxbasename', the WP will snap into position on the airfield.)   This should fix your mission file.

I hope I have explained all that plainly, and that this will help you salvage your plane and campaign.   Don't give up so easily.   Grin

NOTE: All of Cody's advice is good, and mine depends on his points being checked and correct.  Because a numbered airfield in the Airbases.dat  that doesn't match that of the one in the mission will be fatal.
 

Many Hands Make Small Work ... P-51 Contract Lost - Build Swifts

FLY FOX FOUR KOREA: http://www.simviation.com/lair/cfs2korea.htm GET FOX FOUR EXTRAS: http://www.simviation.com/lair/cfs2kwextras.htm
IP Logged
 
Reply #6 - Apr 19th, 2006 at 12:13am

piersyf   Offline
Colonel
Tasmania, Australia

Gender: male
Posts: 76
*****
 
Hey there Tango... perhaps my explanation wasn't that clear... the 'new' hurricane was already in the folder and was working fine. I meant 'new' in the sense of 'alternate' regarding the mission.
Your point about the a/c defaulting to 'turn' I hadn't checked, and may be a valid point. I'll have to open the file again... I've already deleted the campaign, but I can try loading just that mission into the missions folder and seeing what ails it there. I also am unsure whether the person who upgraded the missions from CFS1 to CFS2 had the infrastructure update already on his/her system and forgot to mention it was needed or not. It may be something to do with my install because none of the new campaigns work in it (all say the files are corrupt) yet the campaigns I download for the Korea install all work well, as do the multiple campaigns installed in my pacific theatre install.

P
 
IP Logged
 
Reply #7 - Apr 19th, 2006 at 1:57am

Tango_Romeo   Offline
Colonel
Campaign Cobbler
Tennessee

Gender: male
Posts: 1184
*****
 
Ah, yes.   I did misunderstand or misread....been a long day, or I just had a senior moment.    Tongue

It probably is an airbases.dat issue.  If by Korea downloads you mean the Fox4 campaigns, we incorporated a very carefully modified 'stock CFS2' airbases.dat file in the downloads...the 'mod' part being the addition of the proper Korean airbases used in the campaigns at the end of the stock file.
 

Many Hands Make Small Work ... P-51 Contract Lost - Build Swifts

FLY FOX FOUR KOREA: http://www.simviation.com/lair/cfs2korea.htm GET FOX FOUR EXTRAS: http://www.simviation.com/lair/cfs2kwextras.htm
IP Logged
 
Reply #8 - Apr 19th, 2006 at 2:49am

piersyf   Offline
Colonel
Tasmania, Australia

Gender: male
Posts: 76
*****
 
Yeah, I do mean the fox 4 campaigns. They load really sweet!  Grin I think one of the problems, as mentioned before is the fact that many campaigns use the same number set for their new airfields, so modifying the airfield.dat file to suit one campaign may screw it up for whatever is already installed, and I'm not quite prepared to have a separate install for each campaign.
A shame we don't have something like postal/zip codes for airfields. I may end up running a directory anyway. Perhaps something for a coding genius? A utility that lists the installed airfields by name, number and maybe location? Something we could print out so new campaigns could be adjusted before they run? Beyond my ability.
I may end up having a 'test' install of CFS 2 that I can load campaigns into just to see if they work or not. Even then there's the scenery and infrastructure to consider. A major issue with 3rd party campaigns is that we just don't know what stuff they have on their install that'll make it NOT work on ours...

P
 
IP Logged
 
Reply #9 - Apr 20th, 2006 at 10:19pm

Tango_Romeo   Offline
Colonel
Campaign Cobbler
Tennessee

Gender: male
Posts: 1184
*****
 
Quote:
A shame we don't have something like postal/zip codes for airfields. I may end up running a directory anyway. Perhaps something for a coding genius? A utility that lists the installed airfields by name, number and maybe location? Something we could print out so new campaigns could be adjusted before they run? Beyond my ability.


That would be one damned fine thing to have.  A downloadable/printable directory of airfields with a uniform numbering system.   It would go a long way to preventing the airbase.dat file conflicts caused by everyone going his own way.  You may have found yourself a worthy project.   Roll Eyes
 

Many Hands Make Small Work ... P-51 Contract Lost - Build Swifts

FLY FOX FOUR KOREA: http://www.simviation.com/lair/cfs2korea.htm GET FOX FOUR EXTRAS: http://www.simviation.com/lair/cfs2kwextras.htm
IP Logged
 
Reply #10 - Apr 21st, 2006 at 2:35am

piersyf   Offline
Colonel
Tasmania, Australia

Gender: male
Posts: 76
*****
 
Yeah yeah, I get the hint  Wink I really think it's a bit beyond me at the moment because I'm not sure how things work in the game. For example, I run 5 installs to cover different periods and geography. That in itself isn't an issue as the 4 digit airfield code gives up to 10,000 locations. Is that enough, or do I break it down to pre 1949 and 1949 onwards and have duplications of numbers to lift the number to 20,000?
How does the game treat multiple entries? If I have a file for an airfield in 1940 and another file for the same field in 1944, do I give them separate numbers, and will the game show the right one in the mission? That may mean allocating number groups to specific airfields, which reduces the number of airfield files covered.
It could be a simple list with a 'brand name' so that when you download a campaign you know automatically which airfield.dat list you're working from, but I think it'd still be nice for some coding whiz to come up with a utility that scans what you already have on the system. There is such a thing for the random generated campaigns, but not for the standard ones. Something that runs through the mission/campaign files and indicates where conflicts exist with what is already installed...

P
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print