Page 1 of 1

[MOD 0.10.0] Variant Resource Spawning v0.0.2

Posted: Fri Jun 20, 2014 5:31 pm
by kolli
As previously discussed resources being abundant and close by discourages exploring and the use of trains. This mod tries to address this issue by overriding the default spawning of resources.

The map is divided into regions of 8x8 chunks. Each region only contains a single type of resource but can have multiple patches of that resource. The autoplace controls in the map generation gui are left as-is for compabilty reasons, but doesn't do anything. Instead you have to edit config.lua to change settings.
config.lua
Close to starting area small patches of iron, copper, coal and stone are provided to get you started. This is a kind of proof-of-concept version, I've haven't actually done any real playtesting yet. Please play around with the settings in config.lua and post your balance opinions.

pros:
  • resources are more spread out
  • multiple patches of same resource spawn together
cons:
  • not balanced (yet)
  • each resource patch restricted to a single chunk
  • non-deterministic, will probably break multiplayer
You might find my Automatic Rail Laying Machine mod useful for building railroads to the far away mining outposts.

Version history:
v0.0.2:
Fixed a bug that caused biter-spawners to be neutral instead of enemy. Thanks to ThePear for the bug report.

v0.0.1:
Initial release

Download links (v0.0.2):
filedropper
google drive

Re: [MOD 0.10.0] Variant Resource Spawning v0.0.1

Posted: Fri Jun 20, 2014 6:41 pm
by Tardan
cool. my favourite is less ore fields (motivate to build a many trains), but very rich fields (not to build every hour new mining outposts).

someone have tried to calculate how much ressource needed for parts of the tech trees? than it is easier to balance with the use of the Resource-Monitor-Mod v0.3.0 https://forums.factorio.com/forum/vie ... =14&t=2855

Re: [MOD 0.10.0] Variant Resource Spawning v0.0.1

Posted: Sat Jun 21, 2014 5:58 pm
by Rensiur
A very nice idea, would it be possible to switch the single ores to a more general concept that just sucks up all ore types from different Modifications?

I have no clue if that is even possible, otherwise it would be necessary to eventually (after the fine tuning) code in the mod-ores - or folks like Bobbingabout might copy the idea.

Re: [MOD 0.10.0] Variant Resource Spawning v0.0.1

Posted: Tue Jun 24, 2014 9:59 am
by ThaPear
I like it. I've been playing on a save using this and it's a lot more fun and challenging.

The only issue is that biter spawners are created in the neutral force, which I only found out after quite some time.
I created a script to correct the problem in my save, but it's still an issue. :)

Nice work though.

Re: [MOD 0.10.0] Variant Resource Spawning v0.0.1

Posted: Tue Jun 24, 2014 12:52 pm
by kolli
ThaPear wrote:biter spawners are created in the neutral force
oops, fix'd. thanks.

Re: [MOD 0.10.0] Variant Resource Spawning v0.0.2

Posted: Sat Jun 28, 2014 12:03 am
by Riversand
I have encountered a major problem so far, in that the only oil i have found is several Km out from my base... I upped the Oil spawn rates. Oil is an essential resource due to the need for Batteries, which requires sulfer. Batteries are needed in the level 3 Science packs.

Code: Select all

	["crude-oil"]={
		type="entity",
		probability=8,
		spawns_per_region={min=2,max=10},
		size={min=1,max=8},
		richness=100000

Re: [MOD 0.10.0] Variant Resource Spawning v0.0.2

Posted: Sat Jun 28, 2014 6:45 am
by kolli
Riversand wrote:the only oil i have found is several Km out from my base...
Thanks, I'll consider that. I wanted oil to be rare, but I might have overdone it. However I think you got really unlucky, on average there should be one or two oil regions within one km from starting area.

Re: [MOD 0.10.0] Variant Resource Spawning v0.0.2

Posted: Sat Jun 28, 2014 12:34 pm
by Riversand
The oil was rare enough that i found 1 spawn of my upped level about 1.5-2 km south of my base roughly... at least... it's 3 pools that are scattered far from eachother too... it's about a KM away from the nearest rail i have to my Iron. I even had the oil marked as 'normal 'spawn rate. I would suggest having a single 200-300% pool pool of it in the spawn location... it will provide a trickle, once they tap it out.

Re: [MOD 0.10.0] Variant Resource Spawning v0.0.2

Posted: Sat Jun 28, 2014 12:55 pm
by Rahjital
Personally, I like starting without any coal. It forces me to explore and expand before being able to continue up the tech tree. Perhaps the config file should also contain a table with starting resources?

Re: [MOD 0.10.0] Variant Resource Spawning v0.0.2

Posted: Sat Jun 28, 2014 10:41 pm
by Riversand
Do you mean without oil? Coal is almost a must to start with, for the burner machines.

Re: [MOD 0.10.0] Variant Resource Spawning v0.0.2

Posted: Sun Jun 29, 2014 5:19 am
by Rahjital
... yes, I do. This is what happens when you write a comments instead of going to bed. :)

Re: [MOD 0.10.0] Variant Resource Spawning v0.0.2

Posted: Thu Jul 03, 2014 3:27 am
by goertzenator
This is exactly the mod I have been looking for, thank you! It's great to drive for minutes at a time and not run into a biter base. This is a whole new factorio.

For you newcomers, here is a screenshot of what this mod does to your map. I started near small patches of coal, stone, iron and copper and setup a basic red/green research facility. As soon as I researched automobiles I went for a couple of good drives through the wilderness. When this shot was taken I had just discovered my first oil patches (5 tiny pink dots in the north west corner). I guess its time to start putting in some rail lines.

Re: [MOD 0.10.0] Variant Resource Spawning v0.0.2

Posted: Fri Jul 04, 2014 4:28 pm
by kasper747
The mod seems not to work in 10.0, 10.1 and 10.2. However works in 10.0
Getting Error:
data.lua:1: attempt to index field 'resource' (a nil value)

I find the mod realy interesting. Would like if some one can help me with the error.

Re: [MOD 0.10.0] Variant Resource Spawning v0.0.2

Posted: Sat Jul 05, 2014 2:24 am
by kolli
kasper747 wrote:data.lua:1: attempt to index field 'resource' (a nil value)
Is base mod enabled?

Re: [MOD 0.10.0] Variant Resource Spawning v0.0.2

Posted: Sat Jul 05, 2014 8:11 am
by kasper747
kolli wrote:
kasper747 wrote:data.lua:1: attempt to index field 'resource' (a nil value)
Is base mod enabled?
Not, it was not :)
Toggling ir on solved the problem. Thanks!