ES Recruitment Drive
Original Post
4.92 anti-crash solution!
Hi guys, since 4.9 came we had this trouble with !000 character and people finding it funny to crash rooms with it. In short, displaying "!000" in chat makes 4.9x versions of TB crash. Before this is fixed, there's a small and easy fix that will protect you from the crashes on 4.9 version.

The solution:
Download both files in the attachments (anticrash.lua and crashwords.txt). Put them in:
YourTBdirectory\data\script

or for steam users:
YourSteamDirectory\steamapps\common\Toribash\data\ script

For additional tweaking, you can open "crashwords" and words (e.g. <WORD>) that you don't want displayed in format: <WORD> ^01.
Therefore, crashwords.txt includes
!000 ^01

and thus the script prevents !000 from being displayed in the chat. More words can be added if you need them e.g. they crash you or you really don't like mistyping your nick, I could add jtamk ^01 and "jtamk" will never be displayed in my chat when script runs.
After downloading the two files and putting them into right folder, whenever playing TB make sure you run them. You can run scripts via MAIN MENU > SETUP > UTILS > SCRIPTS and selecting anticrash.lua.

The script is basically a modified HL script by Daanando. Please don't comment on how the script is written, I made it without any coding/LUA knowledge. It's not meant to look pretty, it's meant to temporarily prevent crashes. And it works.


Use /opt shout 0 command for additional safety.
Attached Files
anticrash.lua (1.6 KB, 34 views)
crashwords.txt (10 Bytes, 27 views)
Last edited by JtanK; Jan 30, 2015 at 05:05 AM.

[re] | #Polska
qui hic minxerit aut cacaverit, habeat deos superos et inferos iratos
Olá, desde que o toribash 4.9 foi lançado tivemos alguns problemas com o "!000" já que algumas pessoas acham engraçado crashar salas com isso. Em resumo, digitando "!000" no chat faz as versões 4.9x do toribash crashar. Antes que isso seja definitivamente corrigido, siga os seguintes passos para proteger o seu toribash dos crashs.

A solução:
Baixe ambos os arquivos em anexo (anticrash.lua e crashwords.txt).
Coloque-os em "SuaPastaTORIBASH\data\script" ou, para usuários da Steam, "SuaPastaSTEAM\steamapps\common\Toribash\data\scri pt".

Você ainda pode usar o "crashwords" para bloquear outras palavras ao escrever, por exemplo "<EXEMPLO>", no seguinte formato: "<Exemplo> ^01".
Por esse motivo, crashwords.txt já inclui:
!000 ^01

e dessa forma, o script evita que "!000" seja mostrado no chat. Mais palavras podem ser adicionadas se você quiser. Por exemplo, se você não gosta que errem seu nome, você pode adicionar "Jtamk ^01" e "Jtamk" nunca será mostrado no chat enquanto o script estiver ativo.
Após baixar os dois arquivos e colocá-los na sua pasta, sempre que jogar Toribash certifique-se de ativá-los. Você pode ativar sripts à partir do menu principal > configurações > utilidades > scripts e selecionando "anticrash.lua".

O script é basicamente uma adaptação do "Highlight Script do Daanando.
Por favor, não comente em como o script foi escrito, eu fiz isso sem nenhum conhecimento de codificação em LUA.
Não foi feito para parecer bonito, foi feito para temporariamente previnir crashs, e funciona.
Last edited by iver; Jan 30, 2015 at 04:46 AM.