Ethernaut

Forum Replies Created

Viewing 15 posts - 196 through 210 (of 288 total)
  • Author
    Posts
  • in reply to: Texture filters #8407

    Ethernaut
    Participant

    Not using the dev branch yet, but this seems fine to me. Thanks.

    in reply to: Texture filters #8391

    Ethernaut
    Participant

    I’ve been using TextureFilter per image, instead of setting the canvas. I’m still on V1.1.04, though.

    in reply to: New binaries + emscripten. #7715

    Ethernaut
    Participant

    What browser? OS version? Googling suggests it may be a chrome thang.

    I’m seeing this problem on both Chrome and Safari, MacOS Sierra 10.12.4.
    I also tested several of the “bananas” examples, same thing. I thought it could be a script blocker extension, but I have disabled it.

    <edit> Testing again, the bananas examples now work on Safari, but not on Chrome. My own project gives the same error on both. Will investigate more tomorrow, need some sleep.

    in reply to: New binaries + emscripten. #7695

    Ethernaut
    Participant

    Mostly working! 🙂

    When I try Wasm or Emscripten it successfully compiles, but when I try to launch the page I get this window requesting input popping endlessly. If I cancel it, I get this error:

    On MacOS. Tested with Mserver and a simple Python server. Desktop target seems to be working fine.
    Cheers.

    in reply to: Struct goofiness #7574

    Ethernaut
    Participant

    Hmm bummer, didn’t know about that. An error message would be nice in a case like this.

    How would you deal with this situation, where I need a single stack and each item in the stack needs to call its own “Update” method? I’m creating a render queue (so I can sort the drawing order based on coordinates) where each item in the queue can be of a different type (“Image quad”, “text”, etc.).

    The reason I’m using structs is that a large number of those are created each frame and discarded on the next.

    I guess I’ll create a single Struct with a “style:Int” field, and use 0 for quads, 1 for text, etc, and the Update method will select the appropriate rendering style for each item.

    Thanks!

    in reply to: Atom Package for Monkey2 #7558

    Ethernaut
    Participant

    Awesome, that is more than sufficient! 🙂

    I’m on MacOS, but I’m away from home right now and can’t tell you which font it is yet. Regardless, I really appreciate your effort. Thanks!

    <edit>Works brilliantly. Thanks again!

    in reply to: Atom Package for Monkey2 #7553

    Ethernaut
    Participant

    Strangely, in some of my tests the end of line is ignored in the output panel (multiple prints end up in the same line), but in some it isn’t. Importing Mojo and printing from within the Window class seems to be what makes a difference?

    On that same note, the little toolbar at the bottom is overlapping the bottom of the output panel, like in this screenshot (I can’t scroll past that point to see the last printed line).

    Thanks!

    in reply to: Ted2Go IDE #7517

    Ethernaut
    Participant

    Considering how much Command+C and Command+V are the standard in Mac OS, I believe a much better solution would be implementing user defined shortcuts. That way anyone with specific requests would be able to map their own custom shortcuts.

    Cheers!

    in reply to: Initialising array of Aliases give error. #7499

    Ethernaut
    Participant

    Works here, V1.1.03 on Mac OS.

    I added a ‘Main’ function so I could test it.

    Are you sure the problem is not elsewhere?

    in reply to: Basic reflection question #7479

    Ethernaut
    Participant

    Yay, that worked! (after I cleaned it up and fixed another issue, the Vec class had X and Y fields capitalized, while the json file didn’t… took me forever to catch that one… 😛 )

    Here’s the cleaned up json file:

    [/crayon]

    And here’s the example that uses it:

    [/crayon]

    Mark, if you think this is good enough, feel free to use it as an example for the Reflection module (or for the Json module).

    Do you think Reflection will ever allow generics? I’ll make special non-generic classes for now.
    Thanks!

    in reply to: Basic reflection question #7469

    Ethernaut
    Participant

    Ok, still having some trouble, this time when trying to read the fields from a .json file and assign the values to the class fields.

    It works fine if I just print the values and don’t actually assign them, but if you uncomment the lines that do the assignment I keep getting Memory access violations.

    Here’s the json file. The class names are set for each Json object, in this format: “objectName:namespace.Class”

    And here’s the Monkey2 code. Forgive me if it’s a little messy, I was in the middle of experimenting with this.

    Any help appreciated!
    Cheers.

    in reply to: Basic reflection question #7465

    Ethernaut
    Participant

    One thing I also noticed is that the Reflection module doesn’t seem to be included at all in the “Modules Reference” page, so it’s hard to figure out which methods, properties, etc. are available.

    Thanks Mark!

    in reply to: Is there a concept of Virtual Resolution? #7462

    Ethernaut
    Participant

    If you look inside Monkey2/bananas/viewLayout there’s a complete demonstration on how to use virtual resolution and layouts. The basic idea is that the Window method “OnMeasure:Vec2i()” should return the resolution you want, and the “Layout” property controls things like stretching, letterboxing, etc.

    Here’s a much simplified version that shows only what you want, scale the window to see the letter boxing in action:

    [/crayon]
    in reply to: Basic reflection question #7444

    Ethernaut
    Participant

    Ah, I had not looked into the examples.
    Looking at it from Github now, seems like it will work like a charm.

    Thanks!

    in reply to: Atom Package for Monkey2 #7427

    Ethernaut
    Participant

    This is working great. Thanks!!!

    My only two cents are:
    – Hitting the shortcut for “build” doesn’t save the file automatically (or save all files, which would be ideal)
    – Printing anything seems to ignore end of line characters in the output panel (everything is printed at the same line)
    – Can’t change size of output panel?

    Cheers!

Viewing 15 posts - 196 through 210 (of 288 total)