Search found 2378 matches

by VilleK
Thu May 15, 2025 8:10 am
Forum: Bug reports
Topic: Problem with external file location on Android
Replies: 8
Views: 84

Re: Problem with external file location on Android

* Little sidequest * It turns out that string array writing was never implemented. I added that now, please try it here: http://www.zgameeditor.org/files/ZGameEditor_beta.zip Here is an example that writes an array to a file: string[] a = {"line 1", "line 2", "line 3",...
by VilleK
Tue May 13, 2025 5:36 pm
Forum: Bug reports
Topic: Problem with external file location on Android
Replies: 8
Views: 84

Re: Problem with external file location on Android

You can make changes in the Java files without me having to build anything, right? Please try what works best. I trust your judgement :)
by VilleK
Tue May 13, 2025 5:14 pm
Forum: Bug reports
Topic: Problem with external file location on Android
Replies: 8
Views: 84

Re: Problem with external file location on Android

So I think it is set in zgameeditor-master\Build\android\ZgeAndroid.pas: I just found out the same. String dataPath = context.getFilesDir().getAbsolutePath() + "/"; I think it is safe to change this to something else. Question is what path is recommended to use for modern Android apps?
by VilleK
Tue May 13, 2025 7:30 am
Forum: Bug reports
Topic: [FIXED] Little problem with Application title for Android
Replies: 10
Views: 78

Re: Little problem with Application title for Android

I had a feeling exename would not be correct but I wasn't sure :). Please try this new build.

[edit: removed build]
by VilleK
Mon May 12, 2025 4:26 pm
Forum: Bug reports
Topic: [FIXED] Little problem with Application title for Android
Replies: 10
Views: 78

Re: Little problem with Application title for Android

Please try this build.

[edit: removed incorrect build]
by VilleK
Mon May 12, 2025 9:02 am
Forum: Bug reports
Topic: [FIXED] Little problem with Application title for Android
Replies: 10
Views: 78

Re: Little problem with Application title for Android

Ats wrote: Mon May 12, 2025 8:20 am Or maybe we could simply use the zgeproj name for the $filename$ for android?
This seems appears to me as the simplest solution. Can you please make a pull request with this?
by VilleK
Wed Apr 23, 2025 8:27 am
Forum: General discussion
Topic: How to use SampleImport ogg?
Replies: 1
Views: 184

Re: How to use SampleImport ogg?

See attached example for how to play an ogg file.

However the SampleImport only plays embedded files so it does not use ReadAssetFile.Try an example that uses the File component.
by VilleK
Wed Apr 23, 2025 8:16 am
Forum: Bug reports
Topic: WebOpen OnResult not working on Android
Replies: 1
Views: 139

Re: WebOpen OnResult not working on Android

For Android I only implemented the part of WebOpen that simply opens a webpage in a browser. Such if you have a button in your game that says "Visit my homepage" and you click it and it opens the browser. This is when the "InBrowser" property of the WebOpen component is true. The...
by VilleK
Tue Apr 22, 2025 7:33 am
Forum: General discussion
Topic: Google Play New problem : 64bits
Replies: 273
Views: 96104

Re: Google Play New problem : 64bits

So I've been trying to fix the warnings: "Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead." You could try if changing to NativeUInt helps with the crashes. But otherwise I would not bother. The Delphi compiler do...
by VilleK
Mon Apr 21, 2025 7:45 am
Forum: General discussion
Topic: Google Play New problem : 64bits
Replies: 273
Views: 96104

Re: Google Play New problem : 64bits

Ats wrote: Sun Apr 20, 2025 9:27 am Let’s start with “1 - Platform_CreateMutex Memory Allocation.”
Gemini is 100% correct here. I'm very impressed it found this bug.

This bug is not present in ZPlatform_Win32 so not sure why the Android version was wrong.
by VilleK
Mon Apr 14, 2025 2:28 pm
Forum: General discussion
Topic: Google Play New problem : 64bits
Replies: 273
Views: 96104

Re: Google Play New problem : 64bits

Ats wrote: Mon Apr 14, 2025 11:41 am I need to get back to working on this.
Ok I will try to support you the best I can like before. It could be that each Android update has even worse OpenGL backward compatibility.
by VilleK
Mon Feb 10, 2025 10:13 am
Forum: Your projects
Topic: Choko Loco 2 on steam
Replies: 4
Views: 2559

Re: Choko Loco 2 on steam

Almost a two hour video, I didn't realize this game had so much content :). Looks like some interesting level design and cool bosses. I'm impressed you had the perseverance to finish this project.
by VilleK
Mon Dec 09, 2024 2:24 pm
Forum: General discussion
Topic: Google Play New problem : 64bits
Replies: 273
Views: 96104

Re: Google Play New problem : 64bits

You can try delaying the InitApp call in ZgeAndroid to NativeDrawFrame. This should help get rid of the messages about no current GL context.
by VilleK
Mon Dec 09, 2024 8:23 am
Forum: General discussion
Topic: Google Play New problem : 64bits
Replies: 273
Views: 96104

Re: Google Play New problem : 64bits

About Zge.Java: I think the logic is that it copies it to the app directory only if it is newer than the destination. To avoid overwriting any app-specific changes. It seems the built in Android OpenGL logging have no effect because I can see no such lines in the log. I guess they have removed this ...