Download Create: Tramways Hotfix — Minecraft Mods — MetaMods

Create: Tramways Hotfix

Active

Downloads

0

Last update

3 days ago
Client
Utils

A temporary clientside only addon mod for Create: Tramways (https://www.curseforge.com/minecraft/mc-mods/tramways) which patches the crashes caused in the base mod until these fixes are released to the base mod.

The bug occurs when the speaker block tries to play a sound, the message is assembled based on the config template and the specific information being announced (train name, platform number, etc). Tramways then hashes the message and checks if there is already a cached copy of the audio for that message in `./tramways-voice` if there is not it will open a web socket and communcate with an external API to get the audio data. This API until very recently always returned valid audio, as of aproximatly one month ago however it appears to have started to occasionally throw 403 errors; every Tramways version has no way of handling these errors and will try playing and saving the audiostream which contains no data because of the 403 error. This causes the client to hang indefinatly until force closed, the server has no impact on this in any way and therefore this patch is only required for the client.

The solution is to add proper error handling to the client to catch unsucessful requests and exit out of the TTS process cleanly without interupting gameplay. This ultimately means editing the TTS class to add proper error handling. We have opened a pull request to have these changes merged to the main Tramways mod but currently as the dev has been inactive for a few weeks and the nature of this bug makes one of the main features randomly crash. We (myself and the main dev for this fix (GamingKing2436 (no curseforge account)) came to the conclusion that it is likely best for us to release these changes as a standalone temporary mod which can be added to patch the bug until the Tramways dev returns to either fix the bug themselves or merge our proposed fix subsequently patching the issue on the main mod. Therefore in the future when versions after Create: Tramways 0.3.0 exist this mod WILL BE REUNDANT, ABBANDONED AND DEPRECATED as its sole purpose will have been merged to the main mod consequently and does not need to be used.

Project members
Epig

Epig