31 Commits

Author SHA1 Message Date
Aaron Suen
79324d4aa0 Replace exportdb with configdb
- Open up room for potential for more config
  options (which properties to export, additional
  indirectly-depended media, etc).
- Restructure API to use items as well.  For now,
  I am assuming there are no legacy applications
  that need to be supported so the old methods
  are immediately removed; may be re-added
  if compat turns out to be needed.
2022-11-27 09:36:52 -05:00
Aaron Suen
b179ef0b9c TODO items 2022-11-26 23:41:08 -05:00
Aaron Suen
79b1032bf0 Explain rationale a bit more. 2022-11-26 23:37:52 -05:00
Aaron Suen
5049c985d5 Fix some export weirdness
Make sure we're looking at the real table
values, deep copying to isolate things, to
try to prevent weirdness with "floating"
node tile values and such.
2022-11-26 11:24:52 -05:00
Aaron Suen
eb6347be3a Post effect color 2022-11-26 10:47:40 -05:00
Aaron Suen
e0d1665fc6 Fix liquid move attr synthesis 2022-11-26 10:42:58 -05:00
Aaron Suen
dc301b7f76 Support a couple more apparently-legacy attribs 2022-11-26 10:34:19 -05:00
Aaron Suen
074f56ae63 Include specific media sources in dump
This helps with identifying the source of each
individual media file for licensing purposes.
2022-11-26 10:16:13 -05:00
Aaron Suen
7ae0a317df Include special tiles required by liquids
Originally I designed the ripper for use
with Klots, and I didn't want flowing
liquids because my map editor wasn't
going to support liquid flow ... but this
makes it easier to use MTG for editing
schematics and then loading them
into a custom game with aliases out
the wazoo.
2022-11-25 03:29:03 -05:00
Aaron Suen
52a6549903 Unblock flowing liquids 2022-11-25 03:08:12 -05:00
Aaron Suen
57baa82a8c Don't block air/ignores from exportdb
This causes tons of false positive dirty
checks
2022-11-25 02:56:48 -05:00
Aaron Suen
81be45d37c Need to export selection/collision boxes too
Can't actually assume that node_box covers it, as doors
mod apparently has weird hidden "helper" nodes.
2022-11-25 01:09:27 -05:00
Aaron Suen
14acabe4cc Migrate from mod storage to JSON file
This makes it easier, to save the export state
into a repository and restore it back to a
world later, since mod storage is now by
default in sqlite and opaque to most users.
2022-11-24 21:27:25 -05:00
Aaron Suen
690248aa06 Abstract inventory handling, add docs 2022-11-24 10:32:51 -05:00
Aaron Suen
262340c945 Add more "rip nodes in radius" functionality
Refactor out the single "rip radius now"
command, and add one that works
constantly while the player is walking, so
e.g. a player can explore an existing map
or load schematics and rip their nodes
automatically.
2022-11-24 10:18:19 -05:00
Aaron Suen
589372a1c3 Include place_param2 as well
This is used for e.g. some plantlike
nodes to get the right mesh type
2022-11-24 10:17:21 -05:00
Aaron Suen
466bccaeaa Wrap long strings for luacheck 2022-11-23 17:27:26 -05:00
Aaron Suen
c5962ae235 Fix some texturemod parsing issues 2022-11-23 17:13:21 -05:00
Aaron Suen
f2de86d652 A bit of readme cleanup 2022-11-23 15:41:18 -05:00
Aaron Suen
5e7131b185 Screenshot to meet CDB's size reqs 2022-11-23 15:08:45 -05:00
Aaron Suen
01ffb9c949 Temporary code screenshots 2022-11-23 14:54:33 -05:00
Aaron Suen
22940bfc45 Try to fix markdown formatting 2022-11-23 14:39:58 -05:00
Aaron Suen
949f499a6f Tooling for CDB CI 2022-11-23 14:31:36 -05:00
Aaron Suen
a3a6b84bab MIT License 2022-11-23 14:23:26 -05:00
Aaron Suen
cb4b082f59 Add a public API 2022-11-23 13:47:39 -05:00
Aaron Suen
e8a021ba66 A bit more about the media warning. 2022-11-23 13:29:50 -05:00
Aaron Suen
f38434798f Make licensing warning bigger 2022-11-23 12:28:49 -05:00
Aaron Suen
3ec66ca9e0 Add ripping by name pattern match 2022-11-23 12:27:16 -05:00
Aaron Suen
e4cbbd9065 Clean up unused media, add autogen banner 2022-11-23 12:18:45 -05:00
Aaron Suen
8a137ec91f Add a command to rip nearby in radius
This is useful for "things used by a scematic"
sorts of scenarios.

Always block air/ignore just in case they end up
in the export list somehow.
2022-11-23 12:04:58 -05:00
Aaron Suen
241e79647f Initial working version
A somewhat more optimized and cleaned up version of what I used
to rip the node appearances for Klots.

Added:
- Custom dumper with more compact format support
- Detecting reused tables and extracting into local vars
- Actually handling the media files instead of handing a list to
  the user to go find via shell script
- Documentation, more chatcommands
2022-11-23 11:43:55 -05:00