Git Product home page Git Product logo

Comments (5)

bostrt avatar bostrt commented on June 30, 2024 1

There is this: https://github.com/DKingAlpha/palworld-uesave-rs but it doesn't seem to work for me.

I'll keep an eye on these and include them once they are functional with Palworld.

from palworld-exporter.

bostrt avatar bostrt commented on June 30, 2024 1

Example here shows how to parse Level.sav very quickly: https://github.com/zaigie/palworld-server-tool/blob/main/module/structurer.py

I have a local test running (on a laptop) in under a second that pulls a few player properties like name, level, health, etc.

from palworld-exporter.

sh-cho avatar sh-cho commented on June 30, 2024

I tried use palworld-save-tools but it takes nearly 30 seconds on my M1 max mac.. 🥲

$ time palworld-save-tools Level.sav
Converting Level.sav to JSON, saving to Level.sav.json
Decompressing sav file
Loading GVAS file
Writing JSON to Level.sav.json

palworld-save-tools Level.sav  31.39s user 0.64s system 99% cpu 32.249 total

Maybe some tools like uesave-rs would be faster? But I can't find any working palworld fork of that 🥲

$ uesave to-json -i Level.sav -o Level.json
Found non-standard magic: [92, f7, 33, 07] (��3) expected: GVAS, continuing to parse...
Error: at offset 6981079: io error: failed to fill whole buffer

from palworld-exporter.

bostrt avatar bostrt commented on June 30, 2024

I'm still planning on working in a feature branch to demo how the metrics might look once a good enough Level.sav parser comes around

from palworld-exporter.

bostrt avatar bostrt commented on June 30, 2024

Well, I was able to integrate the Level.sav parsing mentioned in my last comment but performance is still not great. I have a decent sized server with ~100 player saves and a 17MB Level.sav file. I am able to generate a metrics response in ~5s on a decent laptop but its consuming about 2g of memory each time (reading the Level.sav into memory).

The isn't create since metrics gather by Prometheus is 15s by default.

I'll keep looking at ways to optimize.

from palworld-exporter.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.