bug with Kate Morgental's onDestroy

Post ideas & suggestions you have pertaining to the game here.
Post Reply
User avatar
Prophet
Militia Captain
Militia Captain
Posts: 826
Joined: Tue Nov 18, 2008 6:09 pm

During some playtesting for a mod, I played an entire game and was quite surpised to find that Kate was angry with me when I reached Heretic so I put a tiny mod together to test it.

I added some debug code, but otherwise the code is unmodified:

Code: Select all

(block Nil
	(switch
		; OK if Kate leaves
		(eq aDestroyReason 'enteredStargate)
			Nil
			
		; If player destroyed Kate's ship, then she remembers
		(and gPlayerShip (eq aOrderGiver gPlayerShip))
			(typSetGlobalData &svCorporate; "statusKateM" 'destroyedByPlayer)
		
		; Otherwise, we remembed that she was destroyed
		(typSetGlobalData &svCorporate; "statusKateM" 'destroyed)
		)
	(dbgLog "Kate morgental destroyed reason: "aDestroyReason)
	(dbgLog "statusKateM data: "(typGetGlobalData &svCorporate; "statusKateM"))
	)

I can't determine what exactly aDestroyReason is. Debug.txt shows the following:
Start logging session
Transcendence 1.01
Loading extension: Extensions\kateTest
Kate morgental destroyed reason:
statusKateM data: destroyed
End logging session
Coming soon: The Syrtian War adventure mod!
A Turret defense genre mod exploring the worst era in Earth's history.
Can you defend the Earth from the Syrtian invaders?
Stay tuned for updates!
Bobby
Militia Captain
Militia Captain
Posts: 675
Joined: Wed Jul 25, 2007 7:39 pm

From what I can tell, a ship gating out is considered a ship destroyed. I used G.O.D. mod to order Kate's ship to hold after the mission ended and she was happy to see me at Heritic.
User avatar
Arisaya
Fleet Admiral
Fleet Admiral
Posts: 5535
Joined: Tue Feb 05, 2008 1:10 am
Location: At the VSS Shipyards in the frontier, designing new ships.

yeah, that's definitly a bug!
(shpOrder gPlayership 'barrelRoll)

<New tutorials, modding resources, and official extension stuff coming to this space soon!>
User avatar
Song
Fleet Admiral
Fleet Admiral
Posts: 2831
Joined: Mon Aug 17, 2009 4:27 am

She also had a habit of not recognising the player at all in heretic. Not sure if that is fixed...I've been mod-testing for too long.
Mischievous local moderator. She/Her pronouns.
george moromisato
Developer
Developer
Posts: 2998
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

Definitely a bug! Thank you--I'll check it out. Probably aDestroyReason is not getting set properly when a ship enters a gate.
User avatar
Little Modder
Commonwealth Pilot
Commonwealth Pilot
Posts: 51
Joined: Sun Mar 29, 2009 3:43 pm
Location: Somewhere over the rainbow...

Erm... I had another bug with Kate, but I had a lot of mods.. She didn't attack the Black Market station.. Is this happening because of my mods or is it a bug?
If you cannot say something nice about somebody, you better don't say anything.
-Don't believe me?!? Check it out!! (not recommended)
User avatar
Atarlost
Fleet Admiral
Fleet Admiral
Posts: 2391
Joined: Tue Aug 26, 2008 12:02 am

WE can break corporate cruisers because they mount two launchers.

If you have WE it is responsible. I know other mods that could cause the problem.
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

yes, that's a known bug in the latest version of WE. Kate simply circles the station and do not attack. Usually I destroy the station and then Kate docks with it, resolving the problem, but you get the BM against you. :(
User avatar
Atarlost
Fleet Admiral
Fleet Admiral
Posts: 2391
Joined: Tue Aug 26, 2008 12:02 am

You should do a temporary patch and just not randomize corporate cruisers at all.
Post Reply