JoinedSenses / SM-Custom-ChatColors-Menu

A modification/fix to ReflexPoison's Custom Chat Colors Menu
GNU General Public License v3.0
4 stars 3 forks source link

[SCP] Translation file is not present #2

Closed LindaFelicia closed 1 year ago

LindaFelicia commented 1 year ago

even the file already exists inside the translations folder

A B

JoinedSenses commented 1 year ago

Go to addons/sourcemod/logs and open the normal log file from today and search for text [SCP] Loading translation file. What is the text in the brackets [ ]? for example, in tf2 it says [SCP] Loading translation file [scp.tf.phrases]

LindaFelicia commented 1 year ago

L 04/20/2023 - 04:02:06: -------- Mapchange to bt1 -------- L 04/20/2023 - 04:02:06: [simple-chatprocessor.smx] [SCP] Recognized mod [Left 4 Dead 2]. L 04/20/2023 - 04:02:06: [simple-chatprocessor.smx] [SCP] Translation file is not present L 04/20/2023 - 04:02:06: [SM] Exception reported: Translation file is not present L 04/20/2023 - 04:02:06: [SM] Blaming: simple-chatprocessor.smx L 04/20/2023 - 04:02:06: [SM] Call stack trace: L 04/20/2023 - 04:02:06: [SM] [0] SetFailState L 04/20/2023 - 04:02:06: [SM] [1] Line 173, simple-chatprocessor.sp::OnPluginStart L 04/20/2023 - 04:02:06: [SM] Unable to load plugin "simple-chatprocessor.smx": Error detected in plugin startup (see error logs)

No search result for "[SCP] Loading translation file"

LindaFelicia commented 1 year ago

I checked /left4dead2/console.log in L20230420.log,the record about this plugin has only one line: L 04/20/2023 - 04:17:13: [simple-chatprocessor.smx] [SCP] Recognized mod [Left 4 Dead 2]. That's it

JoinedSenses commented 1 year ago

Thanks, I see now that the logging needs to be improved. I am going to edit the code and upload here for you to try so we can see the file name it is looking for.

JoinedSenses commented 1 year ago

Try this SMX and then let me know what the error says. I modified the error message so it prints the name of the file it looks for.

simple-chatprocessor.zip

LindaFelicia commented 1 year ago

L 04/20/2023 - 06:33:01: [simple-chatprocessor.smx] [SCP] Translation file is not present [scp.left4dead2.phrases] L 04/20/2023 - 06:33:01: [SM] Exception reported: Translation file is not present [scp.left4dead2.phrases]

I renamed the translation file, the error has been resolved, thank you.

JoinedSenses commented 1 year ago

🥳🎉

fbef0102 commented 1 year ago
In l4d1: scp.l4d.phrases.txt should be scp.left4dead.phrases.txt
In l4d2: scp.l4d2.phrases.txt should be scp.left4dead2.phrases.txt