Development Notes Six interceptors mod - XCOM:EU 2012

From Nexus Mods Wiki
Jump to: navigation, search

Overview

This contains the Development Notes for the upk changes for the six interceptors mod.

Six_interceptors_mod_-_XCOM:EU_2012

Development Notes

Additional Interceptor UPK hex changes.

Initial information on the following hex changes to the upk code was supplied by johnnylump:

Six Interceptors per base

XGFacility_Hangar changes:

	XGFacility_Hanger.GetAvailableBay
	2b 00 00 2c 04 16 07
	to
	2b 00 00 2c 06 16 07
	 
	XGFacility_Hangar.GetFreeHangerSpots
	04 93 2c 04 35
	to
	04 93 2c 06 35
 
	XGFacility_Hangar.GetTotalInterceptorCapacity
	2c 04 04 90 2c 04
	to
	2c 06 04 90 2c 06
 
	XGFacility_Hangar.SetHangarShipsForKismet (Haven't tried) -- leave -- this assigns bays, which graphically there are only four
	1b 2b 00 00 2c 04 0f 00
	to
	1b 2b 00 00 2c 06 0f 00
	
	XGFacility_Hangar.UpdateHangarBays (Haven't tried) -- leave -- also related to graphical display of hangar bays on home continent
	2b 00 00 2c 04 16 14
	to
	2b 00 00 2c 06 16 14
	
	
XGOutPost.GetFreeHangerSpots
04 2c 04 04 3a
to
04 2c 06 04 3a
 
XGHangarUI.OnChooseCraft
2c 04 16 18 15
to
2c 06 16 18 15
 
UIShipList changes:
 
	UIShipList.UpdateData
	38 53 2c 04 16 1F 29 00
	to
	38 53 2c 06 16 1F 29 00
	 
	2c 04 16 07 84 0a
	to
	2c 06 16 07 84 0a

	UIShipList.HangarSlotAvailable
	01 D0 31 00 00 2C 04 16 04
	to
	01 D0 31 00 00 2C 06 16 04

	UIShipList.OnTransferInterceptor
	01 D0 31 00 00 2C 04 16 16 14 2D 
	to
	01 D0 31 00 00 2C 06 16 16 14 2D 

	UIShipList.AlterSelection
	2C 04 16 0F 01 A5 11
	to
	2C 06 16 0F 01 A5 11
	and
	A8 11 00 00 2C 04 16 18 49
	to
	A8 11 00 00 2C 06 16 18 49

	UIShipList.OnMouseEvent
	DF 11 00 00 2C 04 16 18 28 00 9A 01
	to
	DF 11 00 00 2C 06 16 18 28 00 9A 01


Both the continent and craft arrays are dynamic arrays, which is good.

Amazingly, these 12 changes and the actionscript UI change all appear to work, on the first try.


References

Referred to by this article:

That refer to this article: