pizzaboxer / bloxstrap

An alternative bootstrapper for Roblox with a bunch of extra features.
https://bloxstraplabs.com
MIT License
1.68k stars 284 forks source link

this isn't really an issue but more a question #1086

Closed Jedi-Coder1 closed 9 months ago

Jedi-Coder1 commented 9 months ago

how does bloxstrap know what game i'm playing on roblox

i just want to know

EpixScripts commented 9 months ago

It reads the log file and gets the place ID.

Jedi-Coder1 commented 9 months ago

It reads the log file and gets the place ID.

where is the log file located?

EpixScripts commented 9 months ago

It reads the log file and gets the place ID.

where is the log file located?

%localappdata%/Roblox/logs

Jedi-Coder1 commented 9 months ago

It reads the log file and gets the place ID.

where is the log file located?

%localappdata%/Roblox/logs

when does the log file show a game connection being made

EpixScripts commented 9 months ago

It reads the log file and gets the place ID.

where is the log file located?

%localappdata%/Roblox/logs

when does the log file show a game connection being made

[FLog::Output] ! Joining game '<jobid>' place <placeid> at <ipaddress>

Jedi-Coder1 commented 9 months ago

It reads the log file and gets the place ID.

where is the log file located?

%localappdata%/Roblox/logs

when does the log file show a game connection being made

[FLog::Output] ! Joining game '<jobid>' place <placeid> at <ipaddress>

your crazy dude thanks so much

PS> how do you know so much about this?

pizzaboxer commented 9 months ago

how do you know so much about this?

He's one of the contributors for it.

Also, all the code for it can be found at https://github.com/pizzaboxer/bloxstrap/blob/main/Bloxstrap/Integrations/ActivityWatcher.cs. Feel free to ask any more questions if you wish.

Jedi-Coder1 commented 8 months ago

i have another question

Jedi-Coder1 commented 8 months ago

is it possible to control roblox from an external program?

pizzaboxer commented 8 months ago

By "control roblox", do you mean controlling player movement and stuff externally? If so, no, not without hacks or exploits.

Jedi-Coder1 commented 8 months ago

like forcing the player to join servers

EpixScripts commented 8 months ago

like forcing the player to join servers

That's what Bloxstrap does, although "force" is a strange word to use. It launches with the roblox-player: URI, which is supposed to already be registered in the Windows registry to link to the launcher executable. Then, the data after roblox-player: gets passed directly as a command line argument to the launcher, which includes stuff like the place ID you're joining.

Jedi-Coder1 commented 8 months ago

how do you calculate the args?

pizzaboxer commented 8 months ago

like forcing the player to join servers

The same way that the stock Roblox launcher does.

The Roblox website starts the launcher while also giving it a bunch of data, which contains user auth info and game join info. The launcher then starts the game client while passing that data to it.

This Wiki page might describe it a bit clearer: https://github.com/pizzaboxer/bloxstrap/wiki/A-deep-dive-on-how-the-Roblox-bootstrapper-works#protocoluri-handling

Jedi-Coder1 commented 8 months ago

how would you use the URI to join a private server from link?

pizzaboxer commented 8 months ago

I forgot to provide the parameters available for the roblox:// deeplink, check the page again. Private server authorization is done with either an accessCode (code used when joining a private server you have access to) or a linkCode (code from a private server join link). roblox-player URIs have a similar thing, but they're not important since you won't be able to join games with them by just hand-creating them.

Jedi-Coder1 commented 8 months ago

would it work something like this?

"roblox://experiences/start?linkCode=(private server code here)"

pizzaboxer commented 8 months ago

You would also need to supply an instance ID too, but yes