Ranking
Original Post
[CRITICAL] 4.9x anti-crash solution!
UPDATED 1/30/2015: BUG DESCRIBED BELOW IS NOW FIXED IN STEAM VERSION OF TORIBASH, YOU DON'T NEED THE SCRIPT IF YOU PLAY WITH IT.

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, you have to be logged in to forum with your tb acc to download them). Put them in:
YourTBdirectory\data\script

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

For additional tweaking, you can open "crashwords" and add 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.


For additional safety, use /opt shout 0 command.

---

TRANSLATIONS:
Originally Posted by iver View Post
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.

Attached Files
anticrash.lua (1.6 KB, 108 views)
crashwords.txt (10 Bytes, 101 views)
Last edited by JtanK; Feb 1, 2015 at 12:52 AM.

[re] | #Polska
qui hic minxerit aut cacaverit, habeat deos superos et inferos iratos
yay 2cond comment xD really thx it happens to me a lot
Last edited by Onsola; Jan 30, 2015 at 04:08 AM. Reason: DAmn 3rd xD
<Xioi> Become one with the bleach
Steam
Thanks JtanK so will a person get banned if they try to crash a server using this text?
Go and play some Toribash. Go on, you deserve it.
no this script makes you don't get crashed so this code is normal code now
edit: and you cant see the code
Originally Posted by RawrBomb View Post
Thanks JtanK so will a person get banned if they try to crash a server using this text?

Originally Posted by moataz123 View Post
no this script makes you don't get crashed so this code is normal code now
edit: and you cant see the code

moataz123 is correct. If I'm bored (probably not, I should be studying for exams instead), I might tweak the script to make it display "USER HAS ENTERED ILLEGAL CHARACTER", but it will only help room operators, as reports with it won't be viable - anybody using script can just make "hello" illegal and take screens of these.

[re] | #Polska
qui hic minxerit aut cacaverit, habeat deos superos et inferos iratos