Closed BaxAndrei closed 2 months ago
I am not sure what you're asking. Are you running Lavaplayer on a supported platform/architecture?
Yes. Everything works perfectly, but if I add this line in pom.xml to relocate the package, it doesn't work anymore. (I add the line for personal reasons)
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven.shade.plugin.version}</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
</transformers>
<minimizeJar>true</minimizeJar>
<relocations>
.....
<relocation>
<pattern>com.sedmelluq.discord.lavaplayer</pattern>
<shadedPattern>ro.baxandrei.discordbot.lib.lavaplayer</shadedPattern>
</relocation>
........
</relocations>
<createDependencyReducedPom>true</createDependencyReducedPom>
<filters>
....
</filters>
</configuration>
</execution>
</executions>
</plugin>
Yes because natives work based on package path. That package path is com.sedmelluq.*
so renaming it won't work. What you are trying to do is unsupported.
Yes because natives work based on package path. That package path is
com.sedmelluq.*
so renaming it won't work. What you are trying to do is unsupported.
Do you think you could please show me where these values are hardcoded so that I can modify them manually and make my own version? Thank you.
EDIT: Also relocation is smart enough to remap all package paths but there must be something hardcoded or stored as string/text
It's within the compiled natives themselves. Not only would you need to modify the natives source but you would need to figure out how to compile them. This is not something I offer support for due to how arduous and temperamental the build process is.
It's within the compiled natives themselves. Not only would you need to modify the natives source but you would need to figure out how to compile them. This is not something I offer support for due to how arduous and temperamental the build process is.
I understand now, thank you very much for the answer. I will figure out a solution now that you said this. Have a nice day.
I am getting this error when lavaplayer try to play some mp3:
Something went wrong when looking up the track
and this error when it try to play ogg files:After many hours of try/fail I reached a result: if I delete relocation for com.sedmelluq.discord.lavaplayer.natives everything works ok.
How could I relocate this package without breaking lavaplayer?
Thank you!