Search found 2151 matches

by VilleK
Tue May 04, 2021 1:54 pm
Forum: Bug reports
Topic: One in two BitmapFont lose transparency on Android
Replies: 14
Views: 123

Re: One in two BitmapFont lose transparency on Android

That part is Android only anyway.
by VilleK
Tue May 04, 2021 12:55 pm
Forum: Bug reports
Topic: One in two BitmapFont lose transparency on Android
Replies: 14
Views: 123

Re: One in two BitmapFont lose transparency on Android

Ats wrote:
Tue May 04, 2021 12:11 pm
With this change, the fonts appears correctly on Android :wink:
Good, but the code looks correct so this could be a bug/oddity in Android GL-driver.

I don't want to commit this change just yet, please keep trying with it commented out for now.
by VilleK
Tue May 04, 2021 10:54 am
Forum: Bug reports
Topic: One in two BitmapFont lose transparency on Android
Replies: 14
Views: 123

Re: One in two BitmapFont lose transparency on Android

I also tried to call the font material between two RenderText. Are you sure it doesn't help to have the UseMaterial before each RenderText? It could be a problem with the glPush/Pop routines that are emulated in ZOpenGL because they are missing in GLES. You could try commenting out this block in ZO...
by VilleK
Mon May 03, 2021 8:04 am
Forum: Bug reports
Topic: [FIXED] Mouse cursor isn't showing up on Linux
Replies: 5
Views: 139

Re: Mouse cursor isn't showing up on Linux

Maybe change it like this:

Code: Select all

if Visible then 
  SDL_ShowCursor(1)
else
  SDL_ShowCursor(0);
by VilleK
Mon May 03, 2021 7:40 am
Forum: Bug reports
Topic: getSystemTime() gives different results on different devices
Replies: 12
Views: 291

Re: getSystemTime() gives different results on different devices

SysUtils is not used in "minimal" build. If you check the sources there are "$ifndef minimal" blocks around every use. One of the initial design goals of ZGameEditor was to have a super-tiny runtime and I will try to maintain that even if we currently have to inflate the binaries a bit to avoid over...
by VilleK
Sat May 01, 2021 12:21 pm
Forum: Bug reports
Topic: getSystemTime() gives different results on different devices
Replies: 12
Views: 291

Re: getSystemTime() gives different results on different devices

Sound like a good idea for SDL and Android targets at least. For Windows I'd like to use as little of the Delphi RTL as possible for size reasons.
by VilleK
Fri Apr 30, 2021 10:37 am
Forum: Bug reports
Topic: [FIXED] Retrieving something from an Array crash on Linux
Replies: 18
Views: 329

Re: [FIXED] Retrieving something from an Array crash on Linux

Good :). That was a tricky one. Thanks for the detailed examples.
by VilleK
Fri Apr 30, 2021 8:55 am
Forum: Bug reports
Topic: [FIXED] Retrieving something from an Array crash on Linux
Replies: 18
Views: 329

Re: Retrieving something from an Array crash on Linux

Ok I have an idea what the problem could be. It is related to 64-bit builds.

Please update sources and rebuild ZDesigner (player does not need rebuilding) and check if it helps.
by VilleK
Fri Apr 30, 2021 7:29 am
Forum: Bug reports
Topic: [FIXED] Retrieving something from an Array crash on Linux
Replies: 18
Views: 329

Re: Retrieving something from an Array crash on Linux

What about a even simpler test:

Code: Select all

string s="moon";

trace(s);
by VilleK
Thu Apr 29, 2021 3:28 pm
Forum: Bug reports
Topic: [FIXED] Retrieving something from an Array crash on Linux
Replies: 18
Views: 329

Re: Retrieving something from an Array crash on Linux

Ats wrote:
Thu Apr 29, 2021 2:39 pm
So the fault is coming from line 2849 of ZExpressions.pas
Interesting. And what if you run the string array example instead, where does it crash?
by VilleK
Thu Apr 29, 2021 2:32 pm
Forum: Bug reports
Topic: [FIXED] Retrieving something from an Array crash on Linux
Replies: 18
Views: 329

Re: Retrieving something from an Array crash on Linux

Please try passing "-gl" option to Freepascal when building binary. That should hopefully make it display line number and source file when it shows the EAccessViolation: Access violation error.
by VilleK
Thu Apr 29, 2021 11:36 am
Forum: Bug reports
Topic: [FIXED] Retrieving something from an Array crash on Linux
Replies: 18
Views: 329

Re: Retrieving something from an Array crash on Linux

Please try this code on the crashing system and tell me what it outputs: <?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name="App" Caption="ZGameEditor application" FileVersion="2"> <OnLoaded> <ZExpression> <Expression> <![CDATA[model[1] arr; model m = createModel(Model); arr[0]=m; trace...
by VilleK
Thu Apr 29, 2021 9:52 am
Forum: Bug reports
Topic: [FIXED] Retrieving something from an Array crash on Linux
Replies: 18
Views: 329

Re: Retrieving something from an Array crash on Linux

I still can't figure it out. Do you have any way to try this on Linux 32-bit?
by VilleK
Thu Apr 29, 2021 7:40 am
Forum: Bug reports
Topic: [FIXED] Retrieving something from an Array crash on Linux
Replies: 18
Views: 329

Re: Retrieving something from an Array crash on Linux

Ats wrote:
Wed Apr 28, 2021 8:22 pm
But array of model crashes.
How did you test this exactly?
by VilleK
Wed Apr 28, 2021 1:00 pm
Forum: Bug reports
Topic: [FIXED] Retrieving something from an Array crash on Linux
Replies: 18
Views: 329

Re: Retrieving something from an Array crash on Linux

That is very strange. I don't have an explanation for this yet.

It could be something 64-bit specific but your example is working fine here on 64-bit windows.