ongoing implementation of Admob and various other service

Previous topic - Next topic

spacefractal

#60
you can take a look to logcat. they should match. its diddent look like that.

Also loading in assets is strange beast in Android. The main issue is SetCurrentDir() does NOT reflect in the Java part as its would in the c++ part. That can cause various issues and fails in many way when not loading them in property.

Sut from the staring, ALLWAYS ONLY use SetCurrentDir("Media") and load  the assets from there ONLY using relative path! This is the property way to load for Android. Its like hell.

Just to been noticed Brick Breacker game did not do its currectly either, and even Greedy Mouse internally fails loading.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrPlow

Sorry, just confused here...
Did you say SetCurrentdir or not with the new Admob files??

And is this still used or not
IF DOESDIREXIST("Media")=0 THEN CREATEDIR("Media")
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

spacefractal

#62
Im will change CreateDir, so its only tries to create the folders with no other changes to it. That can help. Then folders might or might not have created.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrPlow

All good now :)

Just used SETCURRENTDIR and new files in Admob.zip

:good:
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

spacefractal

im just updated it. CreateDir does now ONLY attempts to create the folders when they are not exists and does NOT modify the file at all. This could caused all those issues.

So its pretty much what its was before.

But SetCurrentDir("Media") is still the recommend way to load assets.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

#65
This crappy issue will take some time. Still issues and I'm need to do a way to implementing setcurrentdir correctly. Highly annoying. I'm hold back the update until sorted. I'm iis out of time today.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrPlow

The setup before for copyassets was working away fine for me.
I had no reports of issues and about 5,000+ users installed without a problem.
If all else fails roll back to old copyasset and get users to load assets with SETCURRENTDIR & GETCURRENTDIR$()

Might be the safest option.
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

spacefractal

#67
Its should works like Windows, except case letter is senative. So im will fix SETCURRENTDIR(), so c++ and Java follow each other. This require a little fix in the SetCurrentDir() command, so its call Java, so Java also know it. This is the main issue.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

seens im have just fixed it. im gonna to bed soon, so im update again tomoorow, finally fixed SetCurrentDir() and both c++ and java follow the path.

Also a strange thing is c++ path and java path is not the same, which is why im was needed to call "setPath" java twice per SetCurrentDir() call. First one is to set "root" dir.

Hopefully that issue has been fixed.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

SnooPI

Even though I'm not developing on Android at the moment, I wanted to congratulate Spacefractal for his hard work on this platform for years  :good:
I hope you can solve your problem MrPlow (especially that we may one day have the same).

spacefractal

#70
The next thing I'm should look into is Google drive or Snapshot implementation. But no hurry. Should also looks into normal admob banners as well, which should works as well.

Also as im previous said SETCURRENTDIR() has been fixed, so its should now no longer matter how the game reads the files as long you spelled the case senetive correct, that even if you used fullpath. Im have still not pushed to steam, but doing that when Gernot have a change to checkout the changes.

Until it, the fix is also on the dropbox folder (hence im added +fixes to the subject).
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

also we  do still need to find a alternative form for ads as Admob does NOT work for Android TV. Android TV can been detected by PLATFORMINFO$(). Etc its seen im removed "KEYBOARD" as its was newer make sense, but "ANDROIDTV" was.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

Now im property gonna use this thread for various google play services.

Im is currectly looking how Google Play Games (Snapshots) works. Its a little bit strange service.

Then im also should looks into how banners as well inapp purchases works, so those can been reimplemented to AS.

The reason is its a  feature im could example use for Greedy Mouse for remove the ads as well enable extractly Snapshots service.

Also please not im will of course no longer touch the old Android SDK anymore.

Of course anything im do with Google Service is all optional. If you dont use any of this, its would been totally removed, so you dont see "this app contains ads" or "Contains inapp purcahse", if you not using those. Im is aware of that!

So here im using AndroidStudioMakeApp tool, and checking what features that is enabled in grandle.build and use the correspons Java file: One with enabled service, the other Java version where im just using empty classes. So calls to them does nothing from the main SDL java file.

PS. Im hold back update to steam until Gernot have a change to take a look as he also might have changed thing.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/