Commit Graph

12 Commits (969f26e4066c230d74e07926aac9d4a1f7b400bd)

Author SHA1 Message Date
Treer 969f26e406 Minetest support - initial commit
Rivers don't match the game, but Amidst can now draw maps made with a different engine than Minecraft
2018-03-10 18:48:03 +11:00
Stefan Dollase 5fcfe5cb43 removed most of the usages of e.printStrackTrace() and e.getMessage() ...
... by using appropriate logging methods
2016-11-21 03:30:50 +01:00
Stefan Dollase 33f6a5b4b8 removed displaying of the message box from the logger 2016-11-21 02:47:05 +01:00
Stefan Dollase dc1a6fdfb3 rename refactorings 2016-11-20 23:48:53 +01:00
Stefan Dollase 1832a7c6b5 formatting
* organized imports
* removed unnecessary @formatter:off comments
* formatted the code using the new code formatter with new preferences
2016-11-20 22:29:01 +01:00
Stefan Dollase c772f9a05f initial application of the new code formatter 2016-04-11 14:29:06 +02:00
Stefan Dollase da26a17f3b added world icon test
To prevent the need to make the minecraft jar file and libraries available on travis ci, this test uses previously generated testdata to ensure that the generated world icons are still the same as when the test data where generated. It is true, that this uses the production code to generate the test data, however, this is not an issue, because the test data are stored and not generated every time the test is executed. All in all, the test checks whether the generated world icons have changed since the test data where generated. It does not ensure, that the world icons are correct (meaning like minecraft generates them).

The test:
* loads the biome data from the test data
* loads the world icons
* creates a fake minecraft interface that provides the stored biome data
* creates a world object using the fake minecraft interface
* generates all world icons using the world object
* compares the generated world icons to the loaded world icons

The test data contains all biome data in the test area as well as all world icons. The test area is 10 fragments in all directions from [0, 0] ([-5120, -5120] to [5120, 5120]). The world icons are generated for the inner 10 - 1 = 9 fragments ([-4608, -4608] to [4608, 4608]). This prevents the world icon producers to request biome data that have not been stored. The test data are stored in a zip-file to prevent them from taking up to much space. One world requires about 6.5 MB (compressed). Thus, we should not add to much test worlds and not change them very often to prevent the repository from getting too big. An alternative would be stored the testdata somewhere else than in the repository. However, they have to be available for travis ci, so this will be the solution for now.

* The End Cities are currently not included.
* The current seed is "amidst-test-seed" using the default world type and minecraft version 1.8.9.
* The test data are generated by running the test in the class DevToolRunner.
2016-01-25 02:05:37 +01:00
Stefan Dollase 14176875af fixed the simple stronghold algorithm to behave exactly like the one implemented in AmidstExporter 2016-01-07 20:41:36 +01:00
Stefan Dollase 7ae21d5d9f added additional check for village locations
* taken from AmidstExporter
* removed some false positives
2016-01-07 19:18:59 +01:00
Stefan Dollase 68d4c2f760 replaced another usage of the class Point by CoordinatesInWorld 2016-01-06 18:53:38 +01:00
Stefan Dollase 4ec42589e7 moved more logic from the class StructureProducer to the class BiomeDataOracle 2016-01-06 17:51:19 +01:00
Stefan Dollase 91e3365b42 switched to the default maven project layout 2015-12-19 21:42:56 +01:00