Bridge Commander Central

BC Forums => BC Scripting => Topic started by: yochenhsieh on January 13, 2007, 10:58:10 AM

Title: [HELP]Foundation Tech: Damper Weapon
Post by: yochenhsieh on January 13, 2007, 10:58:10 AM
Hello,
I've been trying to add the Damper Weapon to my breen projectile, but so far without any success. Could anyone please take a look at my files and check if anything goes wrong with them?

ps. I'm using the 20051126 build of Foundation Tech.

Thanks,

You-Cheng Hsieh
Title: Re: [HELP]Foundation Tech: Damper Weapon
Post by: MLeo on January 13, 2007, 11:10:44 AM
What exactly doesn't work?

The projectile doesn't show up?
A hit doesn't appear effective (what ship are you using it on?)?
Title: Re: [HELP]Foundation Tech: Damper Weapon
Post by: yochenhsieh on January 13, 2007, 11:33:43 AM
Hi, thanks for your reply.

The projectile does show up, but it doesn't have the power-disable effect. I'm using the weapon with the BreenBCH. The hardpoint of that ship is available from the attachment of the first post (BreenBCH.py). I've tried the weapon against various stock and modded ships and bases, but none of the opponents seems to be "disabled". They only got damaged when hit by the weapon.

Thank you.
Title: Re: [HELP]Foundation Tech: Damper Weapon
Post by: MLeo on January 13, 2007, 01:31:32 PM
In your BreenDrainer.py change this:
Code: [Select]
try:
oYield = FoundationTech.oTechs[sYieldName]
FoundationTech.dYields[__name__] = oYield
except:
pass
Into this:
Code: [Select]
try:
oYield = FoundationTech.oTechs[sYieldName]
FoundationTech.dYields[__name__] = oYield
except:
print sYieldName, "is not avaidable"
If you see that after the first time firing (in the console, check the Technical Support if you don't know how to do that) then post the file: scripts/Custom/Autoload/LoadFoundationTech.py
Title: Re: [HELP]Foundation Tech: Damper Weapon
Post by: yochenhsieh on January 13, 2007, 09:20:15 PM
Hi, I didn't get any messages related to FoundationTech or Damper Weapon, but I still post the screenshot and files for you to check.

It's weird that it claims I have outdated foundation. My foundation was installed from BCMI.

Thanks.
Title: Re: [HELP]Foundation Tech: Damper Weapon
Post by: yochenhsieh on January 14, 2007, 06:23:47 AM
I've noticed this description in the rtf readme:
Code: [Select]
Your dTechs key could look like this:
?Drainer Immune?: 1,
Does it cause my problem? Where and how should I insert my "dTechs key"? I cannot find related info in the readme and the forums.

I reinstalled Foundation and FoundationTech again. Now I have my console looked like this screenshot after fired the weapon(please see attachment). But I still don't have disable effects.
Title: Re: [HELP]Foundation Tech: Damper Weapon
Post by: MLeo on January 14, 2007, 06:27:41 AM
Did you change your projectile script as I said?

Also, you did activate the mutator for FoundationTech (yes, I know, stupid question, but let's be on the safe side)?

You did fire it?


About the dTechs key, stock ships aren't affected (atleast, normally they aren't) and the drainer immune tech isn't standard for all ships (if it's 1, then it's immune to the drainer).
Title: Re: [HELP]Foundation Tech: Damper Weapon
Post by: yochenhsieh on January 14, 2007, 06:39:55 AM
Did you change your projectile script as I said?

Also, you did activate the mutator for FoundationTech (yes, I know, stupid question, but let's be on the safe side)?

You did fire it?
Yes, yes, and yes.
I changed the BreenDrainer.py, deleted BreenDrainer.pyc, started the game. The mutator of FoundationTech is activated. I setup a quickbattle, switch to manual fire, and fired the Breen Drain weapon. After the weapon hit the target, I press [`] to call the console, and press [Enter] to print the debug messages. As you see in the previous attachment, I have only three lines in the console now. There's no crash or freeze, but no any disable effects as well. After I quit the game, I go to scripts\tactical\projectiles and found the new BreenDrainer.pyc successfully generated.
Is there anything I can do to help you help me make it work? I really want to make it work...  :)

Thanks.
Title: Re: [HELP]Foundation Tech: Damper Weapon
Post by: MLeo on January 14, 2007, 07:14:51 AM
Post the file scripts/Custom/Autoload/LoadFoundationTech.py
Title: Re: [HELP]Foundation Tech: Damper Weapon
Post by: yochenhsieh on January 14, 2007, 07:23:13 AM
Post the file scripts/Custom/Autoload/LoadFoundationTech.py
Please download the second attachment of Reply #4. It hasn't been downloaded since I post it.
Title: Re: [HELP]Foundation Tech: Damper Weapon
Post by: MLeo on January 14, 2007, 07:33:21 AM
My apologies, I hadn't seen that post.

Please try the projectile script I attached at the bottom, it should add some lines.

The message you get, claiming Foundation to be outdated, is posted because it's currently being updated, in memory.

The last bit is important, since it would have to be done each time BC is started. So it's unimportant for you now.
Title: Re: [HELP]Foundation Tech: Damper Weapon
Post by: yochenhsieh on January 14, 2007, 08:09:15 AM
Hi, I've tried your script. Please check the screenshot. It's taken after the weapon hit the target.  :)
Title: Re: [HELP]Foundation Tech: Damper Weapon
Post by: MLeo on January 14, 2007, 11:58:35 AM
Hmm, nothing wrong with loading it.

It seems I will have to get back to you on this.
Title: Re: [HELP]Foundation Tech: Damper Weapon
Post by: yochenhsieh on January 15, 2007, 04:45:35 AM
Does it work on your BC?

I would like to help test this weapon if there's a more recent build or release.

Thanks.
Title: Re: [HELP]Foundation Tech: Damper Weapon
Post by: MLeo on January 15, 2007, 04:47:55 AM
Does it work on your BC?
It did originally, hence the "I'm afraid I'll have to get back to you" in my last post.

Quote
I would like to help test this weapon if there's a more recent build or release.
Like I said earlier (I think), I'll have to to get things started again.