Skip to main content

News

Recent Posts

11
Engine Development / Re: miniSphere 5.0.1
Last post by Rhuan -
I recently updated from 4.5 to 5.0.1 so I already know I'm going to run into a heap of issues with the project I'm working on. I got the cellscript working and have a successful build, but I'm getting errors in my main script when importing my own modules.
I'm sure there is a lot of nuance and order that is over my head, so is there an example demo that I could view? I've looked at the getting started tutorial and it helped a little bit, but I've got a small rat's nest that's gotta be sorted through.

Any tips on updating projects from the older version of minisphere? Any recommended reading would be great, too!
Thanks!
This should probably be a topic in support rather than engine dev but :P

The getting started tutorial is horribly out of date right now... :(

One important change if moving from 4.x to 5.x is to get rid of uses of transpile() in your cell script - scripts should just be install()'ed with 5.x.

Also if using the import operator scripts need the extension ".mjs" rather than ".js".

Here's a link to a simple example project in miniSphere 5.0, very early demo of my remake of Kefka's Revenue (mostly just showing off the map engine I've made):
https://www.dropbox.com/s/x5sfkcad3jjhk91/KRdemo.zip?dl=0

If you need more specific help saying what error messages you're getting exactly and posting some of your code would make it easier.

If the problems are just with import then maybe read the MDN article on it: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import
The common places I expect people to go wrong with it are:
a) get the file path wrong (import expects relative paths)
b) confuse default exports with other named exports
c) try and use static import syntax in a dynamic way
d) not use the .mjs extension that miniSphere requires
12
Game Development / Re: robotfindskitten, back from the dead
Last post by Eggbertx -
That must be the prequel.
13
Game Development / Re: robotfindskitten, back from the dead
Last post by scojin -
"A stegosaurus, escaped from the stegosaurusfindrobot game. It finds you."
14
Game Development / Re: robotfindskitten, back from the dead
Last post by Eggbertx -
A game that took 4-5 hours to make wins the prestigious status of GOTY? Woo!
15
Game Development / Re: robotfindskitten, back from the dead
Last post by Radnen -
Haha! I vote this Sphere GOTY 2017. :)
16
Game Development / robotfindskitten, back from the dead
Last post by Eggbertx -
A long while ago, before miniSphere, and before the death and rebirth of the forums, I created a port of the game/zen simulation robotfindskitten, but my laptop died, destroying all of my old stuff. Since my original version wasn't very good anyway, I decided to recreate it, using miniSphere's API.

In this game you are robot (#). Your job is to find kitten. This task is complicated by the existence of various things which are not kitten. Robot must touch items to determine if they are kitten or not. The game ends when robotfindskitten.



17
Engine Development / Re: miniSphere 5.0.1
Last post by scojin -
I recently updated from 4.5 to 5.0.1 so I already know I'm going to run into a heap of issues with the project I'm working on. I got the cellscript working and have a successful build, but I'm getting errors in my main script when importing my own modules.
I'm sure there is a lot of nuance and order that is over my head, so is there an example demo that I could view? I've looked at the getting started tutorial and it helped a little bit, but I've got a small rat's nest that's gotta be sorted through.

Any tips on updating projects from the older version of minisphere? Any recommended reading would be great, too!
Thanks!
18
Engine Development / Re: miniSphere 5.0.1
Last post by Eggbertx -
Alright, that's good (for me at least). I wasn't sure if it was something I was doing wrong, because I'm rewriting my old robotfindskitten port, and I was worried that it might be bogging it down.
19
Engine Development / Re: miniSphere 5.0.1
Last post by Fat Cerberus -
@Eggbertx Okay, I can reproduce the bug.  Even Specs (which worked fine under Duktape) drops to like 15fps after calling Sphere.restart().  So I don't think it's related to CC at all.  I'll profile the engine to investigate further where the slowdown might be.
20
Engine Development / Re: miniSphere 5.0.1
Last post by Fat Cerberus -
I'm not sure if it's something I'm doing wrong, but calling Sphere.restart() seems to cause a massive slowdown

That's a weird one.  I'll definitely look into that!

It could be that closing down CC and reinitializing it disables the JIT somehow, but that level of slowdown shouldn't be noticeable unless you're doing something really intense like mp3 decoding (Chakra's bytecode interpreter is faster than Duktape's).  So it's probably something else.