Code Monkey home page Code Monkey logo

chunkgen's People

Contributors

anodecathode avatar baughn avatar brad18 avatar elix-x avatar gecgooden avatar marvin-bitterlich avatar sythelux 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

Watchers

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

chunkgen's Issues

1.8.9 version does not load

The 1.8.9 version of 1.3 crashes while loading with the following exception:

net.minecraftforge.fml.common.LoaderException: java.lang.NoSuchFieldError: dirt
at net.minecraftforge.fml.common.LoadController.transition(LoadController.java:162)
at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:739)
at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:310)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:495)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:329)
at net.minecraft.client.main.Main.main(SourceFile:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
Caused by: java.lang.NoSuchFieldError: dirt
at com.example.examplemod.ExampleMod.init(ExampleMod.java:18)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:560)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:211)
at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:737)
... 10 more

Tested with Forge 11.15.1.1808

[Feature] Confirm chunkgen on large generations?

Can you add a confirmation dialog that pops up when the amount of chunks exceeds an amount? Basically just way for the game to tell "Hey you are about to generate 15,000 chunks. Are you sure you want to do this?"

Also along with this can you add a command that allows you to calculate how many chunks you are about to generate. Like the same thing as above but a command like "chunkgen calculate radius ~ ~ 50 0". Have the command tell you that will be ### chunks.

./gradlew runClient does not work

In fact building it doesn't work at all. Fix the obvious code error, however, and you get a ConcurrentModificationException on startup.

Can you take a look?

One of the passed arguments wasn't a number!

I get the above comment when trying to use the mod. Using 1.8.9, my Forge is 1808.

I type in:

/chunkgen zone 135 141 2500 2500 0

starting coords, amount of x and z chunks (40kx40k blocks), and dimension. I tried a bunch of other stuff but get the same comment. Any clarification is appreciated.

1.10.2 (1.5) version seems to run untill manually stopped

I feel like this version keeps running indefinitely until issuing /chunkgen stop. It looks like once it finished the area i set, it just starts over again and I'm assuming just loads and unloads chunks since they are already generated. Before I went to bed last night it had generated about 2.7 GB of data (over the course of about 8 hours) and was still running this morning, but only an additional 100MB of data was written to the disk all night bringing the total to 2.8 GB. Is this normal behavior?

Edit: just SSH'd into my sever while on lunch and the chunkgen process is still running, I never actually stopped it this morning and it still hasn't created anymore data. I'm guessing it's safe to say the process is finished

change chunkgen per tick while players online

really nice mod. was wondering if a feature could be instead of disabling chunk loading when a player is online, you could set chunk loading to a different number. we have my server set to 5 chunks per tick when no players are online, but wed like to set it to 0.2 chunks per tick or something so it gens more slowly when someone is online.

[REQ] Save list of generated chunks to disk to speed up generation of large area's

First of all thank you for developing this mod.
It might be small but its an essential mod for every server owner.

Then the actual request:

When generating a world on a server I try to generate them in pieces so I can generate them inbetween server restarts and when no users are online. This however leads to some complications.
Unless you manually subdivide the wanted area into regions that you should generate the mod does not take into account that some of the chunks already exist. And checks them one by one if they exist or not.

This works fine for small generations as the amount of chunks to check is small.
But this gets problematic when you are generating a 20.000 x 20.000 area consisting of rougly 1562500 chunks. Checking every single one of these chunks means loading rougly 1525 regionfiles (32x32 chunks each) from disc to check if the chunk exists. It might even load the same region file multiple times depending on the order in which it generates these chunks.

Keeping a list of which chunks have been generated in each dimension by chunkgen and previously skipped because a player generated them would be a nice thing to have.
Checking against that list at generation start could drastically reduce the number of read operations from disk speeding up the process alot.

It might not seem much of an improvement if you look at small area's but for large area's in multiple generation sessions it might actually differ alot.

Progress updates

From minecraft forums post:

Do you think you can make milestones (every 10x10 chunks?) post a message to the chat? I'm not getting any feedback that the chunkgen command even works.

Is it working?

I currently have this installed on only the server.
I run the command and get no response saying it started or anything.
Running /chunkgen stop says it stopped but that's regardless of if a generator is running or not.
#3 says that progress updates were added but they never appear.

[Feature Request] Allow fractional values for numChunksPerTick

I have a weird request. We're using ExtrabiomesXL on our current map and it has some issues with decoration (namely biomes with a lot of leaves). Anytime chunkgen gets to a chunk that ends up being a "leafy" biome, we end up with 9000ms-30000ms tick periods. (this is not an exaggeraton!)

It would be nice if somehow chunkgen could somehow allow fractional values so that instead of loading 1 defined by numChunksPerTick, I could specify something like .025, meaning it would load one chunk every 40 ticks. I'm open to other solutions if you can think of something more efficient or easier to code.

How do I specify loading chunks for specific dimensions when players start the game?

I've got a number of dimensions created by JustEnoughDimensions and I want to generate chunks for them when the game first loads. Specifically I want to generate chunks at 0,0 where I can spawn a portal allowing players to enter the new region.

However when I opened the config file there was no slot showing for the optional dimension argument; the same thing with the config option in game. No dimension options.

Unable to build

When attempting to build i first got error with downloading mappings, changed what snapshot to fetch (from 1.9.4 to 1.10.2) but now i get errors

:compileJava
C:\Users\admin\Desktop\gradle\chunkgen-master\build\sources\main\java\com\gecgooden\chunkgen\commands\ChunkGenCommand.java:14: error: ChunkGenCommand is not abstract and does not override abstract method getUsage(ICommandSender) in ICommand
public class ChunkGenCommand extends CommandBase
       ^
C:\Users\admin\Desktop\gradle\chunkgen-master\build\sources\main\java\com\gecgooden\chunkgen\commands\ChunkGenCommand.java:21: error: method does not override or implement a method from a supertype
        @Override
        ^
C:\Users\admin\Desktop\gradle\chunkgen-master\build\sources\main\java\com\gecgooden\chunkgen\commands\ChunkGenCommand.java:27: error: method does not override or implement a method from a supertype
        @Override
        ^
C:\Users\admin\Desktop\gradle\chunkgen-master\build\sources\main\java\com\gecgooden\chunkgen\commands\ChunkGenCommand.java:83: error: method does not override or implement a method from a supertype
        @Override
        ^
C:\Users\admin\Desktop\gradle\chunkgen-master\build\sources\main\java\com\gecgooden\chunkgen\handlers\TickHandler.java:27: error: cannot find symbol
                for (WorldServer worldServer : server.worldServers) {
                                                     ^
  symbol:   variable worldServers
  location: variable server of type MinecraftServer
C:\Users\admin\Desktop\gradle\chunkgen-master\build\sources\main\java\com\gecgooden\chunkgen\handlers\TickHandler.java:51: error: cannot find symbol
                                                cp.getICommandSender().addChatMessage(new TextComponentString(String.format("Generation %.6f%% completed", completedPercentage)));
                                                                      ^
  symbol:   method addChatMessage(TextComponentString)
  location: interface ICommandSender
C:\Users\admin\Desktop\gradle\chunkgen-master\build\sources\main\java\com\gecgooden\chunkgen\handlers\TickHandler.java:56: error: cannot find symbol
                                                cp.getICommandSender().addChatMessage(new TextComponentTranslation("chunkgen.genat",
                                                                      ^
  symbol:   method addChatMessage(TextComponentTranslation)
  location: interface ICommandSender
C:\Users\admin\Desktop\gradle\chunkgen-master\build\sources\main\java\com\gecgooden\chunkgen\handlers\TickHandler.java:63: error: cannot find symbol
                                                server.addChatMessage(chatTranslation);
                                                      ^
  symbol:   method addChatMessage(TextComponentTranslation)
  location: variable server of type MinecraftServer
C:\Users\admin\Desktop\gradle\chunkgen-master\build\sources\main\java\com\gecgooden\chunkgen\handlers\TickHandler.java:64: error: cannot find symbol
                                                cp.getICommandSender().addChatMessage(new TextComponentString(chatTranslation.getUnformattedComponentText()));
                                                                      ^
  symbol:   method addChatMessage(TextComponentString)
  location: interface ICommandSender
9 errors
:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1 mins 14.548 secs

This is my first attempt at building an mod on my own, and im unsure what to do

1.8.9 Server Crash on StartUp (with chunkgen-1.8.9-1.3.0.jar)

[17:36:24] [Server thread/ERROR] [FML]: Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue
[17:36:24] [Thread-8/INFO] [VersionChecker]: Received version check from mod VersionChecker
[17:36:24] [Server thread/ERROR] [FML]:
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCHI mcp{9.19} Minecraft Coder Pack
UCHI FML{8.0.99.99} Forge Mod Loader
UCHI Forge{11.15.1.1855} Minecraft Forge
UCHI abilstones{8.1.2.0} [Ability Stones](Ability Stones 8.1.2.0.jar)
UCHI AutoSapling{1.0} [Auto Sapling](AutoSapling 1.2 MC1.8.9.jar)
UCHI babymobs{1.4} Baby Mobs
UCHI BetterAchievements{0.1.1} Better Achievements
UCHI betterbuilderswands{0.5.3} Better Builder's Wands
UCHI BetterThanBedrock{gibt-release} Better Than Bedrock
UCHI BiomesOPlenty{3.0.0} Biomes O' Plenty
UCHI chameleoncreepers{1.3} Chameleon Creepers
UCHI ChestTransporter{2.2.1} Chest Transporter
UCHI chickens{1.3} Chickens
UCHE examplemod{1.0} examplemod
UCHI chunkgen{1.7.10-1.2.2} ChunkGen
UCHI compasscoords{1.8.9-0.2.6} Compass Co-ords
UCHI craftnstar{0.3.1} Craftable Nether Star +
UCHI dldungeonsjdg{1.8.10} Doomlike Dungeons
UCHI endores{1.0-a.010} [End Ores](End Ores-1.0-a.010.jar)
UCHI endercompass{1.2.2} Ender Compass
UCHI endercrop{1.8.9-1.2} Ender Crop
UCHI EnderZoo{1.8.9-1.1.3.35} Ender Zoo
UCHI FFS{1.8.9-1.5.1.97} [Fancy Fluid Storage](Fancy Fluid Storage-1.8.9-1.5.1.97.jar)
UCHI fastleafdecay{1.6} Fast Leaf Decay
UCHI ftfloocraft{1.8.9-0.2} Floocraft
UCHI graves{1.8.9-b47-universal} Graves Mod
UCHI HelpFixer{1.8.9-1.2.12} HelpFixer
UCHI hgp{Release} Horizontal Glass Panes
UCHI hopperducts{1.4.6} Hopper Ducts
UCHI InfernalMobs{1.6.6} Infernal Mobs
UCHI IronChest{6.0.125.770} Iron Chest
UCHI journeymap{1.8.9-5.1.5} JourneyMap
UCHI jaff{1.4.1_for_1.8.9} Just a Few Fish
UCHI lteleporters{1.0.0} Lemon's Simple Teleporters
UCHI magicclover{1.8-0.7.2} Magic Clover
UCHI RadixCore{1.8.9-2.1.0} RadixCore
UCHI MCA{1.8.9-5.1.2} Minecraft Comes Alive
UCHI MelonBlockDrop{1.2.1} Melon Block Drop
UCHI MoreFurnaces{1.5.1} More Furnaces
UCHI Morpheus{1.8.9-2.0.58} Morpheus
UCHI netherportalfix{1.0} Nether Portal Fix
UCHI nmsot{1.1.2-mc1.8.9} No Mob Spawning on Trees
UCHI PigManure{1.0.1} Pig Manure
UCHI placemod{2.1} Placemod
UCHI pcb{1.5.0} Portable Craft Bench
UCHI progressiveautomation{1.6.35} Progressive Automation
UCHI reborncore{1.4.1.15} RebornCore
UCHI redstonepaste{1.7.2} Redstone Paste
UCHI rightclicktorch{1.8.9-1.0.2} RightClickTorch
UCHI Roguelike{1.4.5} Roguelike Dungeons
UCHI AS_Ruins{15.6} Ruins Spawning System
UCHI sensorcraft{0.1.1} SensorCraft
UCHI sheeeps{0.3.3} Sheeeps!
UCHI spawnercraft{1.8.9-2.3} SpawnerCraft
UCHI mod_lizzyanvil{1.0} The Lizzy Anvil
UCHI throwabletorchmod{1.3} ThrowableTorchMod
UCHI Trashcans{1.0.1} Trashcans
UCHI trashslot{2.0.7} TrashSlot
UCHI AS_UpdateCheck{1.1.7} AtomicStryker Update Check Mod
UCHI VeinMiner{0.31.4_build.unknown} Vein Miner
UCHI VeinMinerModSupport{0.31.4_build.unknown} Mod Support
UCHI VersionChecker{1.2.5} Version Checker
UCHI mod_lizzyxpbottle{1.0} Worthwhile XP Bottles
[17:36:24] [Server thread/ERROR] [FML]: The following problems were captured during this phase
[17:36:24] [Server thread/ERROR] [FML]: Caught exception from examplemod
java.lang.NoSuchFieldError: dirt
at com.example.examplemod.ExampleMod.init(ExampleMod.java:18) ~[ExampleMod.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:560) ~[forge.jar:?]
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[minecraft_server.1.8.9.jar:?]
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[minecraft_server.1.8.9.jar:?]
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[minecraft_server.1.8.9.jar:?]
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[minecraft_server.1.8.9.jar:?]
at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[minecraft_server.1.8.9.jar:?]
at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:211) ~[forge.jar:?]
at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189) ~[forge.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[minecraft_server.1.8.9.jar:?]
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[minecraft_server.1.8.9.jar:?]
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[minecraft_server.1.8.9.jar:?]
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[minecraft_server.1.8.9.jar:?]
at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[minecraft_server.1.8.9.jar:?]
at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118) [LoadController.class:?]
at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:737) [Loader.class:?]
at net.minecraftforge.fml.server.FMLServerHandler.finishServerLoading(FMLServerHandler.java:97) [FMLServerHandler.class:?]
at net.minecraftforge.fml.common.FMLCommonHandler.onServerStarted(FMLCommonHandler.java:325) [FMLCommonHandler.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:205) [ko.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:441) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_45]
[17:36:24] [Server thread/ERROR]: Encountered an unexpected exception
net.minecraftforge.fml.common.LoaderException: java.lang.NoSuchFieldError: dirt

    at net.minecraftforge.fml.common.LoadController.transition(LoadController.java:162) ~[LoadController.class:?]
    at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:739) ~[Loader.class:?]
    at net.minecraftforge.fml.server.FMLServerHandler.finishServerLoading(FMLServerHandler.java:97) ~[FMLServerHandler.class:?]
    at net.minecraftforge.fml.common.FMLCommonHandler.onServerStarted(FMLCommonHandler.java:325) ~[FMLCommonHandler.class:?]
    at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:205) ~[ko.class:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:441) [MinecraftServer.class:?]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_45]

Caused by: java.lang.NoSuchFieldError: dirt
at com.example.examplemod.ExampleMod.init(ExampleMod.java:18) ~[ExampleMod.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:560) ~[forge.jar:?]
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[minecraft_server.1.8.9.jar:?]
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[minecraft_server.1.8.9.jar:?]
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[minecraft_server.1.8.9.jar:?]
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[minecraft_server.1.8.9.jar:?]
at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[minecraft_server.1.8.9.jar:?]
at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:211) ~[LoadController.class:?]
at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189) ~[LoadController.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[minecraft_server.1.8.9.jar:?]
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[minecraft_server.1.8.9.jar:?]
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[minecraft_server.1.8.9.jar:?]
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[minecraft_server.1.8.9.jar:?]
at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[minecraft_server.1.8.9.jar:?]
at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118) ~[LoadController.class:?]
at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:737) ~[Loader.class:?]
... 5 more
[17:36:24] [Server thread/ERROR]: This crash report has been saved to: G:\minecraft-forge\server189.\crash-reports\crash-2016-04-10_17.36.24-server.txt
[17:36:24] [Server thread/WARN] [FML]: Can't revert to frozen GameData state without freezing first.
[17:36:24] [Server thread/INFO] [FML]: The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED. Errors may have been discarded.
[17:36:24] [Server thread/INFO] [FML]: The state engine was in incorrect state ERRORED and forced into state AVAILABLE. Errors may have been discarded.

1.7.2

Will 1.7.10 version work with 1.7.2?

Feature: force chunk-generation

Hello

As I'm using this, I already have lots of chunks that are generated just partly, means, just landscape no features and or just the "chunk file" (so also the chunk) already exists, but is completely empty (8kb file on harddrive for example)

Therefore I'm looking for a way to "force-load" chunks, even if they already exist and generate whats missing.

So force the chunk generation, skipping the "chunk already exist" check and just try "generation".

Should be possible, right?

Thanks & Regards

[1.5.0] Radius command not producing correct size / shape

I finally got around to running the new release, and it works, yay!

I ran chunkgen radius 0 0 400 from the console, which should generate a circle of radius 400 chunks from 0,0, which should work out to 6400 blocks, correct?

After it completed overnight, I ran a dynmap fullrender on the world to see the results, and got this:
dynmap
Live map

It's a square map, going from almost exactly -4000,-4000 to 4000,4000. (The bits poking out North & South were from manual exploration before running chunkgen. I outlined the approx pre-existing area in red)

So it seems like the area algorithm for radius generation still needs some work?

"chunkgen echo [on/off]" and "chunkgen status" commands.

(Can't label as a feature-request for some reason)

Please add "chunkgen echo [on/off]" and "chunkgen status" commands. So we don't have to deal with massive console spam, which makes typing in new commands difficult.

Also, if possible...

This command might be used when no players are logged in, you may want to keep the chunk at x/y loaded the whole time to reduce other console spam. Like:

[Server thread/INFO] [FML]: Loading dimension 1 (world) (net.minecraft.server.dedicated.DedicatedServer@5e68ce60)
[Server thread/INFO] [FML]: Unloading dimension 1

[Feature] world border

Would it be possible to add a world border feature to this mod? So when you generate an area you could perhaps add a flag "addborder" to add a border to the area being generated. There then should probably be a padding (config option) beyond the border so you don't get untidy looking borders on Dynmap and the like when you bump into the border.

Perhaps the chunkgen could use Minecraft's build in border system for this?

Entities and TileEntities not unloading.

I am currently generating a big area on my server using the pr #33

But the number of entities and tileentities rises steady event with their respective chunks being unloaded. Is there a way to unload them too?

REQ: Issue /save-all after X chunks, tweaks

Might be a good idea to code in an option for /save-all command every X chunks if server operators have /save-off on by default or for backup purposes.

savex=100 (issue a /save-all every 100 chunks)

Additionally an EmptyOnly option to run only when player count = 0 might be nice.

From past experiences with chunk generators it may be a good idea to have an option for less then 1 chunk per tick, perhaps an option for every N ticks. Say a TickSkip option.

/chunkgen radius 0 0 1000 ~ true saveex=100 tickSkip=1 (Effectively every other tick)
/chunkgen radius 0 0 1000 ~ true saveex=300 tickSkip=2 EmptyOnly=true (effectively every 300 chunks generated do a force /save-all, generating a chunk every 3rd tick and only when there are no players online)

Strange Error: java.lang.AbstractMethodError - 1.10.2

Clean MC Server: 1.10.2
Forge: forge-1.10.2-12.18.3.2297

I checked the source to see if there was any issues at com.gecgooden.chunkgen.ChunkGen.serverLoad the command class passed seams to be implemented just fine. To my surprise, the mod works perfectly in a development environment. I even loaded the released mod with a development build of minecraft and that worked perfectly too. However, If I do a clean download of forge and minecraft the mod gives me this error.

I even tried running minecraft with the same jre as my development environment but that didn't work either.

Anyways. I gave up, and I'm leaving this here for anyone interested.

fml-server-latest.txt

Some chunks not populated

Random lines of chunks are not populated. The issue is here. As I explaied in my comment to issue #2, you need to generate chunks at (x, z), (x+1, z), (x, z+1), (x+1, z+1). In any order.
The order doesn't matter because if you, for example, generate chunk at (x+1, z) it will also try to populate chunks at (x+1-1, z), (x+1, z-1), (x+1-1, z-1).
Your way mostly works because you don't explictly unload chunks. And apparently forge unloads them automatically. And when forge unloads chunks - some newly generated chunks won't be populated.

Generate Features

Hello

Does this mod also generate terrain features like trees, plants ect?

There are many mods outside just generating the chunk without features, but what also consumes a lot o processing power is the features ie. from BoP, sometimes when I reach an area that is heavy to generate and travel around, I get kicked out due to timeouts till everything is generated.

So I also like to generate features, is it possible?

Cheers

Ignore already generated chunks, to reduce resources used? (1.10.2/1.5)

I don't have the greatest machine to use as a standalone server, let alone, be able to handle just 2 players (just myself and my brother). The worldgen always crashed my server, so chunkgen is a God-send.

However, I realized that regardless where I start the generation, it always goes over already generated chunks. I can't put in 100 100 because it'll get about 50% and throw an out of memory error (6GB allocated with a C2Q Q8400). I was able to successfully generate a 75x75 area, which looks plenty, yet my endgame is 500x500.

I'm constantly hitting my cap, and it really doesn't matter which jvm arguments I use, it always caps out the RAM.

Would it be possible to add a logic to parse the region data really quick to see what has been generated, then go from there?

Thank you.

Exception Generating Chunk, couldn't find realistic ver of biome

Having an issue with the 1.7.10 edition: Somehow, biome 195, Thaumcraft Eldritchlands, tried to generate in the overworld and crashed the server.
I'm running a Cauldron 1.7.10 server. Any help to fix this, or at least to manually fix the "corrupted" chunks, would be fantastic!
Players will crash on log on, I teleported to the chunk to investigate and managed to crash the server.

Crash report:
https://drive.google.com/open?id=0B_vrOlC_nFXlR2tjQ3BvbXp3dzg

Additional info with server console:
https://docs.google.com/document/d/1zzEdgZSmmdlolrXxzcAcdqxX-eiy1gQMpJeaPVCbDIE/edit?usp=sharing

Couple of questions

I couldn't fully understand correctly how the mod works, so just asking few questions.

Q1 The way the chunkgen command works when generating chunks, iam not sure how exactly it is done, so i drew(pretty shity) to clarify.

chunkgen

Q2 From my understanding the height and width is chunk and not blocks range, am i right?

Q3 Also i've noticed that my server has crashed around 15%, ticking exception, after it restarted the command doesn't continue(Like WorldBorder), and running it again it restarts the process from start again, but there is the config option to set the height and width in the config to do the gen after server start.
Does the config option work the same as the chunkgen(ie. "/chunkgen 0 0 625 625 0") command but it doesn't redo the chunks that have been already generated?

Also it seems the mod does check the chunks again to see if they are generated, wouldn't it be faster to store a file containing a list of chunks that would be marked true/false(true being generated/false un-generated) and just continue on the next non-loaded chunk?

Generate chunks in 2x2 blocks

To ensure that chunks are populated, sponge chunkgen for example always generates 4 chunks at the same time.

Looking at the log output your mod is giving, chunks are generated in stripes of 1, so would it be possible to increase the striping to be 2 thick?

Github page links to older version

Hi there!

I found your main github page linked to an older version of chunkgen (1.2.1). You may want to update the link to 1.2.3. Great mod, thank you for making it!

Chunkgen + RTG?

I'm trying to generate a new world with a 42k x 42k area, I'm using the command "/chunkgen 0 0 2630 2630". It successfully adds data for the chunks that were already generated, but when It gets to new chunks, the server crashes. I was wondering if there's a way I can use chunkgen to generate chunks with RTG custom terrain for my server, or if there's something I can do to fix this. I need to generate it before I use pixelmon and sponge so that it generates correctly.

Versions:
chunkgen-1.8.9-1.3.0.jar
RTG-1.8.9-1.0.0-snapshot-2.jar
BiomeTweaker-1.8.9-2.1.206.jar
forge-1.8.9-11.15.1.1902-1.8.9-universal.jar

Crash Message:
net.minecraft.util.ReportedException: Exception generating new chunk at net.minecraft.world.gen.ChunkProviderServer.originalLoadChunk(ChunkProviderServer.java:163) ~[ld.class:?] at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:114) ~[ld.class:?] at net.minecraft.world.gen.ChunkProviderServer.func_73158_c(ChunkProviderServer.java:84) ~[ld.class:?] at net.minecraft.world.gen.ChunkProviderServer.func_73154_d(ChunkProviderServer.java:181) ~[ld.class:?] at net.minecraft.world.World.func_72964_e(World.java:287) ~[adm.class:?] at net.minecraft.world.World.func_175726_f(World.java:282) ~[adm.class:?] at net.minecraft.world.World.func_180495_p(World.java:822) ~[adm.class:?] at net.minecraft.world.gen.feature.WorldGenMinable.func_180709_b(WorldGenMinable.java:76) ~[apj.class:?] at com.pixelmonmod.pixelmon.pixelutilities.worldgen.GenericOreGenerator.generate(GenericOreGenerator.java:42) ~[GenericOreGenerator.class:?] at net.minecraftforge.fml.common.registry.GameRegistry.generateWorld(GameRegistry.java:112) ~[GameRegistry.class:?] at net.minecraft.world.gen.ChunkProviderServer.func_73153_a(ChunkProviderServer.java:262) ~[ld.class:?] at net.minecraft.world.chunk.Chunk.func_76624_a(Chunk.java:1082) ~[amy.class:?] at net.minecraft.world.gen.ChunkProviderServer.originalLoadChunk(ChunkProviderServer.java:172) ~[ld.class:?] at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:114) ~[ld.class:?] at net.minecraft.world.gen.ChunkProviderServer.func_73158_c(ChunkProviderServer.java:84) ~[ld.class:?] at com.gecgooden.chunkgen.util.Utilities.generateChunk(Utilities.java:49) ~[Utilities.class:?] at com.gecgooden.chunkgen.handlers.TickHandler.onServerTick(TickHandler.java:31) ~[TickHandler.class:?] at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_20_TickHandler_onServerTick_ServerTickEvent.invoke(.dynamic) ~[?:?] at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:49) ~[ASMEventHandler.class:?] at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:140) ~[EventBus.class:?] at net.minecraftforge.fml.common.FMLCommonHandler.onPostServerTick(FMLCommonHandler.java:253) ~[FMLCommonHandler.class:?] at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:649) ~[MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:481) [MinecraftServer.class:?] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92] Caused by: java.lang.ExceptionInInitializerError at rtg.world.biome.realistic.RealisticBiomeBase.rMapVolcanoes(RealisticBiomeBase.java:399) ~[RealisticBiomeBase.class:?] at rtg.world.biome.realistic.RealisticBiomeBase.generateMapGen(RealisticBiomeBase.java:425) ~[RealisticBiomeBase.class:?] at rtg.world.gen.ChunkProviderRTG.func_73154_d(ChunkProviderRTG.java:278) ~[ChunkProviderRTG.class:?] at net.minecraft.world.gen.ChunkProviderServer.originalLoadChunk(ChunkProviderServer.java:154) ~[ld.class:?] ... 23 more Caused by: java.lang.NullPointerException at rtg.world.gen.feature.WorldGenVolcano.(WorldGenVolcano.java:26) ~[WorldGenVolcano.class:?] at rtg.world.biome.realistic.RealisticBiomeBase.rMapVolcanoes(RealisticBiomeBase.java:399) ~[RealisticBiomeBase.class:?] at rtg.world.biome.realistic.RealisticBiomeBase.generateMapGen(RealisticBiomeBase.java:425) ~[RealisticBiomeBase.class:?] at rtg.world.gen.ChunkProviderRTG.func_73154_d(ChunkProviderRTG.java:278) ~[ChunkProviderRTG.class:?] at net.minecraft.world.gen.ChunkProviderServer.originalLoadChunk(ChunkProviderServer.java:154) ~[ld.class:?]

All help is appreciated. Thanks.

Trees not generating during chunkgen

When I pre-generate maps with the mod and then run mapping software such as JourneyMap (client-side) or DynMap (server-side) the results are maps that map out the biomes, but trees/foliage only appear where players have traveled.

Sample from JourneyMap: http://imgur.com/9atu8eo

Not sure exactly what to classify this as.. I don't see it quite as a bug.. maybe a feature request?

Chunkgen large areas leads to Out-Of-Memory exceptions.

Chunkgen seems to loads chunks as quickly as it can with no apparent limiter. If forge doesn't unload chunks faster than chunkgen is loading them the server eventually dies. The chunk generator says unloadChunksIfNotNearSpawn but that doesn't seem to be as fast as chunkgen is loading them. Ram for the minecraft server is 2.5GB and total ram in the server is 8gb. RAM normally isn't ever an issue unless I use chunkgen on a large area. Would it be possible to check for the number of loaded chunks when starting gen then pausing the gen for a bit if the loaded chunks get say 250 more than that initial value? Or perhaps add in a manual save-all every so many chunks to help convince forge to unload the chunks?

/chunkgen 0 0 100 100 0

--SNIP--
[01:29:51] [Server thread/INFO] [chunkgen/]: percentage: 0.69200003
[01:29:51] [Server thread/INFO] [chunkgen/]: Loaded Chunk at 19 -30 0
[01:29:51] [Server thread/ERROR] [FML/]: Exception caught during firing event cpw.mods.fml.common.gameevent.TickEvent$ServerTickEvent@55a88681:
java.lang.OutOfMemoryError: GC overhead limit exceeded

This becomes even more apparent when /chunkgen 0 0 100 100 0 crashes then after starting back up you repeat the command only to have it crash even faster.

Fix percentage display.

Progress updates are off by a factor of 100.

So, instead of showing 99.546%, it shows 0.99546%.

Not working on 1.10.2

When I try to create a world I get an endless "Building terrain" while this mod is installed.

[1.10.2] No new chunks are generated

I know it sounds strange, but it seems the mod pretends to be doing something, but actually it isn't (see link). It has log output, and the percentage goes up (and it eventually finishes), but the actual files on disk aren't touched. I've tried running chunkgen radius 0 0 1000 0, left it overnight and it completed without problems. Only the world on disk was 17 MB, and that's kinda impossible. Am I doing something wrong?

https://asciinema.org/a/5p8ljlqlqeczr57rmghdwag5h

Crash on server startup

Using v14:

[09:16:46] [Server thread/ERROR] [FML/]: Caught exception from chunkgen
java.lang.AbstractMethodError
    at net.minecraft.command.CommandHandler.func_71560_a(CommandHandler.java:134) ~[k.class:?]
    at net.minecraftforge.fml.common.event.FMLServerStartingEvent.registerServerCommand(FMLServerStartingEvent.java:59) ~[FMLServerStartingEvent.class:?]
    at com.gecgooden.chunkgen.ChunkGen.serverLoad(ChunkGen.java:39) ~[ChunkGen.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_101]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_101]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_101]
    at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:597) ~[minecraft_server.jar:?]
    at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source) ~[?:?]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_101]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_101]
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[minecraft_server.1.10.2.jar:?]
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[minecraft_server.1.10.2.jar:?]
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[minecraft_server.1.10.2.jar:?]
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[minecraft_server.1.10.2.jar:?]
    at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[minecraft_server.1.10.2.jar:?]
    at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:239) ~[minecraft_server.jar:?]
    at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:217) ~[minecraft_server.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_101]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_101]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_101]
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[minecraft_server.1.10.2.jar:?]
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[minecraft_server.1.10.2.jar:?]
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[minecraft_server.1.10.2.jar:?]
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[minecraft_server.1.10.2.jar:?]
    at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[minecraft_server.1.10.2.jar:?]
    at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:142) [LoadController.class:?]
    at net.minecraftforge.fml.common.Loader.serverStarting(Loader.java:840) [Loader.class:?]
    at net.minecraftforge.fml.common.FMLCommonHandler.handleServerStarting(FMLCommonHandler.java:292) [FMLCommonHandler.class:?]
    at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:293) [ld.class:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:431) [MinecraftServer.class:?]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]

Crash on startup new world

https://paste.ee/r/z3Wdn

I wanted to pregen a new world so i download chunkgen-1.10.2-1.4.0.jar from https://github.com/gecgooden/chunkgen/releases dragged and dropped into server mods folder and started server

I am not trying on an existing world i made a new world let it generate it did as soon as spawn generated the server crashed

Admittedly i do have a ton of mods installed and rtg is also installed but it was not mentioned in the crash at all

"[14:54:21] [Server thread/INFO]: Preparing spawn area: 92%
[14:54:22] [Server thread/INFO]: Done (16.295s)! For help, type "help" or "?"
[14:54:26] [Server thread/INFO]: Stopping server"

Exception ticking world / IllegalArgumentException crash on 1.12.2

On Forge 2641 and 2611 (tested both) I get the following crash after letting the game generate chunks for a while. The time varies depending on whether or not I have other mods loaded, but it's definitely chunkgen causing it as it stops whenever I remove the mod.

I know this isn't the Forge you built against, but currently the recommended Forge version for 1.12.2 is 2611 so I probably won't be the only one experiencing this!

java.lang.IllegalArgumentException: Cannot get property PropertyEnum{name=variant, clazz=class net.minecraft.block.BlockPlanks$EnumType, values=[oak, spruce, birch, jungle]} as it does not exist in BlockStateContainer{block=minecraft:air, properties=[]}

Crash log here (with no other mods but Optifine+shaders and Liteloader+Voxelmap), also: chunkgen.cfg I'm using

Version: chunkgen-1.12-1.5.0.jar - Mar 16, 2018

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.