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

set_multiplayer_authority doesn't save 64 bit numbers correctly. #92044

Open
hislittlecuzin opened this issue May 17, 2024 · 1 comment
Open

Comments

@hislittlecuzin
Copy link

hislittlecuzin commented May 17, 2024

Tested versions

Godot 4.2 (mono)
With GD Script

System information

Windows 10 64 bit ryzen 5600. Godot 4.2.1 stable mono official b09f793

Issue description

I have a 64 bit integer I print the value of. It is the correct value.
my number is in the "quadrillions." (5 commas)
When I set the value, it changes to a number in the millions.

Steps to reproduce

Using GD Script

# Example number with commas : 12,345,678,901,234,567
var my_id : int = 12345678901234567

print("My number is : " + str(my_id) )
my_other_node.set_multiplayer_authority(my_id)
print ( "Is my number the same? " + str(my_other_node.get_multiplayer_authority) )

Minimal reproduction project (MRP)

As far as I'm aware this is all you need.
I'm not using Godot's multiplayer API for anything. I WAS using that. The steps to reproduce should be capable of showing you the problem.

@AThousandShips
Copy link
Member

AThousandShips commented May 17, 2024

The value isn't 64 bits, it's 32 bits, this needs to be documented

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

No branches or pull requests

2 participants