Search found 609 matches

by Ats
Thu Apr 29, 2021 1:31 pm
Forum: Bug reports
Topic: [FIXED] Retrieving something from an Array crash on Linux
Replies: 18
Views: 16663

Re: Retrieving something from an Array crash on Linux

Here's the result on linux x86_64:

Code: Select all

1506279808
1506279808
An unhandled exception occurred at $000000000042691D:
EAccessViolation: Access violation
  $000000000042691D
by Ats
Thu Apr 29, 2021 10:40 am
Forum: Bug reports
Topic: [FIXED] Retrieving something from an Array crash on Linux
Replies: 18
Views: 16663

Re: Retrieving something from an Array crash on Linux

I have the old i386 ready. It's working on it.

I can also test it on raspberry by flashing a new 32bits OS on a card, but I'll do that after lunch, as I need to setup everything.

(And I'll test on the same rasp with the 64bits OS too)
by Ats
Thu Apr 29, 2021 9:09 am
Forum: Bug reports
Topic: [FIXED] Retrieving something from an Array crash on Linux
Replies: 18
Views: 16663

Re: Retrieving something from an Array crash on Linux

<?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name="App" Caption="ZGameEditor application" FileVersion="2"> <OnLoaded> <ZExpression> <Expression> <![CDATA[// ArrayFloat[0]= 0.123; ArrayFloat[1]= 0.456; ArrayInt[0]= 0; ArrayInt[1]= 1; Ar...
by Ats
Wed Apr 28, 2021 8:22 pm
Forum: Bug reports
Topic: [FIXED] Retrieving something from an Array crash on Linux
Replies: 18
Views: 16663

Re: Retrieving something from an Array crash on Linux

Array of float, byte and vec works too.
But array of model crashes.

I didn't try xptr and mat4.
by Ats
Wed Apr 28, 2021 1:46 pm
Forum: Bug reports
Topic: getSystemTime() gives different results on different devices
Replies: 12
Views: 12761

Re: getSystemTime() gives different results on different devices

I don't think there's something on SDL to retrieve a timestamp. The closest thing would be SDL_GetTicks , which isn't awesome compared to the uses of Unix timestamp (ex: a daily event...) Doesn't Pascal have everything needed to handle Timestamp? https://www.freepascal.org/docs-html/rtl/sysutils/dat...
by Ats
Wed Apr 28, 2021 11:00 am
Forum: Bug reports
Topic: [FIXED] Retrieving something from an Array crash on Linux
Replies: 18
Views: 16663

Re: Retrieving something from an Array crash on Linux

It works with array full of int, but not with arrays full of strings: <?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name="App" Caption="ZGameEditor application" FileVersion="2"> <OnLoaded> <ZExpression> <Expression> <![CDATA[// Numbers[0...
by Ats
Wed Apr 28, 2021 10:54 am
Forum: Bug reports
Topic: [FIXED] Retrieving something from an Array crash on Linux
Replies: 18
Views: 16663

[FIXED] Retrieving something from an Array crash on Linux

I made a very simple test. <?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name="App" Caption="ZGameEditor application" FileVersion="2"> <OnLoaded> <ZExpression> <Expression> <![CDATA[// Names[0]="MOON"; Names[1]="PLANET&quo...
by Ats
Wed Apr 28, 2021 9:23 am
Forum: Bug reports
Topic: getSystemTime() gives different results on different devices
Replies: 12
Views: 12761

getSystemTime() gives different results on different devices

It's roughly 11:20 in France. Here's what getSystemTime() returns on different systems:

Windows: 40809
It's the number of seconds since midnight.

Linux: 0
This one doesn't work at all...

Android: 1619601608
This one is an epoch timestamp, which is the best of the three.
by Ats
Tue Apr 27, 2021 6:09 pm
Forum: Bug reports
Topic: [FIXED] Mouse cursor isn't showing up on Linux
Replies: 5
Views: 7878

[FIXED] Mouse cursor isn't showing up on Linux

I hope this is the last remaining bug (or missing feature?) for a perfect Linux build of ZGE projects: the mouse cursor doesn't show up.
I already tried to play with option App.MouseVisible.

Maybe it is something related to SDL2? I'm going to dig that later.
by Ats
Tue Apr 27, 2021 5:55 pm
Forum: Off-topic
Topic: Making a linux shared library for ZGE
Replies: 6
Views: 8986

Re: Making a linux shared library for ZGE

:twisted: :twisted: :twisted: :twisted: :twisted: The compiled lib was working all along... In fact my ZGE test got it's ZExternalLibrary / CallingConvention back to Cdecl at some point... What a waste of time :roll: I'm going to clean up everything and make a simple tutorial to complete Rado1 build...
by Ats
Tue Apr 27, 2021 5:03 pm
Forum: Off-topic
Topic: Making a linux shared library for ZGE
Replies: 6
Views: 8986

Re: Making a linux shared library for ZGE

I managed to find some good intel in the Android.mk file included in ZgeBullet project : https://github.com/Rado-1/ZgeBullet/blob/master/android/jni/Android.mk :arrow: bullet3 version used by ZgeBullet is number 2.85.1 Rado1 build instructions are outdated and compiling ZgeBullet with old bullet3-2....
by Ats
Tue Apr 27, 2021 11:49 am
Forum: Off-topic
Topic: Making a linux shared library for ZGE
Replies: 6
Views: 8986

Re: Making a linux shared library for ZGE

Back to ZgeBullet shared library. Now I know how to check what is linked in a shared library: readelf -s ZgeBullet.so | grep FILE So I tried adding every .o files from bullet3 plus ZgeBullet.o during the linking with: ALL_O_FILES=$(find ~/bullet3-3.09/build_cmake/src/ -type f -name "*.o") ...
by Ats
Tue Apr 27, 2021 10:33 am
Forum: Off-topic
Topic: Making a linux shared library for ZGE
Replies: 6
Views: 8986

Re: Making a linux shared library for ZGE

Ok, writing everything down made me realize what was the problem. I needed to compile the extlib with g++ (or c++), not gcc. g++ -Wall -fPIC -c libs/extlib.c -o libs/extlib.o gcc -Wall -fPIC -I ./libs -c mylib.cpp -o mylib.o gcc -shared -o mylib.so libs/extlib.o mylib.o (it's even working without th...
by Ats
Tue Apr 27, 2021 10:20 am
Forum: Off-topic
Topic: Making a linux shared library for ZGE
Replies: 6
Views: 8986

Making a linux shared library for ZGE

I split up from the original topic 3D Physics with ZgeBullet because it's another problem that prevents me to run ZgeBullet on linux and has nothing to do with it. In order to discover where the building/linking of ZgeBullet is having a problem, I started by creating a simple cpp shared library from...
by Ats
Mon Apr 26, 2021 1:12 pm
Forum: Bug reports
Topic: [FIXED] App.ScreenMode Use DesktopResolution only works on Windows
Replies: 7
Views: 9112

Re: App.ScreenMode Use DesktopResolution only works on Windows

You're right. Get Viewport size works on OnUpdate on Android :D I need that to resize the background correctly, to optimize the deletion of objects out of the camera and to place virtual gamepad correctly on the screen. I'll initialize the screen size on the OnStart of the first state loaded. So it'...