Page 1 of 1

[Solved] Blue print / Terrain Tile Issue

Posted: Mon Jul 24, 2017 3:55 pm
by TheSAguy
Technically this is probably not a bug, but an unintentional result.


In my Mod NE Enemies, I change the terrain when Enemies die.
In my Mod Bio Industries, I have it that you can use fertilizer to change the terrain back to Medium Grass.

For some reason tiles that were changed when biters die, now get's captured by blueprints.

As you can see from the screenshot, the base terrain is not captured, only the Medium Grass tiles around the areas that I changed when a biter died.

Image

I'm not sure if it's a setting I'm missing. Force issue...
Both Mods are in my signature.


Tile Replacement Code
Fertilizer that can change tile to medium grass:
Fertilizer

Re: Blue print / Terrain Tile Issue

Posted: Mon Jul 24, 2017 5:16 pm
by Rseding91
Thanks for the report but as you've said that isn't a bug :)

If the mod author wants the tiles to not be blueprintable he can set the flag in the tile prototype "can_be_part_of_blueprint" to false and the game will disallow making blueprints from them.

Re: Blue print / Terrain Tile Issue

Posted: Mon Jul 24, 2017 5:43 pm
by TheSAguy
Rseding,

This is weird to me. Since I'm just changing one Base game Tile to another Base game tile. It's not like I'm adding a new tile to the game and need to give it the property "can_be_part_of_blueprint"

also, I looked at the base game and only two tiles have this property: "grass" and "red-desert"
Why would all the others not have this?

It seems to me like the issue is that the base game is missing "can_be_part_of_blueprint" from "grass-medium" (What my mod changes the terrain to) and all the other terrains:

"grass-dry"
"sand"
"sand-dark"
"dirt"
"dirt-dark"
"red-desert-dark"

Or am I missing something.

P.S. I'm the author of both mods. I guess I could just add:
data.raw["tile"]["grass-medium"].can_be_part_of_blueprint = false

But not sure why it's not in the base game.
Thanks.

Re: Blue print / Terrain Tile Issue

Posted: Mon Jul 24, 2017 7:16 pm
by Rseding91
Tiles can't be in blueprints if there's no item that builds them so that's why they don't have the value set. When a mod adds an item that builds the tile then it becomes valid to be in a blueprint.

Re: Blue print / Terrain Tile Issue

Posted: Mon Jul 24, 2017 7:47 pm
by TheSAguy
Got it!
Thanks for your reply(s)

Re: Blue print / Terrain Tile Issue

Posted: Tue Jul 25, 2017 10:41 am
by darkfrei
Rseding91 wrote:Thanks for the report but as you've said that isn't a bug :)

If the mod author wants the tiles to not be blueprintable he can set the flag in the tile prototype "can_be_part_of_blueprint" to false and the game will disallow making blueprints from them.
Where are you find this? Is it in API, tutorian or in vanilla prototype?

Re: Blue print / Terrain Tile Issue

Posted: Tue Jul 25, 2017 1:17 pm
by Rseding91
darkfrei wrote:
Rseding91 wrote:Thanks for the report but as you've said that isn't a bug :)

If the mod author wants the tiles to not be blueprintable he can set the flag in the tile prototype "can_be_part_of_blueprint" to false and the game will disallow making blueprints from them.
Where are you find this? Is it in API, tutorian or in vanilla prototype?
It's used for grass in the base game: data\base\prototypes\tile\tiles.lua line 381.

Re: Blue print / Terrain Tile Issue

Posted: Tue Jul 25, 2017 7:07 pm
by darkfrei
Rseding91 wrote:It's used for grass in the base game: data\base\prototypes\tile\tiles.lua line 381.
Interesting, I can't find this text "can_be_part_of_blueprint" in the raw table.
I've used this info-mod tool and all another elements are here.

Re: Blue print / Terrain Tile Issue

Posted: Tue Jul 25, 2017 7:42 pm
by DaveMcW
Then info-mod tool is broken.

Re: Blue print / Terrain Tile Issue

Posted: Tue Jul 25, 2017 7:50 pm
by darkfrei
DaveMcW wrote:Then info-mod tool is broken.
It looks and works good, the raw table in 0.15.27 was:
raw-table.log
0.15.27
(5.15 MiB) Downloaded 97 times
For example, the grass code is:
code of grass
You can see here all, but not can_be_part_of_blueprint = false

Re: Blue print / Terrain Tile Issue

Posted: Tue Jul 25, 2017 7:56 pm
by Bilka
Here is the 0.15.31 data.raw. Searching for "can_be_part_of_blueprint": false gives me grass as the first result. Here is the grass alone.

Edit: Even searching in the one linked on the wiki that was dumped directly from the game using a short mod has the grass as the first result when searching for can_be_part_of_blueprint .