Giter Site home page Giter Site logo

Comments (3)

Vollch avatar Vollch commented on August 19, 2024 1

I can't actually reproduce it, but looking at code i think i see how that's possible.
When game can't find goal it firstly spawn in:

const bool placed = overmap_buffer.place_special( *params.overmap_special, origin_pos,
params.search_range );

And then searches for exact OMT:
target_pos = overmap_buffer.find_closest( origin_pos, find_params );

(Later on it'll try to spawn special once again, giving second chance to spawn special properly, and dodge debug message)

And here the catch - place_special doesn't accept and process find_params which among other thing specifies min range. So, apparently it's possible that it'll spawn special too close to find it later. That seems to be very old bug.

from cataclysm-bn.

chaosvolt avatar chaosvolt commented on August 19, 2024

Dafuq? It's still in the JSON right here: https://github.com/cataclysmbnteam/Cataclysm-BN/blob/upload/data/json/overmap/overmap_special/specials.json#L6890

@Vollch may have done something in their overmap generation code that's causing a scenario mission to no longer be able to find locations, possibly?

from cataclysm-bn.

Vollch avatar Vollch commented on August 19, 2024

And yeah, i actually reproduced it at x0 specials:
image
Game spawned 2 airports, but they too close for "min_distance": 45 requirements, which gave me same error.

from cataclysm-bn.

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.