GICodeWarrior / fir

Foxhole Inventory Report
MIT License
18 stars 8 forks source link

How to update from Inferno to Naval 56? #13

Open St3rne opened 2 months ago

St3rne commented 2 months ago

Hello,

First of all great work for the script, it's very usefull. We are currently using the inferno version of the script with the help of this template https://docs.google.com/spreadsheets/d/14ldb5FTKHEFWi8qWmTLl-bYeoU6xkGMVg_OpkrZCCCU/copy provided by pogobanane. I'm not very familiar with scripts and things like that, but I was trying to find a way to update the existing update to include the recognition of havoc charges, hull parts and stuff but couldnt find any. do you know how that could be done properly?

GICodeWarrior commented 2 months ago

Good question.

I believe these are the general / high-level steps:

  1. Run sundial/build-gs.sh to generate new Apps Script files
  2. Load those files into the sheet Apps Script (replacing existing files)
  3. Modify CATALOG_URL in the fig.gs Apps Script to the latest catalog URL
  4. Make sure the fig (fir.gicode.com) (sic) tab has reloaded with the correct catalog data
  5. Copy the fig (fir.gicode.com) tab contents and paste values into the fig tab
  6. Go in Data > Named functions and edit FIG_GET_ICON to use the path for the latest icons

If you get this working, please post back with any additional steps/notes you've identified (for the benefit of others).

Separately, I can offer a different template (the one the above is based on) which uses the website (https://fir.gicode.net/) for recognition and includes the latest catalog/icons already. Please reach out via Discord if you want that one.

Cogsee13 commented 1 month ago

Hello! Somehow I was able to make the changes for Update 56, although I don't think I did it fully correctly as I kept having a bug with the Cnute heavy truck showing as a Collie truck. As I'm attempting to make the changes for Update 57 I'm realizing the issue was I never updated the OCR functions of our spreadsheet to match the new process.

At this point I have all of the steps above completed except 1 and 2, however I don't know where or how to "run" the build-gs.sh file. I've tried building the fir-sidebar.html from scratch embedding the different sections of code one by one, but then I run into the .bin files and am stopped in my tracks.

Any guidance you could provide would be awesome! And I fully apologize if some of this should be basic understanding as I'm a bit out of my depth here!

Thanks,

GICodeWarrior commented 1 month ago

I recommend using Windows Subsystem for Linux (WSL).

build-gs.sh is a shell script that you can run inside WSL.

Searching for guides discussing WSL or running shell scripts might help.