Biter Hates Concrete


Biters and spitters cannot going to the concrete floor

Content
3 years ago
0.17 - 1.1
1.29K
Cheats

g Biter hates bricks?

3 years ago

Hello, my friend! I love yours mods, especialy biter hates concretes. Any chance you do something like this, with bricks? For noobs like me!!! Thanks

3 years ago

You can make your first mod, just replace "concrete" to the "stone-brick"

3 years ago

Dear darkfrei,

I tried to change "concrete" to "stone-brick" in data-final-fixes.lua but when i started factorio, a text alert "1:unexpected symbol near '-' " appear.

My code:

local stone-brick_tiles = {"hazard-stone-brick-left", "hazard-stone-brick-right", "stone-brick"}

local collision_layer = "layer-12"

for i, tile_name in pairs (stone-brick_tiles) do
local tile = data.raw.tile[tile_name]
if tile then
tile.collision_mask = {"ground-tile", collision_layer}
end
end

local units = {"small-biter", "medium-biter", "big-biter", "behemoth-biter", "small-spitter", "medium-spitter",

"big-spitter", "behemoth-spitter"}

for i, unit_name in pairs (units) do
local unit = data.raw.unit[unit_name]
if unit then
unit.collision_mask = {"player-layer", "train-layer", collision_layer}
end
end

3 years ago
(updated 3 years ago)
local stone-brick_tiles

to

local stone_brick_tiles

Lua cannot support variables with minus, it's already some math.
The 1: in error text "text alert "1:" says it which line is the error.

3 years ago

Also there is no hazard stone brick in vanilla; but you get no error. If some mod adds it before your mod, then it will be supported automatically.

3 years ago
for i, tile_name in pairs (stone-brick_tiles) do

to

for i, tile_name in pairs (stone_brick_tiles) do
3 years ago

Well... Did not work. No error messages, but the biters walk with no problems over all the stone brick path. Anywhy, thanks for all responses, you are great for all you patience! I love this game, and i play with no biters because they destroy all so quickly in begning of the game, and this is piss me of. But i will try a mod with wall of brick, and grow up the power of walls. Thanks a lot!!!

3 years ago

My bad!

Must be:

local stone_brick_tiles = {"stone-path"}
3 years ago

Hello, darkfrei!

Its works!!! Thanks a lot! I will create a file and i will send to Mod Portal with all thankness to you! This help noobs like me!!! Thanks thanks thanks thanks!!!!!!!!!!

Final code:

local stone_brick_tiles = {"stone-path"}

local collision_layer = "layer-12"

for i, tile_name in pairs (stone_brick_tiles) do
local tile = data.raw.tile[tile_name]
if tile then
tile.collision_mask = {"ground-tile", collision_layer}
end
end

local units = {"small-biter", "medium-biter", "big-biter", "behemoth-biter",

"small-spitter", "medium-spitter",

"big-spitter", "behemoth-spitter"}

for i, unit_name in pairs (units) do
local unit = data.raw.unit[unit_name]
if unit then
unit.collision_mask = {"player-layer", "train-layer", collision_layer}
end
end

3 years ago

Nice!

You can use three symbols ` before and after your code to format it as code.

Markdown-Cheatsheet#code

3 years ago

Hey it would be a blast if you were to update this mod to 1.1
I used it a lot in 1.0 but not now.

Thanks for your work buddy.

3 years ago

Oh dude thanks for being so fast but when I try to load it I get this error below.

17.311 Checksum of bobvehicleequipment: 1057191767
17.311 Checksum of Avatars: 1412122003
17.429 Error ModManager.cpp:1555: Error while loading tile prototype "concrete" (tile): Unknown collision mask "layer-12"
Modifications: Base mod › Biter Hates Concrete
17.592 Initial atlas bitmap size is 16384
17.592 Created atlas bitmap 2048x672 [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level]
17.597 Texture processor created (2048). GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
17.601 Parallel Sprite Loader initialized (threads: 0)
17.629 Sprites loaded
17.640 Generated mipmaps (5) for atlas [0] of size 2048x672
17.640 Custom mipmaps uploaded.
17.644 Factorio initialised
17.663 Mods to disable:Failed to load mods: Error while loading tile prototype "concrete" (tile): Unknown collision mask "layer-12"
Modifications: Base mod › Biter Hates Concrete

Mods to be disabled:
• Biter_Hates_Concrete (1.1.1)

3 years ago

Thanks for report, fixed.

3 years ago

Nice bud Thanks. I just started a new game so I'm glad to get it back.

3 years ago
(updated 3 years ago)

Sorry bud my fault. Somehow your mod was not ticked after I downloaded it into my game I just started of the weekend. It works as it should now.
Thank you for updating it.

(Hey I loaded your new version 1.4.6 and it loads just fine but the biters just walk right across it. Sorry bud. I don't have any error logs to show you as it don't error out they just walk right over concrete like normal.)

3 years ago

The highest version is 1.1.2.

3 years ago

Hey, nice mod, does this affect the Bob's Biters too?

3 years ago

No, just this:

local units = {"small-biter", "medium-biter", "big-biter", "behemoth-biter", "small-spitter", "medium-spitter", "big-spitter", "behemoth-spitter"}

New response