Posts by leviking

The next update will be available between Thursday, October 30 and Friday, October 31!

    Thank you. It works. But the music doesn't follow the player and remains localized at the starting point.


    With an mp3, it's possible to simply play a track (without player.getPosition() ) and have that music as background music. Why doesn't it work with webradio?

    For my plugin Radio, I try to play music from a webradio. But I can't get it to work. Can you help?


    Code
    webRadioAsset = SoundAsset.loadFromURL("http://icecast.radiofrance.fr/franceinfo-lofi.mp3");
    sound = player.playSound(webRadioAsset);

    This is the first draft of a (web)radio for Rising World. Currently, it only plays the official soundtrack. But in future versions, I'd like to be able to listen to webradios.


    Plugin Radio v0.1


    Usage


    Keys

    • R : Display/Hide radio interface
    • / : Previous track
    • * : Next track

    Commands

    • /radio on : Display radio
    • /radio off : Hide radio
    • /radio list : List music files in music directory
    • /radio play : Play current music
    • /radio stop : Stop music
    • /radio next : Play next track
    • /radio previous : Play previous track

    Know issues

    Files

    • radio-0.1.jar

      (768 kB, downloaded 125 times, last: )

    Thanks for your reply. But I wanted to know how to play the music tracks sold by R.W. Under my Linux, they can be found in the directory: /opt/games/steamapps/music/Rising World Soundtrack


    How can I find this folder for sure? Is there a function like SoundTrack.getPath()?

    I'm creating a plugin for listen Rising World Soundtrack with a radio. I need some programming advice.

    First, what's the best way to find the path to the music folder ?


    I play on Linux with Steam and have coded this :

    Code
    musicDir = "/../../../../music/Rising World Soundtrack";
    sound = player.playSound(SoundAsset.loadFromFile(plugin.getPath() + musicDir + "/" + playlist.get(musicIndex), true));

    But I imagine this won't work on Windows or if the soundtracks have not been purchased via Steam.

    Is there a way to find out the soundtrack directory directly? And does it work on all platforms?

    Hello,


    I try use my new unity local server :

    Code
    Rising World Dedicated Server Version 0.4.8 (5) 2022-07-31 10:43
    Linux 5.10 Debian GNU/Linux 11 64bit (Desktop)
    AMD Ryzen 5 3400G with Radeon Vega Graphics, 8 Cores, 3843 MHz
    PC 15974 MB RAM
    Commit: 4ed04269815a2483771fcce527232b84e4ffcf85
    Branch: master JobID: 9039



    I have a problem when the player try to connect : I have the following error in logs :


    Code
    [SteamAuth] EBeginAuthSessionResult (76------------81): k_EBeginAuthSessionResultGameMismatch
    [ERROR] InvalidOperationException: Steamworks is not initialized.
    Steamworks.InteropHelp.TestIfAvailableClient () (at <00000000000000000000000000000000>:0)
    Steamworks.SteamUtils.GetAppID () (at <00000000000000000000000000000000>:0)
    RisingWorld.Server.Platforms.SteamServerSDK.SteamServer.AuthenticatePlayer (JIW.Network.Core.Server.AbstractConnection client, RisingWorld.Common.Platforms.SDK sdkType, System.String playerUID, System.String playerName, System.Byte[] authData, System.Action`3[T1,T2,T3] onComplete) (at <00000000000000000000000000000000>:0)
    RisingWorld.Server.Network.Listeners.ServerPlayerListener+<>c__DisplayClass3_0.<PlayerAuthRequestReceived>b__0 () (at <00000000000000000000000000000000>:0)
    RisingWorld.Common.JIWApplication.Update () (at <00000000000000000000000000000000>:0)
    RisingWorld.Common.JIWApplication:UncaughtException(Exception)
    RisingWorld.Common.JIWApplication:Update()

    Where can this error come from? Is there a component I forgot to configure?


    Thank you,

    A.L.