Bryan1029384756/PaperRecorder

Config not generated

Opened this issue · 5 comments

Expected behavior

Config should be generated automatically.

Observed/Actual behavior

Config is not generated and an exception is thrown

Steps/models to reproduce

1-Open a server
2-Exception should be thrown

Plugin and Datapack List

None

Folia version

[13:17:04 INFO]: This server is running PaperRecord version git-Folia-"b72f6a1" (MC: 1.20.1) (Implementing API version 1.20.1-R0.1-SNAPSHOT) (Git: b72f6a1)

Other

No response

[13:16:21 WARN]: java.io.FileNotFoundException: /home/container\config/ServerSideReplayRecorder.yml (No such file or directory) [13:16:21 WARN]: at java.base/java.io.FileOutputStream.open0(Native Method) [13:16:21 WARN]: at java.base/java.io.FileOutputStream.open(FileOutputStream.java:293) [13:16:21 WARN]: at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:235) [13:16:21 WARN]: at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:123) [13:16:21 WARN]: at java.base/java.io.FileWriter.<init>(FileWriter.java:66) [13:16:21 WARN]: at net.minecraft.serversidereplayrecorder.ServerSideReplayRecorderServer.saveConfig(ServerSideReplayRecorderServer.java:62) [13:16:21 WARN]: at net.minecraft.serversidereplayrecorder.ServerSideReplayRecorderServer.loadConfig(ServerSideReplayRecorderServer.java:50) [13:16:21 WARN]: at net.minecraft.serversidereplayrecorder.ServerSideReplayRecorderServer.onInitialize(ServerSideReplayRecorderServer.java:88) [13:16:21 WARN]: at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:634) [13:16:21 WARN]: at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:429) [13:16:21 WARN]: at net.minecraft.server.dedicated.DedicatedServer.e(DedicatedServer.java:308) [13:16:21 WARN]: at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1124) [13:16:21 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:312) [13:16:21 WARN]: at java.base/java.lang.Thread.run(Thread.java:833)

I have some follow-up questions. Can you send me a friend request on Discord if you don't mind? Any way of communication would work.
jenkinsayaz on Discord.

I found it is a bug. It cant generate a config in Linux but works in Windows. I will have to update it when I can. If you add the config manually it will work. For now, you can create a config in the config folder.

ServerSideReplayRecorder.yml

#Config for Server Side Replay Recorder
##WARNING any comments in this file might get deleted
command_op_level: 4
replay_folder_name: "replay_recordings"
server_name: "My Server"
recordable_users: []
recording_enabled: true
assume_unloaded_chunks_dont_change: true
max_file_size: 10000000000
voice_recording_range: 48
voice_recording_enabled: false
debug: false
use_username_for_recordings: true
invert_user_list: false
use_server_timestamps: true
render_distance_fog_fix: false
file_storage_url: "https://file.io/"

Thanks for this. If you don't mind, can you check your discord dms too? I sent you a message with some issues.

If you aren't comfortable with using discord, any other way of communication would work too.

Seems on linux it ends up in the folder the server folder is in. (badly used /)