Search found 2384 matches

by VilleK
Tue Jul 01, 2025 6:12 pm
Forum: General discussion
Topic: Google Play New problem : 64bits
Replies: 285
Views: 102907

Re: Google Play New problem : 64bits

Great find, Ville. I’ve run this several times over a long period on three different devices: I wonder if the problem is that we don't flush the cache when generating code for Android 64. I asked Gemini and it came up with the routine below. Try inserting this routine at line 2727 in ZExpressions.p...
by VilleK
Tue Jul 01, 2025 7:33 am
Forum: General discussion
Topic: Google Play New problem : 64bits
Replies: 285
Views: 102907

Re: Google Play New problem : 64bits

Ats wrote: Sat Jun 28, 2025 12:08 pm It also randomly crash if there is only glEnable(GL_BLEND); or glDisable(GL_BLEND);
Please try this as a test: move the glEnable calls to App.OnRender instead of the model so that the model do not have any GL-calls. Does it make a difference?
by VilleK
Wed Jun 04, 2025 7:22 am
Forum: Extensions
Topic: ZgeSublime
Replies: 5
Views: 464

Re: ZgeSublime

Nice, thanks for sharing. I find I often edit zgeproj files directly in my favorite texteditor instead of inside ZGE so I can use the keyboard shortcuts I'm used to. Also it often makes sense to edit the whole project instead of just a single expression and even this can be done in the XML view in Z...
by VilleK
Thu May 22, 2025 12:30 pm
Forum: Bug reports
Topic: Problem with external file location on Android
Replies: 19
Views: 5085

Re: Problem with external file location on Android

What if we just changed the test for "/assets/" to "assets/" in ZPlatform_Android.inc. I have a feeling that would solve most issues.
by VilleK
Thu May 22, 2025 7:27 am
Forum: Bug reports
Topic: Problem with external file location on Android
Replies: 19
Views: 5085

Re: Problem with external file location on Android

I would expect the path to be relative to the project folder, like with all the other targets. I agree, we should make it so that if you specify "assets/" then this should work on Windows too and be assumed to be a subfolder to the exe-file. Windows can normally deal with paths that have ...
by VilleK
Thu May 15, 2025 1:18 pm
Forum: Bug reports
Topic: Problem with external file location on Android
Replies: 19
Views: 5085

Re: Problem with external file location on Android

Maybe, if the /assets/ is not manually set in the File component path, we could search for the file in the extPath for the user files, and if it's not there, fallback to the dataPath? Would that work for reading AND saving? I think originally we only considered two kinds of files. Either asset file...
by VilleK
Thu May 15, 2025 8:10 am
Forum: Bug reports
Topic: Problem with external file location on Android
Replies: 19
Views: 5085

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: 19
Views: 5085

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: 19
Views: 5085

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: 1603

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: 1603

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: 1603

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: 1404

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: 380

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...