Author Topic: Tech Pack (v1.1 now)  (Read 1318 times)

Offline USS Frontier

  • Posts: 176
  • Cookies: 562
Tech Pack (v1.1 now)
« on: July 15, 2009, 03:32:33 AM »
Forgot to say it around here lol

My Tech Pack to use with FoundationTech is up on BCFiles.
"Revenge is a dish best served cold"
                    -Old Klingon Proverb
GravityFX Download
Galaxy Charts Download

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Tech Pack
« Reply #1 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.
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 USS Frontier

  • Posts: 176
  • Cookies: 562
Re: Tech Pack
« Reply #2 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:
"Revenge is a dish best served cold"
                    -Old Klingon Proverb
GravityFX Download
Galaxy Charts Download

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Tech Pack
« Reply #3 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
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 USS Frontier

  • Posts: 176
  • Cookies: 562
Re: Tech Pack
« Reply #4 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.
"Revenge is a dish best served cold"
                    -Old Klingon Proverb
GravityFX Download
Galaxy Charts Download