Would it be more efficient to utilize the code for chunk loaders than to teleport a player around? I know for sure that those generate chunks they load if they havent been made yet. Could even be made into a convenient ingame object (much like a chunkloader) you just place in the world for those who absolutely want a gui to interact with.
Would it be more efficient to utilize the code for chunk loaders than to teleport a player around? I know for sure that those generate chunks they load if they havent been made yet. Could even be made into a convenient ingame object (much like a chunkloader) you just place in the world for those who absolutely want a gui to interact with.
Short answer: Yes.
Long answer: It needs to be updated for every version of the server and/or mod api. I dont want to do this. I want to make something once that works with a wide array of servers.
Plus if you write it for lets say, Forge, it wont work with Bukkit, or vanilla. If Mojang ever gets the official API done, thats a different story.
sending a command to teleport the play will work with every version of minecraft since the official release of 1.0
Rollback Post to RevisionRollBack
Minecraft Land Generator | Memory issues? Try this:java -Xincgc-Xmx1024M -Xms512M -jar Minecraft.jar "We must be that generation that stands athwart history yelling: 'Hey, jackass, get your government off my freedom!'" - Jason Mattera
So quit being lazy? Joking of course :). Yea that sounds more flexible if that's your intention. Thanks for explaining your thought process. How has your testing been looking?
So quit being lazy? Joking of course . Yea that sounds more flexible if that's your intention. Thanks for explaining your thought process. How has your testing been looking?
I've found that amplified maps take longer to generate than normal vanilla terrain, and the server will crash if you use less than a 30 second teleport interval. (on my own computer at least)
But mostly i've just been too busy this week to even write more than a few lines of code. I only work on this in my spare time, and i've barely had any.
But i think i'm about ready to push the initial version to github. I just need to add a few more error handlers.
I have a lot of ideas for this, but it will take a lot more work.
And yes. I am lazy. I want a simple solution that doesn't need constant maintenance.
Rollback Post to RevisionRollBack
Minecraft Land Generator | Memory issues? Try this:java -Xincgc-Xmx1024M -Xms512M -jar Minecraft.jar "We must be that generation that stands athwart history yelling: 'Hey, jackass, get your government off my freedom!'" - Jason Mattera
The Meaning of Life, the Universe, and Everything.
Join Date:
1/18/2011
Posts:
165
Member Details
Any idea why I get this:
[MLG] Minecraft Land Generator version 1.7.5
[MLG] BuildID: (1381398906000)
[MLG] This version was last modified on Thursday, October 10, 2013 at 11:55 AM, Central European Summer Time
[MLG]
[MLG] Uses a Minecraft server to generate square land of a specified size.
[MLG]
[MLG]
[MLG] Notice: Warnings from Server are Ignored
[MLG] Processing world ".\world", in 380 block increments, with: java -Djava.awt.headless=true -Djline.terminal=jline.Un
supportedTerminal -XX:MaxPermSize=256M -Duser.language=en -Xms2048m -Xmx2048m -Xincgc -jar forge-1.6.4-9.11.1.953-univer
sal.jar nogui
[MLG]
[MLG] Launching server once to make sure there is a world.
[Server] [Minecraft-Server] Starting minecraft server version 1.6.4
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -56
at java.lang.String.substring(Unknown Source)
at morlok8k.MinecraftLandGenerator.Server.runMinecraft(Server.java:200)
at morlok8k.MinecraftLandGenerator.Main.runCLI(Main.java:211)
at morlok8k.MinecraftLandGenerator.Main.main(Main.java:133)
I'm trying to pregenerate my resonant rise singleplayer world.
Minecraft Land Generator | Memory issues? Try this:java -Xincgc-Xmx1024M -Xms512M -jar Minecraft.jar "We must be that generation that stands athwart history yelling: 'Hey, jackass, get your government off my freedom!'" - Jason Mattera
I take it that this is only for SMP then? Is there anything like this but for SSP? When I start new worlds I always have had to cheat and spend a couple hours flying a grid pattern to get it so it was like it was pregenerated...lol.
I take it that this is only for SMP then? Is there anything like this but for SSP? When I start new worlds I always have had to cheat and spend a couple hours flying a grid pattern to get it so it was like it was pregenerated...lol.
SMP and SSP worlds are the same. you set up MLG, copy your SSP world in, expand it, then copy it back.
Rollback Post to RevisionRollBack
Minecraft Land Generator | Memory issues? Try this:java -Xincgc-Xmx1024M -Xms512M -jar Minecraft.jar "We must be that generation that stands athwart history yelling: 'Hey, jackass, get your government off my freedom!'" - Jason Mattera
Thanks, alternate mode did the trick, your tool really is great
thanks! glad you like it.
Rollback Post to RevisionRollBack
Minecraft Land Generator | Memory issues? Try this:java -Xincgc-Xmx1024M -Xms512M -jar Minecraft.jar "We must be that generation that stands athwart history yelling: 'Hey, jackass, get your government off my freedom!'" - Jason Mattera
Apparently TConstruct doesn't have a minecraft version tag and that causes a warning, which stops MLG... I put on -w and assume it will run fine to load the 5000x5000 world. (LOTS of mods, so here's to hoping, lol.)Oh, I JUST saw the alternate vs -w mode... I should probably delete the world file and try again, lol.
I'm using your tool for a few days now and the few last times I tried to generate a map, the process stopped at one point, unable to continue. Each time, it stopped when loading the world, one time at 37%, a second at 83%, but once it stops, I can't restart it without getting the same bug.
I don't really get it.
Also, I tried to allocate more RAM to the process but everytime I changed RAM allocation values, the command prompt showed up for a second and closed right away.
I'm using version 1.7.4 of Minecraft Vanilla
Any suggestions / complementary informations needed?
I'm using your tool for a few days now and the few last times I tried to generate a map, the process stopped at one point, unable to continue. Each time, it stopped when loading the world, one time at 37%, a second at 83%, but once it stops, I can't restart it without getting the same bug.
I don't really get it.
Also, I tried to allocate more RAM to the process but everytime I changed RAM allocation values, the command prompt showed up for a second and closed right away.
I'm using version 1.7.4 of Minecraft Vanilla
Any suggestions / complementary informations needed?
Thanks,
- Haaruk
i'd actually put less ram to it, if ram was the issue.
what you need to do is find the error message.
use alternate mode. "-a"
edit the script file to say:
java -jar MinecraftLandGenerator.jar 1000 1000 -a
open a command prompt / terminal, then navigate to your folder using the "cd" command.
then run the script by typing its name.
(on mac/linux it would have a "./" in front of the filename)
MLG should run, but the window wont close afterwards. so you can see what the error is.
From there, the issue will be obvious or not. if its not, let me know.
Rollback Post to RevisionRollBack
Minecraft Land Generator | Memory issues? Try this:java -Xincgc-Xmx1024M -Xms512M -jar Minecraft.jar "We must be that generation that stands athwart history yelling: 'Hey, jackass, get your government off my freedom!'" - Jason Mattera
I've seen a few times where people mentioned a percentage of how far the generator is... where is that information located? I started a map generating for 10000, 10000 and I've no idea how far in it is or how far it has to go. Any help is much appreciated! Thank you!
I've seen a few times where people mentioned a percentage of how far the generator is... where is that information located? I started a map generating for 10000, 10000 and I've no idea how far in it is or how far it has to go. Any help is much appreciated! Thank you!
Llurendt
Each time MLG starts the server, it tells you what the percentage is, as indicated by the blue arrows in my screenshot:
The percentages are only tracked on-screen, but the centre of each area worked on by the server is available in the log file located in your world's save directory.
Here's the log from the same world I used in the screenshots.
# Minecraft Land Generator 1.7.5 - Launch info: Java: Java HotSpot(TM) 64-Bit Server VM 1.8.0-ea OS: Linux 3.12.0-031200-generic amd64 gnome
# JVM: JAR: MinecraftLandGenerator.jar 1920 1920 x-98 z2 ARGS: 1920 1920 x-98 z2
# [Server thread/INFO]: Starting minecraft server version 1.7.2
# Started: Sunday, December 8, 2013 at 9:34 AM, Eastern Standard Time
##Size: X1920Z1920
# Seed: -5044757377683492668
# Spawn: [3,64,-115]
# Minecraft Land Generator 1.7.5 - Launch info: Java: Java HotSpot(TM) 64-Bit Server VM 1.8.0-ea OS: Linux 3.12.0-031200-generic amd64 gnome
# JVM: JAR: MinecraftLandGenerator.jar 1920 1920 -x-98 -z2 ARGS: 1920 1920 -x-98 -z2
# [Server thread/INFO]: Starting minecraft server version 1.7.2
# Started: Sunday, December 8, 2013 at 9:34 AM, Eastern Standard Time
##Size: X1920Z1920
# Seed: -5044757377683492668
# Spawn: [3,64,-115]
[-856,64,-744]
[-856,64,-744]
[-856,64,-364]
[-856,64,16]
[-856,64,396]
[-856,64,776]
[-856,64,776]
[-856,64,-744]
[-856,64,-744]
[-856,64,-364]
[-856,64,16]
[-856,64,396]
[-856,64,776]
[-856,64,776]
[-476,64,-744]
[-476,64,-744]
[-476,64,-364]
[-476,64,16]
[-476,64,396]
[-476,64,776]
[-476,64,776]
[-96,64,-744]
[-96,64,-744]
[-96,64,-364]
[-96,64,16]
[-96,64,396]
[-96,64,776]
[-96,64,776]
[284,64,-744]
[284,64,-744]
[284,64,-364]
[284,64,16]
[284,64,396]
[284,64,776]
[284,64,776]
[664,64,-744]
[664,64,-744]
[664,64,-364]
[664,64,16]
[664,64,396]
[664,64,776]
[664,64,776]
[664,64,-744]
[664,64,-744]
[664,64,-364]
[664,64,16]
[664,64,396]
[664,64,776]
[664,64,776]
# Minecraft Land Generator 1.7.5 - Launch info: Java: Java HotSpot(TM) 64-Bit Server VM 1.8.0-ea OS: Linux 3.12.0-031200-generic amd64 gnome
# JVM: JAR: MinecraftLandGenerator.jar 20480 20480 -x423 -z760 ARGS: 20480 20480 -x423 -z760
# [Server thread/INFO]: Starting minecraft server version 1.7.2
# Started: Thursday, December 26, 2013 at 9:25 PM, Eastern Standard Time
##Size: X20480Z20480
# Seed: -5044757377683492668
# Spawn: [-4,64,-114]
[-9608,64,-9272]
[-9608,64,-9112]
[-9608,64,-8732]
[-9608,64,-8352]
[-9608,64,-7972]
[-9608,64,-7592]
[-9608,64,-7212]
[-9608,64,-6832]
[-9608,64,-6452]
[-9608,64,-6072]
# Minecraft Land Generator 1.7.5 - Launch info: Java: Java HotSpot(TM) 64-Bit Server VM 1.8.0-ea OS: Linux 3.12.0-031200-generic amd64 gnome
# JVM: JAR: MinecraftLandGenerator.jar 2048 2048 -x423 -z760 ARGS: 2048 2048 -x423 -z760
# [Server thread/INFO]: Starting minecraft server version 1.7.2
# Started: Thursday, December 26, 2013 at 9:38 PM, Eastern Standard Time
##Size: X20480Z20480
# Seed: -5044757377683492668
# Spawn: [-4,64,-114]
As you can see, the log file tracks each server call, and appends them to the log file. The individual percentages are not tracked, but the rest of it is. I'm curious about why the individual percentages are so important to you though since MLG is run from a Command Prompt, and it's all displayed on the screen as it goes, a feature which is OS independent.
When you have a tp version ready to use I can try it on my computer. It has a bit more HP than the average pc, and a SSD I run my MC Srv from. Might give you a better idea on the performance qualities of that approach to have a second opinion. 30 seconds is a long time, but that might be because of the way MC generates chunks when teleported to a completely new area.
Maybe it would act more efficiently to inch along and grab one row of chunks at a time rather than /tp to a completely ungenerated area. Would it be easier to design a program that automatically moves the player forward at X speed in creative flight rather than using /tp? Just offering suggestions because I really want this for my server. People exploring the twilight have killed the server on more than one occasion.
Short answer: Yes.
Long answer: It needs to be updated for every version of the server and/or mod api. I dont want to do this. I want to make something once that works with a wide array of servers.
Plus if you write it for lets say, Forge, it wont work with Bukkit, or vanilla. If Mojang ever gets the official API done, thats a different story.
sending a command to teleport the play will work with every version of minecraft since the official release of 1.0
"We must be that generation that stands athwart history yelling: 'Hey, jackass, get your government off my freedom!'" - Jason Mattera
So quit being lazy? Joking of course :). Yea that sounds more flexible if that's your intention. Thanks for explaining your thought process. How has your testing been looking?
I've found that amplified maps take longer to generate than normal vanilla terrain, and the server will crash if you use less than a 30 second teleport interval. (on my own computer at least)
But mostly i've just been too busy this week to even write more than a few lines of code. I only work on this in my spare time, and i've barely had any.
But i think i'm about ready to push the initial version to github. I just need to add a few more error handlers.
I have a lot of ideas for this, but it will take a lot more work.
And yes. I am lazy. I want a simple solution that doesn't need constant maintenance.
"We must be that generation that stands athwart history yelling: 'Hey, jackass, get your government off my freedom!'" - Jason Mattera
I'm trying to pregenerate my resonant rise singleplayer world.
I see this:
I know that RR uses forge. forge needs alternate mode.
Instead of using the -W argument, you should use the -A argument.
"We must be that generation that stands athwart history yelling: 'Hey, jackass, get your government off my freedom!'" - Jason Mattera
SMP and SSP worlds are the same. you set up MLG, copy your SSP world in, expand it, then copy it back.
"We must be that generation that stands athwart history yelling: 'Hey, jackass, get your government off my freedom!'" - Jason Mattera
thanks! glad you like it.
"We must be that generation that stands athwart history yelling: 'Hey, jackass, get your government off my freedom!'" - Jason Mattera
I'm using your tool for a few days now and the few last times I tried to generate a map, the process stopped at one point, unable to continue. Each time, it stopped when loading the world, one time at 37%, a second at 83%, but once it stops, I can't restart it without getting the same bug.
I don't really get it.
Also, I tried to allocate more RAM to the process but everytime I changed RAM allocation values, the command prompt showed up for a second and closed right away.
I'm using version 1.7.4 of Minecraft Vanilla
Any suggestions / complementary informations needed?
Thanks,
- Haaruk
i'd actually put less ram to it, if ram was the issue.
what you need to do is find the error message.
use alternate mode. "-a"
edit the script file to say:
open a command prompt / terminal, then navigate to your folder using the "cd" command.
then run the script by typing its name.
(on mac/linux it would have a "./" in front of the filename)
MLG should run, but the window wont close afterwards. so you can see what the error is.
From there, the issue will be obvious or not. if its not, let me know.
"We must be that generation that stands athwart history yelling: 'Hey, jackass, get your government off my freedom!'" - Jason Mattera
Llurendt
Each time MLG starts the server, it tells you what the percentage is, as indicated by the blue arrows in my screenshot:
Here's the log from the same world I used in the screenshots.
As you can see, the log file tracks each server call, and appends them to the log file. The individual percentages are not tracked, but the rest of it is. I'm curious about why the individual percentages are so important to you though since MLG is run from a Command Prompt, and it's all displayed on the screen as it goes, a feature which is OS independent.
Maybe it would act more efficiently to inch along and grab one row of chunks at a time rather than /tp to a completely ungenerated area. Would it be easier to design a program that automatically moves the player forward at X speed in creative flight rather than using /tp? Just offering suggestions because I really want this for my server. People exploring the twilight have killed the server on more than one occasion.