Author Topic: Game freeze  (Read 7933 times)

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Game freeze
« Reply #20 on: April 14, 2009, 03:36:25 AM »
Neither do I, could you attach the following file?

scripts/ftb/Techs/Shields.py

And the contents of scripts/Custom/Techs/ (as a zip)
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 Billz

  • Posts: 1697
  • Cookies: 45
  • Doctor who? ;)
Re: Game freeze
« Reply #21 on: April 14, 2009, 03:39:45 AM »
Here you go.
Can't wait for 2014 to start.

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Game freeze
« Reply #22 on: April 14, 2009, 07:18:59 PM »
My appologies for not responding sooner, I'm afraid to say I haven't found anything yet.

Could you put this in scripts/ftb/Techs/ and then run it again (with the logger), I've added more debug output to it, so if it's the Multivectral part, then it should show.


What did amaze me a little, are the 2 oddities in your Techs directory, PhasedTorpedoV1.py, which contains no tech, and WC_JJrprisebussardWarmUp, which is a carbon (ok, bit) copy of AdonisTMPWarmupScript. :S
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 Billz

  • Posts: 1697
  • Cookies: 45
  • Doctor who? ;)
Re: Game freeze
« Reply #23 on: April 14, 2009, 07:34:42 PM »
My appologies for not responding sooner, I'm afraid to say I haven't found anything yet.

Could you put this in scripts/ftb/Techs/ and then run it again (with the logger), I've added more debug output to it, so if it's the Multivectral part, then it should show.


What did amaze me a little, are the 2 oddities in your Techs directory, PhasedTorpedoV1.py, which contains no tech, and WC_JJrprisebussardWarmUp, which is a carbon (ok, bit) copy of AdonisTMPWarmupScript. :S

I assume you want the latest log again after I re-enabled Multivectral Shields on the luna, with the edited Shields.py in the BC root folder. Its attached.

I have no clue were PhasedTorpedoV1.py came from. As for WC_JJrprisebussardWarmUp, it was from the beta of Wileys v1 of the JJ Prise. It uses mostly the same structure as AdonisTMPWarmupScript but edited to work for the bussard fans on the old beta of Wileys v1 JJ Prise. Guess I just forgot to delete it  :P.

Anyway, with Multivectral Shields enabled again on the Luna, the game is back to freezing. I briefly looked in the latest log but couldn't find anything which seemed wrong. I'll leave it for you to have a gander at the log though.
Can't wait for 2014 to start.

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Game freeze
« Reply #24 on: April 15, 2009, 11:51:15 AM »
Well, it now shows a clear trace (think tracer bullets) to the last know functioning part.
And in this case the call to pShields.RedistributeShields() (a stock function) is causing the freeze.

Ok, here is a modified (again) Shields.py, put it in the same directory as before.
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 Billz

  • Posts: 1697
  • Cookies: 45
  • Doctor who? ;)
Re: Game freeze
« Reply #25 on: April 15, 2009, 08:02:40 PM »
Well, it now shows a clear trace (think tracer bullets) to the last know functioning part.
And in this case the call to pShields.RedistributeShields() (a stock function) is causing the freeze.

Ok, here is a modified (again) Shields.py, put it in the same directory as before.

That adjusted file did the job. Thank you for sticking with this thread.

Can you explain (in simple terms) what went wrong so that I know what to look for if it happens again?
Can't wait for 2014 to start.

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Game freeze
« Reply #26 on: April 16, 2009, 12:12:15 PM »
I was still debugging, I haven't done any type of fix yet.

But please leave the 2 files in (yes, it is kinda a drain, especially if you use the console) for when it happens again. (That is, Shields.py and ConsoleLogger.py)
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 Billz

  • Posts: 1697
  • Cookies: 45
  • Doctor who? ;)
Re: Game freeze
« Reply #27 on: April 17, 2009, 06:03:25 PM »
I was still debugging, I haven't done any type of fix yet.

But please leave the 2 files in (yes, it is kinda a drain, especially if you use the console) for when it happens again. (That is, Shields.py and ConsoleLogger.py)

If it wasn't a fix, then what was the latest build of 'shields.py' that you attached?
Can't wait for 2014 to start.

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Game freeze
« Reply #28 on: April 17, 2009, 06:25:00 PM »
It just contained more/different debug information.
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 Mario

  • Senior Software Developer
  • Administrator
  • Posts: 2200
  • Cookies: 1707
  • Life is life
Re: Game freeze
« Reply #29 on: April 17, 2009, 07:58:51 PM »
@ Mleo

You have an error in the debug line.

Code: [Select]
pShields.GetSingleShieldPercentage(App.SHieldClass.TOP_SHIELDS)

As for the issue I will share the info I have about this particular issue and how you can reproduce it.

Ship with the following shield config causes the freeze

Code: [Select]
ShieldGenerator.SetMaxShields(ShieldGenerator.FRONT_SHIELDS, 12000.000000)
ShieldGenerator.SetMaxShields(ShieldGenerator.REAR_SHIELDS, 10000.000000)
ShieldGenerator.SetMaxShields(ShieldGenerator.TOP_SHIELDS, 10000.000000)
ShieldGenerator.SetMaxShields(ShieldGenerator.BOTTOM_SHIELDS, 10000.000000)
ShieldGenerator.SetMaxShields(ShieldGenerator.LEFT_SHIELDS, 10000.000000)
ShieldGenerator.SetMaxShields(ShieldGenerator.RIGHT_SHIELDS, 10000.000000)

"Fix" would result in the hp config change to

Code: [Select]
ShieldGenerator.SetMaxShields(ShieldGenerator.FRONT_SHIELDS, 10000.000000)
ShieldGenerator.SetMaxShields(ShieldGenerator.REAR_SHIELDS, 10000.000000)
ShieldGenerator.SetMaxShields(ShieldGenerator.TOP_SHIELDS, 10000.000000)
ShieldGenerator.SetMaxShields(ShieldGenerator.BOTTOM_SHIELDS, 10000.000000)
ShieldGenerator.SetMaxShields(ShieldGenerator.LEFT_SHIELDS, 10000.000000)
ShieldGenerator.SetMaxShields(ShieldGenerator.RIGHT_SHIELDS, 10000.000000)

Hope this helps ;)
Acta, non verba.
aka USS Sovereign

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Game freeze
« Reply #30 on: April 18, 2009, 08:27:20 AM »
lol! And it still worked!
Or rather, it didn't and RedistributeShields wasn't called.

So any ship with different shield vector values will trigger this?
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 Mario

  • Senior Software Developer
  • Administrator
  • Posts: 2200
  • Cookies: 1707
  • Life is life
Re: Game freeze
« Reply #31 on: April 18, 2009, 10:47:40 AM »
lol! And it still worked!
Or rather, it didn't and RedistributeShields wasn't called.

So any ship with different shield vector values will trigger this?

I believe so, I didn't go into great lengths investigating this. Sorry.
Acta, non verba.
aka USS Sovereign

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Game freeze
« Reply #32 on: April 18, 2009, 11:08:17 AM »
That's a job for DiamondBC! :P

I wonder if setting the condition of all shields to some reference point (proportional) before actually calling RedistributeShields and afterwards restoring it again would do the trick.
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 Mario

  • Senior Software Developer
  • Administrator
  • Posts: 2200
  • Cookies: 1707
  • Life is life
Re: Game freeze
« Reply #33 on: April 19, 2009, 05:19:28 AM »
That should work :)
Acta, non verba.
aka USS Sovereign

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Game freeze
« Reply #34 on: April 19, 2009, 08:37:44 AM »
I'll see if I can whip something up and attach it here (together with the original shields.py).
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 MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Game freeze
« Reply #35 on: April 20, 2009, 05:42:31 AM »
Took a bit longer (to get started, still was only a 15 minute script).

Here is the DiamondBC_RedistributeShields (goes to Autoload) and the original Shields
Could you see if this solves your problem with a working Multivectral Shielding (assuming you haven't yet fixed the shield properties)?
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 Billz

  • Posts: 1697
  • Cookies: 45
  • Doctor who? ;)
Re: Game freeze
« Reply #36 on: April 20, 2009, 05:52:28 AM »
Took a bit longer (to get started, still was only a 15 minute script).

Here is the DiamondBC_RedistributeShields (goes to Autoload) and the original Shields
Could you see if this solves your problem with a working Multivectral Shielding (assuming you haven't yet fixed the shield properties)?

I'll try it. How will I know for sure that its taken effect though?
Can't wait for 2014 to start.

Offline JimmyB76

  • Posts: 6423
  • Cookies: 421
Re: Game freeze
« Reply #37 on: April 20, 2009, 08:40:05 AM »
lol Billz - you must hold the record for any one person having the most threads/problems posted in Tech Support :P
what on earth do you do to your install to have problem after problem? :P

Offline Billz

  • Posts: 1697
  • Cookies: 45
  • Doctor who? ;)
Re: Game freeze
« Reply #38 on: April 20, 2009, 09:56:18 AM »
lol Billz - you must hold the record for any one person having the most threads/problems posted in Tech Support :P
what on earth do you do to your install to have problem after problem? :P

Its good practice for me. By not starting off with a KM1 based install, I am left to learn about problems not fixed. This way, they can be fixed and I learn a little bit more.
Can't wait for 2014 to start.

Offline JimmyB76

  • Posts: 6423
  • Cookies: 421
Re: Game freeze
« Reply #39 on: April 20, 2009, 11:09:22 AM »
it's a painstaking and torturous way to learn, tho fortunately MLeo comes to the rescue each time...  :)
before KM i had some issues here and there and learned quite a bit by digging through scripts and repairing things with comparing backups and with the guidance of others...
hopefully you're gaining alot of insight rather than breaking things and having someone clean it up for ya; poor MLeo has a million things on his plate also   lol j/k :P

(edit - im just busting your chops...  i know how annoying a broken install can be and the lack of knowledge to be able to fix mistakes made...  but you really should go the KM route to save alot of grief and headaches  :P)
anyway, didnt mean to drag the thread offtopic...  it can veer back ontopic)