Giter VIP home page Giter VIP logo

t5sp-voicelines-fix's Introduction

T5SP Voicelines Fix

These scripts fixes the voicelines issue for Plutonium T5SP dedicated servers.

Issue details

When T5SP is running in dedicated server mode, its sound engine is disabled thus
sound files aren't loaded.

In order to play a voiceline, the server tries to determine the number of
variants the voiceline has through a GSC function called get_number_variants
located in _zombiemode_spawner.gsc:

get_number_variants(aliasPrefix)
{
    for(i = 0; i < 100; i++)
    {
        if(!SoundExists(aliasPrefix + "_" + i))
        {
            return i;
        }
    }
}

Given that the server doesn't load sounds, the function SoundExists always
returns 0 and the GSC function in charge of handling voicelines returns
immediately without doing anything because it thinks there are no variants to
play.

SoundExists is a built-in function, which means its source code isn't written
in GSC but is directly built into the game executable thus we cannot easily put
our hands on it.

Dumping & hardcoding

The GSC files of the vox_defs folders have been generated with the help of the
two following scripts:

  • zm_vox_dumper.gsc: retrieves and prints all voicelines names and their number
    of variants in a pre-formatted GSC syntax to the Plutonium console. The number
    of variants is obtained by calling get_number_variants, on each map, for each
    voiceline.

  • dump_helper.py: parses the console output text file (that you have to export
    somehow) and generates all the GSC files with hardcoded arrays in a dedicated
    folder for each map.

If you want to try this process yourself, take a look here.

Loading

The core of the fix resides in the following script:

  • zm_vox_fix.gsc: loads the hardcoded voicelines arrays and assigns them properly
    to the players. One array is dedicated to George (Call of the Dead) because his
    voicelines were also affected by the sound issue.

Installation

Download the latest release, extract the ZIP archive content to the T5
storage folder of your dedicated server and you're good to go.

Default T5 storage folder on Windows: %LOCALAPPDATA%\Plutonium\storage\t5

t5sp-voicelines-fix's People

Contributors

nahelam avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

ahrimdon

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.