Powered by Invision Power Board

 
  Pages: (14) 1 [2] 3 4 ... Last » ( Go to first unread post ) Reply to this topicStart new topicStart Poll

> XLua, MMF2 Extension
United States
Xgoff
Posted: Feb 28 2009, 10:08 AM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


well i do have a somewhat ugly but probably usable backup plan for object collisions if you can't get the functions to work


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
United States
Retriever II
Posted: Mar 1 2009, 11:06 PM
Quote Post


Catalyst
[H][*][*][*][*]
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 18290
Member No.: 52
Joined: 13-October 03

Status: (0d) [--]


Updated the distribution.

By request of a click user, I added the expression-based Lua function calls.

The error and print handling have also been changed for improved safety. All error and print events will now be queued until the end of the event loop, and then reported. This may have a small impact on the behavior of your programs. This will prevent crashes that stem from an expression being interrupted by a triggered event execution.

Fixed a bug in loading the package library, which would cause applications to immediately quit.


--------------------

PMEmail PosterUsers WebsiteICQAOLMSN
Top
United States
Retriever II
Posted: Mar 3 2009, 11:37 PM
Quote Post


Catalyst
[H][*][*][*][*]
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 18290
Member No.: 52
Joined: 13-October 03

Status: (0d) [--]


Some major additions to the MMF Interface. First a bunch of convenience functions that would be useful for a level editor (cough):

mmf.Frame.GetHeight
mmf.Frame.GetVHeight
mmf.Frame.GetVWidth
mmf.Frame.GetWidth
mmf.Frame.GetXLeft
mmf.Frame.GetXRight
mmf.Frame.GetYBottom
mmf.Frame.GetYTop

mmf.Mouse.GetClientX
mmf.Mouse.GetClientY
mmf.Mouse.GetX
mmf.Mouse.GetY

mmf.Object.GetFixed
mmf.Object.GetName

mmf.Window.GetCHeight
mmf.Window.GetCWidth
mmf.Window.GetHeight
mmf.Window.GetWidth

Second, I've defined the callback interface function mmf.ExportCallback.

This is undefined out of the box, but if you do define it, it will get executed every time you export an object, and the ID will be passed as the only parameter.

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


--------------------

PMEmail PosterUsers WebsiteICQAOLMSN
Top
Denmark
Mecha the Slag
Posted: Mar 7 2009, 09:02 AM
Quote Post


http://mechaware.net
[*][*][*][*][*]
[*][*][*]

Group Icon
Group: Members
Posts: 11816
Member No.: 728
Joined: 15-December 04

Status: (0d) [--]




--------------------




MechaWare GamesMechaSourceMechaWare for CellphonesMechaWare on Steam

PMUsers WebsiteMSN
Top
United States
Retriever II
Posted: Mar 7 2009, 09:53 PM
Quote Post


Catalyst
[H][*][*][*][*]
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 18290
Member No.: 52
Joined: 13-October 03

Status: (0d) [--]


Try downloading it again.

Basically what you found is a corner case, an off-by-one error that I didn't expect because I never call MMF functions as the first item on the call stack (by executing an MMF function from a dofile or dostring, rather than a lua call).


--------------------

PMEmail PosterUsers WebsiteICQAOLMSN
Top
Denmark
Mecha the Slag
Posted: Mar 8 2009, 05:34 AM
Quote Post


http://mechaware.net
[*][*][*][*][*]
[*][*][*]

Group Icon
Group: Members
Posts: 11816
Member No.: 728
Joined: 15-December 04

Status: (0d) [--]


Brilliant, thanks!

Time to replace lua+ with xlua... :(


--------------------




MechaWare GamesMechaSourceMechaWare for CellphonesMechaWare on Steam

PMUsers WebsiteMSN
Top
United States
Retriever II
Posted: Mar 11 2009, 12:32 AM
Quote Post


Catalyst
[H][*][*][*][*]
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 18290
Member No.: 52
Joined: 13-October 03

Status: (0d) [--]


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

This release fixes a potential lua stack overflow (horrible game-crashing bugs). Actually, if you called lots of functions between other actions you'd probably never see it, but maybe you would. Random bugs suck like that, so you'd better download this!


--------------------

PMEmail PosterUsers WebsiteICQAOLMSN
Top
United States
Xgoff
Posted: Mar 11 2009, 04:17 PM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


so have you figured out edittime object properties yet

it would be nice if you could have a script stored within the extension itself, instead of having to use a string object or something (mainly if you just wanted to use xlua as a widget-type thing for something)


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
United States
Retriever II
Posted: Mar 11 2009, 04:52 PM
Quote Post


Catalyst
[H][*][*][*][*]
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 18290
Member No.: 52
Joined: 13-October 03

Status: (0d) [--]


I had to learn them for the Dynamic Grid object, so I guess I could add something.


--------------------

PMEmail PosterUsers WebsiteICQAOLMSN
Top
United States
Retriever II
Posted: Mar 13 2009, 11:48 PM
Quote Post


Catalyst
[H][*][*][*][*]
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 18290
Member No.: 52
Joined: 13-October 03

Status: (0d) [--]


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

This fixes a small bug related related to MB's function bug earlier.

This also formally introduces some previously undocumented functionality. First, a few MMFI functions:

mmf.Mouse.ButtonUp(button)*
mmf.Mouse.ButtonDown(button)*
mmf.Window.GetFrameWidth()
mmf.Window.GetFrameHeight()

* These functions test current state. If you want to capture the the Button Up / Button Down events themselves, refer to the WIN Interface below.

Second, the WIN Interface:

This interface consists of a single function, win.ExportMessage(msgid, function), which allows you to bind a windows message to a lua function. When the windows message is fired (like WM_KEYDOWN), the associated lua function will be executed with that message's parameters. Here is an example that I use in Tile Lattice:
CODE
win.def = {
WM_ENTERMENULOOP = 0x211,
WM_EXITMENULOOP  = 0x212,
}

win.state = {
menusOpen = 0,
}

win.callback = {

OnMenuOpen = function (wparam, lparam)
 win.state.menusOpen = win.state.menusOpen + 1
end,

OnMenuClose = function (wparam, lparam)
 win.state.menusOpen = win.state.menusOpen - 1
end,
}

win.ExportMessage(win.def.WM_ENTERMENULOOP, win.callback.OnMenuOpen)
win.ExportMessage(win.def.WM_EXITMENULOOP, win.callback.OnMenuClose)

These two messages fire when an application or context menu is opened and closed. I keep the menu state in a convenient variable, so that when a user opens the application menu, the mouse clicking will not accidentally interfere with the rest of the application. Similar messages can be used to capture mouse or keyboard events, when windows are moved and resized, etc. Refer to MSDN for more documentation on windows messages.

Obviously if you're running user-defined code, you should protect or nil out the interface for security reasons.


--------------------

PMEmail PosterUsers WebsiteICQAOLMSN
Top
United States
Xgoff
Posted: Mar 14 2009, 12:15 AM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


wtf rii you're making an extension have awesome features

that has to be breaking some kind of rule


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
United States
Retriever II
Posted: Mar 14 2009, 12:54 AM
Quote Post


Catalyst
[H][*][*][*][*]
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 18290
Member No.: 52
Joined: 13-October 03

Status: (0d) [--]


It must be illegal

Also executing an MMF function while interceping a message may produce undefined results, because the message may fire during an interval where event processing is undefined.

This post has been edited by Retriever II on Mar 14 2009, 12:58 AM


--------------------

PMEmail PosterUsers WebsiteICQAOLMSN
Top
Denmark
Mecha the Slag
Posted: Mar 14 2009, 10:50 AM
Quote Post


http://mechaware.net
[*][*][*][*][*]
[*][*][*]

Group Icon
Group: Members
Posts: 11816
Member No.: 728
Joined: 15-December 04

Status: (0d) [--]


I have an instant crash in MS because of the xLua object. I'm not sure what triggers it, and isolating it will take a while. Just wanted to let you know.


--------------------




MechaWare GamesMechaSourceMechaWare for CellphonesMechaWare on Steam

PMUsers WebsiteMSN
Top
United States
Retriever II
Posted: Mar 14 2009, 10:59 AM
Quote Post


Catalyst
[H][*][*][*][*]
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 18290
Member No.: 52
Joined: 13-October 03

Status: (0d) [--]


Is this from the latest build or one from a couple days ago?


--------------------

PMEmail PosterUsers WebsiteICQAOLMSN
Top
Denmark
Mecha the Slag
Posted: Mar 14 2009, 11:06 AM
Quote Post


http://mechaware.net
[*][*][*][*][*]
[*][*][*]

Group Icon
Group: Members
Posts: 11816
Member No.: 728
Joined: 15-December 04

Status: (0d) [--]


QUOTE (Retriever II @ Mar 14 2009, 04:59 PM)
Is this from the latest build or one from a couple days ago?

latest


--------------------




MechaWare GamesMechaSourceMechaWare for CellphonesMechaWare on Steam

PMUsers WebsiteMSN
Top
United States
Xgoff
Posted: Mar 15 2009, 12:03 AM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


would you be able to add a return value to the four move interface functions (MoveToFront, MoveToBack, MoveAbove, and MoveBelow), so they return the new Z-index of the object?


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
United States
Retriever II
Posted: Mar 15 2009, 01:05 PM
Quote Post


Catalyst
[H][*][*][*][*]
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 18290
Member No.: 52
Joined: 13-October 03

Status: (0d) [--]


There's some new actions in the build now for resetting state, as a workaround for destroying the object which seems to be unstable at the moment.


--------------------

PMEmail PosterUsers WebsiteICQAOLMSN
Top
Denmark
Mecha the Slag
Posted: Mar 15 2009, 01:56 PM
Quote Post


http://mechaware.net
[*][*][*][*][*]
[*][*][*]

Group Icon
Group: Members
Posts: 11816
Member No.: 728
Joined: 15-December 04

Status: (0d) [--]


QUOTE (Retriever II @ Mar 15 2009, 07:05 PM)
There's some new actions in the build now for resetting state, as a workaround for destroying the object which seems to be unstable at the moment.

soveryhappy.gif


--------------------




MechaWare GamesMechaSourceMechaWare for CellphonesMechaWare on Steam

PMUsers WebsiteMSN
Top
Denmark
Mecha the Slag
Posted: Mar 16 2009, 10:35 AM
Quote Post


http://mechaware.net
[*][*][*][*][*]
[*][*][*]

Group Icon
Group: Members
Posts: 11816
Member No.: 728
Joined: 15-December 04

Status: (0d) [--]


There's a crash with the new reset state action. If you could come on msn and tell me the function to view the break info, then that'd be great as I forgot it :(

edit: there's also a crash with tables

This post has been edited by MechaBowser on Mar 16 2009, 02:20 PM


--------------------




MechaWare GamesMechaSourceMechaWare for CellphonesMechaWare on Steam

PMUsers WebsiteMSN
Top
United States
Retriever II
Posted: Mar 16 2009, 06:45 PM
Quote Post


Catalyst
[H][*][*][*][*]
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 18290
Member No.: 52
Joined: 13-October 03

Status: (0d) [--]


Until I manage to catch you on MSN, the best thing you can do, if possible, is isolate the problem to an MFA file that you can give me. Every time I change the code, I can't debug precompiled exes.


--------------------

PMEmail PosterUsers WebsiteICQAOLMSN
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Pages: (14) 1 [2] 3 4 ... Last » Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0656 ]   [ 13 queries used ]   [ GZIP Enabled ]   [ Server Load: 1.53 ]