Search:

Type: Posts; User: Retriever2; Keyword(s):

Search: Search took 0.01 seconds.

  1. Replies
    424
    Views
    269,805

    Well, it's been a pretty long while since I've...

    Well, it's been a pretty long while since I've been around. I'm curious how this object has aged, what holes have opened up as the fusion platform has changed, etc.
  2. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    How much are HWA-specific settings changed during runtime?

    Maybe you could give me a motivating example. I haven't really used the HWA runtime so I don't know what's available to tweak.
  3. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    I have no information on HWA stuff.
  4. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Well, the libraries are out there ... people just need to compile them against XLua :)

    I tried investigating externalizing the Lua DLL, which not only would allow the runtime to be selectable, but...
  5. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Small bugfix

    Version 1.5.2: http://taloncrossing.com/xlua/xlua-dist.zip

    If you closed all XLua-containing projects after using XLua's internal editor, and then opened a new XLua-containing...
  6. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    I'm not sure I understand your question about parameters and functions. Are you talking about calling Lua functions from MMF, or calling MMF functions from Lua? I'll try and cover all my bases.
    ...
  7. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Oh wow, 30+ embedded scripts? I'll consider some upgrades to the script editor .. as it stands there's some elements like the library list that will never be used and need to be removed.

    EDIT: I...
  8. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Following up on the data elements bug report:

    It turns out that requiring from the data elements editor does work, but you must add the FULL path of the file to your cpath variable, AND you must...
  9. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    In theory you should be able to since you have access to overlap detection. But designing the right algorithms to deal with multiple objects and other obstacles would be just as challenging as if...
  10. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    For the performance-minded, I stumbled on this a bit ago and you may find it useful.

    http://www.lua.org/gems/sample.pdf
  11. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    http://www.taloncrossing.com/xlua/mmfi.zip

    Here is an updated mmfi.dll (absolutely sure it's not a debug build!), with fixed collision detection for that method.
  12. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Hey, I finally got around to testing your second example out.

    Have you by any chance tried enabling LuaJIT for your runs? In testing your example, with LuaJIT disabled, external MMFI ran at about...
  13. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Actually, it is still documented, it's just in a separate help file now :)

    I'll take a look at it later, just got back from a flight and job interview, and all sorts of work and meetings and stuff...
  14. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    It'll still be there for a while. In terms of raw speed the old interface still has an advantage, but when I took a poll a while back people seemed interested in trading a small amount of speed for...
  15. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Woo, where to start. You may very well be a trail blazer with the MMFI DLL ... or else everyone's just keeping quiet about it.

    You must always remember that when you access a special member...
  16. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    It should be possible to just include the DLL in the binary data, and then in your code you would use:

    require "mmfi"

    However, it's possible this stopped working and I may need to revisit it. ...
  17. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Part of the old coroutine bug apparently resurfaced in 1.5. Thanks to UrbanMonk for pointing it out. It has now been fixed.

    Version 1.5.1: http://www.taloncrossing.com/xlua/xlua-dist.zip
  18. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    There is no comparative chart. The version of XLua in FusionUpdater is extremely old and out of date, and its presence there only does me a disservice by confusing potential end-users.

    XLua...
  19. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Thanks, although any future changes will of course see a brief beta release first.

    I should also mention that with the final release in the released extensions forum, the package now includes a...
  20. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Oh, oh! Did you grab a new mmfi.dll and/or opengl.dll from the 1.5b5 zip file for your project? I just checked and apparently I released debug versions of both those DLLs, which is about an extra...
  21. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Well you know the URL for the old version, experiment a bit and if you can definitely narrow it down to XLua (or something related), then let me know your findings.

    The core XLua runtime is 500KB....
  22. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Really? All the 1.5 betas (which is what I've been posting here since at least January) are part of xlua-dev.zip, and the last "stable" release in xlua-dist.zip. The runtime MFX for XLua is...
  23. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    http://taloncrossing.com/xlua/xlua-dev.zip

    This is not an updated version of XLua, but it does include an updated help file and example for building lua packages (LuaSocket specifically, but...
  24. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Version 1.5b5

    Some minor bugfixes (some errors were reported twice, backtrace reporting)

    More importantly, there's been some really massive changes underneath, which may solve some of the...
  25. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Yes, part of my wrap-up is to write up a few docs on compiling c modules for xlua. But if you know how to compile lua c modules already, then the difference is very minimal.
  26. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Which example? I've stopped distributing the OpenGL example with Looki's object, since for some reason my copy of MMF is rejecting that extension now. But Min's examples worked for me.
  27. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    So after some undue frustration, I'm going to take a moment to remind everyone that if you experience unexplainable crashing in XLua and any errors have been raised, try switching the error reporting...
  28. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Been a while, but new release, version 1.5b4 (yes, that stands for 4th beta).

    The callstack code has all beeen rewritten to support an old feature request: pushing tables onto the stack. You can...
  29. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    I haven't forgotten anyone's bug reports (I think... I hope!), in fact some of them are already fixed, but a release is still probably 1-2 weeks out, due to some major changes on the back end. Or I...
  30. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Well, it's one of the first mechanisms I wrote in XLua, before I understood much about the C API, upvalues, etc.
  31. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    for the record, that's how function registration works anyway, so the efficiency between the two methods is the same.
  32. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    XLua could probably benefit from more examples in the distribution.
  33. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Yes, I did say it would be forthcoming .. but it hasn't come yet :) Fear not, I haven't forgotten, I've just been holding off while it was in a state of flux, and until I can provide a good example...
  34. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Thanks, I'll try to look into it within the next few days. It looks like there might be some other crashing problems when using older scripts, so I've got a few more corner cases to fix.

    But,...
  35. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    all variables are global unless you specify the "local" attribute.

    You could also pass the calling name or function as an extra parameter.

    Either of those choices I think would be better than...
  36. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    There's no other way, unless you want to try and keep track of it yourself :)
  37. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    You should be able to do it with the debug library, e.g.:

    debug.getinfo(2,"n").name

    Where 2 represents a level in the call hierarchy (0 would be getinfo itself, 1 would be your current...
  38. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Version 1.5b3 (beta 3): http://hocuspocus.taloncrossing.com/rii/xlua-dev.zip

    In this update:

    - Fixed regression in previous build that caused string-based callstack operations to fail.
    - The...
  39. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    I'm sorry, I introduced a regression with this build that Corentin pointed out to me last night, I'm working on the fix.
  40. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Version 1.5b2: http://hocuspocus.taloncrossing.com/rii/xlua-dev.zip

    This is a small update that adds:

    - Ability to rename scripts in the editor
    - code folding in the editor
    - You can now...
  41. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Whoops, I forgot about your query.

    Offhand, I'm banking on HWA. Have you tested the function in standard mode?
  42. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    For all intents and purposes it's a no. It's dangerous.
  43. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    If XLua and MMF didn't block on each other, your determinism would fly out the window.
  44. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Well, I've come very close to being able to do what you want (a modeless dialog), but I've hit a barrier I can't cross. Unless someone can tell me how I can pull an edPtr out of thin air, or if...
  45. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    .net was made by Greyhill
  46. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Well .net did it first.

    @Looki - yeah, I intend on adding it. I just haven't looked up how to do it yet. In fact I might have to bug you about a few things that are currently giving me the bird...
  47. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Every time the setup dialog is opened, the Scintilla control is recreated, and so the undo history is lost.

    The reason you can't preview the frame is because the dialog is opened as modal. This...
  48. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Busy perhaps, but I just happened to have both of them near release at the same time.

    Also, in the next beta, if I don't forget again, I'll try and update the "require" semantics again to also...
  49. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    http://hocuspocus.taloncrossing.com/rii/xlua-dev.zip

    One more quick fix. I did in fact break the call stack, it should now be in working again. HOPEFULLY that's the last of the critical bugs.
  50. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    http://hocuspocus.taloncrossing.com/rii/xlua-dev.zip

    This update should fix the random crashing during opening. I wasn't handling things correctly in the update routine for the much older files.
  51. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    well I'll have to fix whatever's crashing them. I tried a bunch of old test files but not that one. Like I said, beta quality material here :)

    Edit: interperter.mfa isn't crashing for me :|
  52. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    XLua 1.5 BETA 1
    http://hocuspocus.taloncrossing.com/rii/xlua-dev.zip

    Note the URL change. Back up your current projects before attempting to use this beta release. There have been major changes...
  53. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    The next XLua release will contain a built-in editor and support for multiple embedded scripts, in addition to loading embedded scripts directly and thus avoiding load string limitations.
  54. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    XLua 1.4.2: http://hocuspocus.taloncrossing.com/rii/xlua-dist.zip

    Another across-the-board fix for collision detection. Hopefully this will do the trick!
  55. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    XLua 1.4.1: http://hocuspocus.taloncrossing.com/rii/xlua-dist.zip

    Hopefully fixes problems with collision detection functions in HWA.
  56. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Definitely able to confirm problems with HWA ... looks like changes in the data structures. :)
  57. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    If you can, I'd really love a project file with the crashing. Big or not. Your MFX checks out just fine btw.

    Are you using HWA, by any chance?
  58. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    You're sure your coordinates are correct? :/

    Would you PM me your xlua.mfx so I can be sure you don't have some obscure broken version of it?
  59. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Heh, not a big fag of white space are you? :P

    I just did a bunch of testing with add backdrop / paste backdrop of active objects. I didn't encounter any problems on either layer 1 or layer 2.
    ...
  60. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Well most of it is all undocumented voodoo so I guess an occasional regression is to be expected. But certainly, if you give me a small example I should be able to fix it.
  61. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    If you can send me a failing example that would be great.

    It should still be testing the collision mask on layer 1. What changed is it should also start properly recognizing backgrounds on above...
  62. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Pay attention to the following functions:

    mmf.ColllisionMask.TestPoint -> replaced by mmf.Collisions.BackdropTestPoint
    mmf.ColllisionMask.TestRect -> replaced by mmf.Collisions.BackdropTestRect...
  63. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Well if you tell me what your previous build was, I can give you a summation of what code changed.

    Also XLua should play nicely with both the "include external files" option, and the Data Elements...
  64. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    I'll have to review that part .. I don't exactly know what the CT limits are. I don't know if I can do anything about the load string action, but for internal storage I may have yet another reason...
  65. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Clickteam has the sorriest excuse for an edit box I have ever encountered, unfortunately.

    At some point I may give XLua its own dialog to round out that and some other limitations of the property...
  66. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    XLua Verion 1.4: http://hocuspocus.taloncrossing.com/rii/xlua-dist.zip

    - Completely new suite of collision detection functions (now part of mmf.Collisions). All other collision detection...
  67. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    A fairly major XLua update

    - "XLua Interface" now available for inter-state communication (see documentation).
    - MAJOR safety improvement to MMF Interface functions when calling them on something...
  68. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    New XLua release available

    This update carries some significant bug fixes.

    - Coroutines are now fixed for calling MMF Functions or functions that access MMF directly, like print. Prior to this...
  69. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Bugfix for the export object list being "cleared" if you shared a state between 2 frames simultaneously (e.g., if you share a state with a subapp). The automatic dead-object cleanup run by each XLua...
  70. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Updated version to help really large applications.

    Several additional, equivalent "On Function" conditions have been added, to help mitigate n*m overhead in condition checks when you've defined a...
  71. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    It's sort of like a race condition, but not really because there's no multi-threading involved (which is good because there's no protection for the lua states).

    I don't know the exact semantics of...
  72. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    If you could please send me an example file, it would definitely help me out. Usually these kinds of problems happen from people doing things differently than I do them, which is why they get missed.
  73. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    I'll look into it a bit.
  74. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Probably MSVCR90D.DLL. Most users on Windows XP who are not developers do not have the latest Visual C/C++ runtime libraries installed. You can solve this problem by changing your code generation...
  75. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    I think in this case it's easy to overlook and say "well there's already an MMF extension for this". I see it more as a demonstration of tapping into all the modules and APIs that already exist for...
  76. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Not really. XLua's core is pretty stable now. I suppose I would need to contact Jeff if I wanted to post it to the release forum?
  77. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    I've released a new version to clean up and extend error reporting. Beginning with this version, I'm assigning version numbers to XLua to make it easier to track down regressions.

    - XLua will now...
  78. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    The help file is now updated in the zip, it was lagging behind a little bit. It additionally includes a list of predefined constants in the mmf table to make your lives a little easier, if you...
  79. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    http://hocuspocus.taloncrossing.com/rii/xlua-dist.zip

    Try this out for size.

    There's also some other collision type functions available but they definitely come with a "use at your own risk"...
  80. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Unfortunately I've only recently pulled my code into a Subversion repository, so I have no record of what exactly changed between those releases. My benchmark for TestPoint is still working, both...
  81. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Huh. Check again. http://hocuspocus.taloncrossing.com/rii/xlua-dist.zip

    Now, I tried running your test (on non-jit), on 10million loops, and got very consistent results over several trials.
    ...
  82. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    I'm not sure what you mean by results you don't understand. os.clock() is going to have a resolution of 10 or 15 milliseconds depending on your system, so your potential margin of error is twice...
  83. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    No, there isn't. Looping your functions a million times is about it. You could add high resolution timing via a C library.
  84. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    It isn't difficult to decompile Java bytecode. But it's a mess.

    I don't even know how foolproof using an encryption object would be if the end user is enterprising enough. You'd also need to...
  85. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    I think there's several ways you could handle that. You may be able to compile the lua code into its native bytecode and then load that. But I'm not sure that any bytecode compiled by another lua...
  86. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Thank you for the positive comments.
  87. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    I'm not sure I understand what is happening or what you're trying to do.
  88. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    If you figure out what broke, let me know.
  89. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    I've borrowed from plenty of inspiration, so don't let me stop you. Perhaps you'll come up with a few things to share as well.
  90. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    There may have been a better reason in Lua+, but for XLua it's really just a matter of style, since registered functions are implemented in terms of DoCall (The whole MMF/Lua function call stack is...
  91. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    I could if I created a new condition.
  92. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Yeah, you lose the minimum parameter rule if you let it auto-register. For that and a couple other reasons (and legacy reasons), it's optional. You can still explicitly re-register functions if you...
  93. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    http://hocuspocus.taloncrossing.com/rii/xlua-dist.zip

    Updated release, contains Jamie's suggestion for auto-registering functions, which exists as an optional property. There's also some...
  94. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    I'm sorry that it didn't work out, but I do have to draw a line somewhere. It's one thing to offer function calling with varying numbers of parameters for strings, because strings can stand for any...
  95. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    yeah, that's exactly what I did. That's where it executes the embedded script if those options are set as well.

    @bigredron: I'm still not sure I understand?

    + Always
    - Lua: Push integer BIO...
  96. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Generating events from CreateRunObject creates a crash, but it does run alright from HandleRunObject.
  97. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Clever. I like. Thank you for the suggestion.
  98. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Not sure I understand this statement:

    Now the way the object works is that I should not have to use loop to do this as the object is designed to do them per object already.
  99. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    So I just went to check out the luamidi package, but unfortuneately...

    Operating System : OS X

    I don't know if it would even be portable.
  100. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Codeblocks is an IDE but not a compiler in and of itself. It relies on other compilers such as MingW or MSVC++. However I can't help you setup Codeblocks to work with MSVC++ because I've never...
  101. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Atom, not quite. You don't have to change anything in the luamidi source code (lua or C code). But you must compile the C code according to whatever instructions they provide. However you must do...
  102. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Yes, you can use existing lua libraries, but there is one big glaring asterisk in the picture.

    You must compile the library from source, and link against xlua.mfx in place of lua51.dll. I've...
  103. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Lua tables are sparse so if you aren't actually filling all the values in the table, it won't use up the full amount of memory.

    If you just want to wipe out one table, set the table to nil...
  104. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    astrospoon is correct. Most of the time you will only need one Lua state -- you can load as many scripts into that state as you want.

    The primary reason you might want to use a second state is...
  105. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    You'd be better off doubling up with some kind of drawing extension rather than pasting dots. Just map some lua functions to the actions of the object.
  106. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Framerate does affect it but there seems to be an upper bound. Clearly this isn't the right way to go about doing a paint program, but nonetheless I like how it demonstrates some Lua usage.
  107. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    http://hocuspocus.taloncrossing.com/rii/xlua-dist.zip

    I think this update will handle deleted objects safely..er. I was still encountering invalid LPROs even in the HandleRunObject event each...
  108. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    You seem know a lot more about the internal object management than me. I guess I misunderstood some of the earlier stuff. I'll look into something that sweeps out the junk.
  109. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    There was some debate about this a few pages back actually about what happens to destroyed objects, and it was suggested that the headerObject struct might be maintained, but apparently it's not. ...
  110. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    http://hocuspocus.taloncrossing.com/rii/astrobug.png

    Appears to be a strange problem with MMF itself.
  111. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Could you isolate this into an MFA and give it to me to look at?

    Yeah, I could make my own, but often there are subtle differences in implementation that make all the difference.
  112. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    http://hocuspocus.taloncrossing.com/rii/xlua-dev.zip

    I've added some properties and some items to the debugger to flesh out the object a bit. The properties will let you store a script or...
  113. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Thanks for all the comments.

    I wanted to mention that every so often I add one or two things to MMF Interface, but I usually don't mention them here. If you thumb through the documentation on a...
  114. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    To each their own I guess.

    But I'm not going to ignore your request. I've updated the XLua version to include a new subset of function call actions, under the "Inline Parameters" menu, which...
  115. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    The number of permutations for proper type support would be ridiculous. The only reasonable solution would be a function call like the original lua object which is a delimited string, although that...
  116. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Hm, it seems you are right. There seems to be a problem with the rSDK method for getting floating parameters. I changed it to the CNC functions and it works now. I've updated the download link.
  117. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Thanks Dynasoft.

    http://hocuspocus.taloncrossing.com/rii/xlua-dist.zip

    The SetAngle (and GetAngle) functions should now be fixed to work in normal and HWA mode.

    There's also an updated...
  118. Replies
    424
    Views
    269,805

    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...
  119. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    It does do an internal cast to integer. Not sure why it doesn't work.

    Does the included interfaces.mfa example have working rotations? It uses the SetAngle function.
  120. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Thank you for the comments.

    There is a new update available. The major change is in valid naming for function and variable names. XLua now supports full Lua syntax for name identification, for...
  121. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    http://hocuspocus.taloncrossing.com/rii/xlua-dist.zip

    I have updated the zip file to contain the latest version of the OpenGL module. More importantly, the documentation now includes all the GL...
  122. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    The DLLs can be ignored unless you actually load/require them in your application.

    In my testing there seems to be a conflict with binary data and the include external files option. You can use...
  123. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    The lib file has no place in the typical MMF directory structure, and you can safely ignore it. It's there for C/C++ developers who want to write their own C Modules for Lua (or rebuild existing C...
  124. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    A potentially large loop at FPS times per second is something I'd rather avoid. Global state does present a potential for crashing, but a single call to reset exports before jumping to a new frame...
  125. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Well, I don't think I can hook the actual destroy object action, but I can release the association if you try to use MMFI functions on a destroyed object.
  126. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    By the way, I had a chance to ask Jamie about the LPROs and he doesn't know exactly what happens to them, or if the rSDK method for checking them are correct. So yeah I'm gonna go ahead and say...
  127. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Well I ran the following code in the lua.org online interpreter, and on xlua, and they both ran fine:

    arr = {}
    for i = 1, 5 do
    arr[i] = {}
    for j = 1, 5 do
    arr[i][j] = {}
    for k =...
  128. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    If it's crashing after 1000 objects, then that's a bug that should really be fixed. I haven't seen it myself. Send me an example if you have one.

    I did some testing, creating and destroying tens...
  129. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    I really need input from some more experienced extension Devs .... Jamie maybe?

    I'm a little confused over how it works because rSDK defines a function for testing if an object is deleted by...
  130. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    It's your responsibility to keep track. Operating on a destroyed object is undefined .. I don't think anything bad will happen, if I'm understanding the SDK correctly.

    One of the best ways to...
  131. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Lua isn't the problem -- MMF cannot send or receive doubles, only floats. MMF also offers no way to tell the difference between an integer and a float passed through an expression (that I know of). ...
  132. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    I used floats up until the last release. Then I realized I couldn't tell the difference between an MMF-delivered int or float, if I did not know what to expect ahead of time. So integers > 2^24...
  133. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    I have collaborated with Looki to allow the XLua object to interface directly with the OpenGL object. The object now includes the LuaGL library, which can be used to do opengl programming from your...
  134. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    @cel: I don't know the specifics of the .NET extension since I haven't used it, but it looks like it should be possible to write lua C modules and load those. That also opens the door to many...
  135. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    There's been some major changes and bug fixes to this extension in the last month.

    The biggest change is that you can now create multiple, independent Lua states, and you must bind the object to...
  136. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Well, I guess that's not very surprising. I assumed lua's tostring function would handle it but it actually doesn't. I've put up a new build which should fix that.
  137. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Yes, it is, thanks. That case was separated from the rest. Download the build again.
  138. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    I'm sorry, this is actually a bug that I fixed for MechaBowser a few days ago, but I must have hit undo too many times or something and I undid the fix in a more recent build :O

    In a lot of ways...
  139. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    They should all be 1-based. I'll be happy to look into it if you have concrete examples.
  140. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    I think there's still a few places that I need to guard the stack better, so that might be where some crashes originate. Let me know if it becomes a bigger problem or you find something...
  141. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    http://hocuspocus.taloncrossing.com/rii/xlua-dist.zip

    This release should hopefully fix that problem. it MAY also fix Corentin's problem but I am far from sure on that.

    Thanks for reporting it.
  142. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    I dug out my old laptop to throw another machine at the problem. I observed it crash at 1025 using your exact example.

    Since I have something I can physically debug now, I'll start working on it.
  143. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    You can overwrite existing exported objects by reusing IDs. But that's beside the point. There is no hard-coded limit, so there is an underlying problem that must be investigated.

    Have you tried...
  144. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Could you explain better your test application? All that happens is I click the button and get "base.idCarteActive not a number"

    But is it safe to assume that your problem is related to either...
  145. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    Could you give me a sample of the script you are trying to load, and from what string source you're loading it? Does the same script load fine when run from a file?

    I just tried running a 2000...
  146. Replies
    424
    Views
    269,805

    Re: XLua extention beta

    That's interesting. I wasn't aware that was ever a problem for Lua+. Can I have more information, like what OS, what hardware platform, what version of MMF, etc that you are running?

    Thank you...
  147. Replies
    424
    Views
    269,805

    XLua extention beta

    Hi everyone

    I feel bad about doing this, but I am introducing another Lua object into the mix, due to stability problems with the existing extensions. My intention is to benefit other community...
Results 1 to 147 of 147