Jump to content

A19e Nitrogen - UNSTABLE


Damocles

Recommended Posts

Im thinking about a general tool to convert imported hightmaps and prefab.xml back to a full map.

(So you could manually move POI locations, and then adjust the terrain to it automatically.)

 

Kind of seperating the the project into an easy to use generator (quickly get a map), and a set of modding tools. (tinkering around with custom maps)

Link to comment
Share on other sites

Im thinking about a general tool to convert imported hightmaps and prefab.xml back to a full map.

(So you could manually move POI locations, and then adjust the terrain to it automatically.)

 

Kind of seperating the the project into an easy to use generator (quickly get a map), and a set of modding tools. (tinkering around with custom maps)

 

Well, that would be amazing!

 

If you need help in any way just let me know. ;):D

 

 

Seriously, great idea and would make the game even more fun and amazing.

Pretty hard to do all that stuff with the prefab and/or in game map editor.

Link to comment
Share on other sites

So, downloaded and creating my first map. Anyone have any good options to try in the generator? I went with what it came up with other than removing burnt and wasteland. Is there any reason you need those in-game that I'll be missing out on? Oh, and I removed cracks as well.

Link to comment
Share on other sites

ok so ran nitrogen thru 8gb 16k batch and this error showed -

 

Exception in thread "Thread-2" java.lang.OutOfMemoryError: Java heap space

at java.awt.image.DataBufferInt.<init>(Unknown Source)

at java.awt.image.Raster.createPackedRaster(Unknown Source)

at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)

at java.awt.image.BufferedImage.<init>(Unknown Source)

at nitrogen.terraingen.ToolImageProcessor.a(Unknown Source)

at nitrogen.a.i.a(Unknown Source)

at nitrogen.a.c.g(Unknown Source)

at nitrogen.a.c.a(Unknown Source)

at nitrogen.gui.NitroGenUI.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

 

however I do have 64 bit java any ideas

Link to comment
Share on other sites

Check in the programs folder if you have more than one Java.

 

In the cmd console type

 

java -version

 

This show you the current java version that is "active" when running programs.

It should state something like "64-Bit Server VM"

 

You could manually start the 64bit java.exe by using the full path to the 64bit installation (editing the .bat files in NitroGen)

Link to comment
Share on other sites

I just ran it and had same issue, issue started after exporting (2/3)

 

Edit sorry did not see your post, will try that :)

 

Edit Edit: I found that allocating more ram to the program was the fix. I gave it 12gb but it only used 8.5gb at peak. found i was using the right version of java all along. program was just running out of memory.

 

Hope this helps

 

BTW awesome program thanks heaps

Edited by Blunt.Jdogg (see edit history)
Link to comment
Share on other sites

I just ran it and had same issue, issue started after exporting (2/3)

 

Edit sorry did not see your post, will try that :)

 

Edit Edit: I found that allocating more ram to the program was the fix. I gave it 12gb but it only used 8.5gb at peak. found i was using the right version of java all along. program was just running out of memory.

 

Hope this helps

 

BTW awesome program thanks heaps

 

how did you allocate more ram

 

- - - Updated - - -

 

because i have the right java as well

Link to comment
Share on other sites

Thanks so much for this. ... I so badly wanted a nice map to start my new modded playthrough, but the in-game generator just takes way too long to make a nice big map. 12kx12k in 16min . Cant even do that with a 4k map ingame....and on top of that, I got cities, and the biomes where I want them.

Link to comment
Share on other sites

Try changing the entire bat text to this

 

@echo off

set path=C:\Program Files\Java\jre1.8.0_231\bin\;%path%

java -Xmx12G -jar nitrogen.jar

 

make sure your path to java is at the location above

 

my 16k map took 23 minutes

Good luck

 

that bit worked lol nitrogen generated but it was in game while loading i got the out of memory now still lol

Link to comment
Share on other sites

Well I just tested my 16k world, it loads fine but is not that friendly on my PC.

 

I dont think we are ready for 16k maps until the game gets optimized or we get super computers

 

I am unsure how to help your situation tho sorry

 

i was playing 16k maps only last week lol but yeh been unable to since tho

Link to comment
Share on other sites

Not sure how it could be related but prior to that latest small update I had made a couple of 16k maps without issue.

 

I have just tried to compile one now and it failed with this error....

 

Exception in thread "Thread-2" java.lang.OutOfMemoryError: Java heap space

at java.awt.image.DataBufferInt.<init>(Unknown Source)

at java.awt.image.Raster.createPackedRaster(Unknown Source)

at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)

at java.awt.image.BufferedImage.<init>(Unknown Source)

at nitrogen.terraingen.ToolImageProcessor.a(Unknown Source)

at nitrogen.a.i.a(Unknown Source)

at nitrogen.a.c.g(Unknown Source)

at nitrogen.a.c.a(Unknown Source)

at nitrogen.gui.NitroGenUI.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

 

Java version...

 

java version "1.8.0_231"

Java SE Runtime Environment (build 1.8.0_231-b11)

Java HotSpot 64-Bit Server VM (build 25.231-b11, mixed mode)

 

I have 32GB of memory available and noticed when Java was compiling it used less than 4GB as a process.

 

I'll try again soon.

Edited by Dibbler (see edit history)
Link to comment
Share on other sites

Not sure how it could be related but prior to that latest small update I had made a couple of 16k maps without issue.

 

I have just tried to compile one now and it failed with this error....

 

Exception in thread "Thread-2" java.lang.OutOfMemoryError: Java heap space

at java.awt.image.DataBufferInt.<init>(Unknown Source)

at java.awt.image.Raster.createPackedRaster(Unknown Source)

at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)

at java.awt.image.BufferedImage.<init>(Unknown Source)

at nitrogen.terraingen.ToolImageProcessor.a(Unknown Source)

at nitrogen.a.i.a(Unknown Source)

at nitrogen.a.c.g(Unknown Source)

at nitrogen.a.c.a(Unknown Source)

at nitrogen.gui.NitroGenUI.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

 

Java version...

 

java version "1.8.0_231"

Java SE Runtime Environment (build 1.8.0_231-b11)

Java HotSpot 64-Bit Server VM (build 25.231-b11, mixed mode)

 

I have 32GB of memory available and noticed when Java was compiling it used less than 4GB as a process.

 

I'll try again soon.

 

Blunt.jdog fixed this you edit the .bat for the 8g and change it to 12

 

- - - Updated - - -

 

like here

Link to comment
Share on other sites

That seemed to work, Java seemed to use up to 9GB of RAM and generated a 16k map, with many (slow) roads and lots of other goodies in 20 mins.

 

Thanks to Blunt.Jdogg for the memory suggestion.

 

No sheep were harmed in the process, altho 573 were counted :D

 

The map seemed to play fine in the game, only short test tho.

 

Memory allocated to the game whilst playing around 27GB of RAM....

 

https://imgur.com/QaNttw0

 

you can see the memory allocation from the above link better.

 

Amazing the amount of memory that it now needs, then again there is a lot of data there...!

 

20191114112203_1.jpg.29b122d854a526a2b3654954f14804b3.jpg

Edited by Dibbler (see edit history)
Link to comment
Share on other sites

That seemed to work, Java seemed to use up to 9GB of RAM and generated a 16k map, with many (slow) roads and lots of other goodies in 20 mins.

 

Thanks to Blunt.Jdogg for the memory suggestion.

 

No sheep were harmed in the process, altho 573 were counted :D

 

The map seemed to play fine in the game, only short test tho.

 

Memory allocated to the game whilst playing around 27GB of RAM....

 

https://imgur.com/QaNttw0

 

you can see the memory allocation from the above link better.

 

Amazing the amount of memory that it now needs, then again there is a lot of data there...!

 

[ATTACH=CONFIG]30551[/ATTACH]

 

Did you manually add memory to the game or

 

- - - Updated - - -

 

Hmmmm sheep lol.....

 

This 0.462 seems different completely with the generating bit lol

 

- - - Updated - - -

 

I got 553 sheep lol and Imma eat em all lol

Link to comment
Share on other sites

Did you manually add memory to the game or

 

- - - Updated - - -

 

Hmmmm sheep lol.....

 

This 0.462 seems different completely with the generating bit lol

 

- - - Updated - - -

 

I got 553 sheep lol and Imma eat em all lol

 

lol

 

I have 32GB of memory already in my system, that helped a lot with Cities Skylines (CS) and using a lot of assets.

This is the first time that this game, for me, has needed such a large amount of memory. That was due to the 16k map.

During the loading phase of the game I noticed that the allocation went up to 30GB but seemed to settle around 27GB of system RAM.

The GPU had around 5GB of its 11GB allocated.

IIRC when I used to have 16GB of RAM I would set a swap file to 2.5 times that amount of memory. The swap file was set to my NVME drive.

I don't bother doing that now, but it used to help at the time with playing CS.

 

I am generating a 12k map now to try, 6 mins 20s to generate and 20GB of system RAM used in the game.

Edited by Dibbler (see edit history)
Link to comment
Share on other sites

Damocles

 

I am wondering if the prefabslist.txt that was made by the person whose link is in the front page where it has darkness Vals compo pack 40 etc I am using the compopack 40 one it is different to how you did it. In terms of setup . Could that be causing the out of memory.

 

Also maybe cause I had all my prefabs then separately I had my hub with the same prefabs above but with the custom hub 25 bit on end rather then houses etc could that be the reason.

 

Altho I tried purely vanilla from the guy in your opand still got out of memory.

Link to comment
Share on other sites

  • SylenThunder changed the title to A19e Nitrogen - a Random World Generator for 7DTD
  • SylenThunder changed the title to A19e Nitrogen - UNSTABLE
  • SylenThunder locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...