Getting text from a game window

Is there an easy way to get text out of the game window in play mode without involving HttpService? If not, I’ll relocate this thread to client features.

Specifically, I want this in text form:

I’ve tried using some free OCRs and Mathematica’s TextRecognize, neither of which recognizes it because it’s not plain English.

1 Like

what are you trying to do? interpret text from an image?

or do you mean just output to somewhere you can save?
Edit: If that’s the case you can print it and it should be in your log files

You could also use DataStores. The easiest would probably be to pick a snapshot of that super long list like you’ve done for the screenshot, save only that part to the DataStore, and then print it out into the output in Studio. That could potentially be more friendly than navigating through log files.

Agh that would’ve made things easy, but the log output cuts off after 256 characters. Printing each row individually produces 30 log files.

How many characters can a stringvalue store? Dump it into stringvalues and use the clipboard to extract?

It’s live networking data from play mode, so I don’t have access to studio.

that will probably work, but I’ll give it until tomorrow and see if someone comes up with something more elegant.

Relocated to client features

How many characters? I can probably give you a solution right now :slight_smile:

Make a request bin:

Run this code

local data = {"ALL YOUR DATAS GO HERE"}
local yourUrl = "http://requestb.in/1792yhm1"
data = game:GetService("HttpService"):JSONEncode(data)
game:GetService("HttpService"):PostAsync(yourUrl, data)

I opened the page and get this:

Great little tool for figuring out what’s up with your requests, but you could also use it for an easy extract

5 Likes

Apparently the limit for StringValues is 200000

Wasn’t there something like error() or using text as (invalid) url in GetAsync that printed it to the log files?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.