Code Monkey home page Code Monkey logo

mcaselector's People

Contributors

5idereal avatar artoria2e5 avatar arvitus avatar cassiofb-dev avatar cat0x1f avatar costantino2000 avatar cr1st0ph3r avatar cravend avatar d3w10 avatar ereaxe avatar gigsoll avatar holdyourwaffle avatar hugoalh avatar insprill avatar marcinolak avatar matej-hajek avatar narcarsiss avatar polarbub avatar quarktal avatar querz avatar restitutor avatar saebyul1221 avatar sekizou82 avatar shirleynekodev avatar sitterr avatar skytasul avatar technicproblem avatar tyoda avatar willmorrison avatar zarinoow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mcaselector's Issues

javafx error on headless import

I get a NoClassDefFoundError when restoring with the command:
java -jar mcaselector-1.8.2.jar --headless --mode import --world "${WORLD}" --input "${FOLDER}" --overwrite
The release notes on 1.8.2 say that javafx is not needed for headless mode, so i thought i will report it.
Interestingly this error is thrown even thought that openjfx is installed, but i guess thats another issue based on my setup or something (Ubuntu 18.04.2 LTS).

read threads: 1 process threads: 8 write threads: 4 Exception in thread "main" java.lang.NoClassDefFoundError: javafx/beans/property/StringProperty at net.querz.mcaselector.io.ChunkImporter.importChunks(ChunkImporter.java:33) at net.querz.mcaselector.headless.ParamExecutor.runModeImport(ParamExecutor.java:210) at net.querz.mcaselector.headless.ParamExecutor.lambda$parseAndRun$4(ParamExecutor.java:83) at net.querz.mcaselector.headless.ParamInterpreter.execute(ParamInterpreter.java:133) at net.querz.mcaselector.headless.ParamExecutor.parseAndRun(ParamExecutor.java:88) at net.querz.mcaselector.Main.main(Main.java:17) Caused by: java.lang.ClassNotFoundException: javafx.beans.property.StringProperty at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 6 more

Solution: Can't run mcaselector-1.9.jar

I dont know why, but i was having problems with running the .jar file, whenever i clicked on it just poped up a window for a split second and then closed. I was trying to fix this problem for a couple of days and finally got a simple answer: "Jarfix"
I think it'd be a gread idea to add another step in the instructions for people who're having the same problem.
Official site of Jarfix: https://johann.loefflmann.net/en/software/jarfix/index.html

Other than that i have nothing to add but keep on the good work!

Headless requires JavaFX

As the title says, running mcaselector from the command line with "--headless" still requires JavaFX.
AdoptOpenJDK doesn't ship with that atm and I don't think a GUI library is needed to run headless, perhaps move that stuff out of main to another class?

Map not showing up with 1.13.1 worlds

I'm running mcaselector on a Win 10 machine with the following Java-version:

java version "1.8.0_161"(should be "JRE 8u161-b12")
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)

If i open a 1.12 world, everything is fine but if i open a 1.13.1 world the screen looks like this:

image

This is from a test-world that contains 4 region-files. It looks like mcaselector can detect the region-files just fine but can't load/display the chunk-data.

I took a look at the region-files using NBTExplorer and they are using DataVersion 1628.

Bedrock edition support?

Are there any plans to implement support for Bedrock edition format worlds? While it is possible to convert them to Java edition with MCC Toolchest and then back again it would be nice to have native support especially since most of the editors that support Bedrock are not being updated and Amulet is still a long way away from being released.

Multiple issues when offsetting imported chunks

I am trying to merge two worlds by offsetting all the chunks in world B by +1024 chunks (x).

I encountered some issues in the process, and am wondering if there is a workaround.

First, I had to individually import all files greater than 2MB or the importer would get stuck indefinitely. This took a while but eventually it seemed to work.

When I teleported to the new location, things seemed fine at first, but when I try moving further away the world stops loading new chunks and it isnt able to save when exiting.

Also, all the chests seemed to have been deleted, but they are "invisible" until touched, at which point I noticed all of the chest data (items) were deleted and the chests were empty. Is this intended?

Question on using this to update world for 1.14

Hi,
1.14 just came out and I've been searching for a tool that will delete chunks on my current 1.13 world so that when I load it in 1.14, new chunks will generate with all the new features (such as new biomes, villager architecture, etc). Will this tool be able to do that?

Missing development doc

Hi,
I want translate this useful program to Czech but I don't know, how to properly build this for testing.

I was able to build jar, but it fails on missing net/querz/nbt/Tag class. I can build NBT:4, but have no idea, how to merge them together.

Issue finding a file

I cannot seem to find the .mca that mcaselector is supposed to look at in order to do anything. I use Twitch in order to play minecraft.

I cant seem to figure out how to scroll around in the GUI

This isn't really an issue, but I'm not sure where else to ask for help. Is there a way to scroll around in the GUI? I've gone full screen and zoomed out as much as possible, but I'd like to scroll around if possible to look at things and zoom in etc.

Improving the Chunk-Filter (even more)

I don't know if you want to add more features to the tool but after testing it for a few minutes i noticed two small things that could improve the chunk-filter (which, by the way, is an incredible feature).

  1. a "Select" option -> right now you can only Export/Delete the result of the filter - it would be nice if there was a third option, "Select", which would just select all the chunks in the main window that match the filter - that way you could "preview" what chunks are affected before actually deleting/exporting them
  2. when you Delete/Export chunks using the filter it would be nice if the tool would display a confirmation-dialog with a message like "You are about to delete/export 12345 chunks. Do you really want to do this?" and if the filter matches a whole world: "This will delete/export your whole world. Do you really want to do this?"

Chunk info.

It would be very useful to have a get a chunk info menu item. That way one does not have to resort to another program or viewer to view NBT data.

(JavaFX) openjfx no fix the problem

In Ubuntu19.10 (Debian like)
Java OpenJKD11 and openjfx install,
or with
OracleJDK13 and openjfx install
with
default-jre and openjfx install
with
default-jdk and openjfx install

java -jar mcaselector-1.9.3.jar

=

Exception in thread "main" java.lang.NoClassDefFoundError: javafx/beans/property/StringProperty
at net.querz.mcaselector.Main.main(Main.java:25)

Caused by: java.lang.ClassNotFoundException: javafx.beans.property.StringProperty
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)

I can't import chunks into a specific world

I'm trying to import some chunks from other worlds into my Minecraft 1.14 custom map world but every time I try to import it freezes when the blue bar is about to reach the end.
If I click cancel then it lets me continue using the program but doesn't import the chunks. I've tried with different settings but no matter what I do it doesn't work. I've tested importing chunks to other worlds and there seems to be no problem.

[BUG] "triden" or "trident"

when you filter chuks to search for entities there is an error in the tridents. Detect the entity: "triden" instead of its correct name "trident"

Crash when executed when executing "mcaselector-1.8.3.jar"

Hello! When I run mcaselector-1.8.3.jar, I get this crash:

Exception in thread "main" java.lang.NoClassDefFoundError: javafx/beans/property/StringProperty
	at net.querz.mcaselector.Main.main(Main.java:25)
Caused by: java.lang.ClassNotFoundException: javafx.beans.property.StringProperty
	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 1 more

I'm using Xubuntu 18.04, openjdk-8-jdk & openjdk-8-jre

[Suggestion] Can we be able to move around the map without the goto command

Just discovered this tool, it will be extremely helpful to regenerate the villages on our private family server map once they release the 1.14.1 corrected version, but there's just too much of hassle to remember the coordinates of everything cause right now we have to use the goto to center on it, or maybe I didn't understand how to move otherwise, it would be much simpler if we could move around the map like on google map or with the arrow keys so we could center on the stuff we want manually and delete the chunks we want quicker.

Question: Can this be used to edit chunks as well?

I'm just curious as to whether or not this could be used to change the biome of a particular chunk. Not regenerate the terrain or anything, just change it (primarily to affect which mobs spawn in an area).

Thank you!

Question - Can this edit chunks?

Can this do things like the old mcedit? Could I purge a chunk and make it so its just empty space instead of regenerating when loading? aka not deleting the chunk file but editing the blocks selected.

Improve the installation instructions

Hey Querz,

I was reading your installation instructions, and I applied some of that "brainpower" as per the requirements section.

I found that downloading a JRE 8+ from Oracle is quite a hassle, and --in most cases-- unnecessary.
In fact, a perfectly suitable JRE can already be found in C:\Program Files (x86)\Minecraft Launcher\runtime\jre-x64

I think you could improve the installation instructions with that information.
(but I don't know exactly how ... if I did, I would have created a PR)

Query filter not working properly

Hi,

I was trying to use mcaselector in headless mode, but the lastUpdate filter does not function properly. I was doing some test with the following command
java -jar mcaselector-1.9.3.jar --headless --debug --mode "select" --output ./test.csv --world server/world/region --query "LastUpdate >=\"2020-08-28 11:13:43\""
The time is in the future, but there are still chunk being selected and the same chunk are selected regardless of using > or <

EDIT: The query filter simply looks like it is not working. It always select the same chunks regardless of the filter.

Application

This software is very good. I want to repost it to the Chinese forum,and I will translate it into Chinese and hope to get your consent.

Map render breaks whenever I scroll in or out/ Importing chunks does not work across worlds

Okay, so whenever I zoom in or out of the map, the (cache?) breaks, and what I mean is that the regions/chunks unload and go grey. The only way I could fix this is by clearing the cache everytime this happens. At the same time, whenever I try to export chunks across worlds, it does not work, either by doing nothing at all or by scattering parts of the chunks in random places.

change block ids per command line

hello,
we want convert a old world (1.7.10) to a new minecraft version (1.12.2).
Our steps:

  1. load the old wold (1.7.10) with mca selector
  2. export chunks
  3. load a new generated world (1.12.2)
  4. import chunks
    Nice! Its works for all Vaniella Blocks! But we use forge mods :D

Next step is to change the block ids of the world. We have a mapping (old block id, new block id).
It is possible to write a query to change all block ids??

java -jar mcaselector-1.9.3.jar --headless --mode change --world atlantis --query<???>

Thanks for help!

Crash on run with Oracle Java SE 13

I am assuming JRE 8+ requirement means that mcaselector should be compatible with Oracle JDK 13 too, but it is not:

> "C:\Program Files\Java\jdk-13.0.1\bin\java.exe" -jar mcaselector-1.9.1.jar

Exception in thread "main" java.lang.NoClassDefFoundError: javafx/beans/property/StringProperty
        at net.querz.mcaselector.Config.setLocale(Config.java:87)
        at net.querz.mcaselector.Config.loadFromIni(Config.java:129)
        at net.querz.mcaselector.Main.main(Main.java:24)
Caused by: java.lang.ClassNotFoundException: javafx.beans.property.StringProperty
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
        ... 3 more

How does exporting chunks work?

Hello,
how exactly am I supposed to export chunks into another world? I tried exporting them from one world and copying the region files to another one, but the exported chunks just aren't there. Can you test and elaborate on how I'm supposed to do it correctly? Thank you.

java.lang.NullPointerException Anvil113ChunkDataProcessor

java.lang.NullPointerException
        at net.querz.mcaselector.version.anvil113.Anvil113ChunkDataProcessor.drawChunk(Anvil113ChunkDataProcessor.java:14)
        at net.querz.mcaselector.tiles.TileImage.drawChunkImage(TileImage.java:141)
        at net.querz.mcaselector.tiles.TileImage.createMCAImage(TileImage.java:125)
        at net.querz.mcaselector.tiles.TileImage.generateImage(TileImage.java:96)
        at net.querz.mcaselector.io.RegionImageGenerator$MCAImageProcessJob.execute(RegionImageGenerator.java:106)
        at net.querz.mcaselector.io.ProcessDataJob.run(ProcessDataJob.java:21)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

Future support for 1.16

This could be a silly question, But, Will this be updated to work with 1.16. I have used it for my 1.13.x to 1.14.x world and would love to use it again to clean my world to use in 1.15.x and 1.14.x

Option to prune maps

There should be a feature to prune the map. Meaning after you select all the chunks you want to keep, you should be able to go to Selection > Prune Chunks and it should delete all chunks that aren't selected in your selection

World won't load

I recently read about MCA selector which lets you trim your minecraft world. I downloaded it and decided to give it a try. I loaded my world but the screen didn't change.All i could see were the grid lines. I tried loading different worlds but nothing worked.I didn't get any errors messages. I moved the camera left and right but all i could see were the grid lines. Any ideas about that problem?

Place chunck before import

Hello Querz, great work with this tool.

I was wondering if it's possible to add the feature to place the chunks you are importing, instead of overwriting the existing world (.mca). Because I'm currently manually renaming the .mca until it's in a chunk I want.

edit:
I was to quick to type, when entering a chunk that I manually moved the server crashed.
But it would be great if it was possible to select where to place the new chunks.

Remap keyboard controls

For those who doesn't use a qwerty keyboard, it would be handy to change the control keys.

Multiple values for parameter world

I've been trying to get this to work for hours. wtf am I doing wrong?
java.exe -jar D:\downloads\mcaselector-1.9.jar --headless --mode select --world C:\Users\Jack\Desktop\nw\paperclip 1.14.2\world --output C:\Users\Jack\Desktop\nw\paperclip 1.14.2\test.csv --query "xPos >= -300 AND xPos <= 300 AND InhabitedTime < 1 hour"
It says "Multiple values for parameter world" no matter what I try.

Import chunks into "selection only"

Hi, how are you? I try to import chunks and when import and select the chunks in Offset, the program import the chunks in other chunks not selected. Any help?

Error: Null

I am looking to import a part of one world into another world, but I get this error:

Error: null
java.lang.NullPointerException
        at java.io.File.<init>(File.java:277)
        at net.querz.mcaselector.headless.ParamExecutor.parseFile(ParamExecutor.java:322)
        at net.querz.mcaselector.headless.ParamExecutor.runModeImport(ParamExecutor.java:205)
        at net.querz.mcaselector.headless.ParamExecutor.lambda$parseAndRun$4(ParamExecutor.java:84)
        at net.querz.mcaselector.headless.ParamInterpreter.execute(ParamInterpreter.java:133)
        at net.querz.mcaselector.headless.ParamExecutor.parseAndRun(ParamExecutor.java:89)
        at net.querz.mcaselector.Main.main(Main.java:17)

These are the commands I use. The second one gives the error:

Hunter@dynmap:/mnt$ java -jar mcaselector-1.9.2.jar --headless --mode export --world /mnt/customterrain/customterrain/world/region/ --output /mnt/paper/paper/ct/ --query "xPos > -16 AND xPos < 16"

Hunter@dynmap:/mnt$ java -jar mcaselector-1.9.2.jar --headless --mode import --world /mnt/paper/paper/world/region/ --input /mnt/paper/paper/ct/ --debug

I am running Ubuntu 18.04 with OpenJDK 1.8.0 and with the JavaFX package installed.

edit: I didn't use my brain to read the documentation. This might actually be working, but I was using block offsets instead of chunk offsets. Give me a day to test it.

Crash on run with OpenJDK Java 8

Running the jar using OpenJDK Java 8 rather than the Oracle's Java 8 crashes immediately, with the exception:

Exception in thread "main" java.lang.NoClassDefFoundError: javafx/scene/paint/Color
	at net.querz.mcaselector.Config.<clinit>(Config.java:12)
	at net.querz.mcaselector.Main.main(Main.java:11)

Caused by: java.lang.ClassNotFoundException: javafx.scene.paint.Color
	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 2 more

It's not clear whether this error is due to the use of OpenJDK or if you intend to support anything other than Oracle-brewed Java, but thought I would post this here.

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.