#Launcher: Physics Library

1 messages · Page 1 of 1 (latest)

median badger
#

With Create: Aeronautics out, I went to download it immediately. But, just like Valkyrien Skies, it suffers the same curse as having the lack of needed libraries for it tk run and the game freaking dies. Because, it seems that aneurysm Android for whatever reason doesn't have them, but on iOS they do. The suggestion is to make a feature similar to JRE installation but for libraries needed to make VS2 and C:Aero run. I wonder why it hasn't been implemented yet on Android in particular...

#

alternatively have it embedded idk

honest moon
exotic laurel
#

Also it might have a performance penalty

exotic laurel
#

sable is open source, so its possible to build natives for android arm64

#

probably

#

if sable is the only native used by aeronautics for physics, then this is most likely fixable

median badger
#

wtf

exotic laurel
#

working on android arm64 binaries for sable

exotic laurel
#

Let's go!

timber summit
#

cool

exotic laurel
#

@honest moon

exotic laurel
#

acc idk if neoforge will load it instead of the one in sable

honest moon
honest moon
exotic laurel
#

paste it into sable.jar/natives/sable-rapier/

honest moon
#

Ik

honest moon
#

I mean the launcher

exotic laurel
#

haven't tested that

#

im looking into making patch mod like vkmod android libs

timber summit
exotic laurel
timber summit
#

its apache

exotic laurel
timber summit
#

just remmeber yo include the license

timber summit
timber summit
#

oh wow discord send sit all NOW

exotic laurel
timber summit
exotic laurel
#

ok

#

imma see if it prefers loading our native in data/app... over the one in sable

#

it does not

#

acc wait

timber summit
exotic laurel
#
        final String nativeName = getNativeName();
        try (final InputStream is = Rapier3D.class.getResourceAsStream("/natives/" + LIB_NAME + "/" + nativeName)) {
            if (is == null) {
                throw new FileNotFoundException(LIB_NAME);
            }

            final Path tempFile = Files.createTempFile(LIB_TMP_DIR_PREFIX, null);
            Files.copy(is, tempFile, StandardCopyOption.REPLACE_EXISTING);
            System.load(tempFile.toAbsolutePath().toString());
            ENABLED = true;
        } catch (final Throwable t) {
            ENABLED = false;

            Sable.LOGGER.error("Sable has failed to load the natives needed for its Rapier pipeline. Native library name {}. Please report with system details and logs to {}", nativeName, Sable.ISSUE_TRACKER_URL, t);
        }
    }```
timber summit
#

no fallbacks

exotic laurel
#
        final String arch;
        if (System.getProperty("os.arch").equals("arm") || System.getProperty("os.arch").startsWith("aarch64")) {
            arch = "aarch64";
        } else {
            arch = "x86_64";
        }

        final OS os = Util.getPlatform();
        if (os == OS.WINDOWS) {
            return LIB_NAME + "_" + arch + "_windows.dll";
        } else if (os == OS.OSX) {
            return LIB_NAME + "_" + arch + "_macos.dylib";
        } else {
            if (os != OS.LINUX)
                Sable.LOGGER.error("Unknown platform '{}' detected, sable will attempt to use linux natives, this may or may not work.", System.getProperty("os.name"));
            return LIB_NAME + "_" + arch + "_linux.so";
        }
    }```
timber summit
#

for fucks sake why do these people keep using System.load and not fallbscking to System.loadLibrary

#

its literally every modder

honest moon
#

I mean

#

Normal linux would work with that way

#

But for Android, it's nightmare

exotic laurel
#

ig we will have to use mixins for this shit 😭

honest moon
honest moon
#

@exotic laurel my game crashed rip

#

Lemme send log

exotic laurel
#

disable it

honest moon
exotic laurel
#

yes

honest moon
#

Ah alr

exotic laurel
#

/flywheel backend flywheel:off

#

ingame

#

or off in creates config editor

honest moon
exotic laurel
#

also it doesn't need to be capslocked

exotic laurel
honest moon
#

Alr

exotic laurel
#

ok yea its off in the config file

#

flywheel:off is for ingame command only

honest moon
#

Lmao no wonder why my game still crashing

#

Guess im just going for in game

honest moon
#

After it reach 100% the game explode

exotic laurel
honest moon
#

I even sent you err pid

exotic laurel
#

idk then

honest moon
#

Because it's native crash at the end

honest moon
#

After i set the correct value for flywheel backend

exotic laurel
#

crazy

#

testing the patch mod

honest moon
#

But my hand is invinsible

#

Probably because of Veil

exotic laurel
#

im praying that it works

exotic laurel
#

what renderer

#

MG with and without angle works

#

at least on my a618

honest moon
#

I forgor

#

Should've disabled these

#

Ok veil got fucked up after i disabled compute shader

honest moon
#

Lemme send log

exotic laurel
#

weird shit

#

i got this exact crash when i tried to use my patch mod

#

but it launches without it

#

oh

#

java.lang.NoClassDefFoundError: com/chaosthedude/naturescompass/items/NaturesCompassItem

#

??

honest moon
#

Adding aeronautic crash the game

#

Fucking shit

honest moon
#

I hate neoforge log

#

Just yapping without telling what im missing

honest moon
exotic laurel
#

crazy

honest moon
exotic laurel
#

neoforge just refuses to detect my mod

#

ugh

#

this shit is driving me insane

honest moon
#

they still using forge for create

#

Ugh

exotic laurel
#

oh my god

#

neoforge refused to load the mod because i did not include a license

stable knoll
honest moon
honest moon
stable knoll
#

I need to make a excavator with drill as the utility deepfriedtrolley

honest moon
#

Im gonna make a car with ts

rose thicket
#

Haro

#

How much ram needed?

honest moon
#

2GB should work

rose thicket
#

Alr bet

honest moon
#

2048MB

rose thicket
#

I got 2 GB free ram

rose thicket
honest moon
#

Aeronautic required create

rose thicket
#

Ohhh

#

I'm just dum

rose thicket
#

Did u use neoforge

exotic laurel
rose thicket
#

FU

honest moon
#

Create doesn't even support fabric in 1.21.1

stable knoll
#

Funnily enough aeronautics seems to fix invisible textures issues with instancing enabled on flywheel

exotic laurel
honest moon
#

It offer better performance than VS2

exotic laurel
#

it uses its own rendering engine

#

rapier 3d or sum like that

honest moon
rose thicket
#

Did y'all use any performance mod at all

stable knoll
#

Do not use sosium

#

It's incompatible with the mod for some reason

rose thicket
#

Oh

rose thicket
stable knoll
#

Just try it and see ig

exotic laurel
#

sodium isn't

honest moon
rose thicket
exotic laurel
#

@timber summit so i managed to make a patch mod

#

it modified sable to load diff native

#

issue is that it can't find it

honest moon
exotic laurel
#

even tho i provided it in my mod

timber summit
#

to dlopen it

exotic laurel
#

i don't want to dlopen it from my mod

#

or do i??

#

look

timber summit
exotic laurel
#

i just need to get the binary out of my shitty mod

exotic laurel
#

how do i do it

#

do i call systemloadwhatever

#

and let it get shitted into cache

timber summit
#

this is inside the mod

#

you literally copy pasted to code for it just a few hrs ago

exotic laurel
#

if i just inputstream it

timber summit
#

sando

#

ohmygod

#

explain how ur patchmod works

#

you cant just shove the .so into a jar file, you need to modify sable code

#

that is, write a mixin

exotic laurel
honest moon
#

Just like vkmod does?

timber summit
#

send the code

#

that tries to look for the android inside the sable mod jar

#

not your own mod jar

exotic laurel
#

how would i tell sable to load it from my mod

timber summit
#

you need to mixin loadLibrary

#

you need to rewrite the entire method afaik with mixin apis

exotic laurel
#

ffks

stable knoll
#

mixin jumpscare

exotic laurel
#

can't i get the native out of my mod

#

so it gets stored in ames cache

#

so that sable loads it itself???

#

cache dir is where we execute binaries and shit

timber summit
#

race condition

timber summit
#

thats written in loadLibrary

#

thats why it opens an inputstream, to extract from itself

#

your patchmod needs to remove that and open an inputstream to your patchmod

#

or, even worse, have the patchmod patch the sable jar to add the native there

exotic laurel
#

whats simpler

exotic laurel
#

fuck that shit

timber summit
#

thats currently what this approach implies

#

so either that or copy loadLibrary and replace where it gets the inputstrema form into your patchmod

rose thicket
#

A

rose thicket
#

Any updates?

exotic laurel
#

iam goinginsane

#

thatsur update

exotic laurel
#

eriusghersuitghe

#

why the fuck is the grassblock in my hand fucked up

#

eh idc

#

not my problem

honest moon
exotic laurel
#

will release it to github once its ready

#

maybe modrinth as well

#

oh also i need an icon for it

honest moon
rose thicket
#

Why do I crash with create aeronautics?

#

I have the depencies

exotic laurel
honest moon
#

You did not patch it correctly

rose thicket
exotic laurel
rose thicket
exotic laurel
#

log

honest moon
#

Just send log first

rose thicket
#

I'm dumb asf

#

Expected range 1.21.1 actual range [missing] MMMMMMMMMM

fossil crown
#

is this all you have to do?

exotic laurel
#

its perect

rose thicket
exotic laurel
#

you must get the android binary from somwhere above in this thread and put it sable

rose thicket
#

According to +t piracy I can't get support because I use zalith and not amethyst erm

rose thicket
#

It was a matter of being broke

exotic laurel
fossil crown
#

still crashing on world load

do I need any settings modified in the app

honest moon
#

You can do that in flywheel config

fossil crown
#

ohh I didn't save it before

#

but it still crashes

#

yeah its still off
I'm supposed to use mobileglues right?

honest moon
#

Yes

#

Send log if it crash again

fossil crown
#

oh nevermind I wasn't using Java 17

exotic laurel
stable knoll
#

yall veil 3.6.0 fixed angle crashing tro

#

Sable 1.0.6 has veil 3.6.0 embedded

honest moon
#

Intel = Zink shocked

stable knoll
exotic laurel
#

idk if i should wait for it to get approved on modrinth or not

median badger
languid vessel
#

I gotta try this shit

stable knoll
#

I had rendering issues dead_af

#

Shit crashes because of some failed to create fence object with it

#

Probably sosium related issues with veil

languid vessel
#

did it fix the angle issues

stable knoll
#

1.0.6

stable knoll
#

I'll stick with my native gles driver

timber summit
exotic laurel