met2002 Posted March 18, 2014 Report Share Posted March 18, 2014 Hello, first like to start off that the DCG is just a fabulous tool which im sad that I found it so late. Props for making it! Anyways I'v been trying to add some of HSFX 7.0's planes to the program to use in one of my latest online campaigns, I managed to kinda figure out how to add fighters to the program and the game runs perfectly fine when I play them. However whenever I try adding a bomber + some of its payload, everytime I start the map it just buggers out and refuses to play the map with the "it cannot load classes" or something like that issue when I try to hit the fly button after selecting the bomber. In Solo campaigns the game just explodes and crashes if I try to start it when selecting the bomber upon hitting start. Is there something I am missing when adding bombers to the classes file? Quote Link to comment Share on other sites More sharing options...
sniperton Posted March 18, 2014 Report Share Posted March 18, 2014 Have you also added new payloads to allpayloads.dcg? Quote Link to comment Share on other sites More sharing options...
met2002 Posted March 20, 2014 Author Report Share Posted March 20, 2014 Yea I'v added about 2 or 3 payloads there for the plane (in this case the A-20 DB7) 1 torpedo and 2 bomb load types that it already has in game. I used the other planes in the file as a reference so I am not sure what could of gone wrong there. Quote Link to comment Share on other sites More sharing options...
sniperton Posted March 21, 2014 Report Share Posted March 21, 2014 The usual procedure is something like this (provided the plane is already added to the class file): 1) Fire up the FMB 2) Select the plane, give it the payload, save the mission, tab out to the mission file, copy/paste the internal name of the payload into the allpayloads file (following the pattern you see there). 3) Repeat 2) for other payloads #n times. 4) Fire up DCG, go to the aircraft class settings, select and set naval payload, level payload, etc. If it still doesn't work this way, look for a typo or some tabs instead of spaces in the allpayloads file. DCG reads the payload name from the #th "column", so if you have one space less or more in front of the name (or the name is misspelled), you get an arror like you got. Quote Link to comment Share on other sites More sharing options...
met2002 Posted April 2, 2014 Author Report Share Posted April 2, 2014 A little bit slow since I was out of town and just got back recently, but yay! Your instructions worked perfectly and now the plane loads perfectly fine now. Thanks so much! Quote Link to comment Share on other sites More sharing options...
slippery_jim Posted April 6, 2015 Report Share Posted April 6, 2015 I seem to be having a bit of a hit and miss adding planes.Today I tried to add the beaufort (mod plane extracted from the 4.12 version), but it doesnt show up in the squadron edit plane list!I added this to class.dcgBeaufort1Late Beaufort Mk.I late gb 1 4 1 193908 194612 none BeaufortMKILate BLENHEIM4F 1525 Meters 270.00 kph Default 300.00 kphThis to allpayloads.dcgBeaufort1Late B 8x250lbBeaufort1Late B 4x500lbBeaufort1Late B 2x1000lbBeaufort1Late T 1xtorpAnd this to payloads.dcgBeaufort1Late 8x250lb none 4x500lb none 1xtorp default any ideas why it doesnt work? I added the Ki-48 Lily the same way and it worked!Could someone explain what the data "1 4 1" after gb in the class.dcg file is? Quote Link to comment Share on other sites More sharing options...
slippery_jim Posted April 6, 2015 Report Share Posted April 6, 2015 some more info for help in cracking thisThe plane shows up in the aircraft class settings, and I fixed up a few wrong entries, I had the level and ground attack loads back to front, not that it matters really, and fixed the ingress and cruise speed, BUT it still does not show up in the squadron editor!Here is the line in the class file after I closed DCGBeaufort1Late Beaufort Mk.I late gb 1 2 1 193908 194612 BEAU10 BeaufortMKILate BLENHEIM4F 1525 Meters 240.00 kph 1000 km 240.00 kphAs you can see in the pic, it does show in DCG class settings Quote Link to comment Share on other sites More sharing options...
slippery_jim Posted April 6, 2015 Report Share Posted April 6, 2015 ok, after a lot of trial and mostly error lol I think I have nutted this damn thing out. It's all to do with the names matching other files, ie Air.ini and skin folders! I had done everything (mostly) right in the "class.dcg" fileThe biggest blunder I did was the "Skin" folder name did not match the "DogfightID" entry!So here is how the "class.dcg" file is structured for future reference. I believe this used to be well documented on the old forum, does anyone have a copy of the original guides?Beaufort1Late BeaufortMk1Late gb 1 2 1 193908 194612 BEAU10 BeaufortMk1Late none 1525 Meters 240.00 kph 1000 km 240.00 kphNOTE that the "class.dcg" file is a 'fixed width' file, so each entry in the line must start directly beneath the entry in the line above (in other words all the entries start in neat columns).The first entry the 'Class ID', must be exactly the same as in the game. You can get this name from a saved mission generated by FMB, ie the EXACT name after the Class air.:[RA_NN00] Planes 1 Skill 1 Class air.Beaufort1Late <------ This is what we need for the first entry Beaufort1Late Fuel 100 weapons 1xtorpYou MUST use 'spaces' (not tabs) to move your cursor to the next column.The second entry is the 'Full Name', ie: "BeaufortMk1Late" You can get this name from the air.ini and plane_ru.AIR.INI: BeaufortMk1Late air.Beaufort1Late 1 NOINFO gb01 SUMMERPLANE_RU: BeaufortMk1Late Beaufort Mk.I late, 1940The third entry is the 'Nationality', is 'gb' (Great Britain).The fourth entry is the 'Side', is '1' (1 for allied, 2 for axis).The fifth entry is the 'Type' or 'Category', is '2'.The types are:1. Fighter2. Bomber3. Transport4. Ground-Attack5. Reconnaissance6. Seaplane/Floatplane7. Dive BomberEntry 6 is 'Flyable by player'. 1 for yes, 0 for no: 1Entry 7 is 'Start Year/Month', or when the plane begins to become available in the campaignEntry 8 is 'End Year/Month'Entry 9 is 'Upgrade' This entry is the ClassID for the upgrade planeEntry 10 is 'DogfightID' - MUST BE THE SAME as Skins folderEntry 11 is 'Downgrade' This entry is the ClassID for the downgrade planeThe next columns are 'Cruise Altitude, Cruise Speed, Range, Target Ingress Speed': ie 3000 Meters 410.00 kph Default 410.00 kph Quote Link to comment Share on other sites More sharing options...
sniperton Posted April 16, 2015 Report Share Posted April 16, 2015 For those who went it over -- v4.12 planes added to DCG: http://www.mission4today.com/index.php?name=Downloads&file=details&id=4405 Sharkzz 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.