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

Resonite VR Headless server #890

Open
5 tasks done
kodxana opened this issue Jul 20, 2024 · 26 comments
Open
5 tasks done

Resonite VR Headless server #890

kodxana opened this issue Jul 20, 2024 · 26 comments

Comments

@kodxana
Copy link

kodxana commented Jul 20, 2024

Module Request

Game Information:

Game Title: Resonite
How to obtain: https://store.steampowered.com/app/2519830/Resonite/ - Headless requires user provide beta code to download.
Suppoted OSs: Windows, Linux (Headless)
Supports RCON/Console input? yes

Documentation is on wiki: https://protoflux.wiki/#/headless/headlessClient

I confirm:

  • that I have searched for an existing module request for this application.
  • that the server is an official server distributed by the games publishers/developers.
  • that the server is available to the general public.
  • that the server can be run headless (without a GUI).
  • I have already attempted to create a configuration myself using the configuration tool
@Michael-A-Sloan
Copy link

Bump

@Greelan
Copy link
Collaborator

Greelan commented Aug 17, 2024

I suspect there's little interest in buying the game and becoming a Patreon supporter just to create a template

@Michael-A-Sloan
Copy link

Thats probably true sadly. I am going to try to see what I can do and see if i can make a custom one.

@Greelan
Copy link
Collaborator

Greelan commented Aug 17, 2024

I could probably have a stab at it but won't be able to test

@Michael-A-Sloan
Copy link

I could probably have a stab at it but won't be able to test

If you would like to try to I could donate the amount for the 10$ tier so you can get access to the headless beta code for steam.

@Greelan
Copy link
Collaborator

Greelan commented Aug 17, 2024

Maybe before you spend more money I can set something up for you to try yourself, to see if at least works in AMP

@Michael-A-Sloan
Copy link

Maybe before you spend more money I can set something up for you to try yourself, to see if at least works in AMP

I have been a patreon for them since the beginning since I do like their work. I am happy to donate to you if you would like as well since your helping and such with this. I will test though and thanks.

@Greelan
Copy link
Collaborator

Greelan commented Aug 17, 2024

Sure, if you like. You can find me on Ko-Fi

@Greelan
Copy link
Collaborator

Greelan commented Aug 17, 2024

Thanks for the donation. I subscribed to the Resonite Patreon but it seems I can only get the headless code in-game? What a crazy system. I don't have a suitable windows machine for me to run the game

@Greelan
Copy link
Collaborator

Greelan commented Aug 17, 2024

I've got a template in Greelan/AMPTemplates:dev. Haven't installed or tested it coz I don't have the headless code. Feel free to give it a run and report back

@kodxana
Copy link
Author

kodxana commented Aug 17, 2024

I've got a template in Greelan/AMPTemplates:dev. Haven't installed or tested it coz I don't have the headless code. Feel free to give it a run and report back

Amazing will let you know how it goes

@Michael-A-Sloan
Copy link

I will check later on today work had an issue they needed fixed.

@Michael-A-Sloan
Copy link

Michael-A-Sloan commented Aug 17, 2024

I've got a template in Greelan/AMPTemplates:dev. Haven't installed or tested it coz I don't have the headless code. Feel free to give it a run and report back

Did I set this up correctly because I cant get any dev stuff to show up in the list?
image

image

I just kept retrying and it fixed itself. I will set the instance now.

@Michael-A-Sloan
Copy link

I have started testing and it works locally I am able to login and connect locally. I haven't tried getting a friend to join up yet.

@Michael-A-Sloan
Copy link

Seems to run very good with AMP :P Thank you so much for doing this I will need to learn more about how to do the templets that very cool.

@Michael-A-Sloan
Copy link

Found that the world and data dosen't seem to be saving properly when I restarted it.

@Greelan
Copy link
Collaborator

Greelan commented Aug 18, 2024

Seems shutdown does not do a save before quitting. Doesn't seem to be any command that "saves and exits".

Small chance that save\nshutdown will work. Can you try that in the console and see what happens?

Otherwise I will have to switch back to a system call to stop the server and hope the server saves when that occurs. Failing that you will just have to issue a save command before restarting

@Michael-A-Sloan
Copy link

Michael-A-Sloan commented Aug 20, 2024

Would there be an easy way to put these config Keys for the world into the files your created? If so I could try to work on it as a PR or whatnot if you can tell me what file to put it into. I truly never tried to do this type of thing before. I am more of a C++ coder. There is a save on exit config key as well in this list.

image

@Greelan
Copy link
Collaborator

Greelan commented Aug 20, 2024

The Basics are already there. AMP can't write to json arrays like the Worlds config

@Michael-A-Sloan
Copy link

Ok good to know so I could edit them manually though under headless and config?

@Greelan
Copy link
Collaborator

Greelan commented Aug 20, 2024

Correct

Any luck with trying the console command I mentioned?

@Michael-A-Sloan
Copy link

So save dosn't actually save the world at all sadly. and the other command can easily be replaced by changing the config option for saveonexit I think. however that command save\nshutdown is an unknown command for the server.

@Michael-A-Sloan
Copy link

I am going to try a few things in the SaveAsOwner part of the config to see if i can save it as local then put it to null to see if it actually saves.

@Michael-A-Sloan
Copy link

I have it saving and such now. In order to make it save properly its good to save it as cloud or local ones with the config SaveAsOwner, then change it back to null, then it grabs the loadworldurl and it will change the config by itself.

When you stop it afterwards you can change the config to save it when stopping it works well with amp on that matter. When you have stopped it and want to use the saved world you only need to null out the loadworldpreset to null since the loadworldurl will automatically be added when you have saved successfully the first time.

There is a bunch of intervention you have to do manually to set up the system but it works amazingly once done thank you so much again for the help with this templet.

I do have a question if I wanted to add mods like this url: https://protoflux.wiki/#/modding/resoniteModLoader/README If I need to change the launch options for the instance in amp would I just go to additional command line parameters?

@Greelan
Copy link
Collaborator

Greelan commented Aug 20, 2024

Yes to the last question.

Tbh, I didn't really follow the rest of what you said

@Michael-A-Sloan
Copy link

ok thank you for clearing that up.

I was just explaining how you have to modify the config file to actually get it to save if your running a resonite server it wasnt well documented on the resonite wiki either.

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

No branches or pull requests

3 participants