Author Topic: Shieldflare  (Read 7335 times)

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Shieldflare
« Reply #40 on: June 21, 2009, 08:43:04 AM »
You have inconsistent identation (sp).

Code: [Select]
import App
try:
import Foundation
import FoundationTech

except:
print "FTech not found"



class ShieldflareTorpedo(FoundationTech.TechDef):
def __init__(self, name, dict = {}):
FoundationTech.TechDef.__init__(self, name, FoundationTech.dMode)
self.lYields = []
self.__dict__.update(dict)
self.lFired = []

def OnYield(self, pShip, pInstance, pEvent, pTorp):
pTorp.SetLifetime(0)
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 teleguy

  • Posts: 363
  • Cookies: 53
Re: Shieldflare
« Reply #41 on: June 21, 2009, 09:36:15 AM »
Fixed it. However it's still doing shield damage and explosions.

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Shieldflare
« Reply #42 on: June 21, 2009, 10:02:39 AM »
I assume you mean with "damage" that the shield still drains?
Is the tech applied to your torpedo?
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 teleguy

  • Posts: 363
  • Cookies: 53
Re: Shieldflare
« Reply #43 on: June 21, 2009, 10:18:28 AM »
The second attachment in my last post is the torpedo script.

Offline teleguy

  • Posts: 363
  • Cookies: 53
Re: Shieldflare
« Reply #44 on: June 21, 2009, 01:51:29 PM »
Maybe there's something wrong with my install. I noticed Phased Torpedoes are also doing shield damage.

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Shieldflare
« Reply #45 on: June 21, 2009, 01:54:07 PM »
Could you please describe what you mean with "shield damage"?

I mean, SetLifetime has worked since, forever.
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 teleguy

  • Posts: 363
  • Cookies: 53
Re: Shieldflare
« Reply #46 on: June 21, 2009, 01:56:13 PM »
I mean the torpedoes are draining the shield.

Did you check if my torpedo script is correct?

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Shieldflare
« Reply #47 on: June 21, 2009, 02:19:27 PM »
It looks correct. Please try the following in the console (and get a console report afterwards) when you are in game.

Code: [Select]
print App.Torpedo.SetLifetime
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 teleguy

  • Posts: 363
  • Cookies: 53
Re: Shieldflare
« Reply #48 on: June 21, 2009, 02:29:20 PM »
Here is it. And thank you for your patience.


Offline teleguy

  • Posts: 363
  • Cookies: 53
Re: Shieldflare
« Reply #49 on: June 23, 2009, 09:06:53 AM »
Does that tell you anything?

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Shieldflare
« Reply #50 on: June 25, 2009, 05:59:27 PM »
I was hoping to find something there.

If you look in scripts/Custom/Techs/PhasedTorp.py, you can see I use the same thing, and I know it works there.
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.