A mod that adds more voice commands for actions on the ship to the original voice commands mod made by loaforc (alias Bongo).
https://thunderstore.io/c/lethal-company/p/Arceusyo_Luffy/ShipVoiceCommandsv2/
191 messages · Page 1 of 1 (latest)
A mod that adds more voice commands for actions on the ship to the original voice commands mod made by loaforc (alias Bongo).
https://thunderstore.io/c/lethal-company/p/Arceusyo_Luffy/ShipVoiceCommandsv2/
👍
@jovial hearth also you haven't added the dependencies correctly
{
"namespace": "loaforc",
"name": "ShipVoiceCommands",
"description": "NO LONGER MAINAINTED, GO TO https://thunderstore.io/c/lethal-company/p/Arceusyo_Luffy/ShipVoiceCommandsv2/",
"version_number": "1.5.1",
"dependencies": [
"BepInEx-BepInExPack-5.4.2100",
"loaforc-VoiceRecognitionAPI-1.2.0",
"willis81808-LethalSettings-1.2.1"
],
"website_url": "https://thunderstore.io/c/lethal-company/p/Arceusyo_Luffy/ShipVoiceCommandsv2/",
"FullName": "loaforc-ShipVoiceCommands"
}
thats how ive got it set up
"namespace": "Arceusyo_Luffy",
"name": "ShipVoiceCommandsv2",
"description": "A simple mod to add voice commands to the ship.",
"version_number": "2.0.0",
"dependencies": [
"BepInEx-BepInExPack-5.4.2100",
"loaforc-VoiceRecognitionAPI-1.2.0",
"willis81808-LethalSettings-1.2.1"
],
"website_url": "",
"FullName": "Arceusyo_Luffy-loaforc-ShipVoiceCommandsv2"
}```
yeah that should work
That's what i have
oh the website layout changed on some mods
i just had to scroll down 💀
also @rigid lava give pink to @jovial hearth for figuring out my spaghetti
XD
Okay but according to the law of equivalent exchange I'll have to take your pink
Imagine trying to understand someone else code on an other person game
but i made the facility meltdown mod 👉 👈
Yeah i've seen and I love it
AAHHHH, ITS READYYYY
is there a thread for that mod
Havent tried this mod yet, but can you disable "take off" command, feel like thats might lead to some accidental take offs
Just replace the phrase with a bunch of random numbers
@jovial hearth The mod is just not working for me. It wont do anything when I say stuff. I tried changing the confedince and that did nothing. Any Ideas on what I can do to fix it?
I've already took it down it shouldn't be usable
I will help you tomorrow, after i wake up
I just figured it out, I had left nothing in the command phrases I did not want to use. I just filled it and its working now.
Would it be possible to eventually remove the hard dependency on LethalSettings? I would like to use this mod with Rolling Giant, which is incompatible with LethalSettings
i feel like that incompatibility should be fixed by that mod
i agree, I tried bringing it up with the creator of that mod before
i don't think that is so much an incompatiblity and more rolling giants doesn't intergrate with lethalsettings
yeah it is a bit unfortunate because rolling giants doesn't load with lethalsettings enabled
this is a voice recognition error, make sure you have your speech language set to english and try other troubleshooting steps here
how do i change speech language to english?
"Enable LogRecognitionResults in the mod config, found at (LethalCompanyDir)/BepInEx/config/me.loaforc.voicewrapperapi.cfg"
i dont have this cfg
well yeah it failed to setup recognition so other things would fail as well
i see it doesnt seem to work when windows is on another language than english
ill try troubleshooting and see if i can solve it
i'd try go to the settings and make sure its enabled
click on addition speech settings in the top right
installing english now, lets see if that works

It works on whatever language you put btw, as a french guy myself it works in french
some languages dont have speech recognition, had to figure that one out the hard way 😔
also with the config it can have some real issues with non english characters
Yeah from what i've experienced, sometimes it's using "french silence" as a word
alright now i got it working
lights are the most problematic but it can be fixed by changing the phrases
hey @jovial hearth went through and cleaned up the behind the scenes of voicerecognitionapi and it will break your mod
i think the solution will be replacing VoiceRecognitionAPI.modGUID with "me.loaforc.voicerecognitionapi"
here's the new version for you to test with as well
Okay i will test that
Btw Bongo, is there a way with your mod to, with a command, put it on "listen" mode
Like telling code and it will wait for the next phrase
Also a way to put certain commands on global and others no
More like you said code, then it listens and you say like u5
For the code doors for example
im writing up a new wiki that should hopefully explain it better but
you can create them before the game starts, you cant create them duringh
it's because of a limitation of microsofts speech recognition
you'd just have to go through every possible combination
Maybe creating commands while the game load then
once the player clicks online or lan you can't create any more
I know there is a listing while creating doors so maybe
otherwise it throws an error
hmm
you changed where the settings were ?
i'm going to remove lethal settings as a hard dependency from this omd
there's also a bunch of other backend changes that shouldn't effect much else
i have to go to bed now so if you find any other problems just post them and i'll get to them tomorrow
Okay gn
works
Thank you so much for fixing up this mod!
BTW Would it be possible in the future to add voice recognized commands for typed commands into the terminal?
Theoretically one could configure custom terminal commands and custom voicelines that trigger them and (with global commands on in this example) you could be all like "computer get me a shovel" with that translating to [shovel -> confirm] on the terminal. Would feel very futuristic. Again, IF it were possible!
I'm planning on doing things like that
@shy wigeon No more afh ?
yeah I changed it to only show up if you have bepinex to show debug messages
i havent tried this but does this work when joining other that doesnt have this mod?
It should, I guess
ill try it within a few days
it will cause it only calculates for you
@jovial hearth i created a wiki for better troubleshooting steps for voicerecognitionapi https://github.com/LoafOrc/VoiceRecognitionAPI/wiki/Troubleshooting
the next update also causes some breaking changes, you'll probably need to rewrite a big chunk of the mod. i wrote a wiki page to explain how to register stuff in better detail though: https://github.com/LoafOrc/VoiceRecognitionAPI/wiki/For-Developers
i also won't upload this new version of voice recognition api until you have fully transferred your mod over
Okay
I will see that tomorrow if i can otherwise i will look into it this weekend
Bongo, do you, by any chance, know how to get the name showing on the monitor, like the current one
or all of them
no i don't
crap
I'm trying to add the ping and flash from the booster, it's quite easy but the problem is that it's only applying on the one showing on monitor
Found it, it just took me 8 hours
@shy wigeon so you changed CustomListenForPhrases to ListenForPhrases or something else ?
Okay no I will try something don't bother
Yes it is so I took it off for the moment
okie dokie thank u
@jovial hearth i had a fun idea, and i hope im not bothering you with it, but what if there was a way to have it be global, but also work kind of like siri, (yes im activly sneding you ideas from my mod idea post lol)
but that way i can have global on but not have to worry about accidently syaing something too close to what it hears
Doesn't sound bad
I'm getting this error when trying to "takeoff" by using voice commands, others work though.. is there a way to fix this or is it "bugged" as the error says?
oh nvm i just saw the message above
@shy wigeon how do I use the callback ?
If I'm correct it's just the previous one divised between two now right ?
you should just be able to use the custom event section
I've sent you the dll in dms if you want to test it
hm? are you sure? i haven't gotten a message
Thingy breakin fo' me now. In the changelog it mentioned an update to match voicerecognitionapi's update, but according to thunderstore that was last updated 3 weeks ago(?) Latest voicerecognitionapi thingy I got is 1.2.2
the only thing that is being recognized is i love the company no other commands
Yeah until Bongo upload the new version of VoiceRecognitionAPI play on 2.0.2
sorry about that fell asleep way too early last night, should be going up now
and @jovial hearth the correct version for the new dependency is v2.0.0
Ok nice let's add that to the manifest, and don't worry about it
Do custom pumpkin commands work for anyone else btw? on 2.0.2 I haven't been able to get em to work, only for the pumpkin. The hatch ones work tho
It works for the one that change it
It's local
so if the phrases or words written in your config is not the same as your friend or other people, they cannot work
Hmm, weird. It was just in my config testing it all by myself, but all the various pumpkin ones didn't make it activate. Might be some other mod interacting with the way the pumpkin works...
How do you change the config
I just changed it with notepad++, everything else worked when I did it that way, just not the pumpkin. I haven't tested to see if the default vanilla commands for the pumpkin work tho
I will also try
Yeah it seems like it's not working
It's my bad on this one
whomp whomp
np! happy to help
By the way, does lethalsettings need to be a dependency for this mod? I noticed it has a bug where (on death) custom suits become default, except grey... for some reason...
Huh
I've looked at the source code for lethal settings it's not going to be lethal settings
I've played yesterday with friends and I don't have that problem neither do they
Dang then it's lethal settings bringing out the goofyness of some other mod I got
sometimes it just doesnt work, i had it working but it doesent now
it stopped working after i disabled turning the lights on and off
The issue was rollinggiants+lethalsettings, I had a depreciated version of rollinggiants - my bad!
it wont work
Can confirm, the mod stops working if any config line is left blank
Thanks for picking this mod back up! Do you think you'd be able to add support for things like the signal translator ship upgrade? Sometimes I play in VR, and I feel it'd be much better to be able to speak turret/door codes and transmit messages. I would think you'd have to speak the name of each letter one at a time, but that'd still be a win for me.
I managed to make a working take-off command when on a moon if you are interested :
GameObject valLever = GameObject.Find("Environment/HangarShip/StartGameLever");
if ((Object)(object)valLever != (Object)null)
{
InteractTrigger interact = valLever.GetComponent<InteractTrigger>();
StartMatchLever leverStartMatch = valLever.GetComponent<StartMatchLever>();
// Check if lever has been pulled (which means we are on a moon) and that the lever is interactable (take off possible)
if (leverStartMatch.leverHasBeenPulled && interact.interactable){
leverStartMatch.EndGame();
leverStartMatch.CancelStartGame();
}
logger.LogInfo((object)"Lever pushed");
}
if you also want to make a land command, you can use this (based on the previous code):
leverStartMatch.PullLeverAnim(true); // pull the lever
leverStartMatch.leverHasBeenPulled = true;
leverStartMatch.StartGame(); // launch the landing sequence
I cannot work on it until monday, sorry
I will try it monday, thank you, you made me work less lol
I'm planning on doing it
Currently testing to add the radar booster with specific names
transmit will probably be next and then codes
It's not working as it is but I will try figuring it out
hmm weird, here's the exact code I have (I don't think I ommited something in the previous post) :
if (PULL_LEVER.Value.Split(',').Contains<string>(args.Message)){
GameObject valLever = GameObject.Find("Environment/HangarShip/StartGameLever");
if ((Object)(object)valLever != (Object)null){
InteractTrigger interact = valLever.GetComponent<InteractTrigger>();
StartMatchLever leverStartMatch = valLever.GetComponent<StartMatchLever>();
if (leverStartMatch.leverHasBeenPulled && interact.interactable){
leverStartMatch.EndGame();
leverStartMatch.CancelStartGame();
}
logger.LogInfo((object)"Lever");
}
}

did you try it while on a moon ? This specific code only works on a moon
Oh, not the launch part the launding part
oh
my bad I didn't specified
Btw I'm gonna add something like, you can't call take off while in space
Also, how did you made CancelStartGame() work ?
It's not even compiling for me
leverStartMatch.leverHasBeenPulled = false; leverStartMatch.leverAnimatorObject.SetBool("pullLever", value: false);
I replaced it with that
and it works
yeah that's what CancelStartGame does in the game :
public void CancelStartGame()
{
leverHasBeenPulled = false;
leverAnimatorObject.SetBool("pullLever", false);
}
yep
Wait
Why is it in public for you
I might need to check the version of lethal I have in the project
I added Publicize="true" for Assembly-CSharp in my project so I can use it, that's why It's not private
yeah it's easier to access properties and methods of the game like that
Yeah I've been using some weird way to access things like, it takes forever to find
Okay I dunno where to put it, I might be dumb as hell
In your project file :
<Reference Include="Assembly-CSharp" Publicize="true" />
Ok thanks
Still having issue to make it work
what error do you get ?
would you maybe add a feature where solo or last alive players can send commands through the walkie?
That’s extremely specific. Why? Players can already limit how and when they use commands
because it gives functionality to the walkie when you're alone... its useful for solo players.
why tf does everyone get so defensive about suggestions from solo players
I don’t mean to be rude, what I mean is that anyone can simply do what I do and choose to only use commands through a walkie for example
I think Williewaffles is talking about the global option that let you use command everywhere and not just inside the ship