CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.31k stars 4.13k forks source link

No such parameter "variant_palette" #73601

Open IdleSol opened 4 months ago

IdleSol commented 4 months ago

Describe the bug

Trying to build a house (house_rv) through the debug menu

 DEBUG    : No such parameter "variant_palette"

 FUNCTION : Result mapgendata::get_arg(const std::string&) const [with Result = string_id<mapgen_palette>; std::string = std::__cxx11::basic_string<char>]
 FILE     : src/mapgendata.h
 LINE     : 244
 VERSION  : cdda-experimental-2024-05-09-0820 fa8ae46

Looked at other house variants (house_34), similar problem.

Attach save file

n/a

Steps to reproduce

  1. Create a new world
  2. Edit map via debug menu
  3. Spawn house_rv

Expected behavior

n/a

Screenshots

pict 1

Versions and configuration

Additional context

But in the cities, everything is fine. Including with house_rv. What is the difference between spawning houses in a city and spawning through the debug menu?

PatrikLundell commented 4 months ago

When I tried to spawn an overmap thing I first got something similar to what you got. I found a different command which seemed to work properly. 't' place overmap terrain seems to place only the basics and for a single level. 's' place overmap special seems to place what I actually wanted. To the left: the house_rv special, while to the right you have the terrain (with the missing palette message). Screenshot (340)

IdleSol commented 4 months ago

You created the house through global map modification. Overmap editor.

For simplicity: debug menu = F1. F1-m-O-s F1-m-O-t This causes an error

And I created through map modification. Map editor - overmap/mapgen F1-m-M-o This causes an error