Bridge Commander Central

BC Forums => BC Technical Support => Topic started by: duodsg on December 15, 2009, 08:50:23 PM

Title: Crash at Mission 3
Post by: duodsg on December 15, 2009, 08:50:23 PM
Good evening, all-

I installed ST:BC yesterday (finally found it for $30) and installed the CG Sovereign and Rich Knox's Akira (and Foundation, to install them) before running it for the first time.  No problem, no clipping, the graphics settings were at the max and they all worked great.

I was playing yesterday and then it crashed to the desktop as soon as the simulated battle with the Geronimo and two Klingon Birds of Prey begins.  Kinda strange, so I thought I would load it and just pick up where I left off.  No dice- it won't even be five seconds into the loading screen before it dies.

To see what was going on, I tried to go into QB and it will load, but after a few minutes of the battle it crashes to the desktop.  Weird.

I thought the ships I installed may have something to do with it, so I uninstalled everything and reinstalled the program without mods this morning before work.  Came back tonight and started a new game, and got to the exact same point and the same thing happens.  Now QB crashes just like before, and it won't load any campaign missions at all (just like yesterday).


Some background info:


Laptop Specs:


OS: Vista Home Premium 64-bit
CPU: Intel Mobile Core 2 Duo @ 2.00 GHz
RAM: 4.0 GB DDR2 RAM @399 MHz
Motherboard: Intel GM45/47 Chipset (Dell)
Graphics: 1803MB Mobile Intel 4 Series
Hard Drive: 320 GB Seagate
Optical Drive: HL-DT-ST DVD+-RW GA10N
Audio: IDT HD Audio CODEC

All my drivers are up to date, so that's not an issue.  My laptop blows the pants off the systems requirements, so I doubt that's an issue since it worked perfectly before.  As I said, it's only at a certain point in mission 3 that it just dies, and I can't load to get back into the single player.  QB also starts to die once this happens, never before.




Any help?  I would hate to have put $30 into this game and not be able to play past mission 3...it's almost as bad as having the demo, except that I paid for it.
Title: Re: Crash at Mission 3
Post by: Nebula on December 15, 2009, 09:05:50 PM
The cg sov is missing the correct torp same for the Rich Knox's Akira... rename/add the stock torps to the hp files.

if you can't I'm sure someone here will help with it.
Title: Re: Crash at Mission 3
Post by: ACES_HIGH on December 15, 2009, 10:51:45 PM
you'll need to add the quantum torpedo and Phased plasma torps from the stock soveriegn into the torpedo loads of the soveriegn, and the quantums to the akira.
Title: Re: Crash at Mission 3
Post by: duodsg on December 15, 2009, 11:27:11 PM
Wow, thanks for the prompt response, guys!

So from what you're saying I need to go into the directory and paste in some of the original files from a clean install of BC?  Or is there a place I can just get these files and then rename them as you mentioned?

Sorry if I am asking too many questions- I personally don't mess with mods too much so digging around for files isn't my forte.  But if I'm told how to do it, I know I can pull it off (I've done it before for ST: Armada and such).

Thanks guys!
Title: Re: Crash at Mission 3
Post by: KrrKs on December 16, 2009, 09:09:50 AM
Go to "scripts/ships/hardpoints", open "sovereign.py" and "akira.py" search for a section with
Quote
App.TorpedoSystemProperty_Create
In there (near the bottom) should be something similar to
Quote
Torpedoes.SetMaxTorpedoes(0, 190)
Torpedoes.SetTorpedoScript(0, "Tactical.Projectiles.photontype6")
Torpedoes.SetNumAmmoTypes(1)
copy the first two lines of that and paste it before "SetNum AmmoTypes". Replace what is a zero in this Example with a Number one more than the maximum Number in your HP.
Then Replace what is here "Tactical.Projectiles.photontype6" with Tactical.Projectiles.QuantumTorpedo".
Then add 1 to "SetNumAmmoTypes".
Save the files and delete the corresponding .pyc files.

Edit:
You should also add "PhasedPlasma" on the Sovereign via the same procedure.
Title: Re: Crash at Mission 3
Post by: Nebula on December 16, 2009, 09:29:06 AM
Because the cg sov already has photon and quantum torps just make the ammo amount on all the ones you added to 0. 
Title: Re: Crash at Mission 3
Post by: duodsg on December 16, 2009, 12:09:50 PM
Ok, I'm starting to understand a bit better now.  Thanks for posting the code sections I needed to change, it makes more sense seeing as how it's crashing when the Akira and Sovereign are both in a state where they are about to use their torpedoes.

Two problems:

1. I did these fixes, but then I found something here:

http://bc-central.net/forums/index.php/topic,58.0.html#msg409

Which is a replacement for the Sovereign PY file.  I downloaded it and replaced the old file with this one, except that I noticed that the file it replaces is tiny compared to the old one and doesn't even have a place for the torpedo values.  I'm assuming this is incorrect?

If I'm going to try to get the old file back, the only option I have is a clean install.  Go figure that the only file I didn't copy before replacing was the Sovereign PY file.

Should I keep this file, or do a clean install and fix these values before running the game?

2. As for the Akira, I tried doing the same thing by essentially copying and pasting the same info from the Sovereign (but I changed the first number between parentheses, since I assume that this number is the identifying value for each ammo type).

Now the problem I'm encountering is the same as the Sovereign: the PY files are all tiny and have NO place for these values anymore, after I just now tried to run the game.

Is this normal or do I have to go back and do everything again?

The old Akira file had the following:

Quote
Torpedoes.SetMaxTorpedoes(0, 240)
Torpedoes.SetTorpedoScript(0, "Tactical.Projectiles.Photon01JLH")
Torpedoes.SetNumAmmoTypes(1)
App.g_kModelPropertyManager.RegisterLocalTemplate(Torpedoes)

And I added the quantum torpedoes as a value below that, using the Sovereign code as a template.

Did I do this incorrectly?

If it's any good sign, it took longer for it to crash and the little bar under "Star Trek" on the load screen actually moved this time.  But a crash is a crash.

I almost wonder if it would just be easier if I found someone with these two files and just copied and pasted them into my own hardpoint directory so I don't have to code it...

Thanks guys, I really do appreciate your time and help in this.
Title: Re: Crash at Mission 3
Post by: Nebula on December 16, 2009, 12:48:37 PM
all stock py files are in the SDK which you can DL from bcfiles.

yeah I'm sure someone if they have the time will post fixed versions of the hps here.

btw what do you mean

Quote
doesn't even have a place for the torpedo values

oh and before I forget... once the py files are changed delete the pyc files.
Title: Re: Crash at Mission 3
Post by: duodsg on December 17, 2009, 02:29:50 AM
My apologies, I wasn't very precise when I wrote that post this morning.

I think that the files I looked at were in one of the subdirectories under ships (hardpoints, I presume).  Now the problem is that in my rush to try to get that all done before work, I may have just replaced those files with the corrected PY files.  Big no-no, so it looks like I have to do a reinstall anyway to get those files back.

So I have a corrected version of the CG Sovereign file, now I just need one for the Akira since my modifications to the file didn't work.

What I'm thinking about doing is putting in the CG Sovereign in with the fixed file without adding the modded Akira, and see if that works.  Of course, I'm just copying and pasting my savegames so I don't have to spend a few hours going through the same missions again.

Hopefully, this works and then it's just a matter of the one Akira file to fix or obtain from someone and then I'll be set.  I'm not terribly worried about other mods, since I don't care for them.  I'm a fan of the canon ships so I don't expect to have this problem come up again anyway.

And yes, I made sure I deleted the PYC files once I replaced the PY files so I'll make sure I do that again.

I'll reinstall right now to see if my theory works, and I'll post my results.  Hopefully someone will be feeling all Christmas-y and hook me up with an Akira file.  But if not, I'll post so I can understand the torpedo values and how they are modified so I can figure out how to get it working on my own, in the worst case scenario.

Thank you so much for your time and patience, it really means a lot and I do appreciate it!
Title: Re: Crash at Mission 3
Post by: duodsg on December 17, 2009, 03:03:11 AM
I just posted, but I figure this warrants a separate post so my situation remains clear...

I just did a total uninstall and reinstall of ST:BC.  I installed the CG Sovereign and replaced the hardpoints Sovereign PY file with the one found at http://bc-central.net/forums/index.php/topic,58.0.html#msg409.  I deleted the PYC file in the hardpoints directory, even though I had not yet run the game.  The text values regarding the torpedo scripts reads as follows:

Quote
Torpedoes.SetMaxTorpedoes(0, 350)
Torpedoes.SetTorpedoScript(0, "Tactical.Projectiles.CGPhotorp")
Torpedoes.SetMaxTorpedoes(1, 0)
Torpedoes.SetTorpedoScript(1, "Tactical.Projectiles.Quantum")
Torpedoes.SetMaxTorpedoes(2, 0)
Torpedoes.SetTorpedoScript(2, "Tactical.Projectiles.PhasedPlasma")
Torpedoes.SetNumAmmoTypes(3)

I did not install the new Akira but instead left it alone to see if the Sovereign fix worked or not.

Same thing happened here- the program still crashes to the desktop during the loading screen.  There must be an error in the Sovereign file if it's happening even now, so the Akira problem isn't going to be addressed until I've at least fixed this one.

I DO wonder, however- should I be deleting the PYC file in the "Ships" directory (apart from deleting just the Sovereign PYC in the Hardpoints)?  If so, that might do the trick...I'll cut it out of that directory and see if that makes a difference.

Any help would be most appreciated.  Thanks!

------------
EDIT:

Cutting out the PYC file in the regular Ships directory did nothing, the program still crashed just like before.
Title: Re: Crash at Mission 3
Post by: JimmyB76 on December 17, 2009, 08:03:22 AM
is the name of the torp "Quantum"?  check in scripts/tactical/projectiles to be sure the name of that torp is the same name as the script in that folder; i could be wrong, but it might be something like "QuantumTorpedo" or something like that...
Title: Re: Crash at Mission 3
Post by: duodsg on December 17, 2009, 11:39:39 AM
Wow, good call...I just looked in the Tactical>Projectiles directory and indeed, the name here is QuantumTorpedo, not simply "Quantum".

I will change the Sovereign PY file to reflect this and see if it works.

I am noticing also that in this projectile directory there are PYC and PY files that also carry the name CGPhotorp and QuantumCG.  Should I be deleting these PYC files here as well, like in the Hardpoints directory?

Hopefully this works!


-------
EDIT: I changed the ammotype to the correct value but the game still crashed to the desktop, just like before.  I DID find it a promising sign, however, that it took a lot longer to crash (even if it still didn't get past the load screen).
Title: Re: Crash at Mission 3
Post by: Nebula on December 17, 2009, 12:14:34 PM
can u upload your changed files here for us to look at?
Title: Re: Crash at Mission 3
Post by: duodsg on December 17, 2009, 07:43:31 PM
Yeah, I will attach the two files I've worked on: the Akira and Sovereign PY files from the Hardpoints directory.

These are in keeping with the changes I've read so far in the thread that I should make (including the latest one, where I changed 'Quantum' to "QuantumTorpedo", considering the actual file that exists in the Scripts>Tactical>Projectiles directory).

The Sovereign file is unchanged from the one located on the Forum FAQ link except for the above change.  The Akira one is definitely going to be the "messier" one.
Title: Re: Crash at Mission 3
Post by: Nebula on December 17, 2009, 07:56:18 PM
you sent the akira pyc file not py file.
Title: Re: Crash at Mission 3
Post by: duodsg on December 17, 2009, 08:06:38 PM
Oops, here's the right one:
Title: Re: Crash at Mission 3
Post by: duodsg on December 19, 2009, 07:19:01 PM
Update:

I just reinstalled BC without any mods, and of course it crashed as I tried to load mission 3.  So I put in the updated Sovereign file in the hardpoints directory (with the phased plasma torpedo and quantum torpedo lines), including the correct name (not quantum, but quantum torpedoes) in the file.

Still crashed just like before.

I did notice, however, that in the hardpoint and ships folders there were absolutely NO PY files, just PYC files there, so when I put one in it replaced nothing.

Is this normal?  And why would it still be crashing, in spite of it being the corrected file?
Title: Re: Crash at Mission 3
Post by: 086gf on December 19, 2009, 10:09:12 PM
Its probably because you didn't delete the bc folder yourself after you uninstalled the game.
Title: Re: Crash at Mission 3
Post by: duodsg on December 19, 2009, 11:32:47 PM
Not likely...every uninstall I've done of BC has been done with Revo Uninstaller, which cleans out every shortcut and system registry item after the program's uninstall program is done.  Plus I go into the Activision folder and Bridge Commander is totally gone.

What I don't get is how the fix that I downloaded from the FAQ on the forum didn't work and the problem remains the same, mods or not...
Title: Re: Crash at Mission 3
Post by: Nebula on December 20, 2009, 12:09:57 AM
I've heard some people have issues modding BC on Vista if they install in the program files folder.
Title: Re: Crash at Mission 3
Post by: duodsg on December 20, 2009, 12:15:30 AM
Well I AM running Vista 64-bit, but as I said the problem is even on the unmodified version of the game even before I install mods...

I keep thinking it must be something in the files mentioned before, simply because the game runs perfectly up until Mission 3 and then it just dies.

However, if I was to install it in a different directory (instead of Program Files x86), then is there a certain place that's recommended?  I can definitely it a try.
Title: Re: Crash at Mission 3
Post by: Nebula on December 20, 2009, 12:30:19 AM
just make a new folder called Games outside programfiles on your C drive.
Title: Re: Crash at Mission 3
Post by: Mario on December 20, 2009, 10:32:16 AM
Well I AM running Vista 64-bit, but as I said the problem is even on the unmodified version of the game even before I install mods...

I keep thinking it must be something in the files mentioned before, simply because the game runs perfectly up until Mission 3 and then it just dies.

However, if I was to install it in a different directory (instead of Program Files x86), then is there a certain place that's recommended?  I can definitely it a try.

This means that simply on your hard drive there is a virtualized BC folder. Delete those contents and the unmodified version will work well.

You can access it:
1. Go to C:\Program Files\Activision\Bridge Commander and click on the Compatibility Files option in the explorer
2. Start -> Run -> C:\Users\{Username}\AppData\Local\VirtualStore\Program Files\Activision\Bridge Commander, replace {Username} with your username

In this location you should see couple of BC files which the game actually reads once ran in non admin environment i.e. you didn't use run as admin on stbc.exe.
Title: Re: Crash at Mission 3
Post by: duodsg on December 20, 2009, 01:53:05 PM
Thanks for the reply- this may be it, since Vista will be running from this folder regardless of any superficial changes I make to the STBC folder in my Program Files.

The only problem is that on NO files on my system does the Compatibility Files button show up (not even in the Windows directory, which is what everyone online says should have it come up for at the very least).

From everything I read this morning, if I install STBC on a localized folder (like Users>Games or something like that) then Vista won't spare out the directories like it would if I placed it in the Program Files folder.  Let me try that and see what happens.

Unless I can find some way to make Vista give me the Compatibility Files option in Explorer, which seems nigh impossible.
Title: Re: Crash at Mission 3
Post by: Mario on December 20, 2009, 02:22:29 PM
Try to navigate manually to the folder which I explained as an alternative way to get to it (step 2.)

Quote
2. Start -> Run -> C:\Users\{Username}\AppData\Local\VirtualStore\Program Files\Activision\Bridge Commander, replace {Username} with your username
Title: Re: Crash at Mission 3
Post by: duodsg on December 23, 2009, 12:11:47 AM
Well, I tried to navigate to that directory, but Windows won't navigate to that location since it says it's not a valid location...

Perhaps there is a specific directory in my C: drive I can install it to that won't create a virtual folder?  I installed it in C:/Games, but that may still be causing the same problem as if I installed it in the Program Files (x86) directory.  In My Documents somewhere, perhaps?
Title: Re: Crash at Mission 3
Post by: 086gf on December 23, 2009, 01:33:56 PM
C:/Games should be fine.
Title: Re: Crash at Mission 3
Post by: duodsg on December 30, 2009, 02:54:08 PM
Sorry I haven't posted in a while-

Anyway, I installed the game in C:/Games and nothing happened.  Even without the updated Sovereign model, I just updated the already existing Sovereign file so it reflects QuantumTorpedoes, but the crash still occurs.

If it makes any difference, it takes a LONG time for it to crash- almost a full minute of it loading.  But the music never starts playing or anything.

Is there any kind of a console that I can run while I try to load this savegame that will have the program-specific info on it relating to the crash?  Perhaps someone can see what the game is trying to do before the crash by looking at a file (or error report) it creates and thereby track the problem.

Or if there's something else I can try, by all means.

In the meantime, I will dust off my old 1GHz dinosaur laptop running XP and install it on there just to see if it works out (since from the sounds of it, XP doesn't use virtualized folders).
Title: Re: Crash at Mission 3
Post by: KrrKs on December 31, 2009, 10:20:27 AM
Maybe the savegame is faulty, too (had once that problem). Did you try starting in TestMode an running the Mission from the mission - selection?
Title: Re: Crash at Mission 3
Post by: duodsg on December 31, 2009, 08:31:23 PM
How exactly do I run the game in Test Mode?

Also, for mission select, how do I do that?  I was under the impression that the only way to go into other missions was using a savegame.
Title: Re: Crash at Mission 3
Post by: Kirk on December 31, 2009, 11:21:34 PM
Please look at the stickies at the top of this sub-forum.
Title: Re: Crash at Mission 3
Post by: duodsg on January 01, 2010, 12:37:50 AM
Sorry about that.

Thank you, I will follow those instructions and go from there.
Title: Re: Crash at Mission 3
Post by: Mario on January 03, 2010, 10:53:37 AM
Quote
Well, I tried to navigate to that directory, but Windows won't navigate to that location since it says it's not a valid location...

I figured it was kinda self explanatory that you should replace {Username} with the name of your private folder in C:\Users. Private folder location should be the same on 32 bit or 64 bit.

As for the crash, could be that the save can't be loaded because the state of the game before and after doesn't match (i.e. you're using different hps = IIRC changes to it did make an impact).
Title: Re: Crash at Mission 3
Post by: duodsg on January 03, 2010, 01:10:22 PM
Quote
Well, I tried to navigate to that directory, but Windows won't navigate to that location since it says it's not a valid location...

I figured it was kinda self explanatory that you should replace {Username} with the name of your private folder in C:\Users. Private folder location should be the same on 32 bit or 64 bit.

As for the crash, could be that the save can't be loaded because the state of the game before and after doesn't match (i.e. you're using different hps = IIRC changes to it did make an impact).

Yeah, I figured as much for the username.

The savegame thing makes a bit more sense too- I am pretty sure I did start a brand new game with the new Sovereign changes, but I will run through it that way to see if it continues on its way instead of crashing as soon as that mission starts.

That and I'll install it on my other laptop either tonight or tomorrow. Thanks!