Really? You did it in about a day? OMG, gosu programmer. Really well done, I want so see it getting improved badly!
Move it up one line, just beneath āenable_64_bitā, then add a comma:
āenable_64_bitā: true,
āenable_debug_keysā: true
I tried that, still didnāt work, Iāll try it again
I reused most of the hydrology and channel_lib code as those are the meat of the water system that Team Radiant had already been working on but I fixed a bunch of things and added plenty more. And Iām not done adding things yet. Iāve got more up my sleeve that just wasnāt ready for release yet
There is a way to dig up single blocks but itās part of some unfinished features in the 2283 build. You have to turn on "show_in_progress_ui" : true
in your users_settings.json. Thereās a new harvesting button to mine out single blocks and itās fantastic.
Paste your user_settings.json file into this site and make sure it validates as proper JSON: http://jsonlint.com/ Iām betting that you have some typo somewhere and if so this site can point it out.
While this all cool and exciting, @chessmaster42 didnāt invent water, nor did he write most of this. Itās cool to see it in game for sure, but the main credit still goes to Radiant.
Over a month ago, when they first pushed the 64bit client, they also added the first draft of water: the water and waterfall component and the hydrology service. They were cute and tiny and certainly interesting.
Since then, those components were changed with almost every release (2176, 2193, 2283). Each release saw a change of several dozen code lines (additions or modifications). Watching them āgrowā was quite interesting.
Compared to the current build of 2283, the things this mod does that Radiantās water does not is
- allows water coloration (which I do like as an idea, the question of how to do that in a normal game is a bit wonky though)
- Adds
WaterComponent:get_volume()
that seems to be solely used to determine the color of waterfalls - Removes the need for
enable_water
in the settings to have water going - Added sinkholes and springs using the existing API
- Added a few entities and commands
- Changes a bunch of logging calls to another level
So in the end, this mod is little more than exposing what Radiant was currently working on all along. Radiant is responsible for this pretty cool water implementation so far and @chessmaster42 has brought it to us in a colored form.
I havenāt looked at this as close as you, but Iām guessing a lot of the core flow mechanics are done in C++ and then exposed through the hydrology serviceā¦that sound about right?
The only real external call is csg_lib.get_non_diagonal_xz_inflated_region
. Everything else is run entirely in the LUA code.
As was stated in my main post I never invented the hydrology service, thatās all Team Radiant. This mod takes that unfinished core of the water system and making it useable and adds in a few extra things here and there. But keep in mind that the flow mechanics, while amazing, are just a small part of a potentially much bigger and more complex set of systems. Thereās plenty more on its way for this mod
ahhh ok this explain the duplicated mining ui that i have found while translating xDDD and the showing task ui when you hit number 7 on the keyboard xD
No, no, try putting it between user_id and collect_analytics, for example, and put a comma after it.
I have it after collect analytics.
@chessmaster42. You, sir, spoiled the best. But I wonāt unleash my wrath on you because - look at all these excited people. You made the dream of many become true. I congratulate you, and definitely going to test this and update my fountain model (well, if it can run on my low-end laptop - still have to download the latest release).
Water, at last!
i got it to work
Let me marry your brain, please.
So heres a quest, how do you know the grid numbers?
which numbers do you mean?
I would like to know what extra things you are adding though - Iāve diffed your mod against Stonehearthās current branch and it had literally just the changes Iāve listed above. If it wasnāt for the colored water, there would be no need to override the components or the service.
Iāve really got to download this.
I originally voted for bug fixing in the polls but damn I want water even more now.
like say for example you want to place call watermod:create_water_body 1 2 3 20 255 100 100, all the numbers meaning (im guessing is Syntax: X Y Z Volume R G B)
okay now on my map how do place the water?
with this
call watermod:create_water_body 1 2 3 20 255 100 100
open up the console (with the ~ key) and write it there, then press enter.
In my keyboard the console is opened/closed with this key -> Ʊ
I find it funny.
call watermod:create_water_body 1 2 3 20 255 100 100 im putting that in but getting no water lol
regardless of what portion is Radiantās and what is @chessmaster42ās, one of the main things we should take away from this mod is that SH, at its core, is a moddable gameā¦ virtually every aspect can be exposed to and manipulated by the communityā¦
if nothing else, @chessmaster42 exposed us to the beginnings of the water system and for that, we thank you!
I havenāt tested, so I canāt help any more.
Try testing first with the example in the OP, thereās a download of a save where you can call these steps:
-
call watermod:create_sinkhole 870 46 295 32
-
call watermod:create_spring 870 62 342 2 28 191 255
-
call watermod:create_spring 877 62 323 1 120 255 0
Other than that, I donāt know.