Bridge Commander Central

BC Forums => BC Downloads => Topic started by: USS Frontier on July 15, 2009, 03:32:33 AM

Title: Tech Pack (v1.1 now)
Post by: USS Frontier on July 15, 2009, 03:32:33 AM
Forgot to say it around here lol

My Tech Pack (http://bridgecommander.filefront.com/file/;101079) to use with FoundationTech is up on BCFiles.
Title: Re: Tech Pack
Post by: MLeo on July 15, 2009, 01:41:30 PM
Nice, it's time someone else did this. ;)

Btw, I spotted one bug in EMPProjectile, line 40, it should say self.nPercentage = 10 and not nPercentage = 10.
I also hope you realise that users that want to add the tech to their projectiles need to import the modules first before they can actually use them?
I can't autoload modules from the scripts/ftb/Tech directory, I actually preload the other techs in the LoadFoundationTech.py in Autoload.

Also an interesting use of the TechDef as a bootstrap for your other logic for weapons fire.


It's a pity that beam techs are currently broken in FTech.
Title: Re: Tech Pack
Post by: USS Frontier on July 15, 2009, 04:49:38 PM
Glad you liked :D

Thanks MLeo.
Another bug on the AutoTargeting, which caused duplicated buttons when creating/ending a QB match, was also found. Already fixed both of them and v1.1 of the pack should be on BCFiles soon, will update here when it does.

The tutorial I included and the instructions on the actual scripts on how to add the projectile techs to a projectile already cover that import thing. For example, this is the code block the tutorial says to add to a projectile script to give it the Nanoprobe tech:
Code: [Select]
try:
import FoundationTech
import ftb.Tech.NanoprobeProjectile
oFire = ftb.Tech.NanoprobeProjectile.NanoprobeProjectileDef('Nanoprobe Projectile')
FoundationTech.dYields[__name__] = oFire
except:
pass

Yeah beam techs could be fun  :lol:
Title: Re: Tech Pack
Post by: MLeo on July 15, 2009, 06:03:37 PM
Yeah, FoundationTech does not yet play nice for GUI. Case of point, Ablative Armour Health Guage.


And sorry about not reading the documentation, yes, I say you should always read it, but, yeah. :P
In your example, you could (and this is why I mentioned it) do this:
Code: [Select]
try:
import FoundationTech
import ftb.Tech.NanoprobeProjectile
oFire = FoundationTech.oTechs['Nanoprobe Projectile']
FoundationTech.dYields[__name__] = oFire
except:
pass
Title: Re: Tech Pack
Post by: USS Frontier on July 15, 2009, 06:19:23 PM
lol


Ok guys, v1.1 is up on BCfiles, already updated the link in the first post with it.