Author Topic: Does anyone have a .py copy of ZZ_PulseDefiant?  (Read 1473 times)

Offline Kirk

  • Posts: 1438
  • Cookies: 139
    • My Released Mods
Does anyone have a .py copy of ZZ_PulseDefiant?
« on: July 12, 2008, 01:20:05 AM »
I am getting this error, and I need to fix it.

Offline JimmyB76

  • Posts: 6423
  • Cookies: 421
Re: Does anyone have a .py copy of ZZ_PulseDefiant?
« Reply #1 on: July 12, 2008, 02:20:21 AM »
Defiant used to have a pyc decompiler, tho it has been long gone for a while...  and i, personally, have not been able to find another pyc decompiler for BC anywhere out there...  and i did try to PM Defiant asking him about it (im sure he has had many PMs asking him about it, so i wouldnt much recommend asking him also lol)
most of Zan's (ZZ=ZambieZan) projectiles are only given in pyc...  perhaps you could contact Zan for that specific projectile?  or use a different pulse weapon for that ship?

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Does anyone have a .py copy of ZZ_PulseDefiant?
« Reply #2 on: July 12, 2008, 09:02:35 AM »
Normally, GetLifetime doesn't get called, none of the stock scripts have it.

Can you put up the file?
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 Kirk

  • Posts: 1438
  • Cookies: 139
    • My Released Mods
Re: Does anyone have a .py copy of ZZ_PulseDefiant?
« Reply #3 on: July 12, 2008, 09:34:41 AM »
Sure, here it is.

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Does anyone have a .py copy of ZZ_PulseDefiant?
« Reply #4 on: July 13, 2008, 06:25:11 PM »
Put this file in scripts/Custom/Autoload/ and it will modify ZZ_PulseDefiant so that it won't give that error anymore.
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 Kirk

  • Posts: 1438
  • Cookies: 139
    • My Released Mods
Re: Does anyone have a .py copy of ZZ_PulseDefiant?
« Reply #5 on: July 13, 2008, 06:27:16 PM »
That worked, thanks a bunch MLeo!

Offline JimmyB76

  • Posts: 6423
  • Cookies: 421
Re: Does anyone have a .py copy of ZZ_PulseDefiant?
« Reply #6 on: July 13, 2008, 06:46:35 PM »
MLeo - just out of curiosity, do you have a decompiler? 

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Does anyone have a .py copy of ZZ_PulseDefiant?
« Reply #7 on: July 13, 2008, 06:51:55 PM »
Nope, unfortunately not.
Except the one that comes with a standard Python 1.5.2 install.

But that doesn't produce human readable output (assuming programmers are just a subset, or specialization of humans ;)).

In fact, I debugged it (well, I could just have written the fix, but I wasn't entirely sure) through something called a "turtle", or a "mock" (in fact, the real term is "mockturtle").

I added a mock App, imported the module, and I passed a mock projectile to the Create and saw what happend, namely, a Function not found, just as the error above. :P Meaning it wasn't some fundamentally bigger problem.

So yeah, I didn't test (either) in BC. *Whistles a bit*
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 Kirk

  • Posts: 1438
  • Cookies: 139
    • My Released Mods
Re: Does anyone have a .py copy of ZZ_PulseDefiant?
« Reply #8 on: July 14, 2008, 12:50:27 AM »
Hey, MLeo would you mind if, along with an updated hardpoint I made, I upload this fix to BCF? I'm sure others would appreciate it, and I would give you proper credit in the readme.

Offline JimmyB76

  • Posts: 6423
  • Cookies: 421
Re: Does anyone have a .py copy of ZZ_PulseDefiant?
« Reply #9 on: July 14, 2008, 08:28:39 AM »
youd better get Zan's permission tho...  im sure there is a reason he only includes pycs for his weapons in his ships and not pys...

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Does anyone have a .py copy of ZZ_PulseDefiant?
« Reply #10 on: July 14, 2008, 09:02:13 AM »
You should take a look inside the file. ;)

It's such a simple thing, but a mention is nice.

But you should contact Zambi Zan, especially if he can fix it without the need for an external fix. ;)
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 Kirk

  • Posts: 1438
  • Cookies: 139
    • My Released Mods
Re: Does anyone have a .py copy of ZZ_PulseDefiant?
« Reply #11 on: July 14, 2008, 09:46:29 AM »
youd better get Zan's permission tho
But you should contact Zambi Zan
Don't worry I did. :wink: I want to release it with a blinker hp I did for one of his and WZ's ships.

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Does anyone have a .py copy of ZZ_PulseDefiant?
« Reply #12 on: July 14, 2008, 11:02:44 AM »
Just giving you more reason to do that. ;)
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.