CubeCoders / AMPTemplates

For the AMP community to share Generic Module templates.
88 stars 262 forks source link

Resonite VR Headless server #890

Open kodxana opened 1 month ago

kodxana commented 1 month ago

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:

Michael-A-Sloan commented 3 weeks ago

Bump

Greelan commented 3 weeks ago

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

Michael-A-Sloan commented 3 weeks ago

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 commented 3 weeks ago

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

Michael-A-Sloan commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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

Greelan commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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

Michael-A-Sloan commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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

Greelan commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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

Michael-A-Sloan commented 3 weeks ago

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

Greelan commented 3 weeks ago

Correct

Any luck with trying the console command I mentioned?

Michael-A-Sloan commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

Yes to the last question.

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

Michael-A-Sloan commented 3 weeks ago

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.