FileFront Forums

FileFront Forums (http://forums.filefront.com/)
-   ST:A2 Modding, Mapping and Editing (http://forums.filefront.com/st-a2-modding-mapping-editing-139/)
-   -   Dawnstar Class by Redragon and APCM Problem (http://forums.filefront.com/st-a2-modding-mapping-editing/410421-dawnstar-class-redragon-apcm-problem.html)

rifraf October 23rd, 2009 10:40 PM

Dawnstar Class by Redragon and APCM Problem
 
Hoping someone can help me? I downloaded this ship and have checked numerous times for all files in correct place, and everything else but upon build completion of this ship the game crashes. In searching the ODF the only thing I can find is where it says:

enginetargethardpoints = "hp01" "hp02" ......
lifesupporttargethardpoints = "hp01" "hp02"......
etc....
the criticaltargethardpoints = section just has c next to it, like it was left out. So I put in the hardpoints listed for the other targethardpoints that are in there but I'm guessing the game crashes because these aren't correct? Not sure if the game is really picky that these need to be very specific hardpoints?

Jetfreak October 23rd, 2009 11:25 PM

Re: Dawnstar Class by Redragon and APCM Problem
 
Cant be so sure about the problem. A typo perhaps?

Anyway, my Dawnstar has these hardpoints added on the odf, see if it works.

Quote:

enginesTargetHardpoints = "hp06" "hp07" "hp08" "hp09" "hp10"
lifeSupportTargetHardpoints = "hp11" "hp12" "hp13" "hp14" "hp15"
weaponsTargetHardpoints = "hp01" "hp02" "hp03" "hp04" "hp05" "hp26"
shieldGeneratorTargetHardpoints = "hp16" "hp17" "hp18" "hp19" "hp20"
sensorsTargetHardpoints = "hp21" "hp22" "hp23" "hp24" "hp25"
hullTargetHardpoints = "hp06" "hp08" "hp10" "hp12" "hp14" "hp16" "hp18" "hp20" "hp22" "hp27" "hp28" "hp29" "hp30"
criticalTargetHardpoints = "hp21"

Flash525 October 24th, 2009 01:56 AM

Re: Dawnstar Class by Redragon and APCM Problem
 
If the above doesn't work, remove the 'critical hit hardpoints' line. See if it crashes then. If it doesn't, you'll know it isn't a hardpoint issue.

CanadianBorg October 24th, 2009 05:00 AM

Re: Dawnstar Class by Redragon and APCM Problem
 
That shouldn't be it. Your problem might also be a misspelled file reference - either in the ship .odf, or in one of the weapons. When there's a missing reference, the game gets itself turned around and shuts down.

SciFiFan October 24th, 2009 08:35 AM

Re: Dawnstar Class by Redragon and APCM Problem
 
I added someone's ship to my A2 and when I built the ship, the game would crash. Upon inspecting the ODF, I found that the ODF had a custom weapon that did not come with the ship. After changing the weapons to stock weapons, I had no more problems. It was just as was said earlier by CB.

rifraf October 24th, 2009 06:17 PM

Re: Dawnstar Class by Redragon and APCM Problem
 
Here is the odf in his download:

#include "battle.odf"

//Name of Ship class in Ship Display window & in edit mode & tooltip
unitName = "Dawnstar Class"

//tooltips
tooltip = "Dawnstar Class"
verboseTooltip = "heavy Dreadnought"

//Race which can build ship & starting race of ship
race = "federation"

//Amount of time required to build ship
buildTime = 30.0

//Number of officers required to build this ship
officerCost = 20

//Number of crew required to build ship & Starting crew
crewCost = 1000

// don't use the horrible old % crew loss on damage
saneCrewLossMethod = 1

//Dilithium Cost to build
dilithiumCost = 800

//Metal Cost to build
metalCost = 1300

//Max Shield Strength & Begining Shield Strength <500
maxHealth = 3000

// Hitpoints

shieldGeneratorHitPoints = 2500
enginesHitPoints = 2300
weaponsHitPoints = 2500
lifeSupportHitPoints = 2400
sensorsHitPoints = 1400

//Rate at which shield recharges (points per second... we think)
shieldRate = 20

//Maximum Value of Special Energy
maxSpecialEnergy = 1000

//Rate at which special energy recharges (points per second... we think)
specialEnergyRate = 10

//************************************************** ********************

//************************************************** ********************
//SHIP NAMES

//Possible Craft Names
possibleCraftNames =
"USS Payne" "USS Dennis" "USS REDRAGON" "USS APCMmkII"
"USS Monkeyhead" "USS PORTSTORM" "USS Dark Avenger"
"USS Shortone"
//************************************************** ********************
//ART PARAMETERS & WEAPON NAMES

// Weapon Name (ex. "gphaser" -> gphaser.odf)
weapon1 = "fbphas"
weaponHardpoints1 = "hp01" "hp02"

// Weapon Name (ex. "gphaser" -> gphaser.odf)
weapon2 = "fbphas"
weaponHardpoints2 = "hp03" "hp04"

// Weapon Name (ex. "gphaser" -> gphaser.odf)
weapon3 = "fbphas"
weaponHardpoints3 = "hp05" "hp26"

// Weapon Name (ex. "gphaser" -> gphaser.odf)
weapon4 = "fbphas"
weaponHardpoints4 = "hp29" "hp30"

// Photon Torpedoes
weapon5 = "fbattlephot"
weaponHardpoints5 = "hp27"

// Photon Torpedoes
weapon6 = "fbattlephot"
weaponHardpoints6 = "hp28"

// Photon Torpedoes
weapon7 = "fbattlephot"
weaponHardpoints7 = "hp27" "hp28"

// Towing Beam
weapon8 = "gtracbm"
weaponhardpoints8 = "hp12"

//Detect Cloak 3
weapon9 = "gdetectf"
weaponHardpoints9 = "hp05"

//Corbimite Refractor
weapon10 = "gcorbom"
weaponHardpoints10 = "hp07" "hp09" "hp11"

// Hardpoints to hit for various systems and other locations.

enginesTargetHardpoints = "hp06" "hp07" "hp08" "hp09" "hp10"
lifeSupportTargetHardpoints = "hp11" "hp12" "hp13" "hp14" "hp15"
weaponsTargetHardpoints = "hp01" "hp02" "hp03" "hp04" "hp05" "hp26" "hp27" "hp28" "hp29" "hp30"
shieldGeneratorTargetHardpoints = "hp16" "hp17" "hp18" "hp19" "hp20"
sensorsTargetHardpoints = "hp21" "hp22" "hp23" "hp24" "hp25"
hullTargetHardpoints = "hp06" "hp08" "hp10" "hp12" "hp14" "hp16" "hp18" "hp20" "hp22"
criticalTargetHardpoints = c

//************************************************** ********************


//************************************************** ********************
//CREW STATUS MULTIPLIERS
//The multiplier for the delay between shots for weapons while in yellow status
weaponYellow = 1.0f

//The multiplier for the delay between shots for weapons while in red status
weaponRed = 2.0f
//************************************************** ********************

//************************************************** ********************
//MESSAGE & SOUND PARAMETERS

eventSelect = "Cruiser1Select"
eventAcknowledge = "Cruiser1Acknowledge"
eventAttack = "Cruiser1Attack"
eventStop = "Cruiser1Stop"
eventMove = "Cruiser1Move"
eventRepair = "Cruiser1Repair"

//************************************************** ********************

//change the scale

// 94% of a sovereign
ScaleSOD = 1.3

I edited the file for my mod to change the build amounts and hitpoints. I also changed the phasers and torpedos to be the same as used by the federation ships in my mod. I changed weapon9 to be "gselfdes" and weapon10 to be another "gtracbm." I have other ships in my game with more than one tractor beam so that shouldn't be it. I changed the ship names as well and have triple checked all the " to make sure they are correct. The targethardpoints section is what seems to be messed up. Lastly I deleted the weapon/sound parameters as well. As you can see Jetfreak the "hp27" "hp28" "hp29" "hp30" is in the weaponstargethardpoints where as you have it in the hulltargethardpoints. You also have a value for criticaltargethardoints. I changed mine to be exactly like yours and once again it crashed the game.

As you'll note above there is an extra space between "hp10" and "hp12" in the hulltargethardpoints which I corrected and didn't help. Just can't figure it. Maybe because you can't have more than 10 weapons??

anarchyfan October 24th, 2009 06:21 PM

Re: Dawnstar Class by Redragon and APCM Problem
 
are you sure that the ship's hardpoints go up to 30?

Edit: Also, i don't know about A2, but in A1 a ship's weapons have to be in the order basic weapons first, self destruct weapons second, and special weapons last.

It would appear that everything is already arranged in that manner, but if it helps.

PS: Try putting the c in quotes... it's not much but that could be your problem.

StarBlade October 24th, 2009 07:11 PM

Re: Dawnstar Class by Redragon and APCM Problem
 
Your hardpoints in A2 can go any way you want. So can your weapons, really. It's just good practice to keep everything in sequenced order. However, why not simply pick a hardpoint that sounds critical and go with it? Pick one of the engine HPs and go with it. You can always change it later. Critical hitpoints can overlap with other sets.

:cool:

rifraf October 24th, 2009 08:13 PM

Re: Dawnstar Class by Redragon and APCM Problem
 
@ Kid: I tried "hp21" which is what Jetfreak said his showed and I also tried the same string of hardpoints from the other lines and they didn't work either. Maybe the game crashes with that ship for another reason then not related to the targethardpoints? Maybe something between the SOD and ODF and TGA's? The ODF looks fine to me and I've compared it to other ship ODF's and they're basically the same. I just may have to write this ship off for now? I know there is a dawnstar retexture file to download that another person did, maybe I'll try that just to see if it helps?

CanadianBorg October 24th, 2009 08:21 PM

Re: Dawnstar Class by Redragon and APCM Problem
 
One of the .odf commands is likely misspelled or has been programmed wrong (syntax error). A2 doesn't mind missing hardpoints, I don't think, but it throws a serious hissy fit if there's anything wrong with any of the files involved. Try what rifraf said, and replace the c with a hardpoint.


All times are GMT -7.

Powered by vBulletin®
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.