Search found 10 matches

by Kiplacon
Tue Jun 01, 2021 1:19 am
Forum: Modding help
Topic: Modded car randomly disapears?
Replies: 3
Views: 1133

Re: Modded car randomly disapears?

Damn nice catch, yeah I use the invisible car to also guide the zipline and I forgot to think about cases where I destroyed the car for zipline purposes. That must mean that the randomness of the car disappearing was because that check which only happens every 5 seconds was sometimes happening durin...
by Kiplacon
Sun May 30, 2021 5:42 pm
Forum: Modding help
Topic: rail-attached entity to move train
Replies: 1
Views: 716

Re: rail-attached entity to move train

On the entity prototype, if you change the type from "simple-entity" to "train-stop" it will act like a train stop in that it can only be placed on rails, and it won't affect train traffic like how a train signal would. Then in control.lua when it gets built, you can set entity.o...
by Kiplacon
Sun May 30, 2021 5:33 pm
Forum: Modding help
Topic: Modded car randomly disapears?
Replies: 3
Views: 1133

Modded car randomly disapears?

A crash report for my mod recently revealed a weird situation where cars disappear seemingly at random. This is my mod here: https://mods.factorio.com/mod/RenaiTransportation and this is the report: https://mods.factorio.com/mod/RenaiTransportation/discussion/60a08b5134aa311d8601a94e The mod has tra...
by Kiplacon
Thu Jan 07, 2021 2:30 pm
Forum: Modding help
Topic: Can you make an entity with only 2 orientations?
Replies: 11
Views: 2723

Re: Can you make an entity with only 2 orientations?

I'm trying to make a bridge in two parts: the ramp going up to bridge level, and the bridge section itself. I only want the bridge to be placeable going horizonally and naturally you would need a ramp going back down on the other side. I could make two separate non-rotatable ramp entities one slopin...
by Kiplacon
Wed Jan 06, 2021 1:40 pm
Forum: Modding help
Topic: Can you make an entity with only 2 orientations?
Replies: 11
Views: 2723

Re: Can you make an entity with only 2 orientations?

Okay so it turns out the two directions are vertical and horizontal so it'll get rotated if it's a rectangle. Maybe I'll just try to keep it a square shape
by Kiplacon
Wed Jan 06, 2021 1:59 am
Forum: Modding help
Topic: Can you make an entity with only 2 orientations?
Replies: 11
Views: 2723

Re: Can you make an entity with only 2 orientations?

The only entity that I'm aware of that is possible to restrict to just 2 orientations (north and east apparently) is the storage tank entity, which has a specific property to enable that. That actually sounds pretty good, I can always swap out for the real entity I want with a script. Thanks a lot :)
by Kiplacon
Mon Jan 04, 2021 5:03 pm
Forum: Modding help
Topic: Can you make an entity with only 2 orientations?
Replies: 11
Views: 2723

Can you make an entity with only 2 orientations?

Most entities either can't be rotated or have all 4 directions. Is there a way to make a custom entity with only 2 orientations, left and right? I know the steam engine has 2 orientations but those are vertical and horizontal meaning the collision box rotates with it too.
by Kiplacon
Tue Jun 30, 2020 2:09 am
Forum: Mod portal Discussion
Topic: How do I resize images on a mod portal page?
Replies: 0
Views: 738

How do I resize images on a mod portal page?

This is my mod page: https://mods.factorio.com/mod/RenaiTransportation

idk if the new update changed the formatting but now all my images are different sizes, most of which have become MUCH bigger. How can I adjust their size?
by Kiplacon
Sat May 09, 2020 4:58 pm
Forum: Modding help
Topic: How to get position of a projectile?
Replies: 3
Views: 1150

Re: How to get position of a projectile?

I give the projectile a name when I spawn it like: global.rock = create_entity ({projectile details}) Then in a different script I want to repeatedly teleport the player to that projectile to simulate motion like: if (global.rock.valid) then game.get_player(1).teleport(global.rock.position) end But ...
by Kiplacon
Sat May 09, 2020 12:44 am
Forum: Modding help
Topic: How to get position of a projectile?
Replies: 3
Views: 1150

How to get position of a projectile?

I have a stream projectile (like spitter acid and flamethrower fire), and when I call for its location with ProjectileName.position it gives me the location where the projectile spawned, no matter where the flying projectile currently is in its arc. Is there a way to get the position of the projecti...

Go to advanced search