Search found 2393 matches

by VilleK
Fri Oct 17, 2025 1:25 pm
Forum: General discussion
Topic: Problem with zgeproj file encoding
Replies: 5
Views: 916

Re: Problem with zgeproj file encoding

I should update ZGE so it uses utf-8 mode by default to avoid these issues.
by VilleK
Fri Oct 17, 2025 12:31 pm
Forum: General discussion
Topic: Problem with zgeproj file encoding
Replies: 5
Views: 916

Re: Problem with zgeproj file encoding

But I made the mistake of saving my project from ZGE, so now all the éèù... characters are permanently broken. This time, they’ve all been replaced by "?", so I can’t even use search and replace to restore what I had. Always a good idea to keep .zgeproj files in source control so you can ...
by VilleK
Thu Oct 16, 2025 7:44 am
Forum: General discussion
Topic: Forum problem
Replies: 2
Views: 4308

Re: Forum problem

Kjell alerted me that there have been very large number of guest users on this forum recently. This is most likely what have caused the server problems. Some kind of bot-network attack. If this continues then we may need to configure the forum to only show content for registered users. Skärmklipp.PNG
by VilleK
Tue Sep 30, 2025 12:43 pm
Forum: General discussion
Topic: Forum problem
Replies: 2
Views: 4308

Forum problem

The forum went down and I'm still not sure what caused it. I contacted server support but they were not very helpful. Now I have restored a backup from one week ago. Let's hope it works now.
by VilleK
Tue Jul 08, 2025 2:47 pm
Forum: Feature requests
Topic: Edit XML with an external editor
Replies: 16
Views: 1829275

Re: Edit XML with an external editor

And while I'm at it, is there a reason to use "/" instead of "-" for the command line parameters? Is that a Pascal thing? I can't think of another program using "/" for command line parameters. The "/" format is from the DOS days. Nowadays the Linux way of us...
by VilleK
Thu Jul 03, 2025 8:46 am
Forum: General discussion
Topic: Google Play New problem : 64bits
Replies: 291
Views: 380609

Re: Google Play New problem : 64bits

A relieve to hear because I felt that we would probably never solve this completely :). I've said this before but you should have lots of credit for not giving up on getting to the bottom of the problem and pushing me to investigate further. So the change is basically this: ZGE generates code at run...
by VilleK
Wed Jul 02, 2025 6:43 pm
Forum: General discussion
Topic: Google Play New problem : 64bits
Replies: 291
Views: 380609

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: 90
Views: 433892

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: 291
Views: 380609

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: 291
Views: 380609

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: 291
Views: 380609

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: 6
Views: 484058

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

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

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

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