Judiks / VoiceShipControl

Lethal Company voice ship controll
MIT License
0 stars 0 forks source link

Some items can't be bought with voice commands #4

Closed NilaierMusic closed 9 months ago

NilaierMusic commented 9 months ago

There's actually no config value or a command to buy a shovel with the mod. But nonetheless, after some testing, it looks like you can't buy any items with voice commands aside from the Flashlight, Pro-flashlight and Walkie-talkie.

Buying boombox as an example: 44_20240208001646 image

Such commands as Starting the game, ending it, opening and closing ship doors, turning on and off lights, using teleports, routing to planets, switch monitors and toggling it work properly and as intended.

Also, buying a specific amount of items also works fine when it's between 1 and 9 items. More than that results in the mod only reading the first number of items, so, just one.

[Info   :   Console] Spocken text: we need 12 Pro flashlights
[Info   :   Console] 1 buy count command
[Info   : Unity Log] Parsed word: pro
[Info   : Unity Log] Parsed word: flashlight
[Info   : Unity Log] Could not parse word: 1
[Info   : Unity Log] noun keyword: pro flashlight ; verb keyword: buy ; result null? : False
[Info   : Unity Log] result: buyProFlashlight1
[Info   :   Console] jarvis-are-you-sure|jarvis-ok-as-you-wish-sir|jarvis-done|jarvis-i-think-something-happening-there|jarvis-purchase-completed-successfully founded asset
[Info   :   Console] jarvis-are-you-sure|jarvis-ok-as-you-wish-sir|jarvis-done|jarvis-i-think-something-happening-there|jarvis-purchase-completed-successfully Contains |
[Info   :   Console] Start Play audioSource jarvis-are-you-sure
[Info   : Unity Log] jarvis-are-you-sure loaded succesfuly
[Info   :   Console] PlayAudioSourceVoice Play
[Info   : Unity Log] Quit terminal; inTerminalMenu true?: {playerScript.inTerminalMenu}
[Info   : Unity Log] Set interminalmenu to true: True
Judiks commented 9 months ago

@NilaierMusic wow .

First of all you can by that items what allow game in current moment. So if you not have shower or television in store it's will be not available for purchase.

Second i not tested all buy commands read description of the mod i'm lazy xD. But some of them i tried to take from terminalNodes and other from mind maybe i made typo somewhere will double check Boombox.

Third about count yeap i see it looks like it's founding 1 because 12 also contains 1 so.. It's 2 possible solution here or you can change key phrase for 12 to something else or i will leave just count from 1 to 9 in next versions will think about it.

And i will check shovel also.

Thanks for report! Will fix after few hotfix...

Judiks commented 9 months ago

@NilaierMusic so

  1. Checked boombox and it's was buyed. Can you double check please your key phrase.
  2. In new version shovel added and for future you can modify VoiceShipControlSettings.json file and all key-phrases what you type there will be added to LethalConfig.
  3. With count i know the issue will see what to do with it later for now you just need to make unique naming (that mean 1 key phrase shouldn't contain other)
NilaierMusic commented 9 months ago

Okay, i think now items can be bought, but it buys them multiple times, due to the command being duplicated or something like that..?

[Info   :   Console] Trying to connect
[Info   :   Console] Socket listener started
[Info   :   Console] Accepted connection from 127.0.0.1:56696
[Info   :   Console] Broadcasting started
[Info   :   Console] Spocken text: купить сигнал Translator
[Info   : Unity Log] Parsed word: signal
[Info   : Unity Log] noun keyword: signal ; verb keyword: buy ; result null? : False
[Info   : Unity Log] result: SignalTranslatorBuy
[Info   : Unity Log] Is unlockable 'Signal translator in storage?: False
[Info   : Unity Log] Is unlockable 'Signal translator in storage?: False
[Info   : Unity Log] Purchasing ship unlockable on host: 17
[Info   : Unity Log] Set unlockable #17: Signal translator, to unlocked!
[Info   :   Console] jarvis-are-you-sure|jarvis-ok-as-you-wish-sir|jarvis-done|jarvis-i-think-something-happening-there|jarvis-purchase-completed-successfully founded asset
[Info   :   Console] jarvis-are-you-sure|jarvis-ok-as-you-wish-sir|jarvis-done|jarvis-i-think-something-happening-there|jarvis-purchase-completed-successfully Contains |
[Info   :   Console] Start Play audioSource jarvis-i-think-something-happening-there
[Info   :   Console] File 'jarvis-i-think-something-happening-there' not found in 'C:\Users\nilai\Desktop\LethalBugs\BepInEx\plugins\VoiceShipControl\' or its subdirectories.
[Error  : Unity Log] Unable to open archive file:
[Error  : Unity Log] Failed to read data for the AssetBundle ''.
[Info   : Unity Log] Error while loading jarvis-i-think-something-happening-there
[Info   : Unity Log] Quit terminal; inTerminalMenu true?: {playerScript.inTerminalMenu}
[Info   :   Console] Spocken text: купить сигнал Translator
[Info   : Unity Log] Parsed word: signal
[Info   : Unity Log] noun keyword: signal ; verb keyword: buy ; result null? : False
[Info   : Unity Log] result: SignalTranslatorBuy
[Info   : Unity Log] Is unlockable 'Signal translator in storage?: False
[Info   : Unity Log] Already unlocked, node: SignalTranslatorBuy
[Info   : Unity Log] Parsed word: confirm
[Info   : Unity Log] Quit terminal; inTerminalMenu true?: {playerScript.inTerminalMenu}
[Info   :   Console] Spocken text: купить сигнал Translator
[Info   : Unity Log] Parsed word: signal
[Info   : Unity Log] noun keyword: signal ; verb keyword: buy ; result null? : False
[Info   : Unity Log] result: SignalTranslatorBuy
[Info   : Unity Log] Is unlockable 'Signal translator in storage?: False
[Info   : Unity Log] Already unlocked, node: SignalTranslatorBuy
[Info   : Unity Log] Parsed word: confirm
[Info   : Unity Log] Quit terminal; inTerminalMenu true?: {playerScript.inTerminalMenu}
[Info   :   Console] Spocken text: купить сигнал Translator
[Info   : Unity Log] Parsed word: signal
[Info   : Unity Log] noun keyword: signal ; verb keyword: buy ; result null? : False
[Info   : Unity Log] result: SignalTranslatorBuy
[Info   : Unity Log] Is unlockable 'Signal translator in storage?: False
[Info   : Unity Log] Already unlocked, node: SignalTranslatorBuy
[Info   : Unity Log] Parsed word: confirm
[Info   : Unity Log] Quit terminal; inTerminalMenu true?: {playerScript.inTerminalMenu}
[Info   :   Console] Spocken text: купить сигнал Translator
[Info   : Unity Log] Parsed word: signal
[Info   : Unity Log] noun keyword: signal ; verb keyword: buy ; result null? : False
[Info   : Unity Log] result: SignalTranslatorBuy
[Info   : Unity Log] Is unlockable 'Signal translator in storage?: False
[Info   : Unity Log] Already unlocked, node: SignalTranslatorBuy
[Info   : Unity Log] Parsed word: confirm
[Info   : Unity Log] Quit terminal; inTerminalMenu true?: {playerScript.inTerminalMenu}
[Info   :   Console] Spocken text: купить сигнал Translator
[Info   : Unity Log] Parsed word: signal
[Info   : Unity Log] noun keyword: signal ; verb keyword: buy ; result null? : False
[Info   : Unity Log] result: SignalTranslatorBuy
[Info   : Unity Log] Is unlockable 'Signal translator in storage?: False
[Info   : Unity Log] Already unlocked, node: SignalTranslatorBuy
[Info   : Unity Log] Parsed word: confirm
[Info   : Unity Log] Quit terminal; inTerminalMenu true?: {playerScript.inTerminalMenu}
[Info   :   Console] Spocken text: купить сигнал Translator
[Info   : Unity Log] Parsed word: signal
[Info   : Unity Log] noun keyword: signal ; verb keyword: buy ; result null? : False
[Info   : Unity Log] result: SignalTranslatorBuy
[Info   : Unity Log] Is unlockable 'Signal translator in storage?: False
[Info   : Unity Log] Already unlocked, node: SignalTranslatorBuy
[Info   : Unity Log] Parsed word: confirm
[Info   : Unity Log] Quit terminal; inTerminalMenu true?: {playerScript.inTerminalMenu}
[Info   :   Console] Spocken text: купить сигнал Translator
[Info   : Unity Log] Parsed word: signal
[Info   : Unity Log] noun keyword: signal ; verb keyword: buy ; result null? : False
[Info   : Unity Log] result: SignalTranslatorBuy
[Info   : Unity Log] Is unlockable 'Signal translator in storage?: False
[Info   : Unity Log] Already unlocked, node: SignalTranslatorBuy
[Info   : Unity Log] Parsed word: confirm
[Info   : Unity Log] Quit terminal; inTerminalMenu true?: {playerScript.inTerminalMenu}
[Info   : Unity Log] Saving placed position as: (5.47, 0.43, -13.74)

I've said the command only one time, but for some reason it duplicated it a couple of times. With regular items it duplicates it like 3 times, so when you want to buy 1 item, you get 4 instead.

NilaierMusic commented 9 months ago

I think command duplication happens when you hop between saves, so, if you just boot up the game and enter the game, everything is fine. But if you then exit and go into a different save, now commands get duplicated.

Judiks commented 9 months ago

@NilaierMusic cool bug i found it. Fixing image

Judiks commented 9 months ago

@NilaierMusic you are good QA tanks

NilaierMusic commented 9 months ago

Okay, i think all item buying issues are fixed, but i've found a new one related to the teleports and cooldowns, so i will open a new one right now.