Giter Club home page Giter Club logo

Comments (5)

licaon-kter avatar licaon-kter commented on May 17, 2024

No LICENSE so...

from h3lwp.

IlyaPomaskin avatar IlyaPomaskin commented on May 17, 2024

Done. It's GPL3 now. Also added metadata for f-droid.
What else I can do?

from h3lwp.

licaon-kter avatar licaon-kter commented on May 17, 2024

So, this test recipe metadata/com.homm3.livewallpaper.yml

License: Unknown
SourceCode: https://github.com/IlyaPomaskin/h3lwp
IssueTracker: https://github.com/IlyaPomaskin/h3lwp/issues

RepoType: git
Repo: https://github.com/IlyaPomaskin/h3lwp

Builds:
  - versionName: 3.0.7
    versionCode: 307
    commit: 515e76a164b99588a03eb6d841f3a0fa48f0dd94
    subdir: android
    sudo:
      - apt-get update || apt-get update
      - apt-get install -y openjdk-11-jdk-headless
      - update-alternatives --auto java
    gradle:
      - yes

AutoUpdateMode: None
UpdateCheckMode: Tag

Crashes after I choose h3sprite.lod:

FATAL EXCEPTION: main
Process: com.homm3.livewallpaper, PID: 6939
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=610884509, result=-1, data=Intent { dat=content://com.android.externalstorage.documents/document/primary:vcmi-data/data/h3sprite.lod flg=0x1 }} to activity {com.homm3.livewallpaper/com.homm3.livewallpaper.android.MainActivity}: com.badlogic.gdx.utils.SharedLibraryLoadRuntimeException: Couldn't load shared library 'gdx' for target: Android
	at android.app.ActivityThread.deliverResults(ActivityThread.java:5014)
	at android.app.ActivityThread.handleSendResult(ActivityThread.java:5055)
	at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51)
	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2067)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loop(Looper.java:223)
	at android.app.ActivityThread.main(ActivityThread.java:7705)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:952)
Caused by: com.badlogic.gdx.utils.SharedLibraryLoadRuntimeException: Couldn't load shared library 'gdx' for target: Android
	at com.badlogic.gdx.utils.SharedLibraryLoader.load(SharedLibraryLoader.java:128)
	at com.badlogic.gdx.utils.GdxNativesLoader.load(GdxNativesLoader.java:30)
	at com.homm3.livewallpaper.android.data.ParsingViewModel.parseFile(ParsingViewModel.kt:86)
	at com.homm3.livewallpaper.android.ui.components.ParsingScreenKt$ParsingScreen$openFileSelector$1.invoke(ParsingScreen.kt:43)
	at com.homm3.livewallpaper.android.ui.components.ParsingScreenKt$ParsingScreen$openFileSelector$1.invoke(ParsingScreen.kt:43)
	at com.homm3.livewallpaper.android.ui.components.FileSelectorKt$createFileSelector$filesSelector$1.invoke(FileSelector.kt:47)
	at com.homm3.livewallpaper.android.ui.components.FileSelectorKt$createFileSelector$filesSelector$1.invoke(FileSelector.kt:45)
	at androidx.activity.compose.ActivityResultRegistryKt$rememberLauncherForActivityResult$1$1.onActivityResult(ActivityResultRegistry.kt:106)
	at androidx.activity.result.ActivityResultRegistry.doDispatch(ActivityResultRegistry.java:409)
	at androidx.activity.result.ActivityResultRegistry.dispatchResult(ActivityResultRegistry.java:366)
	at androidx.activity.ComponentActivity.onActivityResult(ComponentActivity.java:712)
	at android.app.Activity.dispatchActivityResult(Activity.java:8304)
	at android.app.ActivityThread.deliverResults(ActivityThread.java:5007)
	... 11 more
Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: library "libgdx.so" not found
	at java.lang.Runtime.loadLibrary0(Runtime.java:1087)
	at java.lang.Runtime.loadLibrary0(Runtime.java:1008)
	at java.lang.System.loadLibrary(System.java:1664)
	at com.badlogic.gdx.utils.SharedLibraryLoader.load(SharedLibraryLoader.java:122)
	... 23 more

...because the lib/ folder is missing from the APK

Looking in the build VM:

~/build/com.homm3.livewallpaper$ find . -iname "*.so"
./android/libs/arm64-v8a/libgdx-freetype.so
./android/libs/arm64-v8a/libgdx.so
./android/libs/x86_64/libgdx-freetype.so
./android/libs/x86_64/libgdx.so
./android/libs/armeabi-v7a/libgdx-freetype.so
./android/libs/armeabi-v7a/libgdx.so
./android/libs/x86/libgdx-freetype.so
./android/libs/x86/libgdx.so

...they have been build but not copied to the final APK, @IlyaPomaskin thoughts?

file from your copy of Heroes 3 SoD or Complete. HD Edition will not work

How do I know which one I have? Can you give sha256sums for each so I can check?

/LE: First screen has black on dark grey text that's hard to read

homm3darrrrk

from h3lwp.

IlyaPomaskin avatar IlyaPomaskin commented on May 17, 2024

...they have been build but not copied to the final APK, @IlyaPomaskin thoughts?

For copying native libs there are function copyAndroidNatives in android/build.gradle. Unfortunately I don't know how gradle works and can't tell you at which time this function called.

How do I know which one I have? Can you give sha256sums for each so I can check?

You need to look at game name. It should be called Shadow of the Death (SoD).
There are a lot game versions due to localisations and patches with different variations of h3sprite.lod.
My versions have this hashes:
43c6bebcef7deda96d3e07ee484f7753b7852452da90ae929262240a6bf77cc3
57caf2c50573f33a0d91e4222e51d3a73c136d44decf59dde21cacad88fe5d66

from h3lwp.

licaon-kter avatar licaon-kter commented on May 17, 2024

For copying native libs there are function copyAndroidNatives in android/build.gradle. Unfortunately I don't know how gradle works and can't tell you at which time this function called.

Saw them, will retry

You need to look at game name.

Eh, the box is buried somewhere

My versions have this hashes:
57caf2c50573f33a0d91e4222e51d3a73c136d44decf59dde21cacad88fe5d66

Yay, I have the same

from h3lwp.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.