Author Topic: [Foundation Tech] Damper Weapon Problems  (Read 2309 times)

Offline TParis

  • Posts: 5
  • Cookies: 0
[Foundation Tech] Damper Weapon Problems
« on: June 17, 2007, 03:56:22 PM »
First of all: Using latest FTECH build (20051126).

I added the code for the damper weapon to my breen torpedo projectile... but when i fire the weapon with my Breenship, the game crashes :( Plz help!

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: [Foundation Tech] Damper Weapon Problems
« Reply #1 on: June 17, 2007, 05:14:34 PM »
I hope to put out a new FoundationTechnologies version soon.
Hopefully this is corrected then. Though I never recalled having this problem myself.
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.

Offline Nighthawk

  • |______[o]_|
  • Posts: 750
  • Cookies: 18
Re: [Foundation Tech] Damper Weapon Problems
« Reply #2 on: June 17, 2007, 05:43:27 PM »
that kind of failure sometimes happens when you put a different torpedo file in your HP.
be sure the type of torpedo in the Breen ship is BreenDrain and not BreenDrainer, for example.
you need to have the same name in the ship and in the projectile folder, whichever it is.

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: [Foundation Tech] Damper Weapon Problems
« Reply #3 on: June 17, 2007, 05:47:21 PM »
Your right.

I think this classifies as a "whoops" moment.
BC crashes (ATM, I'm looking at improving this ;) ) when it can't find a torpedo script (as in, tries to use it anyway). It's the most likely cause of BC crashes during battle.
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.

Offline TParis

  • Posts: 5
  • Cookies: 0
Re: [Foundation Tech] Damper Weapon Problems
« Reply #4 on: June 18, 2007, 06:59:45 AM »
Ye it's BreenDrain in the Hardpoint aswell. Just noticed that the Torpedo doesnt show up ingame X_X .

Tried another torpedo type and that one is working perfectly.

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: [Foundation Tech] Damper Weapon Problems
« Reply #5 on: June 18, 2007, 07:11:35 AM »
How did you add it to the hardpoint?
And what is the exact path to the torpedo script?
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.

Offline TParis

  • Posts: 5
  • Cookies: 0
Re: [Foundation Tech] Damper Weapon Problems
« Reply #6 on: June 18, 2007, 07:18:33 AM »
1. How i added (from foundation tech readme ^.^ ):

Quote
You can add the Breen Damper to your projectile by adding the following code to the bottom of your projectile script:

sYieldName = ?Damper Weapon?
sFireName = None

try:
   import FoundationTech
   try:
      oFire = FoundationTech.oTechs[sFireName]
      FoundationTech.dOnFires[__name__] = oFire
   except:
      pass

   try:
      oYield = FoundationTech.oTechs[sYieldName]
      FoundationTech.dYields[__name__] = oYield
   except:
      pass
except:
   pass

2. Where the script is:

Bridge Commander\scripts\Tactical\Projectiles\BreenDrain.py

Humm ye when i remove the code, the Torpedo is workin again. SRy if i did sth stupid but im just getting into modding :) .

Offline Nighthawk

  • |______[o]_|
  • Posts: 750
  • Cookies: 18
Re: [Foundation Tech] Damper Weapon Problems
« Reply #7 on: June 18, 2007, 07:07:44 PM »
that exception handler should cause no problem with the script. if it failed, it should just skip it over.
might be another thing.

Offline TParis

  • Posts: 5
  • Cookies: 0
Re: [Foundation Tech] Damper Weapon Problems
« Reply #8 on: June 19, 2007, 06:53:34 AM »
Uhhhhh... exeption handler? ^^

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: [Foundation Tech] Damper Weapon Problems
« Reply #9 on: June 19, 2007, 06:58:06 AM »
The try: except:
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.

Offline Nighthawk

  • |______[o]_|
  • Posts: 750
  • Cookies: 18
Re: [Foundation Tech] Damper Weapon Problems
« Reply #10 on: June 21, 2007, 12:56:45 PM »
another "whoops" common error:
are you sure the torpedo is a .py file?
kinda obvious, but I just recalled an error I suffered once lol.