LunaLua icon indicating copy to clipboard operation
LunaLua copied to clipboard

Add PGE File Library support from Kevsoft's "experimental-reader" branch

Open Wohlstand opened this issue 6 years ago • 5 comments

Some times ago Kevsoft have made an experiment to use PGE File Library instead of built-in LVL file parser. It possibly works fine in a pure engine runtime, but it works very clunky when it's running from the SMBX Editor.

  • Branch where Kevsoft made his experiment: https://github.com/WohlSoft/LunaLua/tree/experimental-reader
  • ~Current mainstream branch: https://github.com/WohlSoft/LunaLua/tree/experimental-npcid-extension~ [Branch has been removed!]
  • Current working branch: https://github.com/WohlSoft/LunaLua/tree/experimental-reader-updated

It's need to take most of Kevsoft's changes and polish the whole stuff to make it be working.

Wohlstand avatar May 08 '18 00:05 Wohlstand

  1. experimental-npcid-extension (now changed to a tag) has been merged to master so that master will be the current mainstream branch.

  2. experimental-reader-updated has been created, from the combination of latest latest master and experimental-reader. This resolves all merge conflicts and the merged result builds successfully. It still has a very old PGE File Library though.

Bluenaxela avatar May 08 '18 06:05 Bluenaxela

  1. Okay
  2. Yeah, therefore is needed to put the PGE File Library as submodule or ExternalProject of CMake build. I'll check out the whole stuff at evening, for this moment it's morning and 9:46 AM.

Wohlstand avatar May 08 '18 06:05 Wohlstand

Agreed. I just did a merge as a first step, which makes it easier to look at the changes experimental-reader had made in the context of the up-to-date code. Good to to have a proper merge that builds correctly without extra done beyond what was strictly necessary to build. Changing the PGE File Library to a submodule or something can be the next step.

Bluenaxela avatar May 08 '18 06:05 Bluenaxela

The support for level files is almost completed, the one thing is still need is:

  • -[x] On side of PGE Editor fix a crash of LunaTester that unreasonable happens after level testing launch
  • -[x] Implement Lua binding for PGE-FL to dump files as lua-table trees
  • -[ ] Implement NPC-*.txt replacement to use PGE-FL
  • -[ ] Implement World Maps replacement to use PGE-FL

Wohlstand avatar May 14 '18 13:05 Wohlstand

Basic PGE File Library has been added!

Wohlstand avatar Sep 11 '18 22:09 Wohlstand