Search found 2387 matches

by VilleK
Wed Jul 02, 2025 6:43 pm
Forum: General discussion
Topic: Google Play New problem : 64bits
Replies: 288
Views: 103430

Re: Google Play New problem : 64bits

Please pull the latest source changes from Github. I've reduced the number of code generation blocks required when making external function calls. This should hopefully make it more stable.

I've only tested compilation for Windows so let me know if there are errors when compiling for Android.
by VilleK
Wed Jul 02, 2025 5:54 pm
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 79
Views: 110345

Re: Questions about ES2/GL3 shaders

Can I pass a random number from the currently rendered model to its shader? You could pass a value using the ShaderVariable. The Shader needs to have the UpdateVarsOnEachUse property set to make sure the variables update for each model. 2. I’ve noticed sometimes shaders take time to display. This s...
by VilleK
Wed Jul 02, 2025 8:26 am
Forum: General discussion
Topic: Google Play New problem : 64bits
Replies: 288
Views: 103430

Re: Google Play New problem : 64bits

Ok I will try a different approach in the next few days.
by VilleK
Tue Jul 01, 2025 6:12 pm
Forum: General discussion
Topic: Google Play New problem : 64bits
Replies: 288
Views: 103430

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: 288
Views: 103430

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

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

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

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

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

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

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

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

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

Re: Little problem with Application title for Android

Please try this build.

[edit: removed incorrect build]