Search found 1947 matches

by VilleK
Fri Dec 14, 2018 8:07 am
Forum: General discussion
Topic: ZGameEditor & Android Setting
Replies: 69
Views: 8635

Re: ZGameEditor & Android Setting

Ok, committed change to Github so that ClearColor.A is used (both in App and RenderTarget).

@Ats: After updating and rebuilding, make sure to set A value in your project. It can be done like this in OnLoaded:

Code: Select all

if(ANDROID)
  App.ClearColor.A=1;
by VilleK
Thu Dec 13, 2018 8:32 am
Forum: General discussion
Topic: ZGameEditor & Android Setting
Replies: 69
Views: 8635

Re: ZGameEditor & Android Setting

@Kjell: do you think I should change so that ZApplication use the alpha value of ClearColor?
by VilleK
Wed Dec 12, 2018 8:47 am
Forum: General discussion
Topic: ZGameEditor & Android Setting
Replies: 69
Views: 8635

Re: ZGameEditor & Android Setting

In ZPong, I see that BallMaterialTexture use "Generated" TexCoords, and I remember that Android (GL ES) does not support that. As for the white background, maybe try creating a project that animates App.ClearColor and see what happens? Something like "App.ClearColor.R=frac(App.Time*0.5);".
by VilleK
Tue Dec 11, 2018 7:14 pm
Forum: General discussion
Topic: ZGameEditor & Android Setting
Replies: 69
Views: 8635

Re: ZGameEditor & Android Setting

I tested your zpong apk here now on Samsung S9. The background and ball is full white while the textured bats look correct. Sound is correct too.

I have no guess so far why it would look like this.
by VilleK
Tue Dec 11, 2018 10:28 am
Forum: General discussion
Topic: ZGameEditor & Android Setting
Replies: 69
Views: 8635

Re: ZGameEditor & Android Setting

Ok but this is a step forward because now we at least has a binary that loads at API level 26, right?

Are all colors inverted or is it just the background color?
by VilleK
Tue Dec 11, 2018 8:04 am
Forum: General discussion
Topic: ZGameEditor & Android Setting
Replies: 69
Views: 8635

Re: ZGameEditor & Android Setting

For the fun, and because I'm still searching how to compile fpc trunk with fpc 3.0.4, I've compiled libzgeandroid.so using laztoapk. I'm not familiar with laztoapk. Does it use a later version of Fpc for Android somehow? Do you get correct visuals with ZPong? It might be worth to keep trying to bui...
by VilleK
Mon Dec 10, 2018 7:31 pm
Forum: General discussion
Topic: ZGameEditor & Android Setting
Replies: 69
Views: 8635

Re: ZGameEditor & Android Setting

Ok we are back to the original problem. TEXTREL was what causes the existing file that I built not work. So I guess the version of Freepascal that you use is not new enough. Found this thread: https://forum.lazarus.freepascal.org/index.php?topic=37199.0 You must either find a newer installer for Fpc...
by VilleK
Mon Dec 10, 2018 12:47 pm
Forum: General discussion
Topic: ZGameEditor & Android Setting
Replies: 69
Views: 8635

Re: ZGameEditor & Android Setting

Try adding some more log messages in Zge.java, line 72:

Code: Select all

Log.i("ZgeAndroid", "Before load binary");
System.loadLibrary("zgeandroid");
Log.i("ZgeAndroid", "After load binary");
If it then shows "Before" but not "After" then we know it is when loading the lib it crashes.
by VilleK
Mon Dec 10, 2018 10:28 am
Forum: General discussion
Topic: ZGameEditor & Android Setting
Replies: 69
Views: 8635

Re: ZGameEditor & Android Setting

Did you also try with completely empty project?

Can you please attach an APK here too?
by VilleK
Sun Dec 09, 2018 8:40 pm
Forum: General discussion
Topic: ZGameEditor & Android Setting
Replies: 69
Views: 8635

Re: ZGameEditor & Android Setting

Great progress! I don't see any real clue in that debug log though. Have you tried with a minimal project? I would start with a completely empty project in ZGE just to check if that works first. You should be able to keep Zge.java in the base folder. Note that APK-files can be renamed to .zip and op...
by VilleK
Sat Dec 08, 2018 8:28 pm
Forum: General discussion
Topic: ZGameEditor & Android Setting
Replies: 69
Views: 8635

Re: ZGameEditor & Android Setting

Nice work so far, and indeed it can drive you crazy getting stuff like this to work. So I hope now you understand why I've been reluctant to do so.

Since it complains about FP-mode, try removing the "-CfVFPv2" parameter.
by VilleK
Fri Dec 07, 2018 7:45 pm
Forum: General discussion
Topic: ZGameEditor & Android Setting
Replies: 69
Views: 8635

Re: ZGameEditor & Android Setting

Those errors seems odd. Can you show the version info about the Freepascal you are using to compile?

And make sure you are using the same build parameters that I used. See the file "Build/android/m.bat" in the ZGE repo.
by VilleK
Fri Dec 07, 2018 12:20 pm
Forum: General discussion
Topic: ZGameEditor & Android Setting
Replies: 69
Views: 8635

Re: ZGameEditor & Android Setting

You need to setup Freepascal to compile for Android target.

I think this is the main page for instructions on how to do that:

http://wiki.freepascal.org/Android#Down ... or_Android
by VilleK
Fri Dec 07, 2018 12:16 pm
Forum: General discussion
Topic: Automatic report of State switch
Replies: 2
Views: 55

Re: Automatic report of State switch

I thought you could use the IDE functions for this but seems I forgot to add "get" functions. I now added "getStringProperty" function. Please download again and the try attached script.
by VilleK
Fri Dec 07, 2018 7:57 am
Forum: Your projects
Topic: G.S.64k
Replies: 110
Views: 22610

Re: G.S.64k

rrTea wrote:
Mon Dec 03, 2018 5:52 am
Anyway I made a new page for this here: https://q64.itch.io/gs64k (gs = guardian shooter)
Very nice comic strip on that page :)

Also really like the alternate bosses!