User Tag List

Page 9 of 43 FirstFirst ... 7 8 9 10 11 19 ... LastLast
Results 81 to 90 of 426

Thread: XLua extention beta

  1. #81
    No Products Registered

    Join Date
    Aug 2006
    Posts
    984
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: XLua extention beta

    for me, angles work fine in software mode but not HWA

    which is probably related to clickteam switching angles to use floats in HWA

  2. #82
    No Products Registered

    Join Date
    Dec 2006
    Posts
    108
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: XLua extention beta

    This must be it. My project requires HWA because it has tons of scaling and rotating. (I am writing a pseudo-3d engine)

    From what I recall, eventually the HWA version will merge into just regular MMF2 at some point, and I assume angles would always be floats at that point, which means that this function will be perma-broke

    In the meantime though, it might be too much of a pain to get it working under both versions. Not sure.

    The annoying thing is that I can't set angles on specific instances with a DoCall easily. I have to pass in the fixed value of the object and compare to find the right one.

  3. #83
    Clicker Fusion 2.5 DeveloperSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,739
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: XLua extention beta

    Retriever2 can fix that bug though.

  4. #84
    No Products Registered

    Join Date
    Aug 2006
    Posts
    984
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: XLua extention beta

    RII might have to add a separate SetAngleF() or summat function that uses floats

    i'm going to start spouting bs with my limited C++ knowledge and say that he could possibly overload the SetAngle() function so that it could detect whether you gave it an integer or a float... problem is lua only uses one number type (double) so even though it might LOOK like an integer it isn't

    but then again i really haven't read up on IEEE754's specifications but it may actually be possible to tell if the value has a decimal component or not depending on its bit pattern

    don't listen to me lol

  5. #85
    No Products Registered

    Join Date
    Dec 2006
    Posts
    108
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: XLua extention beta

    I was thinking of trying to write some crazy function that converted my integer into another integer that happens to represent the original number as a float. (Basically hack the heck out of the value I am passing) It probably isn't worth figuring that out though, if it would even work.

    And yeah, DoCall works, but it can slow things down as opposed to the Set stuff.

  6. #86
    Clicker Fusion 2.5 DeveloperSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,739
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: XLua extention beta

    Guys... that won't work, it doesn't matter what you pass to the function, xLua will interpret it as integer anyway.

  7. #87
    Clicker Multimedia Fusion 2
    Retriever2's Avatar
    Join Date
    Jun 2006
    Location
    United States
    Posts
    502
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: XLua extention beta

    Is there an easy way to test for HWA runtime? I could easily make the right decision if I knew which runtime was present. Otherwise I could add a separate function.

    Also has any information been released on HWA compatibility?

  8. #88
    No Products Registered

    Join Date
    Aug 2006
    Posts
    984
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: XLua extention beta

    Quote Originally Posted by Retriever2
    Is there an easy way to test for HWA runtime? I could easily make the right decision if I knew which runtime was present. Otherwise I could add a separate function.

    Also has any information been released on HWA compatibility?
    that interface example seems to run fine in HWA (apart from the angles obviously)

    uh if i haven't destroyed mpuz yet i could test what remains of the engine that works

    EDIT: seems to be fine... for now

  9. #89
    No Products Registered

    Join Date
    Dec 2006
    Posts
    108
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: XLua extention beta

    ret: Everything I have done so far works fine in HWA except for SetAngle. I'll post if something else turns up not working as I go.

    It would indeed be convenient to have a temporary SetAngleHWA() function or something though if you can manage it easily.

  10. #90
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: XLua extention beta

    Quote Originally Posted by Retriever2
    Is there an easy way to test for HWA runtime? I could easily make the right decision if I knew which runtime was present. Otherwise I could add a separate function.

    Also has any information been released on HWA compatibility?
    Some helpful links:
    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=132993#Post1329 93
    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=133024#Post1330 24
    Quote Originally Posted by Dynasoft
    EDIT: struct objInfoList seems to have changed.
    EDIT2: In fact it's grown 4 bytes.
    EDIT3: Is the non-hwa b249 affected?
    Quote Originally Posted by Yves
    Yes Dynasoft the objInfoList structure is different in the HWA version. The non-HWA version still has the old size...

    To detect if the current version is the HWA version, you can do this :

    #define EF_ISHWA 112
    BOOL bHWA = mV->mvCallFunction(NULL, EF_ISHWA, 0, 0, 0);

    Will return TRUE if it's the HWA version.

    Let me know if any problem. I'll add this to the SDK later.
    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=133713#Post1337 13
    Quote Originally Posted by Yves
    Intermediate and quick solution : you can build a version specific to HWA (i.e. with the new size) and install it to the Extensions\Hwa and Data\Runtime\Hwa folders, MMF2 HWA looks for extensions from these folders first and will ignore the same extensions in the parent folder.

Page 9 of 43 FirstFirst ... 7 8 9 10 11 19 ... LastLast

Similar Threads

  1. XLua
    By Retriever2 in forum Released Extensions
    Replies: 6
    Last Post: 13th August 2017, 07:42 PM
  2. Extention error with exe
    By Jinxtengu in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 15th October 2012, 03:47 AM
  3. SPC extention question
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 20th November 2009, 03:25 PM
  4. Lua+ or xLua?
    By Shawn in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 17th October 2009, 10:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •