rlapi icon indicating copy to clipboard operation
rlapi copied to clipboard

Obtaining current gameVersion and featureSet

Open LEX0RE opened this issue 5 months ago • 5 comments

Hi,

Thanks for the previous update letting us changing the gameVersion and featureSet. Would it be possible to also have a function to get these to not change them if they are the same for exemple ?

I know there is way to bypass private member, but that would be better to always have a way to get them if you change name of something or stuff like that

LEX0RE avatar Jun 10 '26 19:06 LEX0RE

The SetVersion method is optional, it'll default to the constants if not called

Is that what you meant?

dank avatar Jun 23 '26 00:06 dank

It more that your constants are "private" in golang. I know we can bypass the private of it, but would just want a way to retrieve the gameVersion and featureSet from a PsyNet struct.

In others words, I want a method on PsyNet struct to get gameVersion and featureSet that are public (starting with capitalize letter) just to be sure we will always be able to support the access to gameVersion and featureSet even if you change the name of them for exemple.

LEX0RE avatar Jun 23 '26 16:06 LEX0RE

Sure, I can add something like GetVersion.

Just curious, what’s the use case for needing these constants outside of the API handlers?

dank avatar Jun 23 '26 17:06 dank

It's for getting the current gameVersion and featureSet of the PsyNet struct to not change them for no reason if we detect that the game itself have the same one but still fail.

Here is an exemple of where I manually get them to use them later on the same file : https://github.com/LEX0RE/rockpload/blob/master/app/manager/account_manager.go#L383

LEX0RE avatar Jun 23 '26 19:06 LEX0RE

added this part of v0.1.20

dank avatar Jun 23 '26 23:06 dank