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.


Topics - Tennisers

Pages: 1 2
1
Ask a Question / unable to save after runtimeexception
« on: September 09, 2022, 11:18:38 pm »
i ran into this when trying to save multiple tilesets without waiting for the previous one to finish saving, now i am unable to save, which is very irritating. since i am unable to save, after closing the file, i am unable to reopen it. i see this same error was posted 7 years ago in the forums. possibly more synchronization around saving could fix this issue?  One thing i notice is after reopening, while all the changes i made are gone, the image preview of the scene is still there, even though the scene is empty.

java.lang.RuntimeException: java.lang.IllegalArgumentException: The given item is not part of this model.
   at stencyl.sw.app.tasks.StencylWorker.done(StencylWorker.java:74)
   at stencyl.sw.app.tasks.SaveGameTask.done(SaveGameTask.java:58)
   at java.desktop/javax.swing.SwingWorker$5.run(Unknown Source)
   at java.desktop/javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Source)
   at java.desktop/sun.swing.AccumulativeRunnable.run(Unknown Source)
   at java.desktop/javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(Unknown Source)
   at java.desktop/javax.swing.Timer.fireActionPerformed(Unknown Source)
   at java.desktop/javax.swing.Timer$DoPostEvent.run(Unknown Source)
   at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
   at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
   at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
   at java.base/java.security.AccessController.doPrivileged(Native Method)
   at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
   at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
   at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
   at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
   at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: The given item is not part of this model.
   at com.explodingpixels.macwidgets.SourceListModel.validateItemIsInModel(SourceListModel.java:225)
   at com.explodingpixels.macwidgets.SourceListModel.removeItemFromCategory(SourceListModel.java:146)
   at stencyl.sw.app.center.GameLibrary.refreshFolders(GameLibrary.java:380)
   at stencyl.sw.app.doc.Workspace.onCreateResource(Workspace.java:1050)
   at stencyl.sw.app.doc.Workspace.broadcastEvent(Workspace.java:1001)
   at stencyl.sw.app.doc.Workspace.saveResource(Workspace.java:1880)
   at stencyl.sw.app.doc.Workspace.saveResourceToMemory(Workspace.java:1890)
   at stencyl.sw.io.write.ResourcePackWriter.writeResourcesFile(ResourcePackWriter.java:103)
   at stencyl.sw.io.write.ResourcePackWriter.write(ResourcePackWriter.java:49)
   at stencyl.sw.io.write.MasterWriter.saveGame(MasterWriter.java:89)
   at stencyl.sw.app.tasks.SaveGameTask.doInBackground(SaveGameTask.java:35)
   at stencyl.sw.app.tasks.SaveGameTask.doInBackground(SaveGameTask.java:15)
   at java.desktop/javax.swing.SwingWorker$1.call(Unknown Source)
   at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
   at java.desktop/javax.swing.SwingWorker.run(Unknown Source)
   at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.base/java.lang.Thread.run(Unknown Source)

2
hi, maybe it's useless for me to post this here because i have a bunch of ugly code to try to fix it, but i'll try to explain
so in this game: http://www.glorioustrainwrecks.com/node/10299
I have a player that's 20x23 and tiles that are 32x32, and when the game map is subdivided into scenes. because of that, when the player goes right or left or up or down out of a scene, they're supposed to maintain the same x position if they're going up or down, and the same y position if they're going right or left, and the same x and y velocities.

this works fine with moving horizontally between scenes, but then when i'm moving up between scenes, at first if i was jumping up and moving horizontally at the same time when next to a wall of tiles, the tiles in the next scene would block me, even if they were aligned properly and eventually i could jump inside the tiles in the next scene. so i tried to fix this by making it so that the position of the player would be increased if they were moving left and changing scenes vertically, and decreased if they were moving right and changing scenes vertically. 

again, maybe this is an overly complicated thing and the code is kinda too bloated and long and has references to some things that aren't involved in this bug, but i attached the important parts of the code i used, so any suggestions for either my bug or how i ask for help are appreciated.

3
Suggestion Archives / ending compilation early
« on: July 22, 2016, 09:15:53 am »
a lot of the time, i press compile without checking my code, and i realize that i have a stupid mistake somewhere, but one that doesn't cause a bug. because stencyl takes a while to compile for bigger things, it would be nicer if there was a button to terminate compilation early.

4
the first time i tried exporting a behavior a few weeks ago it showed up as an image file and i was confused. i searched it up now and saw that the behavior is wrapped in the image file, but that was on the stencyl blog. i think it would be much better if it was in stencylpedia itself, and it was made clear when importing/exporting resources. maybe it would be better to change it from png to something like .stencylbehavior. i mean, it is cute to have it as png and i was dumb for not searching it up online right away, but this is at least a little confusing

5
Ask a Question / setting actor attribute from another actor
« on: May 26, 2016, 10:59:27 pm »
ok, so this should seem straightforward but i've been trying this for an hour and have no idea what i'm doing wrong, i have an actor type bullets with an attribute "directionOfShot" with an internal name "direction" , am i able to change this value from another actor type using the "set actor value" block, or am i missing something? I was using the internal name "direction" and last created actor, as this was the player shooting multiple bullets.

6
Ask a Question / Drawing on screen
« on: February 27, 2016, 02:41:46 pm »
Hi, I wanted to make a game that's about the player drawing a picture on the screen. Of course i could do the create actor thing, but then that would create too many actors. I tried doing the "change pixel color at" with "current screen as image", but it wasn't doing anything. I wanted to make this and i was trying for a little while but can't get anything and i feel very stuck. any help would be appreciated!

7
Windows / Mac / Flash / HTML5 / weird fake metroidvania game
« on: November 12, 2015, 11:59:22 am »
hey, i like this thingy that i made, maybe some of yall might as well http://www.newgrounds.com/portal/view/665976

8
Suggestion Archives / default attribute should be boolean or int
« on: November 09, 2015, 06:29:14 pm »
seriously, why is the default attribute not boolean or int? i don't even understand what the actor attribute even means, while boolean and number are the two most important things. It's only a mild inconvenience, but it's really irritating when i meant to make a boolean attribute, and i forgot to change it from the seemingly useless actor attribute.

9
Windows / Mac / Flash / HTML5 / eat the poison 2/4
« on: October 31, 2015, 07:15:39 am »
i made this game, maybe it's awful, and i'm not entitled to attention, but i would love to hear some thoughts about it, maybe i'm just too desperate for attention,but whatever http://www.glorioustrainwrecks.com/node/9696

10
Ask a Question / how to run stencyl on linux
« on: September 13, 2015, 10:25:47 pm »
Hi, i think i followed all the steps in the instructions correctly, i changed to the directory where stencyl was in (though that doesn't say that in the tutorial), and i did all the stuff, but when i click the .jar file, nothing opens. do i have to do something else to run it, or did i fail to install it somehow? i have the 64-bit system, so i was trying that. thanks

11
Hi, i was making a small game that combines ddr and something else, and because i was going to be switching between scenes, i made a game attribute that would act as a time and add .01 every .01 seconds, if that would work. i was going tot try to time all the moves fairly closely to where i'd like them, and my first idea was just to make a huge if-else thing with a bunch of "otherwise ifs" that trigger the creation of a certain block at a certain time. i think that would work, but is there something more efficient? i might just iterate on this idea after i'm done with it, but i'd like to hear a better way, would it be better if i used a switch case with the custom code?
thanks, david

12
Bug Archives / camera center bug
« on: July 03, 2015, 07:06:25 pm »
when i set a camera center, the actors move, but the background doesn't

13
Ask a Question / Can't export game
« on: June 06, 2015, 07:34:51 pm »
Hi, i wanted to export a game i was making, but the export button is greyed out for me.  Does this feature now only come with the paid version, is there a minimum file size, or what? this is annoying because this prevents me from having stable builds exported, which makes it a waste of time if i screw something up.

14
Resolved Questions / java jdk
« on: May 23, 2015, 05:33:18 am »
i was getting something that said that i must install java jdk to test the game, which wasn't happening before.

15
Hi, so my game is 124 MB, which seems way too big, maybe I could make spritesheets for some of the characters, but I seem unable to add in any more backgrounds. If i add one more background, the screen goes white. Is this supposed to happen at a maximum file size, or is it a bug?

Pages: 1 2