Comments (13)
Thank you! I've seen that during development, and wasn't sure if it shows up in published releases. Will investigate :)
from factorio-tycoon.
Maybe factorio gets confused by the shorthand positions. I'll try specifying them as coordinates and see how it goes.
from factorio-tycoon.
the conflict and selection coordinates are inverted, I think if you change the x to y it should work
collision_box = { { -8.4, -2.4}, {8.4, 2.4} },
selection_box = { { -8.5, -2.5}, {8.5, 2.5} },
collision_box = { { -x1, -y1}, {x2, y2} },
selection_box = { { -x1, -y1}, {x2, y2} },
left:x1
right:x2
bottom: y1
top: y2
you can try to use the automatic adjustment with the size
from factorio-tycoon.
This issue is a bit more confusing than just having the wrong numbers.
I've seen this again yesterday in my own test:
![Screenshot 2023-10-11 at 11 19 26](https://private-user-images.githubusercontent.com/1830132/274213737-00a7a2f9-0ce1-46d5-a2de-bdce2779cf91.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTc1MDM4MjgsIm5iZiI6MTcxNzUwMzUyOCwicGF0aCI6Ii8xODMwMTMyLzI3NDIxMzczNy0wMGE3YTJmOS0wY2UxLTQ2ZDUtYTJkZS1iZGNlMjc3OWNmOTEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYwNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MDRUMTIxODQ4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OTEzNWQyMjk1ODY0MzEyODBmYWZmYzdmNTY1OTE4NzQ4ZmUyZGFjMmRiMDE0MzNlMmRkZDRlZmE1YzhmOGFmYyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.XlxvjCfTja9nDDsOg9xFr9jgjWCyxmb4IYfYCIi4gKA)
Today when I reconstruct that building (or construct it in another save):
![Screenshot 2023-10-11 at 11 21 00](https://private-user-images.githubusercontent.com/1830132/274213844-7f9263f4-1526-4f5b-92f4-d821e749de2a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTc1MDM4MjgsIm5iZiI6MTcxNzUwMzUyOCwicGF0aCI6Ii8xODMwMTMyLzI3NDIxMzg0NC03ZjkyNjNmNC0xNTI2LTRmNWItOTJmNC1kODIxZTc0OWRlMmEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYwNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MDRUMTIxODQ4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZjNmZGFhNjM4NWMwN2NkNzViNDE2ODdjMjg5YTZkOWQwNmFhNmYxMDEwNjk0ZmM4NTg2ODhkZjY3OGNkNjhmMCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.lE4nNEaERhLEl0wwp8Uv0xjcx-WX47GnbD1eReBL7BA)
I only made a formatting change, that really can't be the reason:
![Screenshot 2023-10-11 at 11 22 38](https://private-user-images.githubusercontent.com/1830132/274214005-fec8bf89-440e-4981-ba49-209987c12a63.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTc1MDM4MjgsIm5iZiI6MTcxNzUwMzUyOCwicGF0aCI6Ii8xODMwMTMyLzI3NDIxNDAwNS1mZWM4YmY4OS00NDBlLTQ5ODEtYmE0OS0yMDk5ODdjMTJhNjMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYwNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MDRUMTIxODQ4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZmJhNTU5NzE3NjYzYmUxMGE5ODRhYTg0NTgwZjY3M2QxNTljZjY1ZmMzMTFlZTY0YmUxZTcxN2E1NWRkYzAzYiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.022cPB4tg6hRgKTM5FGgNL5WQ6eDHcPduSA4a-boOUw)
from factorio-tycoon.
I also tried replacing the shorthand version {x, y}
with the longhand version {x=x, y=y}
, but the squeak through mod can't handle that.
from factorio-tycoon.
So the problem is the image since the game is rotating the hitbox and the structure but the image is not rotated, try putting 2 frames in the official image
from factorio-tycoon.
Just like the game does with the car that has 64 positions and 64 images in just 1
from factorio-tycoon.
When you use the R button or rotate the game changes the position and takes the image that fits the position, in this case I notice that the butcher's shop only has 1 image
from factorio-tycoon.
I'm working on this bug but I only see the solution of adding another image or leaving the butcher position fixed
from factorio-tycoon.
This is an example of what I use in my constructions
local path_main = "__Applied-Energistics-2__/"
data:extend({
{
type = "container",
name = "drive-entidade",
icon = path_main .. "graficos/Blocos/drive.png",
icon_size = 128,
icon_mipmaps = 4,
minable = { mining_time = 1, result = "drive" },
max_health = 350,
inventory_size = 8,
-- corpse = "big-remnants",
corpse = "assembling-machine-2-remnants",
-- dying_explosion = "big-explosion",
dying_explosion = "assembling-machine-2-explosion",
alert_icon_shift = { -0.09375, -0.375 },
collision_box = {
{ -1.2, -1.2 },
{ 1.2, 1.2 }
},
selection_box = {
{ -1.5, -1.5 },
{ 1.5, 1.5 }
},
drawing_box = {
{ -1.5, -1.5 },
{ 1.5, 1.5 }
},
energy_source = {
emissions_per_minute = 3,
type = "electric",
usage_priority = "secondary-input"
},
resistances = {
{
type = "fire",
percent = 70
}
},
damaged_trigger_effect = {
entity_name = "spark-explosion",
type = "create-entity",
damage_type_filters = "fire",
offsets = { { 0, 1 } },
offset_deviation = { { -0.5, -0.5 }, { 0.5, 0.5 } }
},
allowed_effects = {
"consumption",
"speed",
"productivity",
"pollution"
},
flags = {
"placeable-neutral",
"placeable-player",
"player-creation",
"not-upgradable"
},
placeable_by = {
item = "drive",
count = 1
},
module_specification = {
module_slots = 0,
module_info_icon_shift = { 0, 0.5 }
},
working_sound = {
sound = {
{ filename = "__base__/sound/assembling-machine-t2-1.ogg", volume = 0.45 }
},
fade_in_ticks = 4,
audible_distance_modifier = 0.5,
fade_out_ticks = 20
},
vehicle_impact_sound = {
{
filename = "__base__/sound/car-metal-impact-2.ogg",
volume = 0.5
},
{
filename = "__base__/sound/car-metal-impact-3.ogg",
volume = 0.5
},
{
filename = "__base__/sound/car-metal-impact-4.ogg",
volume = 0.5
},
{
filename = "__base__/sound/car-metal-impact-5.ogg",
volume = 0.5
},
{
filename = "__base__/sound/car-metal-impact-6.ogg",
volume = 0.5
}
},
picture = {
layers = {
{
filename = path_main .. "graficos/Blocos/drive.png",
height = 128,
shift = { 0, -0.015625 },
priority = "extra-high",
width = 128
},
{
filename = path_main .. "graficos/Blocos/drive.png",
height = 128,
shift = { 0.3125, 0.203125 },
priority = "extra-high",
width = 128,
draw_as_shadow = true
}
}
},
close_sound = {
{
filename = "__base__/sound/machine-close.ogg",
volume = 0.5
}
},
open_sound = {
{
filename = "__base__/sound/machine-open.ogg",
volume = 0.5
}
},
}
})
from factorio-tycoon.
I was thinking about that
from factorio-tycoon.
True, if we can't find the root cause we need to add a vertical image.
from factorio-tycoon.
![Screenshot 2023-10-12 at 08 45 51](https://private-user-images.githubusercontent.com/1830132/274506533-8261f695-1706-4a73-9108-b4a79a943d1e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTc1MDM4MjgsIm5iZiI6MTcxNzUwMzUyOCwicGF0aCI6Ii8xODMwMTMyLzI3NDUwNjUzMy04MjYxZjY5NS0xNzA2LTRhNzMtOTEwOC1iNGE3OWE5NDNkMWUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYwNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MDRUMTIxODQ4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjIwOTQwOWZkYjNlZDVkZTgzZGNkNjA1MjRlYzQ2NDdhZjI1YjY2YzU5NGNjMGI4Zjc2NmIwZDgwNmNlYzVkZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.o2AvDZAmoZAVcVVHYxGzvCgM2kfIFR3cIkeY61TNeP8)
Problem happened again in editor mode.
from factorio-tycoon.
Related Issues (20)
- tech migration tests
- level 10 productivity research should not break in new milestone
- Updating to 0.3 does not unlock the chicken recipe. HOT 1
- gui: show requirement of minum lower tier houses HOT 1
- graphics: chicken to have red hats
- graphics: dairy products picture to replace fermentation picture HOT 1
- Multiplayer desynchronization after last update HOT 10
- bug: in multiplayer the city range overlay disappears/appears incorrectly when multiple people use it HOT 1
- balancing: v0.4.x amount of fishery is too low HOT 6
- dev experience: checks for crowdin contributions HOT 2
- feat: RBGen - Region Based Generator for industries and probably even cities HOT 21
- bug: v0.4.0 regression - cities doesn't consume construction materials from stores HOT 1
- bugs: playtest issues
- bug: random multiplayer desyncs with mods [need-info] HOT 1
- Replace urban planning center mechanic with craftable and placeable town halls
- Support multiple surfaces
- Tier-based floor style
- mod support: alien-biomes + HOT 1
- bug: used-bottles-store built outside of CITY_RADIUS won't get used bottles HOT 1
- refactor how we keep track of entities 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 factorio-tycoon.