yselftool / maprend Goto Github PK
View Code? Open in Web Editor NEWMinecraft topdown map renderer for anvil save files
License: Other
Minecraft topdown map renderer for anvil save files
License: Other
I would like to discuss removing Program dependencies from the different utilities, eg Block.
public int getLight() {
if(Program.renderNight) {
return blockLight;
}
else {
return blockLight > skyLight ? blockLight : skyLight;
}
}
would become
public int getLight(boolean renderNight) {
if (renderNight) {
return blockLight;
}
else {
return blockLight > skyLight ? blockLight : skyLight;
}
}
I do not know how to create a pull request that will touch on multiple files. In the case above, I would need to modify Program.renderRegion.
It happens that the biomColors array is hollow, ie has holes. So, as much as it is interesting to use the default biome on ArrayIndexOutOfBoundsException, it should also do that on null, as follows:
try {
color = biomColors[biome];
if (color == null) {
System.out.println("Null biome: " + biome + ", copying default: 1.");
biomColors[biome] = biomColors[1];
color = biomColors[1];
}
} catch (...)
Windows 7, Java 1.8, using the precompiled JAR
I have copied the block texture assets to the ressource\raw subdirectory and I try to generate the colors.json but get the following error:
D:\Games\MapRend>java -jar MapRend.jar textures ressource
MapRend Texture Rendering startup messages
Ressource folder: ressource
Stopping: Cannot find textures.json!
However, there is a textures.json in the same folder as my MapRend.jar - it is the one that comes with the precompiled JAR?
Do I need to relocate it somewhere?
The level will sometimes have block types that weren't planned for, ie not listed in the json files. Instead of letting those popup as NullPointerExceptions, one should maybe assume they are not visible, as follows:
private boolean isBlockSolid(int block) {
try {
return Program.blockVisibility[block];
} catch (ArrayIndexOutOfBoundsException aioobe) {
//XXX assumes that block is invisible if not listed
return false;
}
}
Very nice... but how do i use it? i've downloaded the files... where do i start the program?
When choosing to let the application render clusters, ie
map . . day 50 rect cluster ./maps .
the 2nd of two sequential executions will produce an all-white overall png.
The application will report
Succesfully read updates.json file with 4 elements!
Saved updates.json file (4 elements) !
Successfully written image to
Needed 530
Updated 0 of 4 regions!
But will overwrite outputfile will all-white data.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.