Using the "Character to Template" function on an existing character in an existing world generates a template with an invalid starting car but does not generate an error. However, if that template is chosen, it will throw the following errors on loading into the world:
And it does so - going by a newly generated debug.log file - 2253 times!
It follows that up by this error:
DEBUG : could not place starting vehicle
FUNCTION : bool game::start_game()
FILE : src/game.cpp
LINE : 834
After that, the game loads and plays - as far as I can tell - without issues.
Steps To Reproduce
Generate a world and a character in that world.
Save and Quit.
Go to "World", select the generated world, and select "Character to Template".
Reset the world, generate a new one or use the existing world and go to "New Game", "Preset Character" and select your template and world.
Finish your character generation.
Experience the errors.
Expected behavior
The game to load with no error messages.
Versions and configuration
OS: Windows
OS Version: Windows 7 64-bit
Game Version: 0.E-5366-g7f91078 [64-bit] / build 0.E-10950 (tested back as far as 0.E-4197-g3b15cc4 / build 0.E-10845)
Graphics Version: Tiles
Game Language: English [en]
Mods loaded: [
Dark Days Ahead [dda],
Disable NPC Needs [no_npc_food]
]
Additional context
As far as I'm concerned, there are two bugs:
The template generator generating an invalid car (and/or the script can't handle ""),
This's probably going to be easy to fix.
The script trying to load/find that invalid car 2253 times.
In doing so, it might also generate a large portion of the map, as using the overmap editor or just going by the generated auto-notes shows.
My guess is, the game tries to generate that inexistant vehicle type at any place it thinks it might could hold it, causing a - probably variable but still - excessive amount of "nonexistant" error messages along the way.
Describe the bug
Using the "Character to Template" function on an existing character in an existing world generates a template with an invalid starting car but does not generate an error. However, if that template is chosen, it will throw the following errors on loading into the world:
And it does so - going by a newly generated debug.log file - 2253 times!
It follows that up by this error:
After that, the game loads and plays - as far as I can tell - without issues.
Steps To Reproduce
Expected behavior
The game to load with no error messages.
Versions and configuration
Additional context
As far as I'm concerned, there are two bugs:
This's probably going to be easy to fix.
In doing so, it might also generate a large portion of the map, as using the overmap editor or just going by the generated auto-notes shows. My guess is, the game tries to generate that inexistant vehicle type at any place it thinks it might could hold it, causing a - probably variable but still - excessive amount of "nonexistant" error messages along the way.