Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
New 'Megacool' plugin - how to use it? — Gideros Forum

New 'Megacool' plugin - how to use it?

Hey guys!

I'm testing new awesome Megacool plugin.
Just one little question - what should I insert into "URL scheme" field? (in plugin settings, and in Megacool.com dashboard)
It can be any string I want? (like "MY_TEST_URL_SCHEME2")
(I didn't fully understand the concept from google's docs)
Thx!


> Newcomers roadmap: from where to start learning Gideros
"What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
“The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)

Comments

  • Currently I have no idea. Don't forget this is an early version. We spotted a problem if the screen resizes somehow. I think @hgy29 may have a solution for this though.

    There should also be a way for the user to preview the gif before sharing it. So we need to add that.

    But you are right - the plugin is awesome!

    Likes: Apollo14

    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
    +1 -1 (+1 / -0 )Share on Facebook
  • olegoleg Member
    edited October 2018


    image.png
    711 x 621 - 80K
    111.PNG
    290 x 217 - 11K
    my games:
    https://play.google.com/store/apps/developer?id=razorback456
    мій блог по гідерос https://simartinfo.blogspot.com
    Слава Україні!
  • Okay it seems that it can be any string, like "WHATEVER_TEST_SCHEME"
    I've sent test shares via WhatsApp, it works perfectly well.

    Just one issue - I can't change sharing text.
    Guys, does this call work for you?
    Megacool.setSharingText("Testing share text")
    --main.lua:26: attempt to call field 'setSharingText' (a nil value)
    > Newcomers roadmap: from where to start learning Gideros
    "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
    “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
  • I added that after release, if you look at the wiki, the version of gideros it will be in is the next one. ( Available since: Gideros 2018.10.1 )

    I think @hgy29 is looking at getting it to restart megacool if the resolution changes which is an issue we have recently discovered and reported to them. We figured out a fix and they said it should work, but we have yet to add it.

    The resolution can change if you change from portrait to landscape, samsung devices can also change the screen size whilst the game is running. It should also reset if you awake from a suspend event.
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
    +1 -1 (+2 / -0 )Share on Facebook
  • I'm very interested to get this working but my custom compiled android player freezes on startup when I use an APK that includes the Megacool plugin (exported with Gideros Studio 2018.12).

    Interestingly, my dashboard on megacool.co says they have received some sessions, so something is happening (though they say they haven't seen any universal links).

    The android gideros player actually starts up on my device, and gideros studio recognizes it, but when I press play in gideros studio, resources are listed as being loaded, but then nothing actually displays in the android gideros player.

    (If I remove the megacool plugin from my gideros studio project and re-export and build another gideros player APK in android studio, the resulting android gidederos player successfully loads my game.)

    Thanks in advance for any suggestions or ideas on how to fix this or debug it further!


  • It could be that the megacool plugin is in an 'inbetween' state because of waiting for them to update their system for supporting screen size changes.

    Likes: hotbuttered

    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
    +1 -1 (+1 / -0 )Share on Facebook
  • Apollo14Apollo14 Member
    edited December 2018
    Hey guys!

    Did somebody test Megacool in 2018.12?
    Looks like it's broken
    . :/
    After calling ''Megacool.share()', native window "Share GIF" is shown.
    When we choose 'Whatsapp', black screen appears, looks like device is totally stuck.
    Then after huge delay Whatsapp opens, and we can't share gif, we're getting error 'file format not supported'.

    When I tested old version of plugin in 2018.10, I did share through Whatsapp without problems and delays.
    local sub,lower=string.sub,string.lower
     
    if lower(sub(Shader:getProperties().version,1,11))=="opengl es 3" then enhancedGfx=true end
    if enhancedGfx then pcall(function() Megacool=require "Megacool" end) end
    if Megacool then print("Megacool started") else print("Megacool not started") end
     
    Megacool.startRecording()
     
    local timerDelayed = Timer.delayedCall(100, function()
    	Megacool.stopRecording()
    	Megacool.setSharingText("Privet! Eto test!")
    	Megacool.share()
    end)
    > Newcomers roadmap: from where to start learning Gideros
    "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
    “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
  • Yes, it's in a tween state - we are waiting for an update from Megacool to do with screen resize and return from a sleep.

    Likes: Apollo14

    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
    +1 -1 (+1 / -0 )Share on Facebook
  • Also, the delay between stopRecording and share is important apparently - you need to leave enough time for it to create the gif to see the animation. This delay appears to have grown from megacool 3.3.6 and 3.3.7 - I waited a few frames and it was ok for me, but that may depend on the actual screen pixels and how fast they compress.

    Likes: Apollo14

    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
    +1 -1 (+1 / -0 )Share on Facebook
  • Apollo14Apollo14 Member
    edited December 2018
    uh really I forgot about compression (I've added info about it to wiki page)
    but anyways it doesn't work after I left 5sec delay after recording stopped

    Did they commit this bug in the latest 3.3.7 sdk?
    Maybe we can stick to previous bug-free version?
    https://docs.megacool.co/changes
    > Newcomers roadmap: from where to start learning Gideros
    "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
    “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
  • If you change the 3.3.7 to 3.3.6 in the gplugin file then try again it might work as before - please let me know. If there is a difference then it's not us and you should let the megacool people know via their website too.

    Likes: Apollo14

    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
    +1 -1 (+1 / -0 )Share on Facebook
  • Apollo14Apollo14 Member
    edited December 2018

    If you change the 3.3.7 to 3.3.6 in the gplugin file then try again it might work as before - please let me know. If there is a difference then it's not us and you should let the megacool people know via their website too.

    I've rebuilt apk with old 3.3.6 megacool plugin, the same problem is still there.
    It seems that issue happens inside our plugin somewhere.
    > Newcomers roadmap: from where to start learning Gideros
    "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
    “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
  • Try 3.3.5 - just in case the version of gideros you had was older.
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • Try 3.3.5 - just in case the version of gideros you had was older.

    now I've tried 3.3.5, still the same problem on Gideros side :s
    > Newcomers roadmap: from where to start learning Gideros
    "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
    “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
  • Must be us then or something they do server side? @hgy29 - any ideas?
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • hgy29hgy29 Maintainer
    Yes, just looked at the changes we made while waiting for fix from Megacool team about resize events: https://github.com/gideros/gideros/commit/347c9458b3d1293557cda008825fa3d989a6f112#diff-66d88002cbea8a50310207d555faccaa

    It it appears I screwed it up somehow, this code can't work at all. I'll push a fix to github and link it here, for those who want to try to fix their plugin locally
    +1 -1 (+2 / -0 )Share on Facebook
  • @hgy29 cool!
    p. s. btw few days ago I've added pull request to 'easing.lua', can you check it?
    (replaced default Lua math stuff with Gideros' faster ^ operators)

    Likes: SinisterSoft

    > Newcomers roadmap: from where to start learning Gideros
    "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
    “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
    +1 -1 (+1 / -0 )Share on Facebook
  • Apollo14Apollo14 Member
    edited December 2018
    hgy29 said:
    I've recompiled apk with plugin fix, it works now! (I've tested Facebook/Gmail/Whatsapp sharing)
    Thanks @hgy29 ! You're Mega Cool! o:)

    BTW did somebody already test 'Event.SENT_SHARE_OPENED'? (should I promise users reward for sharing? they won't get disappointed?)
    How does megacool webserver come to know if invited friend installed app? They receive callback from GooglePlay?
    > Newcomers roadmap: from where to start learning Gideros
    "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
    “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
  • SinisterSoftSinisterSoft Maintainer
    edited December 2018
    I think it's a link that's passed to your app, not sure though.
    (or some tag that's send to megacool, that is checked against on running?)

    I haven't tested it though - can you let us know the results?
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • sure, I'll definitely test referal installations some time later

    Likes: SinisterSoft

    > Newcomers roadmap: from where to start learning Gideros
    "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
    “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
    +1 -1 (+1 / -0 )Share on Facebook
  • hotbutteredhotbuttered Member
    edited February 2019
    Hey guys, I'm getting further with Megacool in Gideros 2019.1 but I can never get a GIF created. The share menu comes up, and e.g. I can select Email, and there's the share text and a megacool link in the message, but no GIF. There are also no GIFs showing up in my Dashboard on megacool.co.

    I'm using the code below and I've tried different delays. Any ideas?
    Megacool.startRecording()

    local timerDelayed = Timer.delayedCall(500, function()
    Megacool.stopRecording()
    end)

    local timerDelayed = Timer.delayedCall(5000, function()
    Megacool.setSharingText("Check this out!")
    Megacool.share()
    end)
Sign In or Register to comment.