Code:
-Version 00.1: New host, courtesy of [J]ustin. As a result, the version number
has been reset.
Added ferns to list of useable minimap objects (MM_FERN).
Updated NPC dot record due to reports of NPC occasionally failing
to be located.
-Version 10.3: Made compatible with newest SMART and changes within SRL.
-Version 10.2: Optimised object-finding code and fixed a bug that could have
been the root cause of many false positives. Removed the
'T2DStringArray' type declaration as it was for an older planned
revision of the include, future plans now do not include
multi-dimensional strings, and it was causing duplicate errors.
Improved the ground level check.Fixed certain coordinates in the
Generation Tool that have been affected by the addition of a
toolbar at the top of the RS client. Removed 'ObjectDebug', as
it is obsolete. Changed the include lines at the top,
$DEFINEPAINT is no longer needed.
Sorry for the lack of updates this year, am trying to get back
on track with this and hope to be producing some exciting
features soon.
-Version 10.0: Updated the minimap object record for dead trees (MM_DEADTREE).
Fixed the bug in 'ObjDTM_WalkPath' when the first node was not
found and the include threw an out-of-range error.
Added three new global variables: 'ObjDTM_TextDebug',
'ObjDTM_XRand', and 'ObjDTM_YRand'. By default,
'ObjDTM_TextDebug' is set to false, and the include will rarely,
if ever, write something to the debug box. After calling
'ObjDTM_Setup' in your script, you can set this to true in order
to restore text debugging. 'ObjDTM_XRand' and 'ObjDTM_YRand' are
integers that specify the randomness with which the include will
click at the main-point of an Object DTM. By default, these
values are set to 2. After calling 'ObjDTM_Setup' in your script,
you can set these to determine click randomness.
-Version 9.9: Added the function 'ObjDTM_WalkPath'. The include now
contains a function to easily walk paths contained within
TStringArrays. Tweaked minimap object record for ladders
to account for the strange half-ladders that crop up on
occasion. Removed the function 'ObjDTM_Generate' and removed
the function 'ObjDTM_PathRecorder' these two have been
rendered obsolete with the new generation tool shipped with
the include. 'FindObjDTM' and 'ObjDTMWalk' will be removed
in the next version. If they are being used in your scripts
please update to use 'ObjDTM_Find' and 'ObjDTM_Walk' instead.
-Version 9.8: Added 'Delete ODTM' button to tool, adding ability to
delete and clear the current Object DTM.
-Version 9.7: Fixed form bugs in generation tool.
-Version 9.6: The generation tool is now part of the 'ODTM' menu, for
ease of access.
-Version 9.5: Added NPC dots to list of useable minimap objects (MM_NPC).
Please note that only stationary NPC's, like bankers, should
be used. Created a new generation tool. Super exciting.
Please see:
'Simba/Includes/ObjectDTM/Object DTM Generation Tool.simba'
So far, only the 'Single' tab, and the 'Path' tab are
functional. These two will allow you to make single Object
DTMs, and paths.
-Version 9.4: Fancy hackish stuff implemented to switch people over to
new extension without having to manually download.
-Version 9.3: Stopped scripters from crashing script when trying
to use area-related methods with an Object DTM with
no area information. Fixed the Minimap Object Record for
Cactus (MM_CACTUS). The include should now be useable
in the desert.
Phased out 'InObjDTMArea', use 'ObjDTM_InArea'
Phased out 'GenerateObjDTM', use 'ObjDTM_Generate'
Would like to:
Phased out 'LoadObjects' and 'SetupODTMI', use 'ObjDTM_Setup'
Phased out 'ObjDTMWalk', use 'ObjDTM_Walk'
Phased out 'FindObjDTM', use 'ObjDTM_Find'
-Version 9.2: Added extension updater! Hooray!
-Version 9.1: Removed SRL4 support since SRL5 is now standard.
New on-SMART guide for generation tool.
Fixed duplicate identifier errors.
-Version 8.9: Fixed a bug that caused 'ObjDTM_Walk' to be more
unreliable than it would otherwise be. Commenting out
Multi Object DTM related code until I can properly fix it.
-Version 8.8: Added the ability to delete sub-points while using
the 'ObjDTM_Generate' function. Added 'ObjDTM_PathRecorder',
which allows you to easily create paths.
-Version 8.7: Bug fix to 'ObjDTMToString', bug caused the area to be
nulled. Added the 'ObjDTM_Generate' function. This is a new
interactive Object DTM generation tool. You need SRL5 to use it.
-Version 8.6: Support for SRL5 added.
-Version 8.5: More small bug fixes/speed improvements, the function additions
in Version 8 still aren't really functional. Sorry :/. Added
'ObjDTM_InAreaEx' Which allows you to specify a specific point to
check to see if it is in the Object DTM's area. There is now
paint debugging, useable by setting the variable
'ObjDTM_Debug' to true in the setup of your script.
Trying to standardize the names of everything. Not there yet.
-Version 8: bug fix in finding function. Overall speed improvements. Added
'Multi-Object DTMs' which allow for multiple Object DTMs to be
defined in a string array, to use in the same way as single
Object DTMs, but if one fails, the code will try the next. Path-
walking function. All of these additions are untested. Will
try to get testing done soon. So this update is mostly for
the bug fix/speed improvement. But feel free to try the new stuff.
Haven't added comments, code is messy, real sorry about all of
this. Will be resolved in Rev 8.1.
Added:
ObjDTM_MultiWalk;
ObjDTM_InMultiArea;
ObjDTM_PathWalk;
ObjDTM_InAreaEx;
None of which are really functional at the moment, except ObjDTM_InAreaEx.
-Version 7.8: Changed the single use of SplitTPAEx to SplitTPAExWrap, as
I heard that it can cause memory leaks?
-Version 7.7: Changed a few things with how updates work. Now has the
ability to force a roll-back in case I broke something.
-Version 7.4/5/6: Changing naming convention for ease-of-updating purposes.
Switched to new numbering system to facilitate move towards
auto-installation and updating. Include installer now attached
to bottom of project post. The include should now auto-update
whenever a script using it is run.
--------------------------------------------------------------------------------
-Rev7c: Updated minimap object record for boulders (MM_BOULDER), it never
got updated with the rest of the records in Rev 5. Fixed a small
issue with the minimap object record for ladders (MM_LADDER), causing
ladder finding to fail on rare occasions. Realized that main-point
tracking in the walking function was never implemented- now actually
functional. Added a check to catch if a script writer has failed
to call "LoadObjects" before using code from the include.
-Rev7b: Fixed a bug in the 'ObjDTMToString' and 'ObjDTMFromString' functions that resulted in an out-of-range error.
-Rev7a: Added maple trees, and rocks to list of useable minimap objects
(MM_MAPLE), (MM_ROCK).
-Rev 7: Added cacti to list of useable minimap objects (MM_CACTUS).
Fixed a rather grievous oversight on my part, and made sure that
SMART related code isn't actually compiled if SMART isn't defined
in the script. Added the rather verbosely-named
'PrintObjDTMRecFromString' This allows you to pass an Object DTM
in string-form, and have the record form print out in the debug.
This makes it easy to change the contents of string-form Object DTMs.
-Rev 6: Added the henge object (stone circle columns) to list of useable
minimap objects (MM_HENGE). Implemented polygonal areas.
Convex/Concave polygons can now be defined for Object DTM areas,
allowing for very specific area boundaries.
-Rev 5: I think color-finding has been improved in this revision, meaning
from now on the finding of objects is less likely to break.
-Rev 4: Added the function 'PointInPolygon' which now allows for accurate
implementation of the 'InObjDTMArea' function.
-Rev 3a: couple of bug fixes. The 'InObjDTMArea' function is now somewhat
operational.
-Rev 3: Added the functions 'ObjDTMFromString' and 'ObjDTMToString' these
supplement the new, more compact string-form of Object DTMs. Updated
minimap object records for trees, ladders, and plants. All functions and
procedures now require the string-form of Object DTMs to be passed.
Alternatively, you can put ObjDTMToString(ObjectDTM) in place of the string.
-Rev 2: Fixed minimap object record for dead trees. Added first version of
the Object DTM generator.
-Rev 1: Basic functionality to assist in the creation of Object DTMs, can find
Object DTMs at any angle, and includes a simple walking function, and
location check.