TerranBuildings V1 deprecated


Mod that implements SC Terran buildings into Factorio

Content
6 years ago
0.15 - 0.16
6
Combat

a version 0.16 coming soon

6 years ago

not much longer that, I still have a small bug in the mod then comes the new version.
i can't get out / the player is not placed outside, so if anyone knows how i can fix it, i would be very grateful.

6 years ago

Hey.

I made the collision box a bit smaller. After that I was able to leave the bunker again.

6 years ago

i already tried that, but the problem persisted afterwards. even if the building has only a very small collision box, the player was not removed from the building.

can you tell me the value of the change? like befor and after?

6 years ago
(updated 6 years ago)

Sure.
entity.lua: (I also added drawing_box)
before:
collision_box = {{-2.5, -2}, {1, 2}},
selection_box = {{-2.7, -2.2},{1.2, 2.2}},
now:
collision_box = {{-1.5, -1.5}, {1.5, 1.5}},
selection_box = {{-1.7, -1.7}, {1.7, 1.7}},
drawing_box = {{-1.5, -1.5}, {1.5, 1.5}},

After some more work I also resized the graphic terran_bunker_sc2 to 160x160 to make it fit better, it is not perfect but works for me.

I hope this helps you.

Edit: Seems like I changed the values a little since I last tested it. It does work, but the collision/selection box and the graphics are totally out of line. I will try around a little and post the new values once I find some that fit better.

6 years ago

I played a little more and got the following results: (Picture)
https://cdn.discordapp.com/attachments/236214646648864768/476897773179109396/20180809013707_1.jpg
You can enter/exit the Bunker without problems.
I also changed the resolution of terran_bunker_sc2 to 128x96 (With the Bunker being 96x96 and the shadow 32x96)

Code edits:
---In entity.lua:
collision_box = {{-1.8, -1.3}, {0.8, 1.3}},
selection_box = {{-1.9, -1.4}, {0.9, 1.4}},
drawing_box = {{-2, -1.5}, {2.0, 1.5}},
---In animation[layers]
width = 128,
height = 96,
---End of code edit

6 years ago

that sounds nice, maybe you can send me the zip file then i can add them hear and i would add you to the author/helper section. ok?

6 years ago

Hey.
Sorry for answering so late, but I was quite busy the last few days. Here are my files:
https://drive.google.com/file/d/1wVaK8o8CnhJoJlrObrY7NeD5cupQZcEW/view
I hope this helps you out.

6 years ago
(updated 6 years ago)

its ok we all have our real life problem´s, looks nice im upload it.

New response