Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'No valid value' in function evalute interacting with computer terminal in evacuee shelter #60347

Closed
akrieger opened this issue Aug 21, 2022 · 2 comments · Fixed by #60831
Closed
Labels
(S2 - Confirmed) Bug that's been confirmed to exist

Comments

@akrieger
Copy link
Member

Describe the bug

e to interact with the terminal and this debug message pops up. It seems ignorable though.

Steps to reproduce

  • Load up the attached save.
  • e the terminal. Immediately pops up.

Expected behavior

No debug message on normal interaction.

Screenshots

image

Versions and configuration

Additional context

save.tar.gz
save.zip

@akrieger akrieger added the (S1 - Need confirmation) Report waiting on confirmation of reproducibility label Aug 21, 2022
@akrieger akrieger changed the title 'No valid value' in function `evaluteinteracting with computer terminal in evacuee shelter 'No valid value' in function evalute interacting with computer terminal in evacuee shelter Aug 21, 2022
@hexagonrecursion
Copy link
Contributor

/confirmed

  • OS: Linux
    • OS Version: LSB Version: :core-4.1-amd64:core-4.1-noarch; Distributor ID: Fedora; Description: Fedora release 36 (Thirty Six); Release: 36; Codename: ThirtySix;
  • Game Version: cee383c [64-bit]
  • Graphics Version: Tiles
  • Game Language: English [en]
  • Mods loaded: [
    Dark Days Ahead [dda],
    Disable NPC Needs [no_npc_food],
    No Fungal Growth [no_fungal_growth],
    Bionic Professions [package_bionic_professions]
    ]
 DEBUG    : No valid value.

 FUNCTION : std::__cxx11::string str_or_var<T>::evaluate(const T&) const [with T = dialogue; std::__cxx11::string = std::__cxx11::basic_string<char>]
 FILE     : src/condition.h
 LINE     : 90
 VERSION  : cee383c

@github-actions github-actions bot added (S2 - Confirmed) Bug that's been confirmed to exist and removed (S1 - Need confirmation) Report waiting on confirmation of reproducibility labels Aug 23, 2022
@EIIKaO
Copy link
Contributor

EIIKaO commented Aug 23, 2022

It caused by below line; I think it was merged from #60161

std::string actual_topic = topic.evaluate( d );

debugmsg( "No valid value." );

No field in open_dialogue, topic will never be loaded. As a result, evaluate returns a empty string with debug message.

I suppose this debugmsg is useless for everyone( except for debugging ).
One solution is this, should be remove it.
But not sure about removing it without the author's permission.

Another approach is modify json file.

"effect": [ "open_dialogue" ]

change it to
"effect": { "open_dialogue": { "topic": "COMP_REFUGEE_CENTER_MAIN" } }
then the 'No valid value' error will disappear.

However, this causes a different kind of error([This talker doesn't have a name]), and one that is more repeat again and again than the original one( I assure you that you cannot through it with press the space key ).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
(S2 - Confirmed) Bug that's been confirmed to exist
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants