You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An example of the empty parameter issue; the following bytes:
[code]1B 6E 04 00 00 00 00 00 00 2C 02 1D FF FF FF FF 4A 4A 1D FF FF FF FF 1D FF FF FF FF 4A 4A 4A 2C 25 16[/code]
Get decompiled as:
[code]BuildItem(2, -1, -1, -1, 37);[/code]
As you can see, the empty parameters (4A) are ignored.
I would expect something similar to:
[code]BuildItem(2, -1, null, null, -1, -1, null, null, null, 37);[/code]
This is the function being called:
[code]noexport function BuildItem(int iItem, optional int iCashCost, optional int iEleriumCost, optional int iAlloyCost, optional int iTime, optional int iMaxEngineers, optional XComGame.XGGameData.ETechType eTechReq, optional XComGame.XGGameData.EItemType eItemReq, optional XComGame.XGGameData.EFoundryTech eFTech, optional int EImage)[/code]
An example of the empty parameter issue; the following bytes:
[code]1B 6E 04 00 00 00 00 00 00 2C 02 1D FF FF FF FF 4A 4A 1D FF FF FF FF 1D FF FF FF FF 4A 4A 4A 2C 25 16[/code]
Get decompiled as:
[code]BuildItem(2, -1, -1, -1, 37);[/code]
As you can see, the empty parameters (4A) are ignored.
I would expect something similar to:
[code]BuildItem(2, -1, null, null, -1, -1, null, null, null, 37);[/code]
This is the function being called:
[code]noexport function BuildItem(int iItem, optional int iCashCost, optional int iEleriumCost, optional int iAlloyCost, optional int iTime, optional int iMaxEngineers, optional XComGame.XGGameData.ETechType eTechReq, optional XComGame.XGGameData.EItemType eItemReq, optional XComGame.XGGameData.EFoundryTech eFTech, optional int EImage)[/code]
Reported by bokauk at http://eliotvu.com/forum/showthread.php?tid=47
[Issue created by eliotvu: 2012-12-08]
[Last updated on bitbucket: 2013-05-15]
[Comment created by eliotvu: 2013-05-15]
[Fix]: Skipped parameters are now decompiled properly for UE3 builds. fixes #11.
→ <>
The text was updated successfully, but these errors were encountered: