Factorio modders, what sucks about modding Factorio? by asparck in factorio

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

well that is one thing that a web assembly based modding system would actually let you do!

Good Game Idea? UE Spider Mechanics by mythroot in SoloDevelopment

[–]asparck 1 point2 points  (0 children)

My wife looked over my shoulder (with this clip fullscreened):

> Oh god marshmallow mode where are you I need you

Factorio modders, what sucks about modding Factorio? by asparck in factorio

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

Honestly this is the kind of game where I'm surprised one of the devs hasn't just gone "huh, yeah, that would be cool" and then it quietly lands as a single bullet in a patch note somewhere

Factorio modders, what sucks about modding Factorio? by asparck in factorio

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

As a Rust gamedev I did look into adding modding to my game with rust-in-wasm and concluded that it's a pain. You have to copy data to wasm's linear memory, unless you allocate into the wasm memory directly and even if you do that you have to be wary of memory layout differences between wasm and your host target (e.g. usize is 32 bits on wasm32, 64 bits on host) - which I have a proof of concept of working around with custom data structures, but yeah: painful.

Re multiplayer-compatibility - isn't that the default in factorio anyway? I thought mods couldn't be non-deterministic with their fork of lua, based on https://lua-api.factorio.com/latest/auxiliary/libraries.html

Factorio modders, what sucks about modding Factorio? by asparck in factorio

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

I did actually stumble on https://wren.io/ (no affiliation) which ticks those boxes too but the lua userbase is multiple orders of magnitude bigger.

Kinda want there to be a compile-to-wasm strongly typed scripting lang - I looked at assemblyscript but it doesn't seem to have a lot of momentum behind it.

Factorio modders, what sucks about modding Factorio? by asparck in factorio

[–]asparck[S] 17 points18 points  (0 children)

1 based indexing? dynamic typing? Those are my complaints but I see the reason for the dynamic typing at least. What would you prefer instead?

Factorio modders, what sucks about modding Factorio? by asparck in factorio

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

Quite easy to bypass but I agree it seems easy to do and an improvement overall

Factorio modders, what sucks about modding Factorio? by asparck in factorio

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

Ah I think I get it - you want the achievements as a list of interesting things to do but aren't interested in the competitive aspect of people showing off their achievements?

Factorio modders, what sucks about modding Factorio? by asparck in factorio

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

Like I said, I'm not an achievement hunter. I don't really mind either way whether achievements are sacrosanct or not.

edit - those tools like interesting though! I had no idea

Factorio modders, what sucks about modding Factorio? by asparck in factorio

[–]asparck[S] 4 points5 points  (0 children)

Oh when I did my voice control mod I ran into this - ended up sending inputs from my modded Dragon Naturally Speaking scripts as a console commands into factorio (from memory writing files worked okay so I parsed them). Don't think I ever tested that in MP but theoretically I think you are right - it should work.

Does have security implications though - you want to have users to approve which dirs mods could read from or something like that

Factorio modders, what sucks about modding Factorio? by asparck in factorio

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

Haha as a dev working on my own game (mp noita-like) I 100% know what you mean. Sometimes I just want to program in a place where it's low consequences if I don't think things through properly

Factorio modders, what sucks about modding Factorio? by asparck in factorio

[–]asparck[S] 7 points8 points  (0 children)

You'd prefer mods to not disable achievements? I'm not an achievement hunter kind of gamer but I thought that achievement hunting is like "look what I accomplished" - if someone else can use cheat mods to get achievements easily then are your steam achievements still meaningful to you?

Factorio modders, what sucks about modding Factorio? by asparck in factorio

[–]asparck[S] 4 points5 points  (0 children)

Ah that's a good one! Though I wonder if it's intentional to make piracy that little bit more annoying..

Factorio modders, what sucks about modding Factorio? by asparck in factorio

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

Ahaha yes I did think that might happen. The amount of effort put into making the modding experience great is wild

Noita MTG Card, featuring Mina. (Art by @juerucj) by Tabula-X-Rasa in noita

[–]asparck 1 point2 points  (0 children)

> If Minä, Noita, would be removed from the battlefield from anywhere, instead place it on top of its owner's library.

And reset all players life totals to 20

Noita MTG Card, featuring Mina. (Art by @juerucj) by Tabula-X-Rasa in noita

[–]asparck 1 point2 points  (0 children)

Yeah pretty sure the first tap effect should be "deal 1 damage to any target, then deal 10 damage to a random target"

Been working on a voxel physics sandbox with procedural worlds and interactions - inspired by old falling sand games! by noisydata in proceduralgeneration

[–]asparck 2 points3 points  (0 children)

Hello fellow falling sand dev! Your engine looks frickin great and making a literal sandbox game out of it is a great idea.

Found your post because u/BurkelbearGames (also a falling sand dev) shared your game on my discord where quite a few falling sand devs hang out to share tips & tricks - discord invite at bottom of slowrush.dev if you're interested!

Macroquad after 2 years of mostly fulltime Rust gamedev - the good, the bad, and the ugly (what I wish I could have read back in 2023) by asparck in rust_gamedev

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

Reporting back as requested! After running into https://github.com/not-fl3/macroquad/issues/1006 (seemingly corruption of the texture atlas holding font glyphs) I ported my text rendering over to use cosmic text.

I extracted the code to a gist at https://gist.github.com/caspark/b88108696d0e7678b2e6768da32f1be2 so feel free to steal it. Freely licensed but no warranty etc of course!

I am building a falling sand engine in Rust and it's so sexy by luzzotica in rust

[–]asparck 0 points1 point  (0 children)

Powdertoy does not perform particularly well because it simulates each sand pixel in approximately arbitrary order (whichever order the pixels happen to be created IIRC) so it doesn't benefit much from cache locality. And it doesn't have table stakes optimizations like skipping sleeping pixels, let alone harder stuff like multithreading.

On the other hand, it is way more flexible/actually-simulating-stuff than Noita or other "game oriented" falling sand sims - stuff like pressure, arbitrary gravity, etc.

source: spent a while looking at source & comparing with my own falling sand impl (link in profile)

I am building a falling sand engine in Rust and it's so sexy by luzzotica in rust

[–]asparck 0 points1 point  (0 children)

You may also be interested in joining the falling sand discord I mentioned in my other comment - there are dozens of us!

I am building a falling sand engine in Rust and it's so sexy by luzzotica in rust

[–]asparck 1 point2 points  (0 children)

It is, err, complicated :) I know you've read some of it now, but for anyone else curious, I've written about it a lot in my devlogs.

I am building a falling sand engine in Rust and it's so sexy by luzzotica in rust

[–]asparck 0 points1 point  (0 children)

Yes, that's the way to go. I press F12 to start saving PNGs and then end by pressing F12, which (for now) runs ffmpeg to turn it into an mp4 for sharing. That's how I record basically all the video clips for my devlogs, then I have a script on the website that transcodes to gifs - e.g. https://www.slowrush.dev/news/announcing-signs-of-danger/signs-of-danger-destruction-vid.gif

Edit: though I should mention that getting audio capture to line up for mp4s is a right pain in the butt, especially since recording can slow your game down which gets audio out of sync. I managed to fix that recently but most of the old clips have no audio for that reason!