Linux Hacks

Discussion in 'Entropia Tools' started by San, Mar 13, 2019.

  1. San

    San

    Thought it would be cool to start a thread for collecting (legal and TOS-compliant) Entropia-related tricks and hacks people come up with who run the game under Linux.

    First idea I had was trying to hunt with all the UI elements off. It's really pretty with a clean screen. There are of course limitations when you can't keep an eye on your health and ammo, but e.g. using melee and hunting mobs you know can't hurt you, all you need to know is when your weapon is about to break, and this can be read from the chat file and piped into a text-to-speech engine.

    Steps to reproduce (on Ubuntu-based distros):

    1. Install a decent TTS program and a nice voice for it:

    sudo apt-get install festival
    sudo apt-get install festvox-us-slt-hts
    echo "(set! voice_default 'voice_cmu_us_slt_arctic_hts)" > ~/.festivalrc

    2. Create a sed script with filename "repair.sed":

    s/^[^\[]+//
    /^\[System\]/!d
    s/^\[.*?\] *//
    s/^\[\] *//
    /^Your.*?is close to reaching minimum condition/!d
    s/./&/p

    3. Issue the following command pipeline or put it in a batch script (replace with your own chat file location):

    tail -c0 -f ~/.PlayOnLinux/wineprefix/EntropiaUniverse/drive_c/users/k/My\ Documents/Entropia\ Universe/chat.log | sed -nurf repair.sed | while read line; do echo "$line" | festival --tts; done

    The following documentations helped with figuring out some details and options used above:

    https://askubuntu.com/questions/53896/natural-sounding-text-to-speech
    https://www.redhat.com/archives/rhl-list/2005-July/msg00342.html
    https://www.grymoire.com/Unix/Sed.html#uh-32
    https://stackoverflow.com/questions/18797569/unix-piping-tail-f-to-festival

    Cheers!
     
    Last edited: Mar 13, 2019
    • Like Like x 1
    • Informative Informative x 1
  2. Tass

    Tass Administrator

    Sounds cool. Unfortunately I'm bound to Windows.

    Just reminded me of the idea to announce big HOFs in Discord with TTS. Not that our Discord server ever got anywhere...
     
    • Friendly Friendly x 1
  3. Is there an advantage of running eu in linux ?
     
  4. San

    San

    I really don't want to discuss this here. This is intended to be a creative thread.
     
    • Like Like x 2
  5. Wistrel

    Wistrel Kick Ass Elf

    Is festival able to generate sound files? (rather than read out)
     
  6. San

    San

    • Thanks Thanks x 1
  7. Wistrel

    Wistrel Kick Ass Elf

    Superb! I wonder if there is some sort of command line sound filter software too that works with a pipe... I mean to produce effects and stuff (reverb being one example - although I'm thinking of other effects)
     
  8. San

    San

    Probably a different kind of pipe is more efficient for routing audio signals than chaining stdin to stdout on the command line, but it's absolutely doable. You may like to study CSound or start at http://www.linuxaudio.org/. A collection of available effects processors running on various infrastructures is here: https://wiki.linuxaudio.org/apps/categories/effects_processors
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.