Could it be that you have googleplay plugin enabled too ? There are three plugins in which to set up google play services: gaming, googleplay (which should no longer be used), and ads (and firebase for those who have it). All these plugins must ask the same version of google services
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
local _backgroundcolor=0function colorPicker(x,y)ifnot rtColorPicker then rtColorPicker=RenderTarget.new(1,1)end
rtColorPicker:clear(_backgroundcolor)
rtColorPicker:draw(stage,-x,-y)local col=rtColorPicker:getPixel(0,0)return col
end
Hey guys! Something is wrong in my syntax, what can it be? (update: uh, the problem was in local scope, I just didn't understand it from console error log)
dialogText = TextField.new(Roboto_font, "")
dialogBox:addChild(dialog_BottomText)function sayDialogBottom(content)print"bottom dialog started"--function never startsfor i=1, #content do
Core.yield(0.03)
dialogText:setText(utf8.sub(content,1,i))endprint"bottom dialog ended"endlocal dialogBoxTween=GTween.new(dialog_Bottom, 1, {y =530}, {delay =0, ease = easing.outBack, onComplete =function() Core.asyncCall(sayDialogBottom, "Hi there, how are you?")end})
after tween end, app crashes:
[string"local function _start_(fn,...) coroutine.yield() fn(...) end return _start_(...)"]:1: attempt to calllocal'fn'(a nil value)
stack traceback:
[string"local function _start_(fn,...) coroutine.yield() fn(...) end return _start_(...)"]:1: infunction<[string"local function _start_(fn,...) coroutine.yield() fn(...) end return _start_(...)"]:1>(tail call): ?
> 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)
Thx! There's one more little issue with asyncCalls (I've attached .gproj with reproduced issue). For some reason picture that is supposed to be shown (from async function), is shown with big delay when we use non-english characters. Is it a bug or an inevitable issue?
ROBOTO_FONT @ \TTFont.new("Roboto-Regular.ttf",24)\
local dialogBox, dialogText, delayedPic
dialogBox=Bitmap.new(Texture.new("dialogBox.png",true))
dialogBox:setPosition(20,40)
stage:addChild(dialogBox)
dialogText=TextField.new(ROBOTO_FONT, "")
dialogText:setPosition(30,45)
dialogBox:addChild(dialogText)
delayedPic=Bitmap.new(Texture.new("calendar.png",true))
delayedPic:setPosition(330,100)
stage:addChild(delayedPic)
delayedPic:setVisible(false)localfunction sayText(content)for i=1, #content do--if i==100 then delayedPic:setVisible(true) end --though we expect it to be shown earlier, there's significant delay, it shows after all text is finished
Core.yield(0.03)
dialogText:setText(utf8.sub(content,1,i))end
delayedPic:setVisible(true)--it is shown after significant delayend--[[ When we use english characters, pic appears without delay:
Core.asyncCall(sayText,"Hello there,\nI'm testing delay.\nPic should appear\nimmediately after\ntext finished.")
]]-- With non-english characters there's delay:
Core.asyncCall(sayText,"Привет,\nтестируем задержку\nкартинка появится\nсразу после\nокончания диалога.")
> 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)
Not sure if that's related, but you should use utf8.len(content) instead of #content in your sayText function
Wow! Now it works perfectly well, many thanks @hgy29 ! What was happening there in the background, that created a delay?
> 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)
You were iterating over a lot more chars than your text was actually containing, adding several times your per-char delay in the end while not showing more characters...
I don't know if anybody else agrees here, but I think concentrating all of these useful questions and answers in this thread reduces visibility/searchability for future users.
I personally would prefer to see different questions in their own threads, so that answers and additional information is more visible. Plus concentrating everything in one thread leaves older threads on the front page, giving a 'dusty' look to the forum.
I don't know if anybody else agrees here, but I think concentrating all of these useful questions and answers in this thread reduces visibility/searchability for future users.
I personally would prefer to see different questions in their own threads, so that answers and additional information is more visible. Plus concentrating everything in one thread leaves older threads on the front page, giving a 'dusty' look to the forum.
I agree, let's create separate topics when it's worth it.
> 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)
It seems that 'application:canOpenUrl("https://google.com")' always returns 'true', no matter what, even if I turn off internet connection
does this call check only app permissions, if app is allowed to open any urls? or there's a bug?
> 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)
guys, I'm thinking about what project resolution is optimal for both low-end and high-end devices? 480*854px looks sharp on 1080p smartphone screen, I guess it's optimal for most of the players (nowadays 720p&1080p are the most common)
but when gideros app runs on low-end device that has lower resolution than 480p, there will be no problems? (I'm setting scale mode to 'letterbox')
> 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)
@hgy29 is there a way to try older Spine runtime version in SpineC plugin? (maybe v3.5 or v3.3 instead of current v3.6-3.7)
> 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)
> 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 have a stupid question about lua why does modulus start from 0 ? if they wanted more "humanly" language and moved arrays to start from 1 whats the point of modulus starting from 0 ?
I know it is possible to force array to start from 0 by arr[0] = ... and recently I found that this is possible too:
arr={[0]="15",
"16",
"17"}
so I always use it to avoid conflicts since I came from C and I had so much trouble calculating correct value with modulus using arrays
I personally would rather things like arrays would start from 0, but it's a little late to change that with Lua now.
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
2) How to look what's inside 'application:vibrate()' function? Where is it hidden in the engine core?
Many thanks!
> 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
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: antix, keszegh
https://deluxepixel.com
Likes: hgy29, Apollo14, SinisterSoft
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
(update: uh, the problem was in local scope, I just didn't understand it from console error log)
"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)
There's one more little issue with asyncCalls (I've attached .gproj with reproduced issue).
For some reason picture that is supposed to be shown (from async function), is shown with big delay when we use non-english characters.
Is it a bug or an inevitable issue?
"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)
Likes: Apollo14, talis, MoKaLux
What was happening there in the background, that created a delay?
"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)
Likes: Apollo14, antix, MoKaLux
I personally would prefer to see different questions in their own threads, so that answers and additional information is more visible. Plus concentrating everything in one thread leaves older threads on the front page, giving a 'dusty' look to the forum.
Likes: keszegh, SinisterSoft
Likes: PaulR
"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)
It seems that 'application:canOpenUrl("https://google.com")'
always returns 'true', no matter what, even if I turn off internet connection
does this call check only app permissions, if app is allowed to open any urls? or there's a bug?
"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)
Likes: Apollo14
480*854px looks sharp on 1080p smartphone screen, I guess it's optimal for most of the players (nowadays 720p&1080p are the most common)
but when gideros app runs on low-end device that has lower resolution than 480p, there will be no problems? (I'm setting scale mode to 'letterbox')
"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)
Likes: Apollo14
"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)
Likes: Apollo14
Simple bones work there, but IK doesn't work.
I see there's old 3.5 branch on github: https://github.com/EsotericSoftware/spine-runtimes/tree/3.5/spine-c
Can I compile plugin with it somehow?
"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)
Just adjust the fetched spine runtime sources according to your needs.
why does modulus start from 0 ?
if they wanted more "humanly" language and moved arrays to start from 1 whats the point of modulus starting from 0 ?
I know it is possible to force array to start from 0 by arr[0] = ... and recently I found that this is possible too:
and I had so much trouble calculating correct value with modulus using arrays
Likes: SinisterSoft
cur = 13 -> 1
https://deluxepixel.com
(arr[cur]-1)% mod+1
i guess.
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Two quick questions:
1) How does garbagecollector work?
Good old 'button' class has 7 event listeners. They don't prevent buttons from being garbage collected? No need to remove them?
Many thanks!
"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)