jondecker76

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 73 total)
  • Author
    Posts
  • in reply to: Reflection / Turning XML into an object #15980

    jondecker76
    Participant

    The mystery continues.

    The problem is definitely on the reflection end.  In fact, I can’t get reflection to work at all.  In my current project, I have literally hundreds of imported classes, as well as a few in the local file.  However, the following outputs absolutely nothing:

    From the documentation, the TypeInfo.GetTypes() should return an array of user-defined types, but this is returning nothing at all.  Is there a reflection filter or something I need to setup first?

    in reply to: Generic array field syntax? #15976

    jondecker76
    Participant

    Thanks!  Quite helpful!

    in reply to: Help porting HMAC-SHA256 code #15930

    jondecker76
    Participant

    Ouch, this keeps getting stranger.

    It’s easy to see the first obvious problem with this test..  MX2 text can’t represent characters $80-$FF?  Strange!  The strangest thing is that $FF isn’t even possible, and equates to $00?  Run the test below and look at the last entry.  Yes, I see that the first byte is $FF for >$80…  But that stops at $FFFE.  Where is $FFFF?   Is this expected behavior or a bug?

     

    in reply to: Help porting HMAC-SHA256 code #15923

    jondecker76
    Participant

    Thank you very much, this is very helpful.

    I’ll definitely still work on figuring out what is causing it to fail  in pure Mx2, but at least it won’t hold me up on my project!

    in reply to: String to array of bytes? #15901

    jondecker76
    Participant

    Thanks for the answer.  I guess I can do it in C/C++, but I was hoping to learn to do it in native Mx2 as a learning exercise.

    I do a lot of work with various REST APIs and having a working HMAC-SHA256 implementation is super important to me.  Could you take a peek at the very simple code in my other post? http://monkeycoder.co.nz/forums/topic/help-porting-hmac-sha256-code/#post-15900

     

    Thanks!

    in reply to: Help porting HMAC-SHA256 code #15900

    jondecker76
    Participant

    Here is a full project to show the issue.  Everything looks right, but I can’t figure out why it’s not returning expected results

    in reply to: Help porting HMAC-SHA256 code #15898

    jondecker76
    Participant

    Still working on this.  I’m much happier with the state of the code, but it still isn’t returning expected results :/

     

    in reply to: HttpRequest questions #15892

    jondecker76
    Participant

    I finally figured out how the httprequest should be used.  However, there is a bug where wget is returning exit status 8 where it shouldn’t.  Reported bug: https://github.com/blitz-research/monkey2/issues/451

    in reply to: Vsync issues with Linux? #13642

    jondecker76
    Participant

    I gave it a try Mark, no go. I tried setting it in the local shell and even through /etc/environment. I tried setting to both 0 and 1 with the same results. I’ll keep poking around and let you know if I find anything fruitful

    in reply to: Vsync issues with Linux? #13620

    jondecker76
    Participant

    I’m on Nvidia with proprietary drivers, I could try the opensource one to see if there is a difference.

    With a timer, everything does work properly, it’s the just vsync that doesn’t work.

    in reply to: Simple cheat code class (My first attempt at using Monkey2!) #13616

    jondecker76
    Participant

    Thank you again. I think I’m finally getting a handle on things

    Here is the current state of things. I’ll start on joystick stuff soon then look for ways to clean things up a bit

    in reply to: Simple cheat code class (My first attempt at using Monkey2!) #13613

    jondecker76
    Participant

    I’ve been improving on this today and playing with it more. There’s only one problem so far with using the key event filter.

    The App.KeyEventFilter isn’t a one-shot, so each press of the key registers 2-3 hits even on quick strokes. Since Update is only called when the KeyEventFilter is fired, there isn’t an elegant way to hand my own one-shot code. For now I’m hacking my way around it with a timer to ensure at least so much time goes by between keypresses, but it’s definitely not optimal.

    It would be nice if A) KeyEventFilter was only sent once at the beginning of each press or B) a certain code was sent on release of the key. But neither of these are present. So for now I will have to either keep using the delta timing method I’m using now, or have an Update that needs run from Main each iteration so that the KeyEventFilter can be one-shotted.

    in reply to: Simple cheat code class (My first attempt at using Monkey2!) #13608

    jondecker76
    Participant

    Thank you!

     

    I just learned more from this single exercise than I have in the last week reading everything I could.  Very clean and elegant, now it’s making a lot more sense!

    in reply to: Simple cheat code class (My first attempt at using Monkey2!) #13606

    jondecker76
    Participant

    Thanks for the tips nerobot

    I implemented the AddStrokes method, and you’re right – it’s much cleaner for usage

    I’m lost on the App.KeyEventFilter though… There is no real documentation, and looking at the source has me scratching my head. It’s a field, but has a void return type?? And parameters? Wouldn’t that make it a method instead of a field? So confusing! I also looked at event.monkey2 and was left equally confused. There’s so much I have to learn about Monkey 2 🙁

    in reply to: Monkey 2 IRC room #13584

    jondecker76
    Participant

    I just tried to access via Ted2go but get booted from the server for not identifying via SASL? It’s been a long time since I’ve even used IRC, and searching for a simple answer is bringing up answers that will take days to read and understand. Any tips on how to get connected?

Viewing 15 posts - 16 through 30 (of 73 total)