Jump to page content
English English  Polish Polish  Dutch Dutch  Russian Russian  German German  Hungarian Hungarian  Norwegian Norwegian  Swedish Swedish  Finnish Finnish  Romanian Romanian  Spanish Spanish  Portuguese Portuguese  Latvian Latvian 


rssObject Movement Generator (omg)

Rate:You need to be logged in to vote
Rating:3.8 (92 Votes)
Object Movement Generator from DDC (beta)
an attempt to help some people create moving objects (using moveObject function) more easily.

basic idea is:
you create a dummy object in map editor, place it at starting point, get a point from that location, move your object to next location, set a point/timings there, move to 3rd place, set a point, etc etc.
after you added all the points you need, dummy object can be deleted from map, it will be created/moved by generated lua script when map resource starts.


1. start map editor
2. type "start omg" in console or "/start omg" in chat
3. you should see OMG icon in the bottom right corner, by clicking on which you'll open main window.

to test generated script IN map editor "test mode":
1. save your map
2. save generated lua file to your map resource folder
3. press F5 in map editor

you can further edit objects/points, script will be replaced with new when you save it (unless you change the script name)

main window description:

"show all points" checkbox — show all location points of all added objects

Object list - is a list of all objects (with points count and model IDs) you've added. select an object here to display its movement points

Add object — add an object to the list

Edit object — edit an object from the list

Delete/Delete All — self explanatory

.lua button — use it to get your script when you added all your objects. dont forget to input your script name in the field.

object window description:

Object name — is the name that object will use in script (!). if you wont specify it, it will be autogenerated on object save/test (like omg1234).

Model ID — is the ID of the object model. required. you can get id of any selected object by clicking GET button on the right.

Get location of selected object — inserts selected object x,y,z location and rotation to the fields below.

Add/Edit point — adds a movement point with location/rotation/time parameters from the fields above.
To select/edit one of the already added points, scroll mouse wheel over this button to select, click it to save edited point.

Add new from object — adds a movement point from selected object location/rotation and time parameters from fields above (no need to get coordinates, it will store the location from selected object right away).

Delete selected point — deletes point selected with "Add/Edit" button.

Delete all points — deletes all points in movement path.

Only rotate in place — check it to make object rotate-only. in this case only first point used (so you'll need to add at least one) with separate rotation times/angles that you can set below.

Stop at last point — by default object movement is looped (after last point object will move back to first), check this to stop your object at last point.

Objects attached: 0 — attached objects counter

Attach selected object — click this to attach selected object to your main object (notice that object will be attached in its current position to main object at starting point, so it's best to add all attachments from start)

Delete all attachments — deletes all attached objects

Test movement — creates your object with attachments and moves it in realtime. use it to test how the end result will look.

Save Object — saves object to OMG export list.

overall features/bugs:

+ multiple movement points (tested up to 16)
+ every movement point includes object coordinates/rotation and its own stop/move timing
+ 1-point rotation-only objects
+ object attachments
- attached object will be a bit off if main object is rotated by x/y axes on attachment, z is fine. need to fix that someday (involves some 3D rotation calculations in which i'm not so good at best :D).


Download latest version | Report

Version history

Version Publish Date Changes
0.9.9 2010-12-29 19:03:49 messed up "stop time" bug fixed Download
0.9.8 2010-12-14 01:50:42 + getting point location directly from selected object when editing points («Selected to point:» button)
+ overall movement path relocation by starting point to selected object («Relocate» button)
+ quick test of selected object («Test object» button in main window)
+ moving camera to selected object location (double-click on object in the list)
+ saving/loading movement paths to «library» for future use
+ rotating objects export fix (now no delay before rotation starts)
+ some minor fixes, maybe new bugs :D
0.9.7 2010-12-10 19:44:44 * added point selection/editing/deleting (scroll mousewheel over "Add/Edit" button to select point)
* some graphic changes
0.9.5 2010-12-03 13:16:39 * .lua file saving to resource (including meta.xml) added
* some graphic changes (on object selection with "all objects" checked)
0.9.1 2010-11-10 00:31:58 * 2-point direction arrow display fix
* some not needed images removed
0.9.0 2010-11-06 20:46:02 First public release Download