intersect crash bug in community ed
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
intersect crash bug in community ed
Not sure if anyone has noticed or posted on this, but it appears the intersect function is broken in the LiveCode community edition 6.0
A simple collision detection script that works fine in the commercial 5.5.3 version but crashes the whole CE application.
Is there somewhere to check on known bugs and an estimate of when they may be fixed in a subsequent dot release?
Cheers
Paul
A simple collision detection script that works fine in the commercial 5.5.3 version but crashes the whole CE application.
Is there somewhere to check on known bugs and an estimate of when they may be fixed in a subsequent dot release?
Cheers
Paul
Re: intersect crash bug in community ed
Hi Paul,
I tested intersect() with Lc 6.0.0 RC 7 without mistake in IDE and standalone
Best regards
Jean-Marc
I tested intersect() with Lc 6.0.0 RC 7 without mistake in IDE and standalone
Best regards
Jean-Marc
https://alternatic.ch
Re: intersect crash bug in community ed
Interesting - mind posting the code you tested given the many variations intersect can have?
The code I was using is below and its called from within an updateScreen game loop. Its from the Game Academy tutorial:
As I said the code works fine in 5.5.3 but crashes the whole program running in 6.0.
The code I was using is below and its called from within an updateScreen game loop. Its from the Game Academy tutorial:
Code: Select all
on crash
repeat with x = 1 to 4
if intersect (button "rocket", button ("foreground" & x), "opaque pixels") then
answer "game over!"
stopGame
end if
end repeat
end crash
Re: intersect crash bug in community ed
Ok, a loop in a loop
You can try insert a short delay on the repeat loop. Maybe that avoid the mistake
http://quality.runrev.com/
Best regards
Jean-Marc
You can try insert a short delay on the repeat loop. Maybe that avoid the mistake
Code: Select all
wait 1 milliseconds with messages
Yes. the script work on 5.5. Here is the url for bugs report:Is there somewhere to check on known bugs
http://quality.runrev.com/
Best regards
Jean-Marc
https://alternatic.ch
Re: intersect crash bug in community ed
Using your code, no crash for me (other than the fact that "opaque pixels" isn't working correctly yet. (it is only doing a bounds check)
Is it possible the problem is in stopgame? Also, when it finds a match it will stop game, but the loop continues for the full 4 iterations so you can have the answer called more than once (if there ismore than just 1 overlap) which would also cause stopgame to call more than once.
Might change it to
Not sure without more code (may post a non-working stack?) why it won't work for you in community. I didn't test it with the game loop, so that throws a few more possibilities in, but the specific piece of code you posted is working for me ok. Are you on windows? I'm on mac, so theres another differential to check.
Is it possible the problem is in stopgame? Also, when it finds a match it will stop game, but the loop continues for the full 4 iterations so you can have the answer called more than once (if there ismore than just 1 overlap) which would also cause stopgame to call more than once.
Might change it to
Code: Select all
answer "Game over!"
stopgame
exit repeat
Re: intersect crash bug in community ed
OK I uploaded the livecode file to skydrive but it seems I cannot post the url to it?
I also tried adding an exit repeat but it still crashes. Its perplexing that this works fine on my commercial version (trial) but crashes my community edition.
I'm on a PC running Windows 7 64bit if that makes any difference.
I also tried adding an exit repeat but it still crashes. Its perplexing that this works fine on my commercial version (trial) but crashes my community edition.
I'm on a PC running Windows 7 64bit if that makes any difference.
Re: intersect crash bug in community ed
Hi Paul,
I believe you can upload file once you posted 10 time
You can send it to "jmburnod" & "@" & "vtxnet" & dot &".ch"
I believe you can upload file once you posted 10 time
You can send it to "jmburnod" & "@" & "vtxnet" & dot &".ch"
https://alternatic.ch
Re: intersect crash bug in community ed
Based on other message threads it does seem the windows side of LC Community is having a few more issues. Since I can't test on windows I'll get outta the way!
Re: intersect crash bug in community ed
Hi Paul,
I tested you stack and it work with LC 6.0 Rc7.
No intersect probleme
However, i got an error at preOpenCard
sturgis...
Sorry the zip file of stack is too big for an upload
Best regards
Jean-Marc
I tested you stack and it work with LC 6.0 Rc7.
No intersect probleme
However, i got an error at preOpenCard
Code: Select all
on preOpenCard
-- set the acceleratedRendering of this card to true
-- jmb 170413
set the acceleratedRendering of this stack to true
end preOpenCard
Sorry the zip file of stack is too big for an upload
Best regards
Jean-Marc
https://alternatic.ch
Re: intersect crash bug in community ed
Thanks for doing the testing.
I have a few other windows machines I will install CE on and test to see what happens. I tried commenting out the preOpenCard section to see if that was the problem but it still crashed.
Again thanks for all the help.
I have a few other windows machines I will install CE on and test to see what happens. I tried commenting out the preOpenCard section to see if that was the problem but it still crashed.
Again thanks for all the help.
Re: intersect crash bug in community ed
Has an answer been found to this yet as I'm getting the same problem and it sort of limits progress through the Game Academy?
Re: intersect crash bug in community ed
Dear boodog,
Thank you for your request.
There was a known issue with the intersect function in the initial release of the LiveCode Community but this has since been resolved.
The bug report on the issue can be viewed here-
http://quality.runrev.com/show_bug.cgi?id=10828
I would recommend updating to the latest version of LiveCode and this should resolve the issue.
Kind Regards,
Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
-
Thank you for your request.
There was a known issue with the intersect function in the initial release of the LiveCode Community but this has since been resolved.
The bug report on the issue can be viewed here-
http://quality.runrev.com/show_bug.cgi?id=10828
I would recommend updating to the latest version of LiveCode and this should resolve the issue.
Kind Regards,
Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
-