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 - kingdarkeyes

Pages: 1
1
Resolved Questions / Re: Extension Development Problems
« on: May 13, 2014, 08:17:29 pm »
Ah, my apologies. I forgot to read the part in the comments of the build file that the workspace is actually a separate folder entirely. After correcting this, it appears I now have a multitude of errors regarding missing packages such as stencyl.core.lib and stencyl.sw.ext.

Edit: If I use the original Stencyl installation folder as my swworkdir everything works fine. Afterward, I move the extension from the extension folder and into the extension folder located in stencylworks. It shows up fine afterward. However, I'm curious as to why I can't simply have it deposit the JAR into the stencylworks directory without problems.

Edit 2: All is fixed now. After copying the lib and sw JARs over into the stencylworks folder, I am now able to build the JAR and place it into the stencylworks directory. Thank you for your help!

2
Resolved Questions / Re: Extension Development Problems
« on: May 13, 2014, 07:02:26 pm »
Where is your JAR located, and what is your workspace folder versus your installation directory?

My JAR is located in Documents\Stencyl\extensions\. My eclipse workspace folder is in Documents, but I'm using the SampleExtensions folder (with its build and src folders) as my main project folder. I've set swworkdir to Documents\Stencyl\ in the ANT build.

3
Resolved Questions / Re: Extension Development Problems
« on: May 13, 2014, 04:14:33 pm »
I have checked the extension manager as well and nothing shows up. It's just a blank area with the buttons "Done" and "Get More Extensions..." at the bottom.

4
Resolved Questions / Extension Development Problems
« on: May 13, 2014, 03:25:49 am »
Being somewhat familiar with Java, I decided to venture into extension development. After messing around for quite some time with JDK's and JRE's and version conflicts, I was finally able to have the ANT build work correctly. Everything works fine and the JAR was produced just fine and placed correctly into the Stencyl extensions folder (my version of Stencyl being the most recent one, 3.0, as of yesterday's download). The problem I'm encountering right now is that the SampleExtension does not show up anywhere inside of Stencyl. I also tried to test any of the other extensions which came with Stencyl and none of them work once enabled. Unless, of course, they're not supposed to visibly cause any changes or show up under the "Extensions" label on the left. In this case, maybe I am simply mistaken.

I'm not sure if this is a problem with Stencyl or not, but I am not able to test the extension whatsoever. I've tried to use the install extension option from the Settings->Extensions window. Still nothing. If anyone could help with this problem, I would be most grateful.

Also, the code I'm using and the build.xml all come straight from the Stencyl webpage on extension development.

Random system information:
Java: JDK 1.6.0_45
ANT version: 1.9.4
IDE: Eclipse Kepler SR2
OS: Windows 7 64-bit

5
Resolved Questions / Re: Ubuntu woes - Stencyl 2.2.0
« on: July 18, 2013, 05:22:31 pm »
Sorry for my triple post, but seeing as though no one has a solution for this on Ubuntu (neither on this forum nor anywhere else that I've searched through Google), I decided to download the 64-bit installer for windows and just installed it through PlayOnLinux/WINE. Being that the file is still a .jar file, I doubt I'll find many compatibility issues this way. So, for the time being, I suppose this problem is "solved".

6
Resolved Questions / Re: Ubuntu woes - Stencyl 2.2.0
« on: July 17, 2013, 08:26:53 am »
Has no other Ubuntu user dealt with this problem before?

7
Resolved Questions / "Solved" Ubuntu woes - Stencyl 2.2.0
« on: July 15, 2013, 04:52:48 pm »
I've just recently switched to Ubuntu 12.04 (64-bit machine) and have been attempting to get Stencyl to work. I downloaded the latest release from the Stencyl website and could not get it work. Finally, I discovered the script Stencyl.sh was pointing to a prepackaged jre that wasn't working. After switching it to openjdk 6, it finally worked. However, upon startup it asks me if I want to update to 2.2.0. After updating, it restarts and then the program no longer works.

After attempting to change the Stencyl.sh to point to openjdk 7, I then went into the shell and decided to run sw.jar and then I received these errors:

dillon@Hephaestus:~/Downloads/Stencyl-2.1.0$ java sw.jar
Exception in thread "main" java.lang.NoClassDefFoundError: sw/jar
Caused by: java.lang.ClassNotFoundException: sw.jar
   at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: sw.jar. Program will exit.

Anyone know what could be the problem? Is this just a broken build? When I replace sw.jar with the original from the website, it runs fine (other than a strange solid white artifact where the "loading" box pops up), but still asks me if I wish to update. I can easily just click "Remind me later", but I would like to know if there is a solution so that I can have Stencyl updated and work properly.

Any ideas?

UPDATE:
I also tried running the command
java -jar sw.jar
This command returns the message "Invalid or corrupt jarfile sw.jar"

8
Ask a Question / Spotlight Effect
« on: June 13, 2013, 12:57:50 am »
Hello all! This is my first post to the Stencyl forums :P

But anyway, I am attempting to create a "dark" atmosphere in an upcoming game and I'm running in circles trying to implement it. The idea is to make the whole scene dark and have a light surround the player (in a layer mask type fashion). Thus far, I have been able to simulate the darkness by using the scene's drawing event. I set the color to black, the opacity to around 50% - 60%, and I fill the entire scene with a rectangle using this color. This works all fine and well but I have yet to find an actual solution for making the "spotlight" itself.

I have tried to draw a completely opaque circle over the main character (using his x and y location and the scene's drawing event), however, the circle does not center over the character as it should for some odd reason (might have something to do with the player's x/y not being relative to the scene's actual x/y values).I then attempted to make an actor that follows the player and tries to simulate this. This method produces very hazy results. I have also tried to use the main actor's drawing event to draw a circle around him, however it seems as though this has no effect on the actual scene's opacity around the character. Maybe I have a bit of a flawed understanding of how things are drawn in Stencyl, so this idea isn't translating very well to implementation.

Anyone know of a solution or has anyone done this effect themselves in Stencyl? Any help or tips are greatly appreciated as this effect is important to the game.

9
Ask a Question / Re: Push function troubles
« on: October 02, 2012, 10:04:31 pm »

10
Ask a Question / Re: Push function troubles
« on: October 02, 2012, 03:52:17 pm »
Strange. It's no longer crashing. But now it's not doing anything

11
Ask a Question / Push function troubles
« on: October 02, 2012, 01:22:37 pm »
I'm attempting to make a point and click game where when one clicks a spot, the character walks to this area, or interacts with an object/person. I have however run into a snag that I don't seem to understand. The code I have so far for moving the character looks somewhat like this:
If mouse click
Assign x coordinates of mouse to MouseX
if actor's x is less/more than MouseX
While actor's X is not equal to MouseX, push actor in that direction.

However, something tells me that the game is crashing because it's getting caught in an infinite loop. Anyone have any idea what may be going on here?

Pages: 1