Open Coxxs opened 2 months ago
Nice catch! I think the problem is that Nintendo has reset the revision number back to 0 in the 4.0.0 release... otherwise there would be no issues. Do you have an idea how we can fix this properly?
I thought about this today, but didn't come up with a good solution... Maybe it can be written like this in .proto
, but I'm not sure if this can be parsed easily in generate_protocols.py
If I'm understanding correctly, when
nex.version >= 40000
, a field withnex.version >= 30800 and revision >= 3
should still be enabled. However, in the currently generated code, some fields are unexpectedly disabled when nex.version >= 40000.Example: When
nex.version = 41000
andrevision = 0
, these fields are end up being disabled:user_password
,refer_gid
,user_password_enabled
,system_password_enabled
https://github.com/kinnay/NintendoClients/blob/50c68c207a04f955b4ccbee4f0f8b80b5288663e/nintendo/nex/matchmaking.py#L361-L370