Search found 622 matches

by Ats
Sun Apr 25, 2021 10:51 am
Forum: Bug reports
Topic: [FIXED] App.ScreenMode Use DesktopResolution only works on Windows
Replies: 7
Views: 9287

Re: App.ScreenMode Use DesktopResolution only works on Windows

As Kjell told me, it's not a bug, but a missing feature :wink: ZPlatform_SDL.inc if Width=-1 then begin //Todo: support "current desktop resolution" on sdl Width := 800; Height := 600; end; After a few readings regarding the detection of screen size on several different devices using SDL2,...
by Ats
Sun Apr 25, 2021 9:45 am
Forum: Bug reports
Topic: [FIXED] App.ScreenMode Use DesktopResolution only works on Windows
Replies: 7
Views: 9287

[FIXED] App.ScreenMode Use DesktopResolution only works on Windows

Here's the little ZGE project to test it: <?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name="App" Caption="test_viewport" FullScreen="255" ScreenMode="0" MouseVisible="255" FileVersion="2" AndroidPackageNam...
by Ats
Sat Apr 24, 2021 6:07 pm
Forum: General discussion
Topic: [FIXED] Simple var test, different results on Windows and Linux
Replies: 4
Views: 7513

Re: Simple var test, different results on Windows and Linux

Thanks. This is working perfectly now :D
by Ats
Fri Apr 23, 2021 9:01 pm
Forum: General discussion
Topic: [FIXED] Simple var test, different results on Windows and Linux
Replies: 4
Views: 7513

Re: Simple var test, different results on Windows and Linux

Even simpler test: <?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name="App" Caption="ZGameEditor application" FileVersion="2"> <OnLoaded> <ZLibrary HasInitializer="1"> <Source> <![CDATA[// int a = 0; int b = 1;]]> </Source> </Z...
by Ats
Fri Apr 23, 2021 4:45 pm
Forum: General discussion
Topic: [FIXED] Simple var test, different results on Windows and Linux
Replies: 4
Views: 7513

Re: Simple test, different results on Windows and Linux

I found where the problem is coming from:
It's working on Linux if variables IsClicked and WasCliked are set as Variable components instead of being declared in the ZLibrary.
Weird... :|

Edit:
I tried initiating both var in ZLibrary, but it's not working:
int IsClicked = 0;
int WasClicked = 0;
by Ats
Fri Apr 23, 2021 2:29 pm
Forum: General discussion
Topic: [FIXED] Simple var test, different results on Windows and Linux
Replies: 4
Views: 7513

[FIXED] Simple var test, different results on Windows and Linux

While trying to make Rado1's ZgeBullet examples to work, I've stumbled on a weird bug. So I stripped out the thing to make a simple test: <?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name="App" Caption="ZGameEditor application" FileVersion="...
by Ats
Fri Apr 23, 2021 11:11 am
Forum: General discussion
Topic: Keycode finder
Replies: 4
Views: 2564

Re: Keycode finder

Nice, it's working :D
On Linux, the arrow keys are:
left key: 60
right key: 62
up key: 94
down key: 95

Should I simply remove Windows numbers 37 to 40 and replace by Linux numbers in order to make it work on both Windows and Linux (and Android?), or is it better to test both series of numbers?
by Ats
Fri Apr 23, 2021 10:51 am
Forum: Extensions
Topic: SunVox for ZGE
Replies: 87
Views: 209116

Re: SunVox for ZGE

You're right, everything is working with Stdcall :D
Preview, Windows and linux !
by Ats
Fri Apr 23, 2021 9:30 am
Forum: Extensions
Topic: SunVox for ZGE
Replies: 87
Views: 209116

Re: SunVox for ZGE

Thanks :D Player.bin is working, but ZDesigner preview still crash and log: Hardware stack error after call to sv_init. Check argument count and sizes, and calling convention. Is there a bat file somewhere to compile Player.bin, or should I make mine, the same as linux? Or maybe it is Zzdc.exe that ...
by Ats
Thu Apr 22, 2021 6:52 pm
Forum: General discussion
Topic: Keycode finder
Replies: 4
Views: 2564

Re: Keycode finder

And it's crashing on linux too:
An unhandled exception occurred at $0000000000416ECB:
EAccessViolation: Access violation
$0000000000416ECB

It's coming from KeyPress component.
by Ats
Thu Apr 22, 2021 6:49 pm
Forum: General discussion
Topic: Keycode finder
Replies: 4
Views: 2564

Keycode finder

I made a quick tool to test the keys and display the code, so I can retrieve what are the arrow keycodes on linux. Funny thing, on Windows, the arrow keys gives two numbers per key: left key: 37 60 right key: 39 62 up key: 38 94 down key: 40 95 <?xml version="1.0" encoding="iso-8859-1...
by Ats
Thu Apr 22, 2021 5:36 pm
Forum: Extensions
Topic: SunVox for ZGE
Replies: 87
Views: 209116

Re: SunVox for ZGE

Sorry, but sunvox isn't working anymore on Windows... :? I'm on a Win10 x86_64 computer, and I don't know when it broke with the last updates as I was focused on Linux... Just in case, I tried with both versions of the dll: sunvox.dll 64 -> error dialog box with "sunvox" sunvox.dll 32 -> e...
by Ats
Thu Apr 22, 2021 4:11 pm
Forum: General discussion
Topic: linux 64bit binary?
Replies: 59
Views: 47747

Re: linux 64bit binary?

And now I'm running tests to see if everything is working on Linux 64. :arrow: For starters, simple RenderText doesn't show on linux. I think I saw that written somewhere for Android, but I didn't manage to find it. [SOLVED] :arrow: Jasper is crashing: Loading rom... done Loading game... done An unh...
by Ats
Thu Apr 22, 2021 3:06 pm
Forum: Extensions
Topic: 3D Physics with ZgeBullet
Replies: 104
Views: 275794

Re: 3D Physics with ZgeBullet

As ZgeBullet is my last problem before being able to run Omeganaut on linux (maybe), I'm back at experimenting. And after a lot of tries, I finally managed to get something: I had to link the compiled "so" files from bullet3, not the "o" files. gcc -Wall -fPIC -I ~/bullet3-3.09/s...
by Ats
Thu Apr 22, 2021 10:33 am
Forum: Feature requests
Topic: [FIXED] Add LINUX as a BuiltinConstants
Replies: 9
Views: 12317

Re: Add LINUX as a BuiltinConstants

Oh, I missed quite a few lines to change...

It works perfectly. Thanks.
Now we can compile the same project for Windows, Android and Linux without having to manually set the external library path for each builds :D