Coder Social home page Coder Social logo

minimal-c / factoriotexttospeech Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 2.0 4.48 MB

In-game text to speech; preview, global chat and speaker blueprint generation modes.

Home Page: https://mods.factorio.com/mods/minimal/Text-To-Speech

Lua 100.00%

factoriotexttospeech's People

Contributors

minimal-c avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

lexagr eyewonder

factoriotexttospeech's Issues

Wrong Instrument Index Selected

Reposting issue here for notification since the mod portal doesn't notify you of new threads.

Hey again Minimal!

I found another bug, this one probably isn't an API limitation. One of the mods I'm using (Soundpack: alerts and sirens) adds another category of sounds for speakers, labeled alerts 2. With this mod and yours in use, it appears as though the blueprint chooses the wrong instrument.

I did some digging, and I believe the issue is how you're searching for the right instrument in getCompatibleVoiceInstrumentId(), lines 245 - 255 in textToSpeechGui.lua.

My reasoning behind this:

  1. It picks steel drums, which is one index behind male voice in the dropdown
  2. Mods load by rank (dependency related if I remember correctly), after which mods load in alphabetical order, meaning that the other mod loads before yours, taking the first custom instrument index/shifting another instrument to that index

This would imply that the getCompatibleVoiceInstrumentId() function is defaulting to the index based search rather than the string based one. It could be something else, but that's just what I've thought of/found so far.

Regardless, thanks for the great mod, as well as all the effort you've poured into it! I just recently made a mod myself (albeit a crappy one), so I now have an even greater appreciation for what you've done here.

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.