Dismiss Notice
Wynncraft, the Minecraft MMORPG. Play it now on your Minecraft client at (IP): play.wynncraft.com. No mods required! Click here for more info...
Dismiss Notice
Have some great ideas for Wynncraft? Join the official CT (content team) and help us make quests, builds, cinematics and much more!

World Use Datapacks To Make Music Less Laggy

Discussion in 'General Suggestions' started by Behem07h, Jun 13, 2019.

?

Should this be implimented?

  1. Yes

  2. No

  3. There are problems with this method

Results are only viewable after voting.
Thread Status:
Not open for further replies.
  1. Behem07h

    Behem07h Well-Known Adventurer

    Messages:
    25
    Likes Received:
    21
    Trophy Points:
    49
    Minecraft:
    Assumptions made: Judging by how inconsistent the lag is for the pauses in between notes in wynncraft's custom music, combined with the fact that the music lags more than the gameplay, I will be assuming in this suggestion that Wynncraft's music makes use of a datapack, plugin or command blocks, to /playsound each individual note in the music to the player. If that is not the case and wynncraft is already using datapacks, for their music, this post is redundant.


    Suggestion: In 1.13, datapacks were added to the game. Among the many things datapacks are capable of doing, one of them is that datapacks are able to play a midi file to the player, in response to a single command being executed in game. Logically, this should make music less laggy, since it is one continuous track.

    This is an example of custom music being added to the game with the use of datapacks:

    Potential Problems:
    1. Wynncraft could already be using datapacks
    2. They may turn out to be just as laggy as playing each note individually, nobody has really done this before online, so there is no evidence that a datapack would be any better
    3. Increase internet traffic due to having to download midi files when joining server? not really sure how datapacks work when their installed serverside, but since the client doesnt need to install it i assume that its done automatically?
     
  2. Sockmower

    Sockmower Be excellent to each other CMD CHAMPION

    Messages:
    183
    Likes Received:
    755
    Trophy Points:
    75
    Minecraft:
    When I get home I'll test this method and report how laggy it is, and I think the server sends sounds to the client on the fly atm (theyre using a music plugin)
     
  3. StormKing3

    StormKing3 Famous Adventurer

    Messages:
    1,816
    Likes Received:
    751
    Trophy Points:
    117
    Guild:
    Minecraft:
    If they could switch to data packs that would be amazing, because then they could start using some proper music!
     
  4. Onni

    Onni Well-Known Adventurer VIP+

    Messages:
    107
    Likes Received:
    29
    Trophy Points:
    57
    Minecraft:
    What? The note block music is great, that makes it feel like a Minecraft mmorpg server. switching to music that's not note block would kinda ruin it. Although, it would be fine if the player could choose between note block music and non-noteblock music.
     
    Sar and RazorGuild like this.
  5. StormKing3

    StormKing3 Famous Adventurer

    Messages:
    1,816
    Likes Received:
    751
    Trophy Points:
    117
    Guild:
    Minecraft:
    You can keep your note block music if you really want to lol XD
     
  6. Onni

    Onni Well-Known Adventurer VIP+

    Messages:
    107
    Likes Received:
    29
    Trophy Points:
    57
    Minecraft:
    lol the thing is that the note block music is original and removing it wouldn't be a great thing.
     
  7. tig

    tig "Because EO parkour killed my grandma, OK???"

    Messages:
    2,663
    Likes Received:
    3,925
    Trophy Points:
    209
    Minecraft:
    im sure you can still use the niteblock music in datapacks, just making it less laggy
     
  8. Erythen

    Erythen Elf of Haelun'or

    Messages:
    42
    Likes Received:
    27
    Trophy Points:
    31
    Minecraft:
    This would be a great addition if it made the noteblock music less laggy. The music in wynncraft is great but it also sucks when every other note has a whole second pause between it.
     
  9. NotFunny

    NotFunny Well-Known Adventurer VIP

    Messages:
    566
    Likes Received:
    1,194
    Trophy Points:
    89
    Guild:
    Minecraft:
    They could compile each note block song into one music file, then play it
    Shouldn't be too hard since almost all of Wynncraft's soundtracks are already on youtube
    example
    ________________________________

    like what tig said
     
  10. Druser

    Druser ele defs don't matter HERO Featured Wynncraftian

    Messages:
    5,888
    Likes Received:
    11,477
    Trophy Points:
    217
    Guild:
    Minecraft:
    Someone may want to consider the space taken up by 3 or 4 hours of midi files.
     
  11. Pyronucleic

    Pyronucleic Well-Known Adventurer

    Messages:
    115
    Likes Received:
    60
    Trophy Points:
    57
    yeah that's an actual problem

    If they were to add this, they'd have to remove several tracks and only play a few, or shorten the tracks by a ton
     
  12. H0Y

    H0Y H0Y HERO

    Messages:
    2,335
    Likes Received:
    3,599
    Trophy Points:
    209
    Guild:
    Minecraft:
    Yes only if it works
     
  13. Sockmower

    Sockmower Be excellent to each other CMD CHAMPION

    Messages:
    183
    Likes Received:
    755
    Trophy Points:
    75
    Minecraft:
    Ok, I'm back from my testing, and after running a server locally, giving it a gigabyte of RAM to play around with (I imagine the actual wynn server has more, but it also has more events to deal with), the data pack music was just as, if not laggier than using a plugin to play the music. I should clarify that I tried both methods locally, craftbukkit server running 1.13.2 with a gigabyte of RAM. Also, another point of note is this would require all clients to use 1.13.2. Interesting idea but looks like unfortunately, it isn't going to work. :(
     
    Last edited: Jun 15, 2019
    Goden and Druser like this.
  14. Lairgaf

    Lairgaf Skilled Adventurer

    Messages:
    101
    Likes Received:
    49
    Trophy Points:
    37
    Well, if they use datapacks, we will have to play only in 1.13 and more not 1.9+
     
  15. SLScool

    SLScool Well-Known Adventurer

    Messages:
    299
    Likes Received:
    203
    Trophy Points:
    72
    Minecraft:
    Turning each song into its own sound file would not be doable because it would have to replace pre-existing files, which is not a possibility (there have been discussions in the past about this).

    It sounds like you think Data Packs can play MIDI files directly, and that either the client can download the MIDI and play it client-side, or the server can read the MIDI file and do the /playsound stuff accordingly.
    MrGarrettto made a program that creates a Data Pack based on MIDI files. In-game, it does not play the MIDI file directly, but instead uses some timers and a lot of /playsound commands to play the music--which is what the current setup does.
     
Thread Status:
Not open for further replies.