Skip to main content

News

Topic: Sphere 5.5.1 (miniSphere) (Read 408766 times) previous topic - next topic

0 Members and 2 Guests are viewing this topic.
  • Fat Cerberus
  • [*][*][*][*][*]
  • Global Moderator
  • miniSphere Developer
Re: minisphere 1.5.1
Reply #735
No example, but the Mixer and SoundStream objects are included in the API reference (minisphere-api.txt).

As for Mac compilation, it should be the same as Linux. Dependencies are:

* Allegro 5.1.11 (I think available through homebrew?)
* libmng
* zlib

And SCons to build.  Just issue an scons at the command line and you're good to go.  The engine will be built in <checkout dir>/bin/.
  • Last Edit: July 16, 2015, 03:52:14 pm by Lord English
Sphere 5.5.1 - miniSphere engine - Cell compiler - SSj debugger
forum thread | on GitHub

  • Fat Cerberus
  • [*][*][*][*][*]
  • Global Moderator
  • miniSphere Developer
Re: minisphere 1.5.2
Reply #736
@DaVince
If you're still confused about the mixer thing discussed on the last page, check out miniBGM.js in 1.5.2.  You can see how I used the Mixer object to implement crossfading cleanly.
Sphere 5.5.1 - miniSphere engine - Cell compiler - SSj debugger
forum thread | on GitHub

  • N E O
  • [*][*][*][*][*]
  • Administrator
  • Senior Administrator
Re: minisphere 1.5.2
Reply #737

No example, but the Mixer and SoundStream objects are included in the API reference (minisphere-api.txt).

As for Mac compilation, it should be the same as Linux. Dependencies are:

* Allegro 5.1.11 (I think available through homebrew?)
* libmng
* zlib

And SCons to build.  Just issue an scons at the command line and you're good to go.  The engine will be built in <checkout dir>/bin/.


homebrew doesn't have libmng and it seems to be unobtainable for me at the moment. Is there a command line switch to disable MNG support?

  • Fat Cerberus
  • [*][*][*][*][*]
  • Global Moderator
  • miniSphere Developer
Re: minisphere 1.5.2
Reply #738
Not at present.  You can probably coax it to compile if you remove animation.c from the SConscript, and then comment out lines 2 and 174 of api.c.
Sphere 5.5.1 - miniSphere engine - Cell compiler - SSj debugger
forum thread | on GitHub

  • DaVince
  • [*][*][*][*][*]
  • Administrator
  • Used Sphere for, like, half my life
Re: minisphere 1.5.2
Reply #739

@DaVince
If you're still confused about the mixer thing discussed on the last page, check out miniBGM.js in 1.5.2.  You can see how I used the Mixer object to implement crossfading cleanly.

Okey dokes, thanks.

  • N E O
  • [*][*][*][*][*]
  • Administrator
  • Senior Administrator
Re: minisphere 1.5.2
Reply #740

Not at present.  You can probably coax it to compile if you remove animation.c from the SConscript, and then comment out lines 2 and 174 of api.c.

Two errors:

obj/galileo.c:40:2: error: unknown type name 'ALLEGRO_VERTEX_BUFFER'
obj/galileo.c:393:77: error: use of undeclared identifier 'ALLEGRO_PRIM_BUFFER_STATIC'; did you mean 'ALLEGRO_PRIM_LINE_STRIP'?

Allegro through homebrew is 5.0.11, not 5.1.11 as you recommend. Is this a problem?

  • Fat Cerberus
  • [*][*][*][*][*]
  • Global Moderator
  • miniSphere Developer
Re: minisphere 1.5.2
Reply #741
You need the latest Allegro (5.1.11).  What version do you have?

Edit:  yeah, 5.0.x won't work.  Not sure what to do here...
Sphere 5.5.1 - miniSphere engine - Cell compiler - SSj debugger
forum thread | on GitHub

Re: minisphere 1.5.2
Reply #742
I just had to build it from scratch last I tried on OS X. The build is not especially pleasant on OS X, but it's manageable.

  • Fat Cerberus
  • [*][*][*][*][*]
  • Global Moderator
  • miniSphere Developer
Re: minisphere 1.5.3
Reply #743
1.5.3 adds My Documents\Sphere Games to the search path for GetGameList().  Since minisphere is installed to Program Files, this makes the startup game actually useful again. :P
Sphere 5.5.1 - miniSphere engine - Cell compiler - SSj debugger
forum thread | on GitHub

  • N E O
  • [*][*][*][*][*]
  • Administrator
  • Senior Administrator
Re: minisphere 1.5.3
Reply #744

I just had to build it from scratch last I tried on OS X. The build is not especially pleasant on OS X, but it's manageable.

This Allegro wiki article says get it from SourceForge, but SF is in "maintenance mode" right now. Don't know how long that will last, so can't build 5.1.11 either.

I don't suppose one of you can put up the Allegro 5.1.11 and libmng source for me to download?

  • Fat Cerberus
  • [*][*][*][*][*]
  • Global Moderator
  • miniSphere Developer
Re: minisphere 1.5.3
Reply #745
Allegro 5 GitHub mirror:
https://github.com/liballeg/allegro5

Can't speak for libmng though.
Sphere 5.5.1 - miniSphere engine - Cell compiler - SSj debugger
forum thread | on GitHub

  • N E O
  • [*][*][*][*][*]
  • Administrator
  • Senior Administrator
Re: minisphere 1.5.3
Reply #746
After building Allegro from the GitHub mirror and also removing "mng" from msphere_libs in SConscript and `brew install libjpeg`, new error:

Code: [Select]

Undefined symbols for architecture x86_64:
  "_main", referenced from:
     implicit entry/start for main executable
     (maybe you meant: __al_mangled_main)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
scons: *** [obj/engine] Error 1
scons: building terminated because of errors.

  • Fat Cerberus
  • [*][*][*][*][*]
  • Global Moderator
  • miniSphere Developer
Re: minisphere 1.5.3
Reply #747
You have to link to allegro_main on OSX (and only OSX), I forgot about that.  Add it to the SConscript.
Sphere 5.5.1 - miniSphere engine - Cell compiler - SSj debugger
forum thread | on GitHub

  • N E O
  • [*][*][*][*][*]
  • Administrator
  • Senior Administrator
Re: minisphere 1.5.3
Reply #748

You have to link to allegro_main on OSX (and only OSX), I forgot about that.  Add it to the SConscript.

Just did it, compiles!

Just ran without a startup or any games (it automatically gives an Open File dialog, which is nice), got the following error on the console when canceling:

Code: [Select]

Setting up jump points for longjmp
Looking for a game to launch
Opening game ''
engine(32428,0x10ff94000) malloc: *** error for object 0x7fe271831200: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6


edit: Running a game with just `Abort("Hello, mixer!");` in the game() function results in the following error on closing:

Code: [Select]

Shutting down Audialis
engine(32486,0x104bb1000) malloc: *** error for object 0x7ff8a201fc00: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
  • Last Edit: July 18, 2015, 07:15:54 pm by N E O

  • Fat Cerberus
  • [*][*][*][*][*]
  • Global Moderator
  • miniSphere Developer
Re: minisphere 1.5.3
Reply #749
Hm, I'll look into that.  I don't usually cancel the file dialog, so maybe I missed a bug.
Sphere 5.5.1 - miniSphere engine - Cell compiler - SSj debugger
forum thread | on GitHub