Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix]: EmptyParmValue #12

Closed
EliotVU opened this issue May 29, 2022 · 0 comments
Closed

[Fix]: EmptyParmValue #12

EliotVU opened this issue May 29, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@EliotVU
Copy link
Collaborator

EliotVU commented May 29, 2022

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.

→ <>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant