RikiGomes / rikiallocator

Riki's Weapon Allocator for Retakes
GNU General Public License v3.0
4 stars 2 forks source link

Guns Menu does not open #3

Open neonworker opened 2 years ago

neonworker commented 2 years ago

Hi, when typing !guns in chat this error appears in server console.

Dragonborn: !guns L 06/01/2022 - 16:34:40: [SM] Exception reported: Language phrase "Pistol Round Weapon" not found (arg 5) L 06/01/2022 - 16:34:40: [SM] Blaming: retakes_rikiallocator.smx L 06/01/2022 - 16:34:40: [SM] Call stack trace: L 06/01/2022 - 16:34:40: [SM] [0] Format L 06/01/2022 - 16:34:40: [SM] [1] Line 588, D:\SourcepawnScripts\retakes_rikiallocator.sp::Menu_MainMenu L 06/01/2022 - 16:34:40: [SM] [2] Line 576, D:\SourcepawnScripts\retakes_rikiallocator.sp::Menus_Weapons L 06/01/2022 - 16:34:40: [SM] [3] Line 358, D:\SourcepawnScripts\retakes_rikiallocator.sp::Retakes_OnGunsCommand L 06/01/2022 - 16:34:40: [SM] [5] Call_Finish L 06/01/2022 - 16:34:40: [SM] [6] Line 337, ././scripting/retakes.sp::Command_Guns L 06/01/2022 - 16:34:44: [SM] Exception reported: Language phrase "Pistol Round" not found (arg 5) L 06/01/2022 - 16:34:44: [SM] Blaming: retakes_rikiallocator.smx L 06/01/2022 - 16:34:44: [SM] Call stack trace: L 06/01/2022 - 16:34:44: [SM] [0] Format L 06/01/2022 - 16:34:44: [SM] [1] Line 489, D:\SourcepawnScripts\retakes_rikiallocator.sp::SetRoundType L 06/01/2022 - 16:34:44: [SM] [2] Line 414, D:\SourcepawnScripts\retakes_rikiallocator.sp::Event_RoundStart

The translation file is named retakes_rikiallocator.phrases.txt and in the addons/sourcemod/translations. pls help

andrewha-dev commented 2 years ago

It appears that the .sp/.smx files in the release are still referencing MyWeaponAllocator.phrases in the LoadTranslations call. If you clone from the repo instead of downloading the release files, the .smx file works fine. Alternatively, if you want to keep using the release .smx file, you can rename your translations file to MyWeaponAllocator.phrases (although I haven't tested it, but should work)