1
Show Posts
This section allows you to view all Show Posts made by this member. Note that you can only see Show Posts made in areas you currently have access to.
Messages - casiotone
2
Sphere General / Re: Sphere v2 API discussion
5.0 will change the save data handling so that games no longer have to share the same save file folder. How that works is you set a "save ID" in the JSON manifest and miniSphere uses that as the name of the folder. If you have want to have sequels be able to share save data, you can just give them the same save ID.
I'm thinking there should be a standardized format for save IDs to avoid clashes, something like this maybe (inspired by Android app IDs):Code: [Select]com.authorname.gamename
Could this not be set at runtime? A game may want to have its own save directory but still be able to access previous game data.
Perhaps the game ID could be set in the manifest, but an optional one also at runtime - and enforcing read-only access if it isn't the ID in the manifest.
3
Editor Development / Re: QtSphere IDE (working title) 0.2
4
Site Comments / Re: Sphere Wiki is Dead
5
Spherical News / Re: Server upgrade
Probably cuz 14.04 is the last sane LTS of Ubuntu before the attempts to Gnome-ify everything? Go for it, dude.
14.04 is the latest my VPS provider offers. No, there's no GUI
6
Spherical News / Re: Downtime
Access log is reading as 1.04GB, so...yea. Trimming that now. :/
Not really an issue to be honest. The issue was actually caused by 30GB of logs being generated from the failed upgrade! I had cleared them out but the next day the drive was full again - but after restarting it was all freed. So not sure what happened there.
7
Spherical News / Re: Downtime
8
Spherical News / Downtime
9
Spherical News / Server upgrade
10
Editor Development / Re: Need a working Linux and/or Mac build of Studio or editor
But an IDE is not necessarily required.. it would be nice if we could make some cross platform tools to convert to/from Sphere formats, and a Tiled export plugin.
11
Engine Development / Re: minisphere 2.1.4
You're the second person to request that, I'll see what I can do. For now you can probably disable it by:
* Remove 'animation.c' from msphere_sources in the SConscript
* Remove 'mng' from msphere_libs in the SConscript
* Comment out the call to init_animation_api() in api.c
There's been talk of Allegro adding optional MNG support to the library; if that happens I can do away with my own libmng dependency. Oh, that reminds me, watch out with Allegro's audio support; if you didn't set WANT_ACODEC_DYNAMIC_LOAD=0 when using Allegro's CMake, then it attempts to dynamically load libvorbis, etc. at runtime and fails silently if it can't, so if minisphere fails to load any sound files--it's most likely not my fault!
Works like a charm, thanks again.
12
Engine Development / Re: minisphere 2.1.4
13
Engine Development / Re: minisphere 2.1.4
Code: [Select]
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
gcc -o obj/msphere/main.o -c -DDUK_OPT_HAVE_CUSTOM_H obj/msphere/main.c
obj/msphere/main.c:183:44: error: use of undeclared identifier 'ALLEGRO_PROGRAMMABLE_PIPELINE'
al_set_new_display_flags(ALLEGRO_OPENGL | ALLEGRO_PROGRAMMABLE_PIPELINE);
^
obj/msphere/main.c:624:5: warning: implicit declaration of function 'al_set_clipboard_text' is invalid in C99
[-Wimplicit-function-declaration]
al_set_clipboard_text(g_display, msg);
^
obj/msphere/main.c:779:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
while (fse = al_read_directory(engine_dir)) {
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
obj/msphere/main.c:779:13: note: place parentheses around the assignment to silence this warning
while (fse = al_read_directory(engine_dir)) {
^
( )
obj/msphere/main.c:779:13: note: use '==' to turn this assignment into an equality comparison
while (fse = al_read_directory(engine_dir)) {
^
==
2 warnings and 1 error generated.
scons: *** [obj/msphere/main.o] Error 1
scons: building terminated because of errors.
Any ideas?
14
Engine Development / Re: CommonJS modules
Just going to bump this thread as minisphere 1.2 has been released and includes CommonJS support and require() built in. module.exports is not supported yet, but the next release of Duktape will include it.
As a word of caution, 1.2's implementation is a bit barebones. There is no package support as in casiotone's solution, it simply loads a JS file from ~/cjs_modules and executes it as a module (via a C-side Duktape.modSearch() function). Any advanced package-type stuff will have to wait.
Awesome!
You could implement something like described in this comment: https://github.com/svaarala/duktape/issues/60#issuecomment-60973567
i.e. provide a way to register a modResolve function that takes the calling module id and the id passed to require and returns the path the engine should load from, then any advanced resolution can just be done in JS.
15
Engine Development / Re: minisphere 1.0.10
ALLEGRO_MIN_LINEAR and ALLEGRO_MAG_LINEAR. It improves image scaling a lot.
