AMPTemplates icon indicating copy to clipboard operation
AMPTemplates copied to clipboard

Resonite VR Headless server

Open kodxana opened this issue 1 year ago • 34 comments

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:

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

kodxana avatar Jul 20 '24 18:07 kodxana

Bump

Michael-A-Sloan avatar Aug 16 '24 23:08 Michael-A-Sloan

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

Greelan avatar Aug 17 '24 01:08 Greelan

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

Michael-A-Sloan avatar Aug 17 '24 02:08 Michael-A-Sloan

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

Greelan avatar Aug 17 '24 02:08 Greelan

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.

Michael-A-Sloan avatar Aug 17 '24 02:08 Michael-A-Sloan

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

Greelan avatar Aug 17 '24 02:08 Greelan

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.

Michael-A-Sloan avatar Aug 17 '24 02:08 Michael-A-Sloan

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

Greelan avatar Aug 17 '24 02:08 Greelan

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 avatar Aug 17 '24 03:08 Greelan

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

Greelan avatar Aug 17 '24 07:08 Greelan

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

kodxana avatar Aug 17 '24 07:08 kodxana

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

Michael-A-Sloan avatar Aug 17 '24 16:08 Michael-A-Sloan

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 avatar Aug 17 '24 16:08 Michael-A-Sloan

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 avatar Aug 17 '24 17:08 Michael-A-Sloan

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 avatar Aug 18 '24 06:08 Michael-A-Sloan

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

Michael-A-Sloan avatar Aug 18 '24 16:08 Michael-A-Sloan

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

Greelan avatar Aug 18 '24 22:08 Greelan

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

Michael-A-Sloan avatar Aug 20 '24 05:08 Michael-A-Sloan

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

Greelan avatar Aug 20 '24 05:08 Greelan

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

Michael-A-Sloan avatar Aug 20 '24 05:08 Michael-A-Sloan

Correct

Any luck with trying the console command I mentioned?

Greelan avatar Aug 20 '24 05:08 Greelan

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 avatar Aug 20 '24 06:08 Michael-A-Sloan

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 avatar Aug 20 '24 06:08 Michael-A-Sloan

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?

Michael-A-Sloan avatar Aug 20 '24 18:08 Michael-A-Sloan

Yes to the last question.

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

Greelan avatar Aug 20 '24 22:08 Greelan

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.

Michael-A-Sloan avatar Aug 21 '24 02:08 Michael-A-Sloan

Wiki is now on https://wiki.resonite.com/Main_Page and bump also i would love to see this officially in amp

SlyTheFloof avatar Apr 17 '25 23:04 SlyTheFloof

Would also love to see Resonite in AMP 💖

dalekcoffee avatar Jun 03 '25 06:06 dalekcoffee

You already can, via the template in my dev branch. Tho as the convo above shows, this server has (or at least had) issues with integrating with AMP

Greelan avatar Jun 03 '25 06:06 Greelan

You already can, via the template in my dev branch. Tho as the convo above shows, this server has (or at least had) issues with integrating with AMP

was mainly talking about offical support to allow mass start mass stop and mass update of the docker pods in the AMP dash

SlyTheFloof avatar Jun 08 '25 04:06 SlyTheFloof