brandon-ray / foxhole-facility-planner

Create blueprints for a bunker, facility, and more using this fan-made tool for the video game Foxhole. Formerly known as Foxhole Facility Planner, this tool now features facilities, bunkers, trenches, and more!
https://foxholeplanner.com
MIT License
37 stars 12 forks source link

Add the ability to share a plan #32

Open Greg-Boggs opened 1 year ago

Greg-Boggs commented 1 year ago

The URL should be able to store all the info needed to generate a plan... hopefully. Similar to this:

https://github.com/jstrieb/urlpages

This way, I could share my plan with my regiment without having to teach them to upload the json file to the planner.

Romboter commented 1 year ago

Interesting concept, the url length can become excessive if it was done as urlpages does it, but if on the other hand it was done the way another project linked on urlpages readme does, itty.bitty the json data could be compressed and put into a sharable url that when visited just opens the plan.

itty.bitty compressed the 8089 ch's of the new buildings json to 1846, pretty impressive.

Very interesting.

Romboter commented 1 year ago

Continuing on this topic here is another very interesting project, JSON-url, as I know this project prefers sticking with JS as much as possible. Its a little more straight forward for usage, it was able to compress the same json file referenced above to 1716 using LZMA, so slightly more compression than itty.bitty using the same algo lol

jimdcunningham commented 1 year ago

Perfect, I'm pleased you found that! It looks great. 👀