[Dev Blog] Stonehearth Alpha r34 now available on Steam

The game runs fine on my computer (quad core, awesome graphics card etc).In the first build I was getting stuttering due to path finding, its, thankfully, fixed now. (path finding seemed to pause the game very temporarily, this is because of the way they do path-finding (on the same thread), but they made pathfinding better, but it is still on the same thread)

But, i still sometimes get stuttering with lots of commands (though they are working on that, so)
yea.

That night theme. I dig it.

Solid update is solid.

Quadcore, Hexacore, Googolcore doesn’t matter if your application isn’t multithreaded. SH can’t make too much use of MT because lua can’t deal with it. They can (and do) separate the GUI (i.e. chromium), the server lua state and the client lua state but that’s about it.

The threading and synchronisation overhead can really easily kill any performance gain you get through multithreading. It’s not like you can just add a few more threads (and assume that people have CPUs that can run them, too) and suddenly you get twice as many FPS.

I realize its hard to do with lua.
I’m not worried about performance i get a solid 100 fps, path finding can pause the game because the computer is only working on that thread, which is why it should be multithreaded, also they do the pathing with c++ not lua… They only activate the pathing with lua.

Like I said however, It doesn’t happen anymore.
(only under extreme situations)

Dwarf fortress splits up its path-finding based on the amount of settlers you have, so you get no overhead from it (but it is also in c++)

It doesn’t matter. I can write you a program that uses 3 threads and performs worse than one using just one thread using the exact same algorithm.

More threads != more performance. It doesn’t matter that this is done in C++, which is capable of threading, and not in lua: You need to get the data back from the worker thread into the lua (i.e. main) thread. This requires synchronisation of some sort. This can (and will) slow down one or both threads and/or show increased memory usage.

Multithreading is not the holy grail, it’s not a synonym for optimisation and if used just because ā€œthere’s work to doā€ you often get worse results.

Unless each single path finding operation takes ages (I’m talking noticeable seconds here) and you’re doing an okay-amount of them all the time, threading is a waste of resources.

I stated, it only happens under extreme situations now.

I was just making a suggestion that MAY possibly perhaps work at some point.

They stated they are working on a new stuttering issue (most likely the cause of the ā€œextreme situationā€ stuttering) (which involves your settlers ā€œThinkingā€ too much so it will most likely be fixed.)

I also suggest that they find a way to (based on the amount of settlers you have) make pathing less precise slowly over time. (which is how dwarf fortress handles it) (and yes this is possible, so don’t give me spork about it, I have done this myself,)

edit:
I edit my stuff too much…lol

This sandwich tastes good but my legs feel burny…

1 Like

They could also , have an ā€œAI pipelineā€ where they split up multiple villagers pathfinding routines over a few frames, so 4 villagers aren’t path finding in the same frame, instead, it would take 2 or 4 frames.
It would be unnoticeable.

And it wouldn’t make a difference for large cities. because there are so many of them that you really don’t notice the slight delay…

(they may already do this however, i haven’t looked into it much)

@Avairian if you try out the example from the official blog, this is actually a basic mod and works. The mixinto is renaming and -sizing the tree and the override changes the model.

Will try to get something done with my own stuff next.

Update: Strange behaviour. I have re-installed Stonehearth and now it seems like I have the same issue. Can only place the camp standard and after that nothing happens if I have a ā€œcustom mod installedā€.

Update 2: Seems like it is mandatory to have the .smod-files in the folder, otherwise mods are breaking the game (game stops after placement of camp standard).

1 Like

Well… I haven’t launched the game in… looks at calender a few weeks! I better get playing with the update n’ the such.

Here a screenshot based on a blank installation including the ā€œFlagstoneā€-mod from the official blog.

1 Like

Copy and pasted the parts off the blog and then changed things around to mixin my quince_bush.json and overrode the model with the quince_bush.qb. Sees to be working now, must have had some sort of formatting error. Gonna try experimenting with it after work. :smile:

2 Likes

It just seems that Stonehearth is now handling the mods-folder different. I have troubles to get anything running if the .smod-file is missing. Also if I edit something inside the .smod-file this results into breaking the game once the camp standard is placed… which makes testing at the moment a bit cumbersome. As soon as I have a more clear picture what breaks when I will file in another bug report.

interesting… I wonder if this is somewhat ā€œby designā€, to enforce the adoption of the new mod API tools?

If it is, it is a horrible design decision. My personal workflow was to modify stuff in the official libraries first, then port it over to RP (for example, to find out whether function X was called and therefore had to be investigated, I put a print() inside it).

Not to mention that some functions can really need an inofficial patch - their assert for example was really useless in the older versions (ā€œassertion failed!ā€ without any context, err). If we can’t patch that anymore I don’t know what to do.

But hey, I’m awake now so I’ll start figuring out what is going on - I might even do this as a stream if there’s interest. Since the game does work partially, I don’t think it’s intention but rather something with resource loading going haywire. It’s time to add debug.traceline() and have some fun with it.

seems much more likely… best of luck with the investigation-ing! :mag_right:

Nicely done on the new release. Got in there and had a house up in moments. Granted, one of my workers decided to get stuck inside of it while it was under construction. BUT! As soon as the scaffolding was removed they returned dutifully to the task at hand. ^^

Bravo!

1 Like

this is precisely what happened to one of my workers… oddly enough, the only male among the group… perhaps this is @sdee’s doing?

2 Likes

This happened to one of my workers as-well.

Reminds of the the old Edgar Allen Poe story, ā€œThe Cask of Amontilladoā€.