Anuken / Mindustry-Suggestions

Repository for Mindustry suggestions and feedback
125 stars 57 forks source link

Make server-side sending custom sound #5087

Open meohent41zhead opened 1 week ago

meohent41zhead commented 1 week ago

Describe the content or mechanics you are proposing.

You can sending sound to player with:

Call.sound(player.con, Sounds.buttonClick, 100000000, 1000, 1000),

But you cant:

Sound sound = new Sound(dataDirectory.child("sounds/audio.wav")); Call.sound(player.con, sound, 100000000, 1000, 1000)

Why? It system send a packet but cannot create this packet lol.

Describe how you think this content will improve the game. If you're proposing new content, mention how it may add more gameplay options or how it will fill a new niche.

JUST MADE IT ASAP lol :v

Before making this issue, check the boxes below to confirm that you have acknowledged them.

camelStyleUser commented 1 week ago

so you expect to be able to transfer 7217412 bytes every time just to play your sound???????

camelStyleUser commented 1 week ago

game sounds can be identified with 8 bytes

camelStyleUser commented 1 week ago

at most

camelStyleUser commented 1 week ago

here you will have to transfer the entire wav every time

camelStyleUser commented 1 week ago

a pretty bad idea, dontcha think

camelStyleUser commented 1 week ago

and the server doesnt have any way to save sounds

camelStyleUser commented 1 week ago

its backend literally doesnt support that

SITUVNgcd commented 1 week ago

WOW! "Good idea". Well not!

meohent41zhead commented 1 week ago

so you expect to be able to transfer 7217412 bytes every time just to play your sound???????

why not :v. Make new content fun