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

Pages: 1
Ask a Question / Can Stencyl access external files?
« on: April 08, 2018, 11:51:55 am »
I'm considering switching to using Stencyl for a simulator project currently written in python and using PyGame. However, that all hinges on wether to not Stencyl can load user written scripts (text files).  The scripts are a simple language aimed at controlling the behaviours of, shall we say, an actor. Yes I know Stencyl has built in behaviours but the game needs to be recompiled when they are changed.  The commands in the simple language include MOVE, TURN, IF/THEN/ELSE etc
I have a working lexical analyser,written in python, interpreting the scripts into robot (machine) commands and would convert the analyser into a class which would be called from an actor. Actors would/could have different scripts.
The project is a robot simulator - the actual robots are arduino driven using a simple script which can be uploaded to change the robot behaviour. The simulator is intended to test scripts before uploading to the robots in a classroom situation. I understand there would be domain issues if compiling to flash. But I don't know if Stencyl can open a text file and read each line.
Is it possible?
Many thanks.

Ask a Question / V3.3 Changing Workspace Fails
« on: May 05, 2015, 02:44:32 pm »
Working on my machine at home quad core dell inspiron 64bit...
Just installed V3.3 to try it. Installed in seperate stencyl_3.3 folder to allow me to keep my 3.2 to fall back on.
Go to change my workspace (we have to do that at school due to network restrictions) and I get an Unexpected Problem dialogue.
Tried rebooting my machine as I'd just updated Java to 64bit to allow bigger JVM memory - same problem when changing workspace.
Uninstalled both 3.2 and 3.3 - re-installed 3.3 fresh - try to change workspace - nada - zilch - no error messages - no progress messages and nothing is moved.
The latest log entry (attached) is after the new install of 3.3.
Anyone else had problems with changing the workspace on 3.3?

Ask a Question / Out of Disk Space when Saving
« on: May 05, 2015, 10:46:57 am »
At my school students have a fixed disk quota and they are never ever aware that they've run out of space till, well, they have run out of space. Despite being told to check before doing work.

My question is "How does Stencyl go about saving game changes?"

Does it just overwrite the game folder contents or does it backup the current game folder and rewind if the save hits the out of disk space problem?

We seem to get game corruptions which I can only attribute to running out of disk space (Missing scenes, games not opening).

Of course, mid lesson, it isn't possible to restore work so you can end up with a miffed student who get up to no good because he's run out of things to do.

Thanks for any explanation on this.

Ask a Question / Brackets on buttons
« on: March 13, 2015, 03:04:47 am »
Build 7994 V3.2 - only one student affected.
Started Stencyl but buttons have square brackets following the text on the button. Inside the square brackets we see things like [].

Any idea how this can be reset to normal?

Ask a Question / mambo does not respond to keyboard
« on: March 10, 2015, 05:45:50 am »
Using the crash course kit - Stencyl V3.2.
With two of my students games Mambo no longer responds to the left/right/jump keys.  They have the run/jump behaviour configured correctly. I have tried clean up unused files. I'm not seeing any error in the logs.
Can anyone give me pointers where else to look?

Resolved Questions / Unable to Get V3.2 to compile on school system
« on: February 27, 2015, 04:20:23 am »
Win 7 machines - tight as a ducks a-hole network settings. V3.1 worked but we upgraded to V3.2 during the half term now the games don't compile. I'm told nothing else was changed on our network. The problem appears to be that Java's user.home is set to an un-writeable profile location (errors appear in the logs to that effect). Ok so I setup a batch file to set _JAVA_OPTIONS to a writeable location but when we do that Stencyl opens with [Missing] as the text on all the buttons. The logs show that the Stencyl subfolders are not being found.  So I added a CD to c:\program files(x86)\Stencyl before running the Stencyl.exe - that had no effect. Even tried Java 8 to see if it fixed the problem.
Has anyone come across this and solved it? If I can't get this fixed we will have to downgrade and throw away work alreads done this week (or is there a simple way to un-upgrade a game?

I have trawled the net and the forums - it seems that what works for one setup doesn't work for another - and none of the solutions (so far) work for us.

Can anyone throw light on this? Please.

Fixed Bugs (3.x) / Trailing Spaces in Game/Scene Names cause problems.
« on: February 25, 2015, 11:41:10 am »
I just don't know why my students insist on typing their scene/game names followed by a space but it causes Stencyl to 'trance'. Using V3.2 of course on Windows 7 32 bit. (Happens on 64 bit Windows 7 too)

Try it - create a new game - based on crash course kit - name it with a space at the end then click create - zilch, apparently, happens. The dialog remains covering up a 'saving' indicator which never goes away (unless you generate logs then it does).

Tried with a blank game then got an error but second attempt tranced like above.

Tried to Quit Stencyl then it asked if I wanted to save the game but gave the following error.

Unexpected problem on thread AWT-EventQueue-0: java.lang.NullPointerException
java.lang.RuntimeException: java.lang.NullPointerException
   at javax.swing.SwingWorker$ Source)
   at javax.swing.SwingWorker$ Source)
   at Source)
   at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(Unknown Source)
   at javax.swing.Timer.fireActionPerformed(Unknown Source)
   at javax.swing.Timer$ 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$ Source)
   at java.awt.EventQueue$ Source)
   at Method)
   at$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 Source)
Caused by: java.lang.NullPointerException
   at javax.imageio.ImageIO.write(Unknown Source)
   at javax.swing.SwingWorker$ Source)
   at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
   at Source)
   at Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$ Source)
   at Source)

I've attached a log  but there's no 'error' in it. However there is a lot of copying taking place from AppData to the new WorkDir - which I don't understand but may be why Stencyl appears to trance. As the WorkDir had been changed beforehand I would have expected everything to just be in the new WorkDir - no copying required.

BTW the game folders are created without the trailing spaces BUT they don't show up with ctrl-R or close/restart Stencyl. Inspection shows the sub-folders are incomplete.

Ask a Question / Actor behaviour Ignoring Boolean Attribute
« on: February 22, 2015, 01:37:25 pm »
Weird one this (I think). I have an actor behaviour which is to spawn a number of random actors (i.e. a particle emitter). I have defined a Boolean attribute for the behaviour called Spawning which defaults to False at the start. (I have attached the custom block snapshot which should toggle. I can export the 'game' which is just being used to devlop the behaviour if  required).

The block deliberately has the Set Spawning to False block removed from the end so it should only fire once for testing. But it fires over and over. The debug print before IF Spawning=True ALWAYS shows Spawning as False even though I set it to True immediately after the IF block.

It's as though the attribute cannot be modified from within a custom block. Is this true (Not mentioned on Stencylpedia in the Custom block section AFAIK)?

If Attributes cannot be set/changed from within a custom block then how can I implement the toggle action I need?

Thanks for any help - I've been bashing my head on this for hours.

Resolved Questions / Block Display Width/Height
« on: February 17, 2015, 02:25:04 am »
Is there a way to get the display width/height using blocks (or even code)?

It would be useful for dynamically centering objects/text.

I have rummaged through the blocks but cannot find anything obvious.

I guess I could create a game attribute and use that as a work around if there's no built in function for this.


Suggestion Archives / Import Resources
« on: February 17, 2015, 01:41:55 am »
I'm using V3.2 . When I click the Import button the program doesn't remember where I last imported something from.  On my Windows machine it always goes to c:\Users.

Please can something be done about this.


Ask a Question / Crash Course Kit Tileset
« on: November 26, 2014, 11:58:40 am »
The logic of this baffles me. I've tried searching for technical info on this but it eludes me.
Basically, I create a game 640x480 using the crash course kit. The tiles are 32x32 so that means the scenes should be 20x15 tiles. So I set the scene size accordingly. Yet when I test the game there's a chunk of real estate missing from the bottom of the screen until I change the Height back to 12 tiles (12*32=384 - where have the 96 pixels gone? That's 3 rows of tiles.).
So why is this happening? Am I missing something simple?
Thanks to anyone who can shed light on this for me.

Ask a Question / Offline Crash Course?
« on: November 13, 2014, 11:46:04 am »
I'm an IT teacher and we are planning to introduce Stencyl from January. I found the crash course very useful and I think it would serve well to get the students up and running quickly so they understand what resources they need to create their own game. However, our internet filters block the stencyl website.

So my questions is: Is there an offline copy (PDF) which we can deploy on our network to avoid the blockpage scenarios?

I did find one on another site but it just looked like a bunch of screen grabs from the actual course here and the quality wasn't very good.

Many thanks for any help.

Teaching with Stencyl / How to Install on a school network (Windows)
« on: November 12, 2014, 01:01:40 pm »
I have seen many posts in the forums regarding installation on school networks but no clear instructions/solutions. Often the requests for help have no replies at all.

 In my school the registry is reloaded by the policies we have each time a student logs in. Students cannot see the C: drive hence the use of %APPDATA% fails. Changing the workspace in preferences works for the current session only.

In one post the expert mentions the prefs are in the home folder - but I cannot find anything. I have tried to find a prefs file which has anything in it on my desktop at home - but they are all empty (Program files  and work folder.)  So, exactly where does Stencyl record the Workspace path normally? I cannot find anything in the registry for it. I've tried to use SysInternals to see whats going on when the program runs but it beats me.

Installation in school can lead to thousands of kids wanting to create games - you can see the potential for your future revenue but only if schools can get this to work in their restrictive environments so the kids can learn it. and want to carry on with it.

Thanks for any help anyone can give me on this.

Pages: 1