#Ship Voice Commands 2

191 messages · Page 1 of 1 (latest)

jovial hearth
#

The current state of this mod :

  • the loud ship horn is still not working that well (still works but shortly)
  • the launch command is, for the moment, off because it is bugged
shy wigeon
#

👍

#

@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

jovial hearth
#
  "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"
}```
shy wigeon
#

yeah that should work

jovial hearth
#

That's what i have

shy wigeon
#

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

jovial hearth
#

XD

rigid lava
jovial hearth
#

Imagine trying to understand someone else code on an other person game

shy wigeon
shy wigeon
jovial hearth
sleek coyote
#

AAHHHH, ITS READYYYY

languid cipher
onyx dawn
#

Havent tried this mod yet, but can you disable "take off" command, feel like thats might lead to some accidental take offs

long widget
#

@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?

jovial hearth
jovial hearth
long widget
#

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.

terse sentinel
#

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

shy wigeon
terse sentinel
shy wigeon
#

i don't think that is so much an incompatiblity and more rolling giants doesn't intergrate with lethalsettings

terse sentinel
#

yeah it is a bit unfortunate because rolling giants doesn't load with lethalsettings enabled

onyx dawn
#

does this error matter?

#

well the mod doesnt seem to work for me at all

shy wigeon
onyx dawn
#

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

shy wigeon
#

well yeah it failed to setup recognition so other things would fail as well

onyx dawn
#

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

shy wigeon
#

i'd try go to the settings and make sure its enabled

onyx dawn
shy wigeon
#

click on addition speech settings in the top right

onyx dawn
#

installing english now, lets see if that works

jovial hearth
#

It works on whatever language you put btw, as a french guy myself it works in french

shy wigeon
#

also with the config it can have some real issues with non english characters

jovial hearth
#

Yeah from what i've experienced, sometimes it's using "french silence" as a word

onyx dawn
#

alright now i got it working

jovial hearth
#

lights are the most problematic but it can be fixed by changing the phrases

shy wigeon
#

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"

jovial hearth
#

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

shy wigeon
#

like allowing to enable / disable the commands?

#

during the game?

jovial hearth
#

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

shy wigeon
#

im writing up a new wiki that should hopefully explain it better but

shy wigeon
#

it's because of a limitation of microsofts speech recognition

#

you'd just have to go through every possible combination

jovial hearth
#

Maybe creating commands while the game load then

shy wigeon
#

once the player clicks online or lan you can't create any more

jovial hearth
#

I know there is a listing while creating doors so maybe

shy wigeon
#

otherwise it throws an error

jovial hearth
#

hmm

jovial hearth
shy wigeon
#

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

jovial hearth
#

Okay gn

brittle halo
#

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!

jovial hearth
#

@shy wigeon No more afh ?

shy wigeon
onyx dawn
#

i havent tried this but does this work when joining other that doesnt have this mod?

onyx dawn
#

ill try it within a few days

shy wigeon
shy wigeon
shy wigeon
#

i also won't upload this new version of voice recognition api until you have fully transferred your mod over

jovial hearth
#

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

shy wigeon
#

no i don't

jovial hearth
#

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

jovial hearth
#

Found it, it just took me 8 hours

jovial hearth
#

@shy wigeon so you changed CustomListenForPhrases to ListenForPhrases or something else ?

#

Okay no I will try something don't bother

long fern
#

just checking, is launch broken?

#

love the mod btw

jovial hearth
long fern
#

okie dokie thank u

sleek coyote
#

@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

jovial hearth
#

Doesn't sound bad

marble widget
#

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

jovial hearth
#

@shy wigeon how do I use the callback ?

jovial hearth
#

If I'm correct it's just the previous one divised between two now right ?

shy wigeon
#

you should just be able to use the custom event section

jovial hearth
shy wigeon
jovial hearth
#

UPDATE AT <t:1706446800:f>

brittle halo
#

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

slim burrow
#

the only thing that is being recognized is i love the company no other commands

jovial hearth
#

Yeah until Bongo upload the new version of VoiceRecognitionAPI play on 2.0.2

slim burrow
#

ah

#

it worked tysm

shy wigeon
#

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

jovial hearth
#

Ok nice let's add that to the manifest, and don't worry about it

brittle halo
#

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

jovial hearth
#

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

brittle halo
#

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...

jovial hearth
brittle halo
# jovial hearth 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

jovial hearth
#

I will also try

jovial hearth
#

It's my bad on this one

slim burrow
#

whomp whomp

brittle halo
#

np! happy to help

brittle halo
#

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...

jovial hearth
#

Huh

shy wigeon
jovial hearth
brittle halo
#

Dang then it's lethal settings bringing out the goofyness of some other mod I got

sleek coyote
#

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

brittle halo
mint knoll
#

it wont work

shy wigeon
shut haven
jovial hearth
#

hmm

#

I will look into it tomorrow

vapid kayak
#

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.

carmine niche
#

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
jovial hearth
#

I cannot work on it until monday, sorry

jovial hearth
jovial hearth
#

Currently testing to add the radar booster with specific names

#

transmit will probably be next and then codes

jovial hearth
carmine niche
#

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");
  }
}
jovial hearth
carmine niche
#

did you try it while on a moon ? This specific code only works on a moon

jovial hearth
#

Oh, not the launch part the launding part

carmine niche
#

oh

jovial hearth
#

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

carmine niche
#

yeah that's what CancelStartGame does in the game :

    public void CancelStartGame()
    {
        leverHasBeenPulled = false;
        leverAnimatorObject.SetBool("pullLever", false);
    }
jovial hearth
#

yep

#

Wait

#

Why is it in public for you

#

I might need to check the version of lethal I have in the project

carmine niche
#

I added Publicize="true" for Assembly-CSharp in my project so I can use it, that's why It's not private

jovial hearth
#

oh

#

that might help A LOT

carmine niche
#

yeah it's easier to access properties and methods of the game like that

jovial hearth
#

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

carmine niche
#

In your project file :
<Reference Include="Assembly-CSharp" Publicize="true" />

jovial hearth
#

Ok thanks

jovial hearth
#

Still having issue to make it work

carmine niche
#

what error do you get ?

tired briar
shut haven
tired briar
#

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

shut haven
#

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

tired briar
#

where does it let you do that

#

yeah it doesn't let you do that lol

carmine niche
#

I think Williewaffles is talking about the global option that let you use command everywhere and not just inside the ship