Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Kazetoon

Pages: 1 2 3 4 5 ... 14
31
Ask a Question / Beta test flash games
« on: August 16, 2014, 09:34:27 pm »
Is there a way to beta test a flash game without releasing it to the public so that I won't risk getting the game stolen and published elsewhere before uploading it to fgl.com? I fixed as many bugs as I can find but there is always room for improvement.

32
Fixed Bugs (3.x) / Re: Error while importing sound
« on: August 16, 2014, 11:39:46 am »
works :)

33
Fixed Bugs (3.x) / Re: Error while importing sound
« on: August 16, 2014, 10:54:27 am »
So with build 7709, I still get this error, can anyone else confirm this?
Code: [Select]
Unexpected problem on thread AWT-EventQueue-0: null
java.lang.NullPointerException
at java.io.Reader.<init>(Unknown Source)
at java.io.InputStreamReader.<init>(Unknown Source)
at org.apache.commons.io.IOUtils.copy(IOUtils.java:1906)
at org.apache.commons.io.IOUtils.toString(IOUtils.java:778)
at org.apache.commons.io.IOUtils.toString(IOUtils.java:759)
at stencyl.sw.editors.sound.SoundInfoPanel.refreshInfo(SoundInfoPanel.java:259)
at stencyl.sw.editors.sound.SoundPage.callbackRefresh(SoundPage.java:348)
at stencyl.sw.editors.sound.SoundPlaybackPanel.callback(SoundPlaybackPanel.java:219)
at stencyl.sw.app.tasks.SoundImportTask.done(SoundImportTask.java:102)
at javax.swing.SwingWorker$5.run(Unknown Source)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Source)
at sun.swing.AccumulativeRunnable.run(Unknown Source)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(Unknown Source)
at javax.swing.Timer.fireActionPerformed(Unknown Source)
at javax.swing.Timer$DoPostEvent.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

34
Fixed Bugs (3.x) / Re: Error while importing sound
« on: August 15, 2014, 05:35:04 pm »
I'm still getting the error in build 7691.

35
Fixed Bugs (3.x) / Re: Error while importing sound
« on: August 15, 2014, 03:21:30 pm »
Has this been fixed in the latest build?

36
Fixed Bugs (3.x) / Error while importing sound
« on: August 14, 2014, 06:53:21 pm »
I get this error while importing a sound I got a bit worried since it said it shouldn't happen.
Code: [Select]
Unexpected problem on thread AWT-EventQueue-0: null
java.lang.NullPointerException
at java.io.Reader.<init>(Unknown Source)
at java.io.InputStreamReader.<init>(Unknown Source)
at org.apache.commons.io.IOUtils.copy(IOUtils.java:1906)
at org.apache.commons.io.IOUtils.toString(IOUtils.java:778)
at org.apache.commons.io.IOUtils.toString(IOUtils.java:759)
at stencyl.sw.editors.sound.SoundPlaybackPanel.callback(SoundPlaybackPanel.java:182)
at stencyl.sw.app.tasks.SoundImportTask.done(SoundImportTask.java:102)
at javax.swing.SwingWorker$5.run(Unknown Source)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Source)
at sun.swing.AccumulativeRunnable.run(Unknown Source)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(Unknown Source)
at javax.swing.Timer.fireActionPerformed(Unknown Source)
at javax.swing.Timer$DoPostEvent.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$400(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

37
I'll try it out and see how it goes. You are right it will most likely work like that. Mine uses a check response block for each request which is probably what's causing the issue. I need to use only 1 check response block.

Edit: It works :)

38
And what if you receive that request before those 10 seconds? Players won't have the same lag as you do.
I know, I'm not saying that this is the fix but what can I do to make sure that the checking respond block checks the right request?

39
I think the problem is that if I use something like this:

Request leaderboard day
Check response if success then Set attribute 1 to get leaderboard
Request leaderboard week
Check response if success then Set attribute 2 to get leaderboard


The check response for the week leaderboard is checking the response of the first request which means that when I am setting attribute 2, it gets the leaderboard for the day instead of the week. This is why both of my list are equal. If I do it like this:

Request leaderboard day
Check response if success then Set attribute 1 to get leaderboard
Request leaderboard week
Do after 10 seconds, check response if success then Set attribute 2 to get leaderboard


 it works fine.

40
Alright, thanks for the info.

41
If I'm not mistaken the week leaderboard has data in it after a week passed since the first entry in that leaderboard, so that may be the reason you're not getting any data when you request it.
And yes, that is how you should request your leaderboards if you want to display them all at once.
Alright I think I fixed it now, what I did is I put a do after 1 second before checking the request responses just to give it enough time to request the leaderboard and then check it correctly. Also, the week leaderboard shows data up until a week old so the data submitted yesterday and today are shown in the week leaderboard.

42
Shouldn't the week leaderboard include the day? You mean I should put the requests one after the other like:
Request leaderboard day
Set attribute 1 to get leaderboard
Request leaderboard week
Set attribute 2 to get leaderboard
Request leaderboard all
Set attribute 3 to get leaderboard

43
I'd probably make the request twice and use separate attributes for them.
So I tried using the request twice but it seems to request the same scores timespan. In this case it requests the day leaderboard since it is my first request. My code execute only once and looks like this:

I did set different list attributes for each leaderboard request before the cancel block but they are not shown in the picture since I removed a lot of irrelevant things to keep the screenshot simple and seem to have removed them accidently.

Edit: I just tested and the checking leaderboard response in the requestWeek custom event is checking my day request instead of the week request. Could this be the issue?

44
Alright thanks, great extension btw.

45
Regarding the leaderboard option, is it possible to request the same leaderboard for day and week so that the player can see the best scores of the day or week? If so, do I have to request twice and make a list variable for the day leaderboard and an other list variable for the week leaderboard?

Pages: 1 2 3 4 5 ... 14