Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose headers required for custom nwsync usage #1581

Closed
11 tasks
jhett12321 opened this issue Feb 10, 2023 · 0 comments · Fixed by #1667
Closed
11 tasks

Expose headers required for custom nwsync usage #1581

jhett12321 opened this issue Feb 10, 2023 · 0 comments · Fixed by #1667

Comments

@jhett12321
Copy link
Contributor

jhett12321 commented Feb 10, 2023

Regarding this feature that was added to the base game a while back:

- Dedicated servers can now load their module data from a specially prepared NWSync repository, instead of having to have a copy of the module and hak files. (This mainly benefits big servers that have a CI/CD pipeline set up.)
- Added argument -moduleurl, from which the module data will be sourced
- Added a new optional argument -modulehash; which is considered to be `latest` if omitted
- Generate the server/module repository with --with-module
- You can reuse the public repository to save on duplication/disk space; or use a separate/private one. If you reuse the same repository and do not want to leak the module data, turn off http content listing and write the data with --no-latest.
- Data is stored in SERVERHOME/nwsync (this works the same as on the client). It will auto-prune old data if the group_id matches. The rest is left up to you.

I want to make an NWNX tweak that allows to run this in a mixed mode. So you would load a .mod file, but additional content would be loaded from a standard nwsync repo (without --with-module) instead of hak files. Or a mix of both hak files, and the nwsync repo.

This is not possible right now as the following structures and methods do not exist in NWNXLib, or are incomplete. Could these please be exposed?

  • NWSync::CNWCSync
  • Hash::SHA1
  • NWSync::CNWCSync::Progress
  • InstanceLookup::List
  • CNWSync
  • HttpBufferRef
  • HttpUrl
  • SimplyCopyingHttpBufferReceiver
  • HttpConnection
  • HttpAuthorizer
  • CExoResMan::GetNWSync
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant