GithubHelp home page GithubHelp logo

Comments (1)

PatrikLundell avatar PatrikLundell commented on August 27, 2024 2

It seems the code is in a loop trying to spawn monsters.
It seems to be in an infinite loop trying to spawn some specific kind of monster (a list of one entry).
MonsterGroupManager::GetResultFromGroup doesn't decrement the quantity parameter, and the loop continues until it has been reduced to a non positive number...
For some reason the entry.is_group branch doesn't reduce the quantity while the other branches do.
It claims to have found a monster but then delivers an empty list, thus bypassing the logic intended to decrement the count when nothing was found. Some default value is placed in the list, so something is still returned, but the value doesn't decrement.

The loop seems to be in mapgen.cpp operation map::place_spawns.

How to fix this mess? I don't know. That's probably for someone who understands how this convoluted mess is supposed to work (decrease quantity if spawn_details is empty, rather than if a monster is claimed not to be found?).

from cataclysm-dda.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.