Friday Facts #161 - Infinite Research and Blueprint Library

Regular reports on Factorio development.
User avatar
cpy
Filter Inserter
Filter Inserter
Posts: 839
Joined: Thu Jul 31, 2014 5:34 am
Contact:

Re: Friday Facts #161 - Infinite Research and Blueprint Library

Post by cpy »

I can't open factorio.com
User avatar
Brick
Burner Inserter
Burner Inserter
Posts: 13
Joined: Wed Oct 19, 2016 11:50 am
Contact:

Re: Friday Facts #161 - Infinite Research and Blueprint Library

Post by Brick »

Looks like a great step for the game. With the addition of better UI the game will just become better and user friendly which is always welcome. Also that pollution fix is just a solid choice to keep the game smooth running through-out a playthrough. Can't wait to see what is next. :3
I'm a brick what do you expect? A song? It's not like i have lungs.... Just don't pave me over the road ok?
User avatar
Proxy
Fast Inserter
Fast Inserter
Posts: 165
Joined: Mon Mar 30, 2015 11:10 am
Contact:

Re: Friday Facts #161 - Infinite Research and Blueprint Library

Post by Proxy »

isn't Infinite Research impossible?
as it would Requere Infinite Data Storage and Infinite Processing Power to actually do that and use it.
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5266
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Friday Facts #161 - Infinite Research and Blueprint Library

Post by Klonan »

Proxy wrote:isn't Infinite Research impossible?
as it would Requere Infinite Data Storage and Infinite Processing Power to actually do that and use it.
Well humans don't have infinite storage or brain power, but you can get a piece of paper and keep multiplying the same number over and over

Infinite just means there will be no ceiling to the calculations, the research number will just increment, and the modifier it affects will just keep increasing
User avatar
Proxy
Fast Inserter
Fast Inserter
Posts: 165
Joined: Mon Mar 30, 2015 11:10 am
Contact:

Re: Friday Facts #161 - Infinite Research and Blueprint Library

Post by Proxy »

well. i don't mean the process to get to Infinite, but rather what it would need to actually have it. just Displaying a Infinitly Long Number or Infinite amount of Follower Robots would be Impossible in a Limited Universe.
and i'm just gonna assume the Universe is a Closed object, with Limited Matter and Energy.
Masterfox
Long Handed Inserter
Long Handed Inserter
Posts: 58
Joined: Wed May 18, 2016 5:24 pm
Contact:

Re: Friday Facts #161 - Infinite Research and Blueprint Library

Post by Masterfox »

Right, what would happen if you just called /c game.player.force.research_all_technologies() ? This would probably caus an error for many things.
User avatar
MrGrim
Fast Inserter
Fast Inserter
Posts: 241
Joined: Sat Apr 09, 2016 7:58 pm
Contact:

Re: Friday Facts #161 - Infinite Research and Blueprint Library

Post by MrGrim »

Infinite research looks great! I tend to leave my science factory operational in case I add a mod or something that needs research, but the ability to keep it busy and for tangible returns would be very welcome. I'm curious, though. Does only the cost increase, or can the associated bonuses also decrease algorithmically? Something like Bot speed X gives a speed boost equivalent to bot speed (X-1)/2.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14250
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Friday Facts #161 - Infinite Research and Blueprint Library

Post by Rseding91 »

Masterfox wrote:Right, what would happen if you just called /c game.player.force.research_all_technologies() ? This would probably caus an error for many things.
Infinite research is a single technology definition. They're simply applied once when "research all" is triggered and remain available to keep researching after that.
If you want to get ahold of me I'm almost always on Discord.
mknejp
Fast Inserter
Fast Inserter
Posts: 154
Joined: Wed Apr 27, 2016 8:29 pm
Contact:

Re: Friday Facts #161 - Infinite Research and Blueprint Library

Post by mknejp »

Is there a reason why blueprints use a different button sprite for renaming than train stations which already have a perfectly good edit button?
I never really understood the point of that arrow thing. Always looked like a "repeat" button to me.
rename.png
rename.png (96.88 KiB) Viewed 8030 times
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Friday Facts #161 - Infinite Research and Blueprint Library

Post by ssilk »

This queue mechanism is interesting for modders. Super useful if a modder would be enabled to create different types of future events (plus data).

In this context: viewtopic.php?f=28&t=33441&p=212499&hil ... er#p212481
forget the first part, ---> Timers
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
Thunderbug
Manual Inserter
Manual Inserter
Posts: 1
Joined: Fri Oct 21, 2016 7:57 pm
Contact:

Re: Friday Facts #161 - Infinite Research and Blueprint Library

Post by Thunderbug »

For the pollution Map calculations: you might be able to further optimise it by dividing all the tiles into 60 chunks and always updating one of those chunks. The Advantage is that you don't have to skip so many tiles with each Access which should greatly improve Cache locality and thus give you faster memory Access ;)

Keep up the great work ^^
Rseding91
Factorio Staff
Factorio Staff
Posts: 14250
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Friday Facts #161 - Infinite Research and Blueprint Library

Post by Rseding91 »

Thunderbug wrote:For the pollution Map calculations: you might be able to further optimise it by dividing all the tiles into 60 chunks and always updating one of those chunks. The Advantage is that you don't have to skip so many tiles with each Access which should greatly improve Cache locality and thus give you faster memory Access ;)

Keep up the great work ^^
What? "dividing all the tiles into 60 chunks" - chunks are composed of tiles currently. I'm not sure what you're talking about.
If you want to get ahold of me I'm almost always on Discord.
GuiltyBystander
Inserter
Inserter
Posts: 23
Joined: Sat Oct 01, 2016 12:53 am
Contact:

Re: Friday Facts #161 - Infinite Research and Blueprint Library

Post by GuiltyBystander »

How do you plan to do infinite research for normal/stack inserter bonus? This one is slightly different because every level of tech isn't the same.
Yttrium
Long Handed Inserter
Long Handed Inserter
Posts: 81
Joined: Mon Jan 05, 2015 1:47 pm
Contact:

Re: Friday Facts #161 - Infinite Research and Blueprint Library

Post by Yttrium »

Rseding91 wrote:
Thunderbug wrote:For the pollution Map calculations: you might be able to further optimise it by dividing all the tiles chunks into 60 and always updating one of those chunks pieces. The Advantage is that you don't have to skip so many tileschunks with each Access which should greatly improve Cache locality and thus give you faster memory Access ;)

Keep up the great work ^^
What? "dividing all the tiles into 60 chunks" - chunks are composed of tiles currently. I'm not sure what you're talking about.
I think what he meant to say is that you should distribute the chunks across the 60 ticks you have, However they/you are already doing that.

Or he's talking about grouping "Idle chunks" together which I dont know how that would help in this scenario.
User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2171
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: Friday Facts #161 - Infinite Research and Blueprint Library

Post by Ranakastrasz »

I hope that blueprints also include the import export of Blueprint String. A lot of other websites use that, and I can't see a reason to not include that part.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
Pe334
Inserter
Inserter
Posts: 44
Joined: Thu Jun 16, 2016 4:00 pm
Contact:

Re: Friday Facts #161 - Infinite Research and Blueprint Library

Post by Pe334 »

I like to have a Goal for researchin and also make a big factor.
Maybe after the vanilla-research you get a new lab wich can do the invenite research, so for the player who like to Research "all-vanilla" there will be a goal for it 8-)
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: Friday Facts #161 - Infinite Research and Blueprint Library

Post by aubergine18 »

Rseding91 wrote:The GUIs used by the core game have far more complex requirements and use cross-GUI logic that would simply not work if done as a mod. Making something like the blueprint library GUI, or the trains GUI a mod is not likely to ever happen.

Because we control the GUI and when it's created, interacted with, and removed we can also make performance optimizations and skip extra checks because we can guarantee the state of the GUI compared to in mods *everything* has to be sanity checked and that slows it down by incredible amounts.
I was thinking more along the lines of the "always on" UI - the minimap, the buttons above it, the info panel below it, the tool/weapon inventory, the quickbar... If modders had the ability to turn those off (well, we already can I think) but then use those LuaGui regions to add our own GUI, I think we could achieve some interesting results without notable performance impacts.

We wouldn't need to interact with what's in the minimap, it would just be this black box GUI element that we could dump in to one of our GUI layouts. Same sort of thing with the "CCTV camera" things that you get in train UI - another black box that we could dump in to our layouts. In both cases, passing either a position or an entity, with optional zoom level, and the map/cctv focuses on that. Is there some way we could at least get something like that to experiment with, under full acceptance that it might be removed prior to final release?
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Friday Facts #161 - Infinite Research and Blueprint Library

Post by ssilk »

Rseding91 wrote:
Thunderbug wrote:For the pollution Map calculations: you might be able to further optimise it by dividing all the tiles into 60 chunks and always updating one of those chunks. The Advantage is that you don't have to skip so many tiles with each Access which should greatly improve Cache locality and thus give you faster memory Access ;)

Keep up the great work ^^
What? "dividing all the tiles into 60 chunks" - chunks are composed of tiles currently. I'm not sure what you're talking about.
I think he means that each tile's pollution is updated each tick. That would be really impossible.

@Thunderbug: A chunk is 32*32 tiles (1024) and the pollution is a property of a chunk, not a tile.

See https://wiki.factorio.com/index.php?title=Chunk
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
Zeblote
Filter Inserter
Filter Inserter
Posts: 973
Joined: Fri Oct 31, 2014 11:55 am
Contact:

Re: Friday Facts #161 - Infinite Research and Blueprint Library

Post by Zeblote »

Rseding91 wrote:
Thunderbug wrote:For the pollution Map calculations: you might be able to further optimise it by dividing all the tiles into 60 chunks and always updating one of those chunks. The Advantage is that you don't have to skip so many tiles with each Access which should greatly improve Cache locality and thus give you faster memory Access ;)

Keep up the great work ^^
What? "dividing all the tiles into 60 chunks" - chunks are composed of tiles currently. I'm not sure what you're talking about.
I think he means something like this:

1) On start, create 60 vectors of chunk pointers
2) On chunk creation, insert it into one of the vectors
3) Every tick, update pollution for the chunks in the (tick % 60)th vector with a simple loop

That way there'd be no need to re-insert the chunks into queue for 60 ticks ahead.
starholme
Fast Inserter
Fast Inserter
Posts: 201
Joined: Tue Oct 21, 2014 7:25 pm
Contact:

Re: Friday Facts #161 - Infinite Research and Blueprint Library

Post by starholme »

Zeblote wrote:
Rseding91 wrote:
Thunderbug wrote:For the pollution Map calculations: you might be able to further optimise it by dividing all the tiles into 60 chunks and always updating one of those chunks. The Advantage is that you don't have to skip so many tiles with each Access which should greatly improve Cache locality and thus give you faster memory Access ;)

Keep up the great work ^^
What? "dividing all the tiles into 60 chunks" - chunks are composed of tiles currently. I'm not sure what you're talking about.
I think he means something like this:

1) On start, create 60 vectors of chunk pointers
2) On chunk creation, insert it into one of the vectors
3) Every tick, update pollution for the chunks in the (tick % 60)th vector with a simple loop

That way there'd be no need to re-insert the chunks into queue for 60 ticks ahead.
Hard to know without the dev's chiming in, but the version they show in the FFF is likely done that way. They don't keep shuffling the pointers forward, they just iterate along. When they hit 59, start back at 0. Sounded like they also only keep 'active' chunks in these buckets as well, so they don't need to touch the inactive ones at all.

I wonder if they bother to balance each bucket? So you don't end up with 300 chunks to process one tick, 3 the next.
Post Reply

Return to “News”