Mark Sibly

Forum Replies Created

Viewing 15 posts - 781 through 795 (of 1,431 total)
  • Author
    Posts
  • in reply to: Simple Win32 API call attempt #8007

    Mark Sibly
    Keymaster

    Close…you’re just missing  #Import “<windows.h>”, ie:

    in reply to: windows build and openal.dll #7991

    Mark Sibly
    Keymaster

    which version statically links against openal?

    Openal is lgpl licensed so it must be dynamically linked unless you’re writing gpl licensed code (I believe).

    The OpenAL32.dll that ships with Ted2 is in the bin/ted2_windows dir, ditto the angle dlls and wget. I can’t see any reason why Windows 7 wouldn’t load these as they’re in the same dir as the exe that requires them and I’ve never known that to fail.

    I’ve had problems in the past with accidentally linking angle and/or openal with dynamic c runtime libs (which results in the ‘msvcruntime_blah.dll’ not found error) but thought I had that sussed. Will have another look soon.

    in reply to: RequestInt fiber error #7990

    Mark Sibly
    Keymaster

    Had me going for a while there…

    Fiber.Current and Fiber.Main are functions, not fibers so I need to go:

    Assert( Fiber.Current()<>Fiber.Main(),…. )

    I think I would rather see Fiber.GetCurrent() and Fiber.GetMain() here. Static properties are not supported, so I don’t think these should ‘look’ like properties.

    Anyway, fixed the stuff in requesters.monkey2 and pushed to develop, let me know if you find any more.

    in reply to: Unable to load certain WAV files #7989

    Mark Sibly
    Keymaster

    Fix pushed to develop branch.

    in reply to: Compiling to emscripten/wasm #7988

    Mark Sibly
    Keymaster

    Yes, emscripten can be challenging to install!

    Things are getting better though – try the instructions here:

    https://github.com/juj/emsdk/blob/master/README.md

    (might want to cleanup/delete existing installation).

    This installs binaries for all platforms, and you shouldn’t need to install anything else like node or python (it installs them for you in private dirs).

    The important bit is this once you’ve ‘installed latest’:

    emsdk activate –global latest

    This adds emscripten dirs to your global paths/env vars.

    If you’re still having problems, you might want to ask here:

    https://groups.google.com/forum/#!forum/emscripten-discuss

    in reply to: Translation hanging with nested struct templates #7987

    Mark Sibly
    Keymaster

    Or even simpler…will fix.

    in reply to: Mark. Question about 3d shaders #7986

    Mark Sibly
    Keymaster

    Anyways, this is just speculation from my part though…

    Pretty much correct. Yes, shaders will be standard glsl source code to start with, and there will be some useful ‘stock’ shaders provided.

    A ‘node graph->glsl’ tool is certainly a possibility for the future, but v1.0 probably wont contain any gui tools, just the ‘backend’ for any such tools.

    There’s a good chance I will write some plugins for ted2 – in mx23d –  that will allow you to at least ‘view’ 3d media files though – and if there’s ever anythng like a Maplet2, this will also probably end up in the form of a Ted2 plugin.

    in reply to: Adding two views to one view #7861

    Mark Sibly
    Keymaster

    It’s just kinda confusing, especially without any proper documentation or examples.

    There’s a sample for each view type in the mojox/tests dir, but yeah, docs could be better.

    Mojox is a little more complex than MaxGUI as it aims for an algorithmic layout approach instead of using ‘hard coded’ coords/sizes everywhere ala MaxGUI. This is mainly to make it easier to write GUIs that work on a wide range of devices/resolutions, but it also helps when dealing with resizable windows and dynamic themes.

    Alas, there is not a great deal of variety when it comes to layout style views. It really needs something like a GridView for arranging simple tool palettes etc, a FlowView for quick ‘n’ nasty ‘add some buttons to a windows’ functionality, and likely a bunch more! DockingView is flexible, but it can be cumbersome to use in some situations.

    I’ll probably be getting back into some mojox soon, but in the meantime, here’s a little GridView that might be useful for situations such as the above:

     

    …that was pretty fun to write – think I’ll add this to mojox right now!

    in reply to: Adding two views to one view #7859

    Mark Sibly
    Keymaster

    Mojox just doesn’t work.

    Works fine here.

    Mojox could definitely do with more layout views, like GridView, FlowView etc. These’ll happen one day, but DockingView is a very flexible alternative for now.

    Wish I could spend more time on mojox, but it’s still relatively low priority…

    in reply to: Closing a Window #7834

    Mark Sibly
    Keymaster

    …thanks for that Impixi, fixing now.

    And BeginFullscreen isn’t even docced yet! Fixing that too…in general, if you notice something @hidden in the docs that looks like it shouldn’t be, please let me know.

    in reply to: mx2cc stuck in background #7830

    Mark Sibly
    Keymaster

    This is a known issue with ted2go – the process’s it starts up to parse code are somehow preventing it from closing. I can live with this for now…

    But I’ve not had this problem with other apps, eg: if I run spacechimps and terminate it by closing the window, I can’t find any instances of mx2cc_windows.exe in task manager (or conhost.exe).

    Once you close the window, do you get ‘Finished debugging app.’ in ted2go ‘Output’ panel? Are the buttons on the ‘debug’ pane disabled?

    I’m also on windows 10.

    in reply to: More audio information #7829

    Mark Sibly
    Keymaster

    There’s actually a bunch of useful sample info (like length, pitch, channels etc) in the AudioData class. mojo.audio uses this internally when loading Sounds – but then it just throws the audio data away! It would of course be super convenient to keep this sample info around, even if actual sample data isn’t directly needed anymore (ie: its been transferred to openal).

    in reply to: Closing a Window #7826

    Mark Sibly
    Keymaster

    Currently, mojo is designed very much around ‘one permanent window’ style game coding. Multiple windows are very untested (although the basic framework for support is in there and they will eventually happen) and yes, closing window=closing app, something that will also change in future.

    handling changing resolutions?

    The Window.BeginFullscreen() and Window.EndFullscreen() methods allow you to dynamically enter/leave fullscreen mode at runtime. With no params, BeginFullscreen enters ‘desktop mode’ fullscreen, or you can specify width,height,hertz to actually change display mode. Note you can also provide a virtual resolution via OnMeasure:Vec2i() so desktop mode fullscreen is often fine.

    See bananas/spacehimps for a demo of Alt-Enter fullscreen toggling. See bananas/viewlayout for a demo of virtual resolution.

    There’s still no way to enum display modes cleanly though (excluding SDL) – coming soon-ish.

    To manually change position/size of a window (in ‘desktop’ coords) use the Window.Frame property.

    In general, avoid using SDL_* calls if there’s a ‘mojo’ way to do something. SDL_Resize will probably work, but only because mojo currently polls window size for the sake of some platforms. I’d rather not expose this level of mesiness though (ie: In future it may not, or it may not on some platforms etc) so if there’s mojo way to do something, please use that as it should be ‘just work’. And if it doesn’t, or mojo doesn’t have some feature you’re having to resort to SDL for, let me know or better, post an issue at github.

    in reply to: More audio information #7825

    Mark Sibly
    Keymaster

    Currently, Audio/Sound classes are pretty bare, and yes, you can really just Play,Pause and Stop right now.

    But openal is pretty grunty so the situation can certainly be improved. I’ll see what I can come up with, but I’m sort of guessing what people want (play, pause and stop are fine for me!) so please also post specific feature requests to github issues.

    in reply to: mx2cc stuck in background #7823

    Mark Sibly
    Keymaster

    Weird, haven’t seen that before.

    Are you using ted2 or ted2go? What version?

    How are you terminating the app? By closing the window or with debug ‘stop’ button or something else?

Viewing 15 posts - 781 through 795 (of 1,431 total)