SRL Archive - Unofficial Development

The Another DTM Editor. Public release. Still development.


CynicRus

2014-04-16 02:30:01

Hello all. I present to you Another DTM Editor. Written in Delphi XE3, and compartible with a Simba Alghoritms. Already its a testing version, but, it can completely replace the current editor.

UPDATED: 22.06.2015.

Features:

- Multi-DTM, you can create multiple DTMs in one session.;
- Multi-Bitmap, you can use a multiple images for DTMmaking\testing;
- Getting pixel by arrows;
- fully compatible with Simba

Screenshot:




Snippet example:

program DTMSnippet;

var
testDTM: integer;

Procedure InitDTM;
begin
testDTM := DTMFromString('mggAAAHicY2NgYGgA4nogrgTiVigfxDYDYicgtgZiGyC2B2I7IP5QUsLwOiSE4Vt5OcMDIP0xK4vhXVISAy7AiANDAACVFQ69');
end;

procedure FreeDTM;
begin
FreeDTM(testDTM);
end;



The searching result in the separate window:





The source code has been released now, you can found it here:

https://github.com/CynicRus/dtmeditor

Have fun!

Application moved to the github!
https://github.com/CynicRus/dtmeditor/releases/tag/0.9b

Cheers,
Cynic.

YoHoJo

2014-04-16 04:29:08

Holy WOWZA!
Cynic is a BEAST of a coder, always making such amazing tools for the community, you are such a pro, thanks so much for all of your contributions to the SRL community!

Rich

2014-04-16 07:31:48

Once again, amazing work man. Grats on the release BTW!

From: CynicRus
- Getting pixel by arrows;


Oh, and I literally love you for that ^^

Janilabo

2014-04-16 07:32:04

As always Cynic, nice job once again!
Glad to see you are back in action man.

CynicRus

2014-04-16 07:34:06

From: Janilabo
As always Cynic, nice job once again!
Glad to see you are back in action man.


Ty, Mate!

sdf

2014-04-16 08:31:48

Nice job. It works better than the built-in one, but doesn't seem to like my second monitor. Any target windows on the second screen will appear white on the captured image.

CynicRus

2014-04-16 23:49:37

From: sdf
Nice job. It works better than the built-in one, but doesn't seem to like my second monitor. Any target windows on the second screen will appear white on the captured image.


Heh. Sorry, but I don't have a second monitor for testing it:(

Brotein

2014-04-17 09:22:29

Awesome release, I'll try this one out later. Cool to see the tools getting updated.

CynicRus

2014-04-20 03:42:01

Surely no one has yet tested? Guys, I killed a week to develop, really in Community nobody else writes a scripts?:)

The Mayor

2014-04-20 07:10:00

Works great! I like how you can upload your image from file. I might have to remake the DTM part in my tutorial with updated pictures.

Janilabo

2014-04-20 17:04:44

Hey @CynicRus, I appreciate all the work you put into this project mate! Good work man.

Here you go, I'll throw you some small suggestions:
1. Add scrollbar for menu-stuff on the right-side of the DTM editor, because right now with smaller screens you cannot see all the fields (eg. Tolerance) - see this image. Pretty big poblem with laptops!
2. When the DTM editor is resized, make it so that it resizes the image area (so the effect will be only for image area in size)
3. Zoom feature, see Simba's current DTM editor from extensions (Image => Zoom)
4. Does "List of images" TListBox really need all that Width? It only contains numbers, so there is plenty of "waste" in it - you could instead add some of the features next to it
5. Get rid of that white area in Pixels image (zoom) - stretch the TImage(?) bigger, so that it removes the empty space
6. New and Load buttons aren't same Height aren't aligned and even the height differs(!)
7. Show Matching Colours feature might be good idea to add in too (old DTM editor contains it)
8. Minimum height and width for DTM Editor window size (limits for resizing)

Thanks for adding so many options for DTM Drawing color - fantastic. :)

-Jani

CynicRus

2014-04-21 01:13:07

Ty Jani!

Well, i've fixed the form resizing, now it works correctly. Also mininimal size for the main form has been added.
About Zoom feature: really somebody will use that?

About suggestion ?5: can you explain that?

Source code also released:)

Janilabo

2014-04-21 07:18:40

From: CynicRus
Ty Jani!

Well, i've fixed the form resizing, now it works correctly. Also mininimal size for the main form has been added.
About Zoom feature: really somebody will use that?

About suggestion ?5: can you explain that?

Source code also released:)
Good changes mate. It is so much better now, cheers Cynic! :p

Suggestion 5, Pixels looks like this to me:

I would advice changing the minimal height slightly smaller, width is alright.
> THIS is the reason why I suggest smaller height limit..

Also, I can't see image scrollbars correctly. Basically, some of the vertical scrollbar bottom button is hidden and horizontal scrollbar is completely missing for me.
> HERE is an image of DTM Editor in fullscreen to me, just to make it easier for you to see what is going on.. :)

-Jani

CynicRus

2014-04-21 11:54:18

From: Janilabo
Good changes mate. It is so much better now, cheers Cynic! :p

Suggestion 5, Pixels looks like this to me:

I would advice changing the minimal height slightly smaller, width is alright.
> THIS is the reason why I suggest smaller height limit..

Also, I can't see image scrollbars correctly. Basically, some of the vertical scrollbar bottom button is hidden and horizontal scrollbar is completely missing for me.
> HERE is an image of DTM Editor in fullscreen to me, just to make it easier for you to see what is going on.. :)

-Jani


Sorry Jani, I cannot reproduce that:(

The Mayor

2014-06-11 01:46:57

@CynicRus this is unusable on a low resolution. This laptop is 1366 x 768 and there is no way to view the color/tolerance


CynicRus

2014-06-11 14:25:48

From: The Mayor
@CynicRus this is unusable on a low resolution. This laptop is 1366 x 768 and there is no way to view the color/tolerance


Roger that! Will fix it soon!

NKN

2014-06-15 00:34:00

Is this happening to anyone else?

Selecting the target, works on some things, not on others. Tried selecting SMART.

CynicRus

2014-06-16 00:39:26

I do not observed of this behavior

Flight

2014-06-16 04:30:14

For some reason I cannot adjust the height; it seems to be locked, but no problems adjusting the width.

KeepBotting

2014-06-16 10:53:11

From: NKN
Is this happening to anyone else?

Selecting the target, works on some things, not on others. Tried selecting SMART.
Happens to me, too. Seems to work when I load image from target (having NOT selected a target), then select a target, then load image from target again.

Suggestion: add a 'mark' button to the tolerance, so we can see what the script will see (like mark best color on ACA where it highlights in red)

CynicRus

2014-06-24 01:38:54

So, I updated the Editor, I think I fixed this error. Also I make a few tweaks\optimizations.

Cheers,
Cynic.

honeyhoney

2014-06-26 14:36:00

From: Rich
Oh, and I literally love you for that ^^


I second this.

Thanks for sharing - I'll give some feedback later, although if you don't hear from me you can assume everything is working fine. :)

The Mayor

2014-07-07 02:08:59

Hey @CynicRus

Working great but I've got a few suggestions! I would prefer that the current colour be displayed underneath the pixels boxes, and not in the bar at the bottom. I tend to look at what colour I'm picking and it's hard to look back and forth.


Also, you know for the Find DTM/Find DTMs debug, aren't the red crosses meant to appear on the DTM midpoint? They look a bit off? When you findDTM(dtm, x, y, etc.) in simba, will x and y be the center point of the DTM (first point), or the center of the red 'X'?


CynicRus

2014-07-08 14:45:56

From: The Mayor
Hey @CynicRus

Working great but I've got a few suggestions! I would prefer that the current colour be displayed underneath the pixels boxes, and not in the bar at the bottom. I tend to look at what colour I'm picking and it's hard to look back and forth.

//
Also, you know for the Find DTM/Find DTMs debug, aren't the red crosses meant to appear on the DTM midpoint? They look a bit off? When you findDTM(dtm, x, y, etc.) in simba, will x and y be the center point of the DTM (first point), or the center of the red 'X'?



Ty for the issue:) I think, I will implement that soon:)

CynicRus

2014-07-10 03:06:03

New feature added:


The results offset bug is also fixed:)

Ty The Mayor!:)

CynicRus

2014-07-11 11:26:22

No one has tried it?:)

Ian

2014-07-11 12:36:44

From: CynicRus
No one has tried it?:)


I don't think the offsetting bug is fixed yet


seems to place the x in the topleft corner of the DTM

Other than that it seems to be working well :)

I really like the changing the colour of the DTM feature.

CynicRus

2014-07-11 13:07:56

Weird, because it give a same results as integrated DTMEditor…

Ian

2014-07-11 13:18:36

From: CynicRus
Weird, because it give a same results as integrated DTMEditor…


Integrated DTM editor shows this for me


CynicRus

2014-07-11 13:38:37

Hm…weird.

The Mayor

2014-07-11 17:32:10

From: CynicRus
Hm…weird.


Yea the 'x' is same as before, but the colour printed in the box is very nice. If you can't fix the 'x' debug don't worry too much as simba finds all the DTMs no problem.

The Mayor

2014-07-13 00:34:14

I still cannot view the color / tolerance on my laptop. I cannot adjust the height so they are cut off at the bottom. Maybe put the list of images at the bottom as that is not important :) This is what I see:


CynicRus

2014-07-13 06:41:31

Just resize this up. The list of image becomes less-)

The Mayor

2014-09-22 03:45:50

From: CynicRus
Just resize this up. The list of image becomes less-)


Impossible to use!


Either make it re-sizable or put the list on images at the bottom and the colour/tolerance at the top ;)

CynicRus

2014-09-22 04:05:58

Fixed:)

The Mayor

2014-09-22 04:09:09

Working nice, thanks ;)

CynicRus

2015-06-18 13:16:01

The new version….coming soon:) I think tomorrow I will release it:)

The Mayor

2015-06-18 13:31:37

From: CynicRus
The new version….coming soon:) I think tomorrow I will release it:)


:spot: what's in the new version?

CynicRus

2015-06-18 13:37:08

From: The Mayor
:spot: what's in the new version?

A lot of changes:) Fixed a tons of the old bugs, change the DTM finding algorithm, etc..:) Yea, now its find DTM accurately-) In the old version, I have a few years of studying and did not understand why this is such a structure is searching in an excessive way in Simba:)

StickToTheScript

2015-06-18 14:57:52

From: CynicRus
A lot of changes:) Fixed a tons of the old bugs, change the DTM finding algorithm, etc..:) Yea, now its find DTM accurately-) In the old version, I have a few years of studying and did not understand why this is such a structure is searching in an excessive way in Simba:)


Looking forward to the update!

CynicRus

2015-06-20 02:12:08

Version 0.9b released!

Cheers,
Cynic.

CynicRus

2015-06-20 16:41:42

Fixed bug with multydtm finding. Thank you @BMWxi; !