39 Commits

Author SHA1 Message Date
Aaron Suen
5a0220f2ee Return hints to shuffle instead of sort
- The sorting actually only worked in English, and
  not in any translated languages.
- The ordering would bias players towards focusing
  on alphabetically-first hints, which are not
  necessarily the best to try.  Shuffling instead
  should suggest alternative options each time the
  tab is brought up.
- The ordering-bias effect is probably worse for
  non-English where it's less obvious that there's
  a mundane and non-meaningful reason why they
  are in a particular order.

In theory we're losing the ability to quickly check
for a hint with known text is in one of the lists on
the tab for English speakers but this is not really
a core intended use-case for hints.
2021-06-23 00:49:37 -04:00
Aaron Suen
a722bd8a9f Add an emergeny escape feature
Described in player guide "movement" tab.
It's analogous to the old "/stuck" command that
was removed once long ago, but much more
tedious to execute, so players still have an
incentive to extricate themselves manually.
2021-06-20 10:23:41 -04:00
Aaron Suen
5344012ce9 Expand player guide
- Break into more sections
- Add more content
- Enlarge layout
2021-06-20 10:13:10 -04:00
Aaron Suen
5ac25775a9 Officialize the matrix room 2021-06-01 06:18:42 -04:00
Aaron Suen
883eaf6859 Officially move IRC to Libera.chat 2021-05-26 19:20:19 -04:00
Aaron Suen
c88f439b87 Full scrolling hint list
Since we switched to a textarea and have proper
word wrap and scrollbars, we might as well use the
space and let players see ALL their hints.
2021-04-02 22:35:45 -04:00
Aaron Suen
4e3e502fed Emergency digging tip no longer needed 2021-03-24 09:41:20 -04:00
Aaron Suen
668ea4cb4e Fix copyright dates 2021-03-11 07:36:11 -05:00
Aaron Suen
eb933c5d4f ContentDB versioning fixed for now 2021-03-02 20:01:52 -05:00
Aaron Suen
c10e80ef87 Set name in mod.conf as demanded by 5.5+ 2021-03-01 20:10:27 -05:00
Aaron Suen
b73e70d351 Fix some translate inform warnings. 2020-09-27 09:30:57 -04:00
Aaron Suen
8324abfab9 "Dev Version" = "Dev/CDB Version"
ContentDB's .gitattributes export-subst support
has been broken for a while now, and apparently
won't be fixed (it's depending on an upstream
that is similarly ignoring the issue).

We need to account for the fact that what looks
like a dev version might actually be a CDB
version that's simply not tagged right.
2020-09-05 08:44:09 -04:00
Aaron Suen
edea123a1e Start on new unified Hint API
- Move hint handling down to API layer
- Simplify stat data; old nc_stats counting can
  be moved out to a separate mod.  We only
  need whether the player has seen or not.
- Invert inventory tab responsibility.
- Merge witness system in from crafting.

TODO:
- Redistribute hint registration responsibility
  to individual mods.
- Test external mod compat.
- Retire old nc_stats and nc_guide systems.
- Add a way to reset hints.
2020-09-04 16:28:27 -04:00
Aaron Suen
de4748591c Reorg docs, close a couple minor issues. 2020-06-25 07:07:51 -04:00
Aaron Suen
e0156b4742 Add profiler instrumentation metadata everywhere
N.B. the MT built-in profiler doesn't yet actually support reading
labels from bare-function registrations, so a builtin hack is
needed.
2020-06-15 07:21:39 -04:00
Aaron Suen
8935df061d Refactor player guide 2020-06-10 08:04:59 -04:00
Aaron Suen
f203f4a01d Replace discord invite link.
New link points to the #rules channel for new users.
2020-03-27 18:37:16 -04:00
Aaron Suen
d4a2c74425 Add message about misleading debug info. 2020-03-27 07:07:27 -04:00
Aaron Suen
04250fbf19 Some guide improvements.
- Fix scaling tip so mobile users can figure it out.
- 3x3 recipe and symmetry hints.
2020-03-15 07:54:24 -04:00
Aaron Suen
76c0a813e5 Switch player guide to use read-only texteareas.
According to the lua_api.txt doc blame, these were improved
around the time of the 5.0 release.  Since we've dropped 0.4
support long ago, we can use these now.

The appearance is roughly unchanged on "normal" large screens,
but on small screens where text used to clip, it should now
wrap (usually, except for long URLs) and have scrollbars if
necessary.
2020-01-23 06:48:03 -05:00
Aaron Suen
4d47ab2e75 NC API dependency simplification.
Treat all API mods as a "layer", and use the new
nc_api_all registration to indicate that a mod depends
on the NC API (which ALL NC mods assume they do).
This means that each non-API mod does not need to
worry about which API mods it really needs and which
it does not, nor will they need to be updated for any
internal API restructures.

This is a game, not a modpack, so all mods will be
loaded anyway, and we only care about order.  That
means that we don't really need to worry about
having excess dependencies because any mod we
don't actually need will be needed by something that's
loaded anyway.  If somebody wants to reuse a
component elsewhere, they're likely to need to do
some work to untangle it anyway, because of the
amount that NodeCore mechanics interact and
interdepend.
2020-01-05 12:59:12 -05:00
Aaron Suen
dcfc80b367 Remove explicit names in mod.confs. 2020-01-05 12:38:45 -05:00
Aaron Suen
93c59357fc Update copyright year.
We already had one revision this year that
wasn't recorded correctly...
2020-01-02 21:05:06 -05:00
Aaron Suen
f5bf7a5aa9 Add IRC to official in-game about screen. 2019-12-30 13:34:36 -05:00
Aaron Suen
2abf96f457 Update player's guide scaling tip. 2019-11-14 08:05:20 -05:00
Aaron Suen
c147da4dde Convert from depends.txt to mod.conf 2019-10-05 11:24:16 -04:00
Aaron Suen
3e5a3b5f8c Remove the now-incorrect "torches are not a thing" tip.
We may need to provide some more information about torches later,
but for now, we simply won't disclaim their existence.
2019-10-01 19:27:43 -04:00
Aaron Suen
310ce1bc6c Treat NodeCore as a unified thing.
- Collapse all nodecore "core" mods in the /mods listing, so it's
  easier to find the actual add-on mods.
- Parameterize in-game branding to make renaming derivatives just
  a little easier.
2019-09-07 09:08:57 -04:00
Aaron Suen
442a6f89ef Cosmetic text change.
Feels like this chapter name should be longer to be
consistent with the other ones.
2019-08-31 10:04:15 -04:00
Aaron Suen
39dea8a2ae MAJOR: Code quality audit using luacheck.
- Removed lots of unused variables, a few shadowed identifiers.
- Removed a few sections of dead code.
2019-08-31 09:26:53 -04:00
Aaron Suen
c5cb298bd1 Documentation overhaul.
- Move design principles back into docs (needs cleanup).
- New player-oriented README content.
- Clean up issue/wishlist docs a bit (some things are no longer
  relevant).
2019-08-29 06:19:39 -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
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
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
7c19e0aa07 Remove the old sneak-dig hack.
It was superseded effectively by the new inventory management
system.  To split stacks, count out the items to transfer onto the
ground using sneak-drop, select the destination slot and pick them
back up.
2019-03-24 18:34:17 -04:00
Aaron Suen
268434950c Rename player mod that's no longer at all about inventory. 2019-03-24 18:24:08 -04:00