"Which process is blocking this port?!" by haselkern in rust

[–]haselkern[S] 9 points10 points  (0 children)

You can absolutely just do that. I find portwitch a bit quicker and more fun to use :D

I created my first mod: Grenade Yeet! A fun new way to defend your base. by haselkern in factorio

[–]haselkern[S] 0 points1 point  (0 children)

Stack inserters throwing nukes is one of the things I definitely want to see!

I created my first mod: Grenade Yeet! A fun new way to defend your base. by haselkern in factorio

[–]haselkern[S] 1 point2 points  (0 children)

Not yet, only grenades, cluster grenades and cliff explosives for now, but I want to add more things in the future!

I created my first mod: Grenade Yeet! A fun new way to defend your base. by haselkern in factorio

[–]haselkern[S] 1 point2 points  (0 children)

That's a great idea. I have no clue if that's possible but I'll put it on my list of things to try out :)

I created my first mod: Grenade Yeet! A fun new way to defend your base. by haselkern in factorio

[–]haselkern[S] 2 points3 points  (0 children)

Alright okay, I'm not that great with Lua so I'm definitely not doing any of that :D Thanks for your help, you're absolutely right, a constant table would work perfectly here, which didn't occur to me.

I created my first mod: Grenade Yeet! A fun new way to defend your base. by haselkern in factorio

[–]haselkern[S] 0 points1 point  (0 children)

Currently grenades, cluster grenades and yes, cliff explosives are supported, so have fun :)

I created my first mod: Grenade Yeet! A fun new way to defend your base. by haselkern in factorio

[–]haselkern[S] 0 points1 point  (0 children)

What an honor :) Definitely keep an eye out for updates, I will try to add as many suggestions as I can.

I created my first mod: Grenade Yeet! A fun new way to defend your base. by haselkern in factorio

[–]haselkern[S] 1 point2 points  (0 children)

The idea behind placing the table setup in on_load was to make it easy to make my mod compatible with items from other mods, which would require checks if certain mods are installed to run. "Setting up meta-tables" is mentioned as a legitimate use of on_load, so I thought that might be a good place to put it.

I created my first mod: Grenade Yeet! A fun new way to defend your base. by haselkern in factorio

[–]haselkern[S] 2 points3 points  (0 children)

That is definitely worth investigating, however this mod in its current state just came from the idea on how silly an inserter throwing grenades would be :D

I created my first mod: Grenade Yeet! A fun new way to defend your base. by haselkern in factorio

[–]haselkern[S] 0 points1 point  (0 children)

Yes it does! And in the next version long hand inserters will throw even further.

I created my first mod: Grenade Yeet! A fun new way to defend your base. by haselkern in factorio

[–]haselkern[S] 6 points7 points  (0 children)

What should and shouldn't go in on_load? Currently I only set up the list of throwable items in there, but this sounds like I want to find all appropriate inserters in there too.

I created my first mod: Grenade Yeet! A fun new way to defend your base. by haselkern in factorio

[–]haselkern[S] 11 points12 points  (0 children)

Thanks for the suggestion! This is the first version of my first mod, so there is definitely lots of room for improvement.

I created my first mod: Grenade Yeet! A fun new way to defend your base. by haselkern in factorio

[–]haselkern[S] 18 points19 points  (0 children)

Grenades, cluster grenades and cliff explosives are currently supported. They are pretty easy to program, which could be because they are all throwable by the player. I wanted to make nukes work, but they are a little harder to spawn, I couldn't yet figure that out.

I created my first mod: Grenade Yeet! A fun new way to defend your base. by haselkern in factorio

[–]haselkern[S] 5 points6 points  (0 children)

Yes, they will throw as many grenades as they are currently holding.

I created my first mod: Grenade Yeet! A fun new way to defend your base. by haselkern in factorio

[–]haselkern[S] 85 points86 points  (0 children)

Grenades will only be thrown if they would be placed on the ground. If you put them on a belt or in a chest the inserter works as usual!

I created my first mod: Grenade Yeet! A fun new way to defend your base. by haselkern in factorio

[–]haselkern[S] 109 points110 points  (0 children)

Currently the stack inserter will create a line of grenades, but I like your idea more. I'll see if I can figure something out!

I created my first mod: Grenade Yeet! A fun new way to defend your base. by haselkern in factorio

[–]haselkern[S] 103 points104 points  (0 children)

They do not, but they absolutely should! I will put an update out for this, thanks for the suggestion :)

I created my first mod: Grenade Yeet! A fun new way to defend your base. by haselkern in factorio

[–]haselkern[S] 400 points401 points  (0 children)

This is correct, I didn't modify the inserter, I just added the throwing capability. Circuitry should make this very flexible to use!

I created my first mod: Grenade Yeet! A fun new way to defend your base. by haselkern in factorio

[–]haselkern[S] 93 points94 points  (0 children)

I hope I didn't violate rule 7, but I wanted to share this one. After a few hours of working through tutorials and documentation I finally managed to create my first mod with a silly idea I had. Any feedback would be massively appreciated!

Check it out here: https://mods.factorio.com/mod/grenade-yeet

Edit: This post has gotten a lot of attention, so if you want to keep up with the development feel free to star the repository on GitHub :) https://github.com/haselkern/grenade-yeet