AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   File Errors Fix (https://forums.alliedmods.net/showthread.php?t=185550)

ReFlexPoison 05-19-2012 01:23

File Errors Fix
 
13 Attachment(s)
File Errors Fix

Description:
Information on how to fix file errors. I completely scrapped the old version of this. Now supports multilingual servers with a set of translations. Default chat trigger is error. Edit translation file to change the chat trigger.
Instructions:
  • Delete any corrupted game files (Found in Program Files/Steam/SteamApps/common/game/)
  • Close out of all Steam games
  • Restart Steam (In some cases your computer)
  • Restart the previous game
  • Redownload files by rejoining the previous server
Control Variables:
  • sm_errorfix_enabled (default: 1) Enable/Disable the plugin
Installation:
  • fileerrors.smx to sourcemod/plugins
  • fileerrors.phrases.txt to sourcemod/translations
Version Log:
  • Version 1.0
    • Initial Release
My Plugins
intox Gaming

ReFlexPoison 05-19-2012 01:24

Re: [ANY] Custom Files Errors | How to Fix
 
> Reserved

MasterOfTheXP 05-19-2012 01:30

Re: [ANY] Custom Files Errors | How to Fix
 
A way to add chat triggers would make this really useful for when people say Hale's an ERROR in VSH.

Franc1sco 05-23-2012 17:01

Re: [ANY] Custom File Errors | How to Fix
 
Suggestion:

-As this plugin is to explain something, it would be quite useful add multilanguage support

loranger 06-16-2012 15:56

Re: [ANY] Custom Files Errors | How to Fix
 
Quote:

Originally Posted by MasterOfTheXP (Post 1711940)
A way to add chat triggers would make this really useful for when people say Hale's an ERROR in VSH.


Thats usualy a prechache issue. Restarting tf2 will fix this.

RedSword 07-05-2013 21:27

Re: [ANY] Custom File Errors | How to Fix
 
Quote:

Originally Posted by ReFlexPoison (Post 1715285)
I can for console settings and menu title probably, but the config files would be on the user.
I'll add that in sooner or later. But I'm bored of this plugin, I only made because of the constant "how to fix errors" question being asked everyday.

You can edit a string according to a client's language. Just use VFormat.

EDIT : Beside that, if the server (client 0) write the chat trigger, it produces an error in the console; hence I can't approve. If you are to edit your plugin you could also remove FCVAR_REPLICATED, as it can produce error in the client's console.

Red

ReFlexPoison 07-07-2013 20:49

Re: [ANY] Custom File Errors | How to Fix
 
Quote:

Originally Posted by RedSword (Post 1984250)
You can edit a string according to a client's language. Just use VFormat.

EDIT : Beside that, if the server (client 0) write the chat trigger, it produces an error in the console; hence I can't approve. If you are to edit your plugin you could also remove FCVAR_REPLICATED, as it can produce error in the client's console.

Red

I completely scrapped the older version of this. If you'd like to give the newer version a check that'd be great. I added support for multilingual servers with translations as well as removed the unnecessary commands. Now just uses a chat trigger.

RedSword 07-07-2013 22:01

Re: [ANY] File Errors Fix
 
You're using %t for the Format function. This is wrong, as the first occurrence (line 55) could be written in another language.

When using PrintToChat, you are setting a global variable where the client is stored. %t uses that client. The one on line 55 might be different.

More info : http://wiki.alliedmods.net/Translati...ge_in_a_Plugin

And same thing @ FCVAR_REPLICATED

ReFlexPoison 07-08-2013 01:18

Re: [ANY] File Errors Fix
 
Quote:

Originally Posted by RedSword (Post 1985890)
You're using %t for the Format function. This is wrong, as the first occurrence (line 55) could be written in another language.

When using PrintToChat, you are setting a global variable where the client is stored. %t uses that client. The one on line 55 might be different.

More info : http://wiki.alliedmods.net/Translati...ge_in_a_Plugin

And same thing @ FCVAR_REPLICATED

I use SetGlobalTransTarget() followed by %t formating for translations as I do in https://forums.alliedmods.net/showthread.php?p=1825772. I just simply forgot to use them. If that doesn't work then let me know, however I do believe Dr. McKay gave me the OK to do it this way.

RedSword 07-08-2013 02:06

Re: [ANY] File Errors Fix
 
Yeah you just changed that. It wasn't the case before.

Looks ok now; approved.


All times are GMT -4. The time now is 22:04.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.