SethRobinson / UGT

Universal Game Translator - Uses Google's Cloud Vision to read and speak dialog from any image/game in any language
https://www.codedojo.com/?p=2426
Other
120 stars 24 forks source link

Installation troubles? #43

Open JohnnyBushido opened 2 years ago

JohnnyBushido commented 2 years ago

Sorry about this but I'm not sure how to properly install the program and set it up using the config file. Is there anyone who could possibly show me how it should look and where to place my sensitive information and codes in the config?

I'd be extremely grateful, thank you!

SethRobinson commented 2 years ago

Hey, you made it over here. :)

Ok, step one is locate config_template.txt. (it's in the same folder as ugt.exe)

Rename to config.txt.

Open it with a text editor - the directions are in the file (they will explain how to get the google api key if you need it), but really the minimum you need to set is change:

google_api_key|yourownkeygoeshere

to:

google_api_key|AIzaSyAvhMEcxpKSBD25ze06p5AlU_IuYtZ2b_g

(I used garbage, but that's what a key looks like)

Save the file and run UGT.EXE and it should be fully functional. Don't worry about enabling Deepl stuff until it's working fine as is.

JohnnyBushido commented 2 years ago

I think I got it going. Is there something I need to disable to prevent google from auto charging me in the future after I pass the mark on free usage, however?

SethRobinson commented 2 years ago

There is a way to set usage quotas directly ( https://console.cloud.google.com/iam-admin/quotas ) but I find that page too confusing and don't use it.

What I do is set an alert if I go over a certain amount spent.

To set that up, go to your Google Cloud console's : budget and alerts

image

Click Create a budget. Set a name then click Next. You can now fill in the amount, like $1 or whatever.

image

Click Next again, then Finish. By default, you'll get emails when you reach half your budget, 90% of it, and finally pass it.