621 Commits

Author SHA1 Message Date
Aaron Suen
458043fa18 Make ezschematic from tree growth into a full-fledged API.
I may use this for other companion content.
2019-08-27 21:41:03 -04:00
Aaron Suen
fe2c153f9e Clean up all lua code style.
Formatting rules based on Paul Kulchenko's perl-based formatter...
http://notebook.kulchenko.com/programming/lua-beautifier-in-55-lines-of-perl
...using a single tab for indent.

Mostly pure whitespace changes.
2019-08-27 19:14:51 -04:00
Aaron Suen
be4c10efd5 Comb through docs one more time... 2019-08-27 07:35:47 -04:00
Aaron Suen
ac4a0be4b7 New experimental "tips" tab in guide.
Hopefully not too spoilery?

This should fulfill our need for a new player FAQ, and is based
on questions that I have actually been asked by new players.
2019-08-27 07:33:58 -04:00
Aaron Suen
da7eae09cd Disable the now-long-useless /kill command. 2019-08-27 07:33:38 -04:00
Aaron Suen
3495311aef Player can now climb overhangs with enough patience. 2019-08-27 07:32:44 -04:00
Aaron Suen
aa1c5d860f Fix some warnings.
- Missing "local" in translation code.
- Super-long-standing warning about duplicate aliases via oldnames.
2019-08-27 07:31:45 -04:00
Aaron Suen
35cac87a78 The /stuck command is now obsoleted (probably) by cliff scaling. 2019-08-26 23:17:47 -04:00
Aaron Suen
353462eddd Add ability to scale sheer walls.
Pummel on the face of a wall you can't dig with your bare hands
and eventually you will find handholds there, allowing you to
climb.

This will hopefully provide an immersive alternative to /stuck
for getting out of pits, which will also make players have to
carefully extricate themselves from their situations instead of
just using /stuck to bail and then running home to come back
with supplies.
2019-08-26 23:14:16 -04:00
Aaron Suen
d1ff1d400c More succinct translation to better fit screen. 2019-08-26 21:27:12 -04:00
Aaron Suen
9ac63cac09 Padding hack to prevent text cutoff. 2019-08-26 21:26:13 -04:00
Aaron Suen
5a07edbb5a Player Guide Translations
- Fix tab switching events for formspecs.
- Add padding to fix cutoff text rendering issue.
- Added more pt and pt_BR translations from Terifo.

Note that when you call translate() on a piece of
text, it merely adds translation tags around it to
request that it be translated client-side, but when
the client submits formspecs, the button values are
the actually translated text, which you can't
trivially access server-side.  That means that we
need to use different button fields, not just count on
different button name/values, for events.
2019-08-26 21:02:06 -04:00
Aaron Suen
8a0319e7d1 Fix new player guide translations... 2019-08-26 01:01:58 -04:00
Aaron Suen
c439a46792 Allow translations of player guide GUI too. 2019-08-26 00:45:09 -04:00
Aaron Suen
bc7b449b05 Translations to Portugese by Terifo. 2019-08-25 19:06:16 -04:00
Aaron Suen
12b580ade0 Fix touchtip translations to cover ALL text. 2019-08-25 18:53:22 -04:00
Aaron Suen
349e8a0a35 Fix wet agg drawtype to appear correct when next to water. 2019-08-24 06:55:25 -04:00
Aaron Suen
14b45a3b1b Cheaper, but more complex, doors.
Wooden doors now use a cheap wooden axle (though
you still need lode to chisel them).  All doors must now
be lubricated with graphite (coal) before driving in the
hinge pin.
2019-08-24 06:44:36 -04:00
Aaron Suen
560b068bd7 Fix crafting, standardize recipe callback params. 2019-08-24 06:31:27 -04:00
Aaron Suen
3656936b92 Docs cleanup. 2019-08-23 23:32:53 -04:00
Aaron Suen
dcb5c8b8a1 Water also prevents curing. 2019-08-23 23:20:05 -04:00
Aaron Suen
0c02eec17f Rework concrete curing to work a lot more like glass. 2019-08-23 23:16:59 -04:00
Aaron Suen
f4aa27299e New concrete mod provides access to smooth-stone.
Bash gravel down into ash to produce dry aggregate.

Dampen the aggregate to produce wet aggregate.  The ash chemically
reacts with gravel to produce a cement.

Let the wet aggregate dry and it will cure into smooth-stone.
It will tend to flow and wander if left uncontained though.
2019-08-23 22:45:08 -04:00
Aaron Suen
bba8edfc39 Lower sponge water TTL. 2019-08-23 21:42:48 -04:00
Aaron Suen
86ecd96cc9 One more tweak to sponge mechanic.
Water is now squeezed out, can be reabsorbed, BUT might disappear
before being reabsorbed anyway.  The original sponge can be
removed, though, and the water will just disappear on its own
after the timeout.
2019-08-23 21:39:54 -04:00
Aaron Suen
a2fa61b77f Alternative sponge mechanic.
When squeezing a wet sponge, it doesn't become dry, but must
remain wet and in place, and the water source it places lives only
a short time.
2019-08-23 21:36:11 -04:00
Aaron Suen
6141a6206e More sounds for sponge stuff. 2019-08-23 21:25:29 -04:00
Aaron Suen
10db2d6dbf Squeeze sponges to produce temporary splashes of water.
Pummel a sponge and it will release water if there is space
nearby, though it will be reabsorbed by the sponge in a few
seconds.

This CAN be used to wet other sponges (i.e. to have a managed
supply of water if working far from oceans) but CANNOT be used
to create infinite springs.

If the original sponge is removed (and there is no other sponge
to absorb the water) then the water will be removed as well.
2019-08-23 21:18:20 -04:00
Aaron Suen
4d245b850b Fix lualocals. 2019-08-23 21:18:14 -04:00
Aaron Suen
fe00eb65c0 Wet sponges contribute to tree growth too. 2019-08-23 20:51:19 -04:00
Aaron Suen
22a87c44c5 Update docs from personal notes. 2019-08-23 20:45:46 -04:00
Aaron Suen
28108e1e40 Add translation support, esp. for TouchTips.
Translations are currently by holistic strings, i.e.
no parameterization.  This may create some busy
work for translators, but gives them more freedom
to account for differences between languages.

A translation template file is written out to the world
path on game start, so translators have a seed to
work from.
2019-08-23 20:40:33 -04:00
Aaron Suen
37dbcb3474 Make planted eggcorns look like regular dirt.
You now need to use the particle visual cue to
differentiate them.
2019-08-23 20:38:31 -04:00
Aaron Suen
db1c67e169 Float and clear glass both grind down to crude similarly. 2019-08-19 22:33:25 -04:00
Aaron Suen
fd52006a7a Image optimizations. 2019-08-19 22:31:00 -04:00
Aaron Suen
1201630dbb Significantly simplified recipe registration. 2019-08-19 22:27:05 -04:00
Aaron Suen
20737f383b Merge branch 'dev' into floatglass 2019-08-16 08:41:28 -04:00
Aaron Suen
8c2181b250 Make node sounds on spinning too. 2019-08-14 21:46:55 -04:00
Aaron Suen
24a95f749b Another issue. 2019-08-14 18:41:46 -04:00
Aaron Suen
20ad80a750 Document stone door issue. 2019-08-14 18:40:11 -04:00
Aaron Suen
7a47f9d61c Add stone doors, tweak descriptions.
The alternate_loose/dig_in_place logic for cobble is interfering
with how stone doors work when dug, but it's still playable and
lossless, even though it's a bit tedious.  I'd like to understand
why it's happening this way and I can't seem to bypass it easily,
but it may be justifiable to leave it this way.
2019-08-14 18:36:22 -04:00
Aaron Suen
5651e94100 Slightly randomize sound pitch by default.
This will make stacked/repeated sounds play slightly differently
so you can hear from the interference patterns that there is more
going on underneath the surface.  It also adds volume to dispersed
ambient effects like fire.
2019-08-14 18:28:24 -04:00
Aaron Suen
7ae900edd4 Issue. 2019-08-14 00:51:42 -04:00
Aaron Suen
15941ba35c Add door operating sounds. 2019-08-14 00:47:18 -04:00
Aaron Suen
32ea24ec50 Image optimization. 2019-08-13 23:01:32 -04:00
Aaron Suen
e5343addd2 Double doors and gears. Update docs. 2019-08-13 22:53:20 -04:00
Aaron Suen
05ac51dafc Fixed description. 2019-08-13 22:09:12 -04:00
Aaron Suen
7431453ad7 Door rotation logic.
Shockingly it WORKS.

Does not yet interact reasonably with a lot of terrain (should
arguably push liquids, falling nodes, items, etc.) or entities
a(i.e. should arguably push players).
2019-08-13 22:02:02 -04:00
Aaron Suen
86cc55c12b Basic door node setup and recipes.
- Craft door panels by chiseling with a rod.
- Rotate door panels.
- Hammer in rod to act as hinge pin.
- Dig out hinge pin, dig up panel.
2019-08-13 21:06:13 -04:00
Aaron Suen
d2e4981a33 Merge branch 'dev' into hinges 2019-08-12 21:17:21 -04:00