Tool RPGM DazedMTLTool - A tool that provides quality MTL translations using ChatGPT

5.00 star(s) 1 Vote

kolomodel

Newbie
Dec 30, 2017
71
315
Hi, did anyone try running self-hosted unlocked deepseek R1 with this tool? If so then how do I set it up in the .env file?

I'm using a huihui_ai/deepseek-r1-abliterated:32b on Ollama and I managed to set it up so I can access it on my laptop using chatboxAI.app while it's working on my PC, but no luck with the DazedMTLTool. I can't figure it out.
 
Last edited:
Apr 18, 2024
207
172
Hi, did anyone try running self-hosted unlocked deepseek R1 with this tool? If so then how do I set it up in the .env file?

I'm using a huihui_ai/deepseek-r1-abliterated:32b on Ollama and I managed to set it up so I can access it on my laptop using chatboxAI.app while it's working on my PC, but no luck with the DazedMTLTool. I can't figure it out.
good luck trying to translate with local llm, its going to take several hours, even for short games dont expect less than 10h (I didnt use dazedtool but made my own, but result will be same, local llm is way too slow) and you will get much more errors (translation, structure, etc.)...just use deepseek v3 api and it will translate everything under 5 bucks at discount hours. As for the .env, just look up ollama api documentation
 

firegame9231

New Member
Jul 28, 2019
5
6
Hi, did anyone try running self-hosted unlocked deepseek R1 with this tool? If so then how do I set it up in the .env file?

I'm using a huihui_ai/deepseek-r1-abliterated:32b on Ollama and I managed to set it up so I can access it on my laptop using chatboxAI.app while it's working on my PC, but no luck with the DazedMTLTool. I can't figure it out.
If Ollama is running you should be able to put default url and your model Screenshot 2025-05-13 041706.png
Probably need a model that is quantized, when i tested it took about 3 minutes to translate Actors.json
 
  • Like
Reactions: kolomodel

Alvillo

Member
Jul 20, 2020
377
240
1747168026964.png
If Ollama is running you should be able to put default url and your model View attachment 4834713
Probably need a model that is quantized, when i tested it took about 3 minutes to translate Actors.json
Does anyone have this configuration?
Why doesn't it load anything, not even a single line, and just sits there doing nothing?
Or has it updated and should I use your configuration?
 

firegame9231

New Member
Jul 28, 2019
5
6
Does anyone have this configuration?
Why doesn't it load anything, not even a single line, and just sits there doing nothing?
Or has it updated and should I use your configuration?
What do you have running on http://localhost:1337/ you should have a server and model running like below lmstudio-screen.jpg
Screenshot 2025-05-13 141633.png
Additionally you might need for force a json_schema like this around line 2560 of rpgmakermvmz.py because some models are too stupid to structure their output.
Screenshot 2025-05-13 142212.png

I would recommend to test on something small like Actors.json to see if it even works. Alot of models out there are dumb and slow.
 

Alvillo

Member
Jul 20, 2020
377
240
What do you have running on http://localhost:1337/ you should have a server and model running like below View attachment 4836375
View attachment 4836377
Additionally you might need for force a json_schema like this around line 2560 of rpgmakermvmz.py because some models are too stupid to structure their output.
View attachment 4836393

I would recommend to test on something small like Actors.json to see if it even works. Alot of models out there are dumb and slow.
Where can I see the different AI models and IP addresses?
 

Alvillo

Member
Jul 20, 2020
377
240

Does anyone know how to use this?
I tried git but I don't understand how to make it work.
I want to be able to generate images and such. If anyone could help me, I'd really appreciate it. u.u
 
Apr 18, 2024
207
172

Does anyone know how to use this?
I tried git but I don't understand how to make it work.
I want to be able to generate images and such. If anyone could help me, I'd really appreciate it. u.u
just follow the guide (scroll down, you will see it) and if you really have zero clue and never even touched git/python then I recommend you to watch some youtube videos about it and a small python course for the basics

Edit: And use chatgpt to explain things for you, best use case
 

Alvillo

Member
Jul 20, 2020
377
240
just follow the guide (scroll down, you will see it) and if you really have zero clue and never even touched git/python then I recommend you to watch some youtube videos about it and a small python course for the basics

Edit: And use chatgpt to explain things for you, best use case
I've already done all the steps and everything, but how do I get it to generate the images where I paste that code? In a video, it told me to open it with VSC, and I did, but nothing. xD
 

kolomodel

Newbie
Dec 30, 2017
71
315
If Ollama is running you should be able to put default url and your model View attachment 4834713
Probably need a model that is quantized, when i tested it took about 3 minutes to translate Actors.json
I still wasn't able to make it run, but thank you for trying to help me. I was able to "call" through terminal, but the Tool is just not connecting.

I actually took Destruction9000's advice and connected to official deepseek V-3. I was a little shocked how cheap it is for a pretty good quality, so there is no point spend time and energy looking for the mistake that's causing me issues.
 

PotatoBoi647

Newbie
Jul 8, 2020
57
44
tried using chutes.ai API and i am facing error for some reason. Error code 404. "No matching Cord found" Screenshot 2025-05-17 152411.png
 
Last edited:

dazedanon

Certified Phony Translator
Modder
Uploader
Donor
Jul 24, 2017
2,873
36,567
whats the best way to find names and genders in rpgm? actors file doesnt include everyone
There is no easy way. You can try decrypting all the images and checking if there are images of the characters with names or just play the game until you find most of the important ones.
 
  • Like
Reactions: cpammy

Alvillo

Member
Jul 20, 2020
377
240
Ah I like to share this since I just started using your tool dazedanon some days ago!
There's a project called gpt4free which has chatgpt-4o API for free which I've been using!
They have multiple models (not just 4o) and it works really well!

However you'll have to edit the "extractTranslation" part of the dazedanon's dazedMTL modules code because sometimes the
response from the api has this in it's response:
Code:
 json {
"Line1": "Kisaragi Merrie\n\"This place\nlooks like some kind of shop~♡\"",
"Line2": "Kisaragi Merrie\n\"If I had money, maybe I could buy something~♡\""
}
The issue being that "json" is the first line in the response (instead of starting with Line1), you'll get this error " extractTranslation Error: Expecting value: line 1 column 1 (char 0) on String" if you don't edit and add this code that I made!


Here's this code to make it work with extracting translations with that json as the first line, add it within the "extractTranslation" function:

Code:
        # Ensure that the string starts with '{' and ends with '}', if not, attempt to find the JSON part
        if not translatedTextList.strip().startswith("{") or not translatedTextList.strip().endswith("}"):
            # Attempt to extract JSON-like content within the curly braces
            PBAR.write(f"Attempting to extract valid JSON from: {translatedTextList}")
            json_start = translatedTextList.find("{")
            json_end = translatedTextList.rfind("}") + 1
            if json_start != -1 and json_end != -1:
                translatedTextList = translatedTextList[json_start:json_end]
            else:
                raise ValueError("No valid JSON content found")
If you're confused on where to add it, don't worry as I'll help ya out!
When you download the dazedMTL project, within the folder is called "modules".
Each module is made to translate various different games and formats!

So let's say you want to translate an RPGMaker MV/MZ game? Then you'll have to open the
"rpgmakermvmz.py" in a text editor like notepad++ (or notepad if you want), VSCode, etc and
then search for this text: "extractTranslation".

Once you find it, you'll have to insert the code I provided above within! Here's an example of my
edit of the currently updated rpgmakermvmz.py (as of writing this) function, and what it's supposed to look like:


Code:
def extractTranslation(translatedTextList, is_list):
    try:
        # Apply regex modifications as before
        translatedTextList = re.sub(r'\\"+\"([^,\n}])', r'\\"\1', translatedTextList)
        translatedTextList = re.sub(r"(?<![\\])\"+(?!\n)", r'"', translatedTextList)

        # Ensure that the string starts with '{' and ends with '}', if not, attempt to find the JSON part
        if not translatedTextList.strip().startswith("{") or not translatedTextList.strip().endswith("}"):
            # Attempt to extract JSON-like content within the curly braces
            PBAR.write(f"Attempting to extract valid JSON from: {translatedTextList}")
            json_start = translatedTextList.find("{")
            json_end = translatedTextList.rfind("}") + 1
            if json_start != -1 and json_end != -1:
                translatedTextList = translatedTextList[json_start:json_end]
            else:
                raise ValueError("No valid JSON content found")

        # Load the JSON response
        line_dict = json.loads(translatedTextList)
        # If it's a batch (i.e., list), extract with tags; otherwise, return the single item.

        # Extract the values
        string_list = list(line_dict.values())

        # Only print the raw response and detected translations when successful
        PBAR.write(f"Successfully detected translation: {string_list}")

        if is_list:
            return string_list
        else:
            return string_list[0]

    except Exception as e:
        # In case of an error, this block will already print out the raw input
        PBAR.write(f"extractTranslation Error: {e} on String {translatedTextList}")
        return None
Once this is added, you'll be able to use gpt4free's api with no issue!
Now I've tested translating an RPGMaker MZ game and the translation works great!
I had to edit some text when I was translating just the system.json file though (sometimes
the api doesn't simply translate and instead explains what the japanese line means in english.)

But for everything else, it's works wonders!

Okay if you want to try gpt4free if you don't want to pay for chatgpt-4o, here's my instructions on how to run it below!

Project Link:


Make sure to have python 3.12+ (3.10+ for just gpt4free, but 3.12+ needed for dazedanon's tool) installed!

If you want to install it and test it right now, simply type this in a terminal/console window:
"pip install -U g4f[all]"

This will install and upgrade all of gpt4free and any requirements needed to run it!
If you want to learn more about running the gui and such with gpt4free
then check the project page above for further instructions on that!

Anyways once that's done, edit your .env and put this in for the api url:
"http://localhost:1337/v1/"

Make sure that the api url has the / at the end and doesn't look like this!
"http://localhost:1337/v1"

Otherwise it won't work and you'll get errors!

and as for API Key, just type in any number in it (it can't be empty otherwise nothing will work when using the api).
#API key
key="1111"



Then for organization, just type "org-" followed by any word you want to use for it like in this example:
organization="org-CuteAndFunny"

Next, as for what to type in model, you can use chatgpt-4o with this:
Code:
model="gpt-4o"
and if you want to try other models (o1 and o1-mini is currently not working, but in the future it may work as gpt4free is updated so you can switch to that once chatgpt o1 becomes more available.)

Here's a direct link with the list of models to try out, they're all openai compatible but I haven't tested them all:


Now run "g4f api" in your terminal/console and api should be up and running hopefully!
Then run dazedanon's tool and translate away!
Hello
How could I use it, excuse me?
 

Alvillo

Member
Jul 20, 2020
377
240
Ah just follow the instructions in my post and you'll be able to use it properly!
Yes.
I did it and everything, but I'm getting a lot of errors and such.
And what's the estimated wait time?
It says it takes 12 or 30 hours, lol.
Or is there an update?
 
Apr 18, 2024
207
172
Yes.
I did it and everything, but I'm getting a lot of errors and such.
And what's the estimated wait time?
It says it takes 12 or 30 hours, lol.
Or is there an update?
bro just use ai tools to fix your problems, you can ask for grok3 for guides (deepsearch), claude for debugging and gemini 2.5pro for code
 

kukuru97

Member
May 31, 2019
117
177
What do you have running on http://localhost:1337/ you should have a server and model running like below View attachment 4836375
View attachment 4836377
Additionally you might need for force a json_schema like this around line 2560 of rpgmakermvmz.py because some models are too stupid to structure their output.
View attachment 4836393

I would recommend to test on something small like Actors.json to see if it even works. Alot of models out there are dumb and slow.
I got an error like this

1748910584761.png
1748910601941.png
 
5.00 star(s) 1 Vote