Comments (9)
That's a really good idea. I'll change it to a lua table most likely and leave out commented examples for angels/bobs.
from factorioscenariomultiplayerspawn.
@Rsslone This is amazing thank you for the work! To keep the example config size reasonable, and because this doesn't get a huge amount of requests I will just leave the resource names in as references and leave it up to the user to configure it themselves. Otherwise it just gets a bit too cluttered.
I'm hoping that will be sufficient for showing people that this could support other resources mods without much trouble.
I will reference this ticket directly in the config file so people can look up your example numbers here.
from factorioscenariomultiplayerspawn.
Definitely possible. I stripped out the RSO support for additional ores because there's more overhead and I wanted to keep it simple.
If you are interested in trying, see if you can compare my RSO trimmed code to the current RSO mod. You should see resource configuration for bobs ores and see how that hooks in. Adding it to the starting circle is trivial though.
from factorioscenariomultiplayerspawn.
I feel like it would be much easier to allow people to set their own resource names. For example I am running Angels, so my starting ores is Saphirite, Stiratite, Rubyte, Bobmonium, Coal.
If you change the values "START_RESOURCE_STONE" to things like "START_RESOURCE_ONE" and add a config value "RESOURCE_ONE_ORE_NAME=stone" to the config.lua so people can easily change the ores if they wanted without going into the separate_spawns.lua. In my setup I just replaced the names of Stone, Copper, Iron, and Uranium.
Or if you wanted to make this Angels and Bobs friendly out of the box you could create a variable for Vanilla, Bobs, and Angels and change the starting ore names based on that. I know for angels ores the ore names are as follows.
Saphirite = angels-ore1
Stiratite = angels-ore3
Rubyte = angels-ore5
Bobmonium = angels-ore6
from factorioscenariomultiplayerspawn.
Another note is the oil patches are not crude-oil with angels, its multi phase oil. For simplicity and because oil is not a required resource to start I disabled the oil patches. I think the tile name is "angels-fissure". The only thing you really need is the four listed above plus coal. Bobs I think requires a bit more patches.
from factorioscenariomultiplayerspawn.
@Rsslone I pushed a change to try and make the resource configuration more "configurable" :)
Take a look at the new config.lua file and look at OARC_CFG.
Let me know if you have ideas about improving it, and if you can help test the angel/bobs starting resources. I can put those in commented out for easy use later.
Snippet:
-- This is where you can modify what resources spawn, how much, where, etc.
-- Once you have a config you like, it's a good idea to save it for later use
-- so you don't lost it if you update the scenario.
OARC_CFG = {
-- Misc spawn related config.
gen_settings = {
-- Start resource shape. true = circle, false = square.
resources_circle_shape = true,
-- Force the land area circle at the spawn to be fully grass
force_grass = true,
-- Spawn a circle/octagon of trees around the base outline.
tree_circle = true,
tree_octagon = false,
},
-- Location of water strip (horizontal)
water = {
x_offset = -4,
y_offset = -48,
length = 8
},
-- Handle placement of starting resources -- STILL WIP
resource_rand_pos_settings =
{
-- Autoplace resources (randomly in circle)
-- This will ignore the fixed x_offset/y_offset values in resource_tiles.
-- Only works for resource_tiles at the moment, not oil patches/water.
enabled = false,
-- Distance from center of spawn that resources are placed.
radius = 48
},
-- Resource tiles
resource_tiles =
{
["iron-ore"] =
{
amount = 1500,
size = 16,
x_offset = -29,
y_offset = 16
},
["copper-ore"] =
{
amount = 1500,
size = 14,
x_offset = -28,
y_offset = -3
},
["stone"] =
{
amount = 1000,
size = 12,
x_offset = -27,
y_offset = -34
},
["coal"] =
{
amount = 1500,
size = 12,
x_offset = -27,
y_offset = -20
}
from factorioscenariomultiplayerspawn.
I won't be upgrading until my next server reset but I can do some rough testing with angels / bobs to find the appropriate configuration in a bit. Thanks for adding this, very useful.
from factorioscenariomultiplayerspawn.
@Rsslone Let me know if you were able to do any testing on this. Otherwise I'll probably close it as solved since I believe my new implementation should be sufficient.
from factorioscenariomultiplayerspawn.
Yeah sorry about that, I am still on the OG save and not got around to creating a sandbox to fully test the new version. I'm sure it works but let me throw you the reference to the ore names so players can more easily set it up. Keep in mind for Bobs+Angels you should have Oil patches disabled because Angels uses a different type of patch. Also prob should run the vanilla numbers at least once on default spawn size because I used CHUNK_SIZE*1.8 which I found to be the best.
Ore References
########## Vanilla ##########
Iron = iron-ore
Copper = copper-ore
Coal = coal
Stone = stone
####### Bobs + Angels #######
== Recommended Starting Ores ==
Coal = coal
Saphirite = angels-ore1
Stiratite = angels-ore3
Rubyte = angels-ore5
Bobmonium = angels-ore6
DISABLE STARTING OIL PATCHES!
== Optional Ores Reference ==
Jivolite = angels-ore2
Crotinnium = angels-ore4
########## Bobs Ore ##########
== Recommended Starting Ores ==
Iron = iron-ore
Copper = copper-ore
Coal = coal
Stone = stone
Tin = tin-ore
Lead (Galena) = lead-ore
== Optional Ores Reference ==
Bauxite = bauxite-ore
Cobalt = cobalt-ore
Gold = gold-ore
Nickel = nickel-ore
Silicon (Quartz) = quartz
Rutile = rutile-ore
Silver = silver-ore
Sulfur = sulfur
Thorium = thorium-ore
Tungsten = tungsten-ore
Zinc = zinc-ore
Config Examples. Your X offsets were hurting my tisms so I changed that in these examples.
########## Vanilla ##########
resource_tiles =
{
["iron-ore"] =
{
amount = 1500,
size = 12,
x_offset = -27,
y_offset = 17
},
["copper-ore"] =
{
amount = 1500,
size = 12,
x_offset = -27,
y_offset = -1
},
["stone"] =
{
amount = 1000,
size = 12,
x_offset = -27,
y_offset = -35
},
["coal"] =
{
amount = 1500,
size = 12,
x_offset = -27,
y_offset = -17
}
########## Bobs Mods ##########
resource_tiles =
{
["iron-ore"] =
{
amount = 1500,
size = 12,
x_offset = -27,
y_offset = 17
},
["copper-ore"] =
{
amount = 1500,
size = 12,
x_offset = -27,
y_offset = -1
},
["stone"] =
{
amount = 1000,
size = 12,
x_offset = -27,
y_offset = -35
},
["coal"] =
{
amount = 1500,
size = 12,
x_offset = -27,
y_offset = -17
},
["tin-ore"] =
{
amount = 1500,
size = 12,
x_offset = 17,
y_offset = -35
},
["lead-ore"] =
{
amount = 1500,
size = 12,
x_offset = 17,
y_offset = -17
}
########## Bobs + Angels ##########
resource_tiles =
{
["angels-ore1"] =
{
amount = 1500,
size = 12,
x_offset = -27,
y_offset = 17
},
["angels-ore3"] =
{
amount = 1500,
size = 12,
x_offset = -27,
y_offset = -1
},
["angels-ore5"] =
{
amount = 1000,
size = 12,
x_offset = -27,
y_offset = -35
},
["coal"] =
{
amount = 1500,
size = 12,
x_offset = -27,
y_offset = -17
},
["angels-ore6"] =
{
amount = 1500,
size = 12,
x_offset = 17,
y_offset = -35
}
from factorioscenariomultiplayerspawn.
Related Issues (20)
- Spawn control gui exception? HOT 4
- Shared Chest Fatal Error HOT 2
- Incompatibility with 1.1 HOT 1
- Loader recipe is set to hidden (factorio game code changed) HOT 3
- Vehicles/Spidertron deleted during map cleanup HOT 1
- Starter crashed ship has spidertron and no setting in the config.lua HOT 2
- Undecorator deletes fish HOT 4
- server crash with the ney version 1.1.19 HOT 3
- Players start with coins, even when Coin Shop is disabled HOT 1
- Desync when doing map cleanup HOT 2
- Scenario crashes on_tick if it is (incorrectly) set up with energy_sharing = true & coin_shop = false HOT 1
- Attempting to call math.random() outside an event or during loading HOT 2
- Crash on player respawn HOT 1
- Construction robot self destruction HOT 11
- Hopefully it will be compatible with space exploration HOT 2
- Desync with stored shared energy HOT 2
- Is this project still under maintenance? HOT 6
- Server crashes after adding any helmod or recipe browsing mod HOT 1
- Mod incompatiabilities with level::on_player_created HOT 1
- Base cleanup fails sometimes when players leave early HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from factorioscenariomultiplayerspawn.