defold / gd-sdk-defold

The repository containing the GameDistribution SDK for Defold games. This allows you to display advertisements and other solutions available to games published within the GameDistribution network.
MIT License
0 stars 3 forks source link

I cannot get the event hook to work, console is filled with errors. #2

Closed jimokeane closed 5 months ago

jimokeane commented 5 months ago

I'm trying to get a game to the point of submitting to Game Distribution. I'm using their developer portal to test an uploaded build. Everything works EXCEPT for the event hook, so I never get the events that tell my game to pause / start or that a reward ad has completed.

I've tried Firefox, Edge and Chrome on Windows 10. I've event tried a very bare-bones build with just this amount of code in it. Ad plays, but I never see any console log messages from the listener (and yes, this is a debug web build).

function init(self)

    if gdsdk then
        gdsdk.set_listener(function(self, event, message)
            print(event, message)
            if event == gdsdk.SDK_GAME_PAUSE then
                -- pause your game
                print("pause ------------------")
            elseif event == gdsdk.SDK_GAME_START then
                -- resume your game
                print("start ------------------")
            elseif event == gdsdk.SDK_REWARDED_WATCH_COMPLETE then
                -- give reward to player (optional)
                print("reward playback complete ------------------")
            end
        end)

        timer.delay(1, false, 
        function() 
            gdsdk.show_rewarded_ad()
        end)
    end
end

Console has a lot of this error (gdsdk DEVELOPER_ERROR allocate is not defined) in it:

28Third-party cookie will be blocked. Learn more in the Issues tab.
dmloader.js:726 Running...
main.min.js:8 noMinijuegosSDK false
dmloader.js:726 
dmloader.js:723 INFO:DLIB: Log server started on port 0
dmloader.js:723 INFO:GRAPHICS: Installed graphics device 'ADAPTER_FAMILY_OPENGL'
dmloader.js:723 INFO:ENGINE: Defold Engine 1.8.1 (fd1ad4c)
VM710:389         Made with Defold            https://www.defold.com
dmloader.js:723 INFO:ENGINE: Loading data from: archive:game.dmanifest
dmloader.js:723 INFO:LIVEUPDATE: Liveupdate folder located at: /data/.26b856874331d7c7c1b375030cd78093623e3ffc
dmloader.js:723 INFO:LIVEUPDATE: Found no legacy liveupdate zip file references
dmloader.js:723 INFO:LIVEUPDATE: Found no legacy liveupdate index paths
VM710:4612  The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.
_dmDeviceJSOpen @ VM710:4612
$func4141 @ 00a8c862:0x1d09ba
$func4128 @ 00a8c862:0x1c964b
$Wh @ 00a8c862:0x1470a0
Module._main @ VM710:10012
callMain @ VM710:10182
_callMain @ dmloader.js:981
_preloadAndCallMain @ dmloader.js:970
(anonymous) @ dmloader.js:944
(anonymous) @ dmloader.js:875
doCallback @ VM710:2105
done @ VM710:2116
transaction.oncomplete @ VM710:1660
dmloader.js:723 INFO:ENGINE: Initialised sound device 'default'
main.min.js:8 {depth: {…}, top: {…}, partner: {…}}
main.min.js:8    GameDistribution.com HTML5 SDK | Version: 1.40.8   
main.min.js:8 [0.14s]   gdsdk    SDK_READY  Everything is ready.
main.min.js:8 [0.14s]   gdsdk    DEVELOPER_ERROR  allocate is not defined
main.min.js:8 noMinijuegosSDK true true false
main.min.js:8 zxcv exclude, isAllowedDomain true true
main.min.js:8  [Deprecation] Listener added for a 'DOMNodeInserted' mutation event. This event type is deprecated, and will be removed from this browser very soon. Usage of this event listener will cause performance issues today, and represents a large risk of future site breakage. Consider using MutationObserver instead. See https://chromestatus.com/feature/5083947249172480 for more information.
value @ main.min.js:8
(anonymous) @ main.min.js:8
Promise.finally (async)
e @ main.min.js:8
ST @ main.min.js:8
(anonymous) @ main.min.js:8
l @ main.min.js:8
(anonymous) @ main.min.js:8
(anonymous) @ main.min.js:8
P @ main.min.js:8
o @ main.min.js:8
Promise.then (async)
P @ main.min.js:8
o @ main.min.js:8
Promise.then (async)
P @ main.min.js:8
o @ main.min.js:8
(anonymous) @ main.min.js:8
(anonymous) @ main.min.js:8
create @ main.min.js:8
(anonymous) @ main.min.js:8
zT @ main.min.js:8
e @ main.min.js:8
(anonymous) @ main.min.js:8
(anonymous) @ main.min.js:8
(anonymous) @ main.min.js:8
1.buffer @ main.min.js:8
s @ main.min.js:8
(anonymous) @ main.min.js:8
5.@bygd/gd-sdk-pes/dist/default @ main.min.js:8
s @ main.min.js:8
r @ main.min.js:8
(anonymous) @ main.min.js:8
main.min.js:8 [GD-IS] Router not found for gd-loader-frame!
gamemonkey-sdk.js:334 [DataSending]
gamemonkey-sdk.js:78 sending: Event {name: 'pageview', data: {…}}
locus/:26 6/4/2024, 2:26:31 PM locus
prebid-idhb-v8.41.min.js:5 Prebid MESSAGE: DEBUG: Debug overrides enabled from session
gamemonkey-sdk.js:78 sending: Event {name: 'gameplay', data: {…}}
main.min.js:8 gd-adflow, before adInvoke 0 ima false
main.min.js:8 [1.147s]   gdsdk    AD_SDK_MANAGER_READY  AD SDK is ready
main.min.js:8 [1.147s]   gdsdk    DEVELOPER_ERROR  allocate is not defined
main.min.js:8 [1.153s]   gdsdk    AD_METADATA  Fired when an ads list is loaded.
main.min.js:8 [1.154s]   gdsdk    DEVELOPER_ERROR  allocate is not defined
main.min.js:8 [1.607s]   gdsdk    LOADED  video/mp4
main.min.js:8 [1.608s]   gdsdk    DEVELOPER_ERROR  allocate is not defined
main.min.js:8 [1.608s]   gdsdk    CONTENT_PAUSE_REQUESTED  Fired when content should be paused. This usually happens right before an ad is about to cover the content.
main.min.js:8 [1.609s]   gdsdk    DEVELOPER_ERROR  allocate is not defined
main.min.js:8 [1.609s]   gdsdk    SDK_GAME_PAUSE  New advertisements requested and loaded
main.min.js:8 [1.609s]   gdsdk    DEVELOPER_ERROR  allocate is not defined
main.min.js:8 gdsdk: eventname IMPRESSION false
main.min.js:8 [1.754s]   gdsdk    IMPRESSION  Fired when the impression URL has been pinged.
main.min.js:8 [1.755s]   gdsdk    DEVELOPER_ERROR  allocate is not defined
main.min.js:8 [1.757s]   gdsdk    STARTED  Fired when the ad starts playing.
main.min.js:8 [1.757s]   gdsdk    DEVELOPER_ERROR  allocate is not defined
headerlift.min.js?referer=revision.gamedistribution.com:2     Unable to assign video impression to a slot
N @ headerlift.min.js?referer=revision.gamedistribution.com:2
(anonymous) @ headerlift.min.js?referer=revision.gamedistribution.com:2
(anonymous) @ headerlift.min.js?referer=revision.gamedistribution.com:2
Qe @ headerlift.min.js?referer=revision.gamedistribution.com:2
tt @ headerlift.min.js?referer=revision.gamedistribution.com:2
i @ headerlift.min.js?referer=revision.gamedistribution.com:2
setTimeout (async)
nt @ headerlift.min.js?referer=revision.gamedistribution.com:2
publish @ headerlift.min.js?referer=revision.gamedistribution.com:2
Qi._loaded.Qi.onImaEvent @ headerlift.min.js?referer=revision.gamedistribution.com:2
value @ main.min.js:8
value @ main.min.js:8
Ku @ ima3.js:316
l.dispatchEvent @ ima3.js:314
xJ @ ima3.js:660
Z.Fb @ ima3.js:657
Ku @ ima3.js:316
l.dispatchEvent @ ima3.js:314
sG.D @ ima3.js:544
Gu @ ima3.js:313
b @ ima3.js:311
ima3.js:611  Unmuting failed and the element was paused instead because the user didn't interact with the document before.
l.setVolume @ ima3.js:611
l.setVolume @ ima3.js:669
value @ main.min.js:8
value @ main.min.js:8
Ku @ ima3.js:316
l.dispatchEvent @ ima3.js:314
xJ @ ima3.js:660
Z.Fb @ ima3.js:656
Ku @ ima3.js:316
l.dispatchEvent @ ima3.js:314
sG.D @ ima3.js:544
Gu @ ima3.js:313
b @ ima3.js:311
main.min.js:8 [4.387s]   gdsdk    FIRST_QUARTILE  Fired when the ad playhead crosses first quartile.
main.min.js:8 [4.387s]   gdsdk    DEVELOPER_ERROR  allocate is not defined
main.min.js:8 [4.393s]   gdsdk    VOLUME_CHANGED  Fired when the ad volume has changed.
main.min.js:8 [4.393s]   gdsdk    DEVELOPER_ERROR  allocate is not defined
main.min.js:8 [4.397s]   gdsdk    PAUSED  Fired when the ad is paused.
main.min.js:8 [4.397s]   gdsdk    DEVELOPER_ERROR  allocate is not defined
main.min.js:8 [6.444s]   gdsdk    RESUMED  Fired when the ad is resumed.
main.min.js:8 [6.444s]   gdsdk    DEVELOPER_ERROR  allocate is not defined
main.min.js:8 [9.107s]   gdsdk    MIDPOINT  Fired when the ad playhead crosses midpoint.
main.min.js:8 [9.107s]   gdsdk    DEVELOPER_ERROR  allocate is not defined
main.min.js:8 [10.159s]   gdsdk    SDK_ERROR  [GD-IS] No iSvcInstance found within 10 seconds
main.min.js:8 [10.159s]   gdsdk    DEVELOPER_ERROR  allocate is not defined
main.min.js:8  Uncaught (in promise) [GD-IS] No iSvcInstance found within 10 seconds
P @ main.min.js:8
i @ main.min.js:8
Promise.then (async)
P @ main.min.js:8
o @ main.min.js:8
(anonymous) @ main.min.js:8
(anonymous) @ main.min.js:8
fO @ main.min.js:8
lO @ main.min.js:8
(anonymous) @ main.min.js:8
l @ main.min.js:8
(anonymous) @ main.min.js:8
(anonymous) @ main.min.js:8
P @ main.min.js:8
o @ main.min.js:8
(anonymous) @ main.min.js:8
(anonymous) @ main.min.js:8
(anonymous) @ main.min.js:8
(anonymous) @ main.min.js:8
l @ main.min.js:8
(anonymous) @ main.min.js:8
(anonymous) @ main.min.js:8
P @ main.min.js:8
o @ main.min.js:8
(anonymous) @ main.min.js:8
(anonymous) @ main.min.js:8
he.value @ main.min.js:8
(anonymous) @ main.min.js:8
(anonymous) @ main.min.js:8
l @ main.min.js:8
(anonymous) @ main.min.js:8
(anonymous) @ main.min.js:8
P @ main.min.js:8
o @ main.min.js:8
Promise.then (async)
P @ main.min.js:8
o @ main.min.js:8
Promise.then (async)
P @ main.min.js:8
o @ main.min.js:8
(anonymous) @ main.min.js:8
(anonymous) @ main.min.js:8
FT @ main.min.js:8
(anonymous) @ main.min.js:8
invoke @ main.min.js:8
(anonymous) @ main.min.js:8
l @ main.min.js:8
(anonymous) @ main.min.js:8
(anonymous) @ main.min.js:8
P @ main.min.js:8
o @ main.min.js:8
(anonymous) @ main.min.js:8
(anonymous) @ main.min.js:8
XT.showAd @ main.min.js:8
_GameDistribution_PlatformShowRewardedAd @ VM710:614
$func4609 @ 00a8c862:0x204acf
$func1216 @ 00a8c862:0x5fcd6
$func1826 @ 00a8c862:0xbc223
$func797 @ 00a8c862:0x28a8d
$func2876 @ 00a8c862:0x14c4ec
invoke_vii @ VM710:10062
$func1215 @ 00a8c862:0x5f474
$func1839 @ 00a8c862:0xbd06c
$func915 @ 00a8c862:0x33af9
$func625 @ 00a8c862:0xeee3
$func1092 @ 00a8c862:0x51e1a
$func3037 @ 00a8c862:0x15af85
$func2956 @ 00a8c862:0x1540f4
$func1466 @ 00a8c862:0x8205a
$func4092 @ 00a8c862:0x1bf648
$func2269 @ 00a8c862:0x1113ff
$func4114 @ 00a8c862:0x1c4192
$func4129 @ 00a8c862:0x1d0104
browserIterationFunc @ VM710:8001
callUserCallback @ VM710:5073
runIter @ VM710:5143
Browser_mainLoop_runner @ VM710:5018
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
main.min.js:8 [11.495s]   gdsdk    THIRD_QUARTILE  Fired when the ad playhead crosses third quartile.
main.min.js:8 [11.496s]   gdsdk    DEVELOPER_ERROR  allocate is not defined
main.min.js:8 [13.881s]   gdsdk    SDK_REWARDED_WATCH_COMPLETE  
main.min.js:8 [13.882s]   gdsdk    DEVELOPER_ERROR  allocate is not defined
main.min.js:8 [13.882s]   gdsdk    COMPLETE  Fired when the ad completes playing.
main.min.js:8 [13.882s]   gdsdk    DEVELOPER_ERROR  allocate is not defined
main.min.js:8 gd-adflow, adapter-result-success 0 ima {message: 'Ad succeeded.', status: 'success', isPromoSuccess: false, skipForward: false, adPosition: 'rewarded', …} {bidder: 'adx', fail_reason: 'pdate-2'}
main.min.js:8 [13.882s]   gdsdk    SDK_GAME_START  Advertisement(s) are done. Start / resume the game.
main.min.js:8 [13.883s]   gdsdk    DEVELOPER_ERROR  allocate is not defined
VM710:615 showAd(AdType.Rewarded) resolved.
main.min.js:8 [13.893s]   gdsdk    CONTENT_RESUME_REQUESTED  Fired when content should be resumed. This usually happens when an ad finishes or collapses.
main.min.js:8 [13.893s]   gdsdk    DEVELOPER_ERROR  allocate is not defined
main.min.js:8 [13.894s]   gdsdk    ALL_ADS_COMPLETED  Fired when the ads manager is done playing all the ads.
main.min.js:8 [13.894s]   gdsdk    DEVELOPER_ERROR  allocate is not defined
main.min.js:8  Uncaught (in promise) [GD-IS] No iSvcInstance found within 10 seconds
P @ main.min.js:8
i @ main.min.js:8
Promise.then (async)
P @ main.min.js:8
o @ main.min.js:8
(anonymous) @ main.min.js:8
(anonymous) @ main.min.js:8
lO @ main.min.js:8
(anonymous) @ main.min.js:8
l @ main.min.js:8
(anonymous) @ main.min.js:8
(anonymous) @ main.min.js:8
P @ main.min.js:8
o @ main.min.js:8
Promise.then (async)
P @ main.min.js:8
o @ main.min.js:8
(anonymous) @ main.min.js:8
(anonymous) @ main.min.js:8
he.value @ main.min.js:8
(anonymous) @ main.min.js:8
l @ main.min.js:8
(anonymous) @ main.min.js:8
(anonymous) @ main.min.js:8
P @ main.min.js:8
o @ main.min.js:8
Promise.then (async)
P @ main.min.js:8
o @ main.min.js:8
Promise.then (async)
P @ main.min.js:8
o @ main.min.js:8
(anonymous) @ main.min.js:8
(anonymous) @ main.min.js:8
(anonymous) @ main.min.js:8
(anonymous) @ main.min.js:8
l @ main.min.js:8
(anonymous) @ main.min.js:8
(anonymous) @ main.min.js:8
P @ main.min.js:8
o @ main.min.js:8
(anonymous) @ main.min.js:8
(anonymous) @ main.min.js:8
he.value @ main.min.js:8
(anonymous) @ main.min.js:8
(anonymous) @ main.min.js:8
l @ main.min.js:8
(anonymous) @ main.min.js:8
(anonymous) @ main.min.js:8
P @ main.min.js:8
o @ main.min.js:8
Promise.then (async)
P @ main.min.js:8
o @ main.min.js:8
Promise.then (async)
P @ main.min.js:8
o @ main.min.js:8
(anonymous) @ main.min.js:8
(anonymous) @ main.min.js:8
FT @ main.min.js:8
(anonymous) @ main.min.js:8
invoke @ main.min.js:8
(anonymous) @ main.min.js:8
l @ main.min.js:8
(anonymous) @ main.min.js:8
(anonymous) @ main.min.js:8
P @ main.min.js:8
o @ main.min.js:8
(anonymous) @ main.min.js:8
(anonymous) @ main.min.js:8
XT.showAd @ main.min.js:8
_GameDistribution_PlatformShowRewardedAd @ VM710:614
$func4609 @ 00a8c862:0x204acf
$func1216 @ 00a8c862:0x5fcd6
$func1826 @ 00a8c862:0xbc223
$func797 @ 00a8c862:0x28a8d
$func2876 @ 00a8c862:0x14c4ec
invoke_vii @ VM710:10062
$func1215 @ 00a8c862:0x5f474
$func1839 @ 00a8c862:0xbd06c
$func915 @ 00a8c862:0x33af9
$func625 @ 00a8c862:0xeee3
$func1092 @ 00a8c862:0x51e1a
$func3037 @ 00a8c862:0x15af85
$func2956 @ 00a8c862:0x1540f4
$func1466 @ 00a8c862:0x8205a
$func4092 @ 00a8c862:0x1bf648
$func2269 @ 00a8c862:0x1113ff
$func4114 @ 00a8c862:0x1c4192
$func4129 @ 00a8c862:0x1d0104
browserIterationFunc @ VM710:8001
callUserCallback @ VM710:5073
runIter @ VM710:5143
Browser_mainLoop_runner @ VM710:5018
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
requestAnimationFrame (async)
(anonymous) @ VM710:5387
requestAnimationFrame @ VM710:5379
Browser_mainLoop_scheduler_rAF @ VM710:4937
Browser_mainLoop_runner @ VM710:5021
main.min.js:8 [31.76s]   gdsdk    SDK_REWARDED_WATCH_COMPLETE  
main.min.js:8 [31.76s]   gdsdk    DEVELOPER_ERROR  allocate is not defined
ekharkunov commented 5 months ago

Hi @jimokeane ! Please recheck the version of extension that you currently use. These issue was fixed here https://github.com/defold/gd-sdk-defold/pull/1. And also make sure that you use latest extension with Defold 1.8.0+. Otherwise you need older version of extension.

jimokeane commented 5 months ago

I've tried both the latest as per readme: https://github.com/GameDistribution/gd-defold/archive/main.zip or a particular version https://github.com/GameDistribution/gd-defold/archive/refs/tags/1.2.0.zip

Both do the same thing. I'm working with the latest build of Defold.

britzl commented 5 months ago

gdsdk DEVELOPER_ERROR allocate is not defined

This really seems to indicate that you are not using the latest version. As you can see from this commit the allocate() call was changed to stringToUTF8OnStack():

https://github.com/defold/gd-sdk-defold/commit/0b587276b7514e7e4d8e405c9eee912a61a04c0f#diff-e21fa538acf45b06463bffd0d67a8a69e7182dbc135f396808a373ad3afa1a5c

britzl commented 5 months ago

Oooooooh, hold on, I see what's going on now. We started work on this extension in this repository, and then at some point four years ago it was "moved" to the official GameDistribution org on GitHub:

https://github.com/GameDistribution/gd-defold

The defold/gd-sdk-defold repo should be archived and the fixes moved to the GameDistribution/gd-defold repo. I'll make sure this happens....

britzl commented 5 months ago

PR with fix to the correct repo: https://github.com/GameDistribution/gd-defold/pull/4