question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Change Project ID while playing

See original GitHub issue

I was thinking about implementing multiplayer in my game, and as I thought about how to do this, I thought about the project ID provided by the Packager, which identifies the project when it connects to a cloud variables server.

I was thinking of being able to create 4-player mini rooms in which, thanks to a unique 8-10 digit code generated by TurboWarp, the project ID can change keeping the original ID (for example: Asteroid-) and adding the generated unique code (for example: 841829346) and then connecting to the project ID Asteroid-841829346.

This would allow all players to connect to the same project ID (and so on the same virtual server) without having to create a variable for each existing player as this could be occupied by others on the original project ID and would only create conflicts.

With this method instead it will be sufficient to create P1, P2, P3 and P4, correlated to the position variables etc. The question is: can you then create a cloud ☁️server variable that can change this parameter within the game?

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
TheShovelcommented, Jun 5, 2022

I support this!

0reactions
GarboMuffincommented, Oct 12, 2022

A blank string is one that has a length of 0

A string that just contains a space is a valid room ID

Read more comments on GitHub >

github_iconTop Results From Across the Web

Possible to change a Google Cloud Platform Project ID?
You cannot change project ID. You have an option to use a custom domain, e.g. www.myCompany.com, in which case projectID is something that...
Read more >
How to change project ID in runtime - Unity Forum
Hi, Until Unity 5.1 I was calling in the UnityAnalyticsIntegration.cs "UnityAnalytics.StartSDK(projectId)" from the script and was able to ...
Read more >
Locate the project ID - API Console Help - Google Support
When you first create a project, you can accept the default generated project ID or create your own. A project ID cannot be...
Read more >
Modify a Project | Device Access - Google Developers
Remember that an OAuth Client ID must be valid and unique to a project, and cannot be shared with other projects. Take caution...
Read more >
Creating and managing projects - Documentation
You can use the Google Cloud console to generate a project ID, or you can choose your own. You can only modify the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found