Damocles Posted October 27, 2019 Author Share Posted October 27, 2019 (edited) Darmocles When writing a prefab into prefab.txt. Finding the whole prefab size say is 45 x 17 x 45 How ever the offset is -1 so No write whole co ords and the nitrogen will take the -1 into account or would I have to calculate from surface to top of prefab for that y value. What I mean is from bottom of basement that goes underground to the very top of the poi or from ground level to top of poi. Thats the actual code for writing the prefab y location in the prefabs.xml: (l.high+1+l.prefab.yOffset) l.high is the hight on the terrain So a prefab with y offset (normally negative) will push the prefab downwards. The game would otherwise spawn prefabs from the lowest block upwards. With a y offset of zero, it would lay flat on the terrain. With -1 it would have the lowest layer sunk into the terrain (most of the POIs are set up like that) Edited October 27, 2019 by Damocles (see edit history) Link to comment Share on other sites More sharing options...
alphaniner Posted October 27, 2019 Share Posted October 27, 2019 Can anyone playing SP 16k map share RAM usage, maybe along with a rough description of graphical settings (eg. medium, high, etc)? I have 16G, and on D1 it's at ~10G when I first spawn. But if I exit to the main menu and continue, the game reliably crashes with OOM. I assume RAM usage will increase during prolonged play, so I wonder if I should go with an 8k map. Link to comment Share on other sites More sharing options...
stallionsden Posted October 27, 2019 Share Posted October 27, 2019 Can anyone playing SP 16k map share RAM usage, maybe along with a rough description of graphical settings (eg. medium, high, etc)? I have 16G, and on D1 it's at ~10G when I first spawn. But if I exit to the main menu and continue, the game reliably crashes with OOM. I assume RAM usage will increase during prolonged play, so I wonder if I should go with an 8k map. I play 16k. I have settings on medium Link to comment Share on other sites More sharing options...
Madnesis Posted October 27, 2019 Share Posted October 27, 2019 This tool is dope, thanks! Sorry it was asked already but default settings within the tool for a given seed would result in the same map as it would if generated from the game directly? Link to comment Share on other sites More sharing options...
Damocles Posted October 27, 2019 Author Share Posted October 27, 2019 This tool is dope, thanks! Sorry it was asked already but default settings within the tool for a given seed would result in the same map as it would if generated from the game directly? If you mean having the same output as RWG, then no. Its a completely different implementation, just using the same file formats. Classic seeds (to recreate a map) would not really work here. Mainly because the user can set a lot of custom options. Recreating a map based on the same seed would also require the options to be set exactly the same. And also using exactly the same program version (as I regularly change details). Otherwise the same seed would still result in different maps. If there where a specific use-case to create the same map on different computers, I could create some sharable settings. Link to comment Share on other sites More sharing options...
Windsailor Posted October 27, 2019 Share Posted October 27, 2019 Can anyone playing SP 16k map share RAM usage, maybe along with a rough description of graphical settings (eg. medium, high, etc)? I have 16G, and on D1 it's at ~10G when I first spawn. But if I exit to the main menu and continue, the game reliably crashes with OOM. I assume RAM usage will increase during prolonged play, so I wonder if I should go with an 8k map. I have 32G and sometimes a 16K maps crashes on start. Even though RAM is just filled to about 70 / 75 percent, loading fails with an out of memory error. Once I get past the loading screen it works fine. I am playing on Ultra. I wouldn't worry too much about this. Again the "not optimized" issue. Link to comment Share on other sites More sharing options...
Madnesis Posted October 27, 2019 Share Posted October 27, 2019 If you mean having the same output as RWG, then no. Its a completely different implementation, just using the same file formats. Classic seeds (to recreate a map) would not really work here. Mainly because the user can set a lot of custom options. Recreating a map based on the same seed would also require the options to be set exactly the same. And also using exactly the same program version (as I regularly change details). Otherwise the same seed would still result in different maps. If there where a specific use-case to create the same map on different computers, I could create some sharable settings. Thanks, you answered to my question and thanks again for the great tool! Link to comment Share on other sites More sharing options...
alphaniner Posted October 27, 2019 Share Posted October 27, 2019 But what is your RAM usage? Link to comment Share on other sites More sharing options...
stallionsden Posted October 27, 2019 Share Posted October 27, 2019 But what is your RAM usage? I got no idea myself don't even know how to look lol for it Link to comment Share on other sites More sharing options...
alphaniner Posted October 27, 2019 Share Posted October 27, 2019 I got no idea myself don't even know how to look lol for it OK, how about just the amount of RAM in your machine? Link to comment Share on other sites More sharing options...
stallionsden Posted October 28, 2019 Share Posted October 28, 2019 OK, how about just the amount of RAM in your machine? 16k ram Link to comment Share on other sites More sharing options...
alphaniner Posted October 28, 2019 Share Posted October 28, 2019 16k ram Thanks. Link to comment Share on other sites More sharing options...
GammaPaladin Posted October 28, 2019 Share Posted October 28, 2019 (edited) I really like the north=snow, south=desert idea, but would it be possible to give the user more control over what general percentage the desert and snow take up? I like the way it works, but I personally would like a bigger desert in the south, for instance. Edit: Also a couple more options for controlling spawn points would be nice, like what biomes to prefer for spawn points, and options for specifying single-spawn-point near town, far from town, etc. Edited October 28, 2019 by GammaPaladin (see edit history) Link to comment Share on other sites More sharing options...
Damocles Posted October 28, 2019 Author Share Posted October 28, 2019 I really like the north=snow, south=desert idea, but would it be possible to give the user more control over what general percentage the desert and snow take up? I like the way it works, but I personally would like a bigger desert in the south, for instance. Edit: Also a couple more options for controlling spawn points would be nice, like what biomes to prefer for spawn points, and options for specifying single-spawn-point near town, far from town, etc. In the resources/config.txt you can edit the impact of the north and south biomes. BIOME_NORTH = 0.08 BIOME_SOUTH = 0.08 Choose something like BIOME_SOUTH = 0.20 for example for a larger desert area. (edits need to be saved before starting the program) Link to comment Share on other sites More sharing options...
alphaniner Posted October 28, 2019 Share Posted October 28, 2019 This is not Nitrogen specific probably, but are the lootable vehicles 'fixed' during world generation or somehow randomized? Just to be clear I'm talking about the vehicle itself, not the loot you find in it. Link to comment Share on other sites More sharing options...
Damocles Posted October 28, 2019 Author Share Posted October 28, 2019 Vehicles are spawned either on roads or POIs. For roads the only thing that counts is their area. A vehicle will have a certain chance to spawn on a road surface. The actual position is determined by the game randomly. For POIs, I have added the option "extra car lots" to increase the overall number of cars in towns. Its basically more car dealer or gas station POIs. Link to comment Share on other sites More sharing options...
alphaniner Posted October 28, 2019 Share Posted October 28, 2019 A vehicle will have a certain chance to spawn on a road surface. The actual position is determined by the game randomly. Thank you, this is what I was looking for. Link to comment Share on other sites More sharing options...
Bellatori Posted October 28, 2019 Share Posted October 28, 2019 It seems McAfee tags the file with a virus? Link to comment Share on other sites More sharing options...
Damocles Posted October 28, 2019 Author Share Posted October 28, 2019 There is no virus. False positive. The nitrogen.jar archive is packed with the Launch4j wrapper to have an executable. You dont need to use the exe, and can also start the program from the nitrogen.jar directly or with the .bat files. Link to comment Share on other sites More sharing options...
stallionsden Posted October 28, 2019 Share Posted October 28, 2019 It seems McAfee tags the file with a virus? It's not a virus mate. Link to comment Share on other sites More sharing options...
GammaPaladin Posted October 28, 2019 Share Posted October 28, 2019 In the resources/config.txt you can edit the impact of the north and south biomes. BIOME_NORTH = 0.08 BIOME_SOUTH = 0.08 Choose something like BIOME_SOUTH = 0.20 for example for a larger desert area. (edits need to be saved before starting the program) Excellent, thanks! Link to comment Share on other sites More sharing options...
Crazylike Posted October 28, 2019 Share Posted October 28, 2019 Been generating a 16k world with default settings for ~3 hours now. The last 30-40 mins or so it's been stuck on (469/470) (470/470) exporting (1/3) exporting (2/3) D:\DivApps\NitroGen_WorldGenerator/output/NitroGenMap18/biomes.png not TYPE_INT_RGB, copy type 6 -> 1 Is this normal? The tool is no longer using any CPU, which I find odd, so I have a feeling it's just stopped now. Link to comment Share on other sites More sharing options...
Damocles Posted October 28, 2019 Author Share Posted October 28, 2019 (edited) Been generating a 16k world with default settings for ~3 hours now. The last 30-40 mins or so it's been stuck on Is this normal? The tool is no longer using any CPU, which I find odd, so I have a feeling it's just stopped now. 16k is very memory intensive. And 16k is quite on the limit for lots of computers. NitroGen is currently writing the new preview map at that step. You could restart and set the preview to classic (grey scale hightmap) or better to off, to skip that step. This saves a bunch of memory, and should let the generation finish properly. Edited October 28, 2019 by Damocles (see edit history) Link to comment Share on other sites More sharing options...
Crazylike Posted October 28, 2019 Share Posted October 28, 2019 Oh really? Damn, now I'm sad I shut it down and started over again. I guess I will stop it again and turn the preview off then. Thanks. How long is it supposed to take, to generate a 16k world? On average or something. Link to comment Share on other sites More sharing options...
stallionsden Posted October 28, 2019 Share Posted October 28, 2019 Oh really? Damn, now I'm sad I shut it down and started over again. I guess I will stop it again and turn the preview off then. Thanks. How long is it supposed to take, to generate a 16k world? On average or something. takes me around 234 to 250 minutes lol but worth it :-) Link to comment Share on other sites More sharing options...
Recommended Posts