Author Topic: Ingame Subsystem adding  (Read 6172 times)

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Ingame Subsystem adding
« Reply #20 on: August 01, 2008, 01:21:02 PM »
Well, the AddSubsystem and it's Remove counterpart need an actual shipsubsystem, not a shipsubsystemproperty (or that's what the error says).
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 KrrKs

  • Posts: 461
  • Cookies: 25
Re: Ingame Subsystem adding
« Reply #21 on: August 01, 2008, 01:36:19 PM »
The "App.PhaserProperty" is the only thing (I know of) which does NOT return the "expecting ...." message. But this returns that "init in line somewhere" in the App.
This messages now are really getting on my nerves.
Could I send the script to some of you, so that you can test yourself? (I know this is normaly a "donut ask" question, but I just can't figure out how to do these two things properly.

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Ingame Subsystem adding
« Reply #22 on: August 01, 2008, 01:39:20 PM »
Have you tried putting a PhaserSystemProperty instance as the argument to App.PhaserSystem()?
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 KrrKs

  • Posts: 461
  • Cookies: 25
Re: Ingame Subsystem adding
« Reply #23 on: August 01, 2008, 04:32:36 PM »
Sorry, I don't get it right now. SBweapon is set up as a PhaserSystemProperty, so what do you mean??? Sorry again, it's now about 11pm here and I'm getting tired.

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Ingame Subsystem adding
« Reply #24 on: August 01, 2008, 05:39:42 PM »
Use AddShipsubsystem like this:
Code: [Select]
AddShipSubsystem(App.PhaserSystem(SBWeapon))
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 KrrKs

  • Posts: 461
  • Cookies: 25
Re: Ingame Subsystem adding
« Reply #25 on: August 01, 2008, 06:25:51 PM »
Ouh, sorry sometimes I'm just as stupid as i look.
Yes I tried that. It returns the same beforementioned "__init__" error in the App, but in line 6448. :?

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Ingame Subsystem adding
« Reply #26 on: August 01, 2008, 06:29:50 PM »
What exactly does it say?

__init__ error doesn't say a thing. It just tells us that an error occured in the function called __init__.
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 KrrKs

  • Posts: 461
  • Cookies: 25
Re: Ingame Subsystem adding
« Reply #27 on: August 01, 2008, 06:42:14 PM »
it's refering to this:
Quote
class PhaserSystem(WeaponSystem):
    PP_LOW = Appc.PhaserSystem_PP_LOW
    PP_MEDIUM = Appc.PhaserSystem_PP_MEDIUM
    PP_HIGH = Appc.PhaserSystem_PP_HIGH
    def __init__(self,*args):
        self.this = apply(Appc.new_PhaserSystem,args)   # line 6448 in which the error ocurs
        self.thisown = 1
in the App. But as there *can't* be a failure in this script and i just dont know which failure I did, i'm  :?

EDIT: Or should I give you a console printout?

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Ingame Subsystem adding
« Reply #28 on: August 01, 2008, 06:43:53 PM »
I know that (I looked it up), but what is the error, what does it say?
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 KrrKs

  • Posts: 461
  • Cookies: 25
Re: Ingame Subsystem adding
« Reply #29 on: August 01, 2008, 06:58:05 PM »
It says this:
Quote
File ".\Scripts\Custom\QBAutostart\SpecialBeam.py", Line 406, in CreatePhaser
pShip.GetPhaserSystem().AddChildSubsystem(App.PhaserProperty(SBWeapon))
File".\Scripts\App.py", Line 9281, in __init__
Attribute Error: __int__
(No Failure, the error in init is named int)

BTW, wasn't there a way to save a complete printout direct out of BC somewhere?

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Ingame Subsystem adding
« Reply #30 on: August 01, 2008, 07:01:12 PM »
Try this code:

Code: [Select]
pShip.GetPhaserSystem().AddChildSubsystem(App.PhaserSystem(SBWeapon))Note the use of PhaserSystem instead of PhaserProperty.
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 KrrKs

  • Posts: 461
  • Cookies: 25
Re: Ingame Subsystem adding
« Reply #31 on: August 01, 2008, 07:09:48 PM »
Just looked over the script again. I already tried this, it is returnig exctli the same error in line 6448 instead of line 9281.

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Ingame Subsystem adding
« Reply #32 on: August 01, 2008, 07:14:34 PM »
Alright, try this one:
pShip.GetPhaserSystem().AddChildSubsystem(App.PhaserSystem(App.PhaserSystem.PP_LOW))
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 KrrKs

  • Posts: 461
  • Cookies: 25
Re: Ingame Subsystem adding
« Reply #33 on: August 01, 2008, 07:22:05 PM »
PP_LOW ????
However this line gets an extra large WHOW, as it is instantly kicking me out of the game!
(I tried twice with two different ships)

Offline KrrKs

  • Posts: 461
  • Cookies: 25
Re: Ingame Subsystem adding
« Reply #34 on: August 01, 2008, 07:47:22 PM »
*sitting alone in the dark*

still anyone out there??

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Ingame Subsystem adding
« Reply #35 on: August 02, 2008, 08:34:06 AM »
Do you want to know when you posted your last 2 posts?

1:22AM and 1:47AM. I'm asleep, hopefully, around those times. ;)


The reason I suggested the PP_LOW, is because it's a constant (actually for the phaser powerlevel) and that the error pointed to the __int__ method, which is used for allowing custom classes to convert themselves to an int(eger).
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 KrrKs

  • Posts: 461
  • Cookies: 25
Re: Ingame Subsystem adding
« Reply #36 on: August 02, 2008, 09:31:31 AM »
Ahh, got it. But since this failed, do you have any other suggestions?

Edit: Are the netherlands on our after Germany or did I just fail to read the Clock? :)

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Ingame Subsystem adding
« Reply #37 on: August 02, 2008, 09:42:23 AM »
In the same timezone.
But your 2 previous posts were posted at 1:22 and 1:47 AM.
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 KrrKs

  • Posts: 461
  • Cookies: 25
Re: Ingame Subsystem adding
« Reply #38 on: August 02, 2008, 09:46:12 AM »
Damn, so I failed reading the clock. I thought it was already 2:15 am

Offline Dalek

  • Posts: 1529
  • Cookies: 206
Re: Ingame Subsystem adding
« Reply #39 on: August 03, 2008, 04:17:42 PM »
Ugh, gobbledeegook. Good idea though.
"To live on as we have is to leave behind joy, and love, and companionship, because we know it to be transitory, of the moment. We know it will turn to ash. Only those whose lives are brief can imagine that love is eternal. You should embrace that remarkable illusion. It may be the greatest gift your race has ever received."

 - Lorien