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

Generator appears to generate broken enums #38

Closed
KulaGGin opened this issue Jul 31, 2023 · 3 comments
Closed

Generator appears to generate broken enums #38

KulaGGin opened this issue Jul 31, 2023 · 3 comments

Comments

@KulaGGin
Copy link

KulaGGin commented Jul 31, 2023

For some reason, generator generates enums of type uint8 and then puts bigger values in them, bigger than the type can handle. Here's an example:

enum class EAkSpeakerConfiguration : uint8
{
	Ak_Speaker_Front_Left          = 1,
	Ak_Speaker_Front_Right         = 2,
	Ak_Speaker_Front_Center        = 4,
	Ak_Speaker_Low_Frequency       = 8,
	Ak_Speaker_Back_Left           = 16,
	Ak_Speaker_Back_Right          = 32,
	Ak_Speaker_Back_Center         = 256,
	Ak_Speaker_Side_Left           = 512,
	Ak_Speaker_Side_Right          = 1024,
	Ak_Speaker_Top                 = 2048,
	Ak_Speaker_Height_Front_Left   = 4096,
	Ak_Speaker_Height_Front_Center = 8192,
	Ak_Speaker_Height_Front_Right  = 16384,
	Ak_Speaker_Height_Back_Left    = 32768,
	Ak_Speaker_Height_Back_Center  = 65536,
	Ak_Speaker_Height_Back_Right   = 131072,
	Ak_Speaker_MAX                 = 131073,
};

There are many of them like this.

Generated SDK:
5.1.1-0+++UE5+Release-5.1-Polaris.zip

@Fischsalat
Copy link
Collaborator

I know about that issue, need to fix it.

@KulaGGin
Copy link
Author

Does it break offsets of fields that go after the enum fields?

@Fischsalat
Copy link
Collaborator

no

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants