Does anyone know what could be happening? I've already tried changing the compatibility as well, I'm also using the latest version but the translation within the application still doesn't work, I've only been able to translate a config file from another mod, but now that I try to translate another one, the application always throws me an error when I use the tool within the application.🤔
Hello everyone, sorry but it gives me this error: 20240614_204058: '0' non è un valore valido per 'index'. 'indice' deve essere compreso tra 0 e -1. Parameter name: index in System.Windows.Forms.HtmlElementCollection.get_Item(Int32 indice) in SimpleMcmJsonTranslator.Lib.GoogleTranslate.GetElementsByTagName(String tag) in SimpleMcmJsonTranslator.Lib.GoogleTranslate.Translation(List`1 target, Action`1 action) in SimpleMcmJsonTranslator.SimpleMcmTranslator.<TmiGoogleTranslation_Click>b__65_0() in SimpleMcmJsonTranslator.SimpleMcmTranslator.TranslationByGoogle(Azione azione) in SimpleMcmJsonTranslator.SimpleMcmTranslator.TmiGoogleTranslation_Click(Mittente oggetto, EventArgs e) in SimpleMcmJsonTranslator.SimpleMcmTranslator.BtnApi_Click(Mittente oggetto, EventArgs e ) in System.Windows .Forms.Control.OnClick(EventArgs e) in System.Windows.Forms.Button.OnClick(EventArgs e) in System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) in System.Windows.Forms.Control.WmMouseUp(Message& m, pulsante MouseButtons, clic Int32) in System.Windows.Forms.Control.WndProc(Message& m) in System.Windows.Forms.ButtonBase.WndProc(Message& m) in System.Windows.Forms.Button.WndProc(Message& m) in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
What could it be? I use Windows 11. Thank you and sorry for the inconvenience
Hello. Is this log an error with the latest version? If not, please try using the latest version. If the error still occurs with the latest version, please try the workaround in the thread below.
hello I get this error when trying to translate with Google
Spoiler:
Show
Error An error has occurred: The value of 'O' is not valid for 'index', 'index' should be between O and -1. Parameter name: index Please report the contents of the error file.log into the directory of records (logs). Accept vrmenncomuat
Spoiler:
Show
20240601_151844: El valor de '0' no es válido para 'index'. 'index' debería estar entre 0 y -1. Nombre del parámetro: index en System.Windows.Forms.HtmlElementCollection.get_Item(Int32 index) en SimpleMcmJsonTranslator.Lib.GoogleTranslate.GetElementsByTagName(String tag) en SimpleMcmJsonTranslator.Lib.GoogleTranslate.Translation(List`1 target, Action`1 action) en SimpleMcmJsonTranslator.SimpleMcmTranslator.<TmiGoogleTranslation_Click>b__65_0() en SimpleMcmJsonTranslator.SimpleMcmTranslator.TranslationByGoogle(Action action) en SimpleMcmJsonTranslator.SimpleMcmTranslator.TmiGoogleTranslation_Click(Object sender, EventArgs e) en SimpleMcmJsonTranslator.SimpleMcmTranslator.BtnApi_Click(Object sender, EventArgs e) en System.Windows.Forms.Control.OnClick(EventArgs e) en System.Windows.Forms.Button.OnClick(EventArgs e) en System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) en System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) en System.Windows.Forms.Control.WndProc(Message& m) en System.Windows.Forms.ButtonBase.WndProc(Message& m) en System.Windows.Forms.Button.WndProc(Message& m) en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
The error was reproduced, but just rebuilding the system stopped the error. Please try a newer version. Please comment if the error is not fixed. It seems to work fine, at least on my PC.
I have downloaded the latest version and it is still the same, when I click on translate with Google it crashes.
Spoiler:
Show
20240604_212920: El valor de '0' no es válido para 'index'. 'index' debería estar entre 0 y -1. Nombre del parámetro: index en System.Windows.Forms.HtmlElementCollection.get_Item(Int32 index) en SimpleMcmJsonTranslator.Lib.GoogleTranslate.GetElementsByTagName(String tag) en SimpleMcmJsonTranslator.Lib.GoogleTranslate.Translation(List`1 target, Action`1 action) en SimpleMcmJsonTranslator.SimpleMcmTranslator.<TmiGoogleTranslation_Click>b__65_0() en SimpleMcmJsonTranslator.SimpleMcmTranslator.TranslationByGoogle(Action action) en SimpleMcmJsonTranslator.SimpleMcmTranslator.TmiGoogleTranslation_Click(Object sender, EventArgs e) en SimpleMcmJsonTranslator.SimpleMcmTranslator.BtnApi_Click(Object sender, EventArgs e) en System.Windows.Forms.Control.OnClick(EventArgs e) en System.Windows.Forms.Button.OnClick(EventArgs e) en System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) en System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) en System.Windows.Forms.Control.WndProc(Message& m) en System.Windows.Forms.ButtonBase.WndProc(Message& m) en System.Windows.Forms.Button.WndProc(Message& m) en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I have uploaded a version of the Google Translate code that I have reviewed. Please check that it is working fine on my PC. If it does not work, I am outputting a log of the operation to logstranslate.log, so it would be helpful if you could report the contents.
ok, ty. I'll try it and tell you the result. ---------------------------------------------------------------- now no CTD, but it still gives error in google translation
Hi, it seems to be failing to open the site. My computer is accessing the URL correctly, so there must be something else wrong. Please try the following
-Run as administrator and see if Google Translate is available. The built-in browser is an old technology from the IE days and needs to be registered in the registry before you can use it. In some cases, administrator privileges are required.
-Open "SimpleMcmJsonTranslator.xml" in a text editor and change the value of “debugFlg” from “false” to “true”. This will display the built-in browser screen. Check the display to see if the Google site is open when you run the translation. A screenshot would be helpful if possible.
If the Google Translate page does not open, there may be a network block against SMJT. Check your Windows firewall or other security product if you have one.
Thanks friend, I changed what you told me, debugFlg, to true and it works for me now.
Hello, the program works very well. Is there a way to make the Google Translate window smaller? It takes up the entire translator screen and I can't see what I'm going to translate. thank you
Hi kylie..., If you want, you can incorporate my translation to spanish to the mod (no need for acknowledgement). It is only for the MCM menu. If It changes, I can help with actualization.
Thanks for pointing that out. We have downloaded the Spanish file and incorporated it into the next update. If you find any strange translations in the future when adding messages, I would appreciate it if you could point them out to me.
this is a wonderful app and I have a suggestion,would u addjust the time of the interval of google translating ,that will be more wonderful, thank you for what you do haha
It appears that the Google Translate interval was being run twice. It is now also possible to set the minimum interval setting to 3 seconds. It may run faster than before, but if your translations are not stable, please increase the value.
I find that some other people have the same problem. I wonder if this problem is related to the Windows11 system? The first time I download and run simpleMCM, Windows asks me if I want to run it.
My PC is also Windows 11, so that is not the only reason. As for the program's processing, you can read the json by setting the source and destination languages in the options. I have uploaded a version with this checked process removed in the options. However, Google Translate may not work with this test version.
Another possibility is the process of registering the registry for Google Translate. This process takes place when the application is launched, so there could be a problem there. This can be checked with the following steps 1. start SimpleMcmJsonTranslator. 2. 2. open the dialog box with Win+R, type regedit and run it. 3. open "\HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION" 4. check for an entry named "SimpleMcmJsonTranslator.exe
Wow, thank you so much for all your hard work. But I seem to have solved the problem. After I set up Desination Language, I had to reboot Simple MCM to make it work! Anyway, thank you again! OvO!
51 comments
20240614_204058: '0' non è un valore valido per 'index'. 'indice' deve essere compreso tra 0 e -1.
Parameter name: index
in System.Windows.Forms.HtmlElementCollection.get_Item(Int32 indice)
in SimpleMcmJsonTranslator.Lib.GoogleTranslate.GetElementsByTagName(String tag)
in SimpleMcmJsonTranslator.Lib.GoogleTranslate.Translation(List`1 target, Action`1 action)
in SimpleMcmJsonTranslator.SimpleMcmTranslator.<TmiGoogleTranslation_Click>b__65_0()
in SimpleMcmJsonTranslator.SimpleMcmTranslator.TranslationByGoogle(Azione azione)
in SimpleMcmJsonTranslator.SimpleMcmTranslator.TmiGoogleTranslation_Click(Mittente oggetto, EventArgs e)
in SimpleMcmJsonTranslator.SimpleMcmTranslator.BtnApi_Click(Mittente oggetto, EventArgs e )
in System.Windows .Forms.Control.OnClick(EventArgs e)
in System.Windows.Forms.Button.OnClick(EventArgs e)
in System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
in System.Windows.Forms.Control.WmMouseUp(Message& m, pulsante MouseButtons, clic Int32)
in System.Windows.Forms.Control.WndProc(Message& m)
in System.Windows.Forms.ButtonBase.WndProc(Message& m)
in System.Windows.Forms.Button.WndProc(Message& m)
in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
What could it be? I use Windows 11. Thank you and sorry for the inconvenience
If not, please try using the latest version.
If the error still occurs with the latest version, please try the workaround in the thread below.
I get this error when trying to translate with Google
An error has occurred:
The value of 'O' is not valid for 'index', 'index' should be between O and -1.
Parameter name: index
Please report the contents of the error file.log into the directory of
records (logs).
Accept
vrmenncomuat
Nombre del parámetro: index
en System.Windows.Forms.HtmlElementCollection.get_Item(Int32 index)
en SimpleMcmJsonTranslator.Lib.GoogleTranslate.GetElementsByTagName(String tag)
en SimpleMcmJsonTranslator.Lib.GoogleTranslate.Translation(List`1 target, Action`1 action)
en SimpleMcmJsonTranslator.SimpleMcmTranslator.<TmiGoogleTranslation_Click>b__65_0()
en SimpleMcmJsonTranslator.SimpleMcmTranslator.TranslationByGoogle(Action action)
en SimpleMcmJsonTranslator.SimpleMcmTranslator.TmiGoogleTranslation_Click(Object sender, EventArgs e)
en SimpleMcmJsonTranslator.SimpleMcmTranslator.BtnApi_Click(Object sender, EventArgs e)
en System.Windows.Forms.Control.OnClick(EventArgs e)
en System.Windows.Forms.Button.OnClick(EventArgs e)
en System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
en System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
en System.Windows.Forms.Control.WndProc(Message& m)
en System.Windows.Forms.ButtonBase.WndProc(Message& m)
en System.Windows.Forms.Button.WndProc(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Please try a newer version.
Please comment if the error is not fixed.
It seems to work fine, at least on my PC.
Nombre del parámetro: index
en System.Windows.Forms.HtmlElementCollection.get_Item(Int32 index)
en SimpleMcmJsonTranslator.Lib.GoogleTranslate.GetElementsByTagName(String tag)
en SimpleMcmJsonTranslator.Lib.GoogleTranslate.Translation(List`1 target, Action`1 action)
en SimpleMcmJsonTranslator.SimpleMcmTranslator.<TmiGoogleTranslation_Click>b__65_0()
en SimpleMcmJsonTranslator.SimpleMcmTranslator.TranslationByGoogle(Action action)
en SimpleMcmJsonTranslator.SimpleMcmTranslator.TmiGoogleTranslation_Click(Object sender, EventArgs e)
en SimpleMcmJsonTranslator.SimpleMcmTranslator.BtnApi_Click(Object sender, EventArgs e)
en System.Windows.Forms.Control.OnClick(EventArgs e)
en System.Windows.Forms.Button.OnClick(EventArgs e)
en System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
en System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
en System.Windows.Forms.Control.WndProc(Message& m)
en System.Windows.Forms.ButtonBase.WndProc(Message& m)
en System.Windows.Forms.Button.WndProc(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I will check the code, so it may take some time.
Please check that it is working fine on my PC.
If it does not work, I am outputting a log of the operation to logstranslate.log, so it would be helpful if you could report the contents.
----------------------------------------------------------------
now no CTD, but it still gives error in google translation
2024/06/10 22:08:59 Open URL: https://translate.google.com/#en/es
2024/06/10 22:09:00 Check input fields
2024/06/10 22:09:00 ...failure
2024/06/10 22:09:00 Load failed, Retry. count=1, max=5
2024/06/10 22:09:02 ==========================================
2024/06/10 22:09:02 Open URL: https://translate.google.com/#en/es
2024/06/10 22:09:03 Check input fields
2024/06/10 22:09:03 ...failure
2024/06/10 22:09:03 Load failed, Retry. count=2, max=5
2024/06/10 22:09:05 ==========================================
2024/06/10 22:09:05 Open URL: https://translate.google.com/#en/es
2024/06/10 22:09:05 Check input fields
2024/06/10 22:09:05 ...failure
2024/06/10 22:09:05 Load failed, Retry. count=3, max=5
2024/06/10 22:09:07 ==========================================
2024/06/10 22:09:07 Open URL: https://translate.google.com/#en/es
2024/06/10 22:09:07 Check input fields
2024/06/10 22:09:07 ...failure
2024/06/10 22:09:07 Load failed, Retry. count=4, max=5
2024/06/10 22:09:09 ==========================================
2024/06/10 22:09:09 Open URL: https://translate.google.com/#en/es
2024/06/10 22:09:10 Check input fields
2024/06/10 22:09:10 ...failure
2024/06/10 22:09:10 Load failed, Retry. count=5, max=5
2024/06/10 22:09:10 Load failed.
My computer is accessing the URL correctly, so there must be something else wrong.
Please try the following
-Run as administrator and see if Google Translate is available.
The built-in browser is an old technology from the IE days and needs to be registered in the registry before you can use it.
In some cases, administrator privileges are required.
-Open "SimpleMcmJsonTranslator.xml" in a text editor and change the value of “debugFlg” from “false” to “true”.
This will display the built-in browser screen.
Check the display to see if the Google site is open when you run the translation.
A screenshot would be helpful if possible.
If the Google Translate page does not open, there may be a network block against SMJT.
Check your Windows firewall or other security product if you have one.
Hello, the program works very well. Is there a way to make the Google Translate window smaller? It takes up the entire translator screen and I can't see what I'm going to translate. thank you
If you want, you can incorporate my translation to spanish to the mod (no need for acknowledgement).
It is only for the MCM menu. If It changes, I can help with actualization.
We have downloaded the Spanish file and incorporated it into the next update.
If you find any strange translations in the future when adding messages, I would appreciate it if you could point them out to me.
It is now also possible to set the minimum interval setting to 3 seconds.
It may run faster than before, but if your translations are not stable, please increase the value.
I wonder if this problem is related to the Windows11 system?
The first time I download and run simpleMCM, Windows asks me if I want to run it.
As for the program's processing, you can read the json by setting the source and destination languages in the options.
I have uploaded a version with this checked process removed in the options.
However, Google Translate may not work with this test version.
Another possibility is the process of registering the registry for Google Translate.
This process takes place when the application is launched, so there could be a problem there.
This can be checked with the following steps
1. start SimpleMcmJsonTranslator. 2.
2. open the dialog box with Win+R, type regedit and run it.
3. open "\HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION"
4. check for an entry named "SimpleMcmJsonTranslator.exe
But I seem to have solved the problem.
After I set up Desination Language, I had to reboot Simple MCM to make it work!
Anyway, thank you again! OvO!