Code Monkey home page Code Monkey logo

Comments (3)

acatai avatar acatai commented on June 8, 2024

IMO dalej coś jest nie halo...
Jak odpalam tests\lml\Test.lua i wywołuję np. Test('01', 17) to za każdym razem generowany LML (w tests\out\17_4\LML.png) jest inny.
Tak chyba nie powinno być?

from h3mapgen.

radekmie avatar radekmie commented on June 8, 2024

Zgaduję, że Test('01', 17) oznacza stan Test na Twoim nowym branchu, bo aktualnie ta funkcja ma tylko jeden parametr i działa dobrze, tj. Params.GenerateDetailedParams(state) losuje nowy seed, bo paramsGeneral.seed == 0.

Przy okazji: ten plik na Linuxie bruździ i nie działa bez poprawek (np. ścieżki).

A teraz powód:

  for name, weight in pairs(grammar) do

Jednak jest jeszcze inaczej z tą kolejnością w pairs. Tak, jest deterministyczna. Tak, jest stała w obrębie jednej wersji. Tak, nie zmienia się dla jednego obiektu (wiele pairs na tym samym obiekcie daje tę samą kolejność). Ale jest jeden problem: ta kolejność jest różna, w zależności od ułożenia obiektu w pamięci. Także ładowanie obiektów z config.cfg jest problematyczne, bo pairs na nich nie jest zawsze takie samo.

from h3mapgen.

acatai avatar acatai commented on June 8, 2024

Problem był głównie z powodu użycia pairs w Random.RouletteWheel(map).
Done.

from h3mapgen.

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.