Page 3 of 4 FirstFirst 1234 LastLast
Results 51 to 75 of 89

Thread: Object DTMs: A Comprehensive Set of Tutorials

  1. #51
    Join Date
    Feb 2012
    Location
    Wonderland
    Posts
    1,988
    Mentioned
    41 Post(s)
    Quoted
    272 Post(s)

    Default

    Quote Originally Posted by Silent SPY View Post
    These aren't typical DTMs. You don't have to free them.

    Yes, normal DTMs being not freed causes memory usage to rise significantly.
    Ah okay, so if I had this code snippet:
    Simba Code:
    If FindDTM(NameHere, X, Y, MIX1, MIY1, MIX2, MIY2) Then
        begin
          Mouse (x, y, 7, 7, true);  
          FreeDTM(NameHere);
        end;
    (granted this snippet is within a procedure)
    ... So this would be correct I assume, in terms on not causing memory usage to rise significantly?

  2. #52
    Join Date
    Mar 2007
    Location
    USA
    Posts
    1,433
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Le Jingle View Post
    Ah okay, so if I had this code snippet:
    Simba Code:
    If FindDTM(NameHere, X, Y, MIX1, MIY1, MIX2, MIY2) Then
        begin
          Mouse (x, y, 7, 7, true);  
          FreeDTM(NameHere);
        end;
    (granted this snippet is within a procedure)
    ... So this would be correct I assume, in terms on not causing memory usage to rise significantly?
    No, wrong kind of DTM . These aren't your typical kind haha, it's sort of hard to explain. For an object DTM you would use ObjDTM_Find instead of FindDTM. The parameters are also quite different, but I don't remember what they are right now.
    I'm Silent SPY
    Secret project: 0%
    Need help? Send me a PM

  3. #53
    Join Date
    Feb 2012
    Location
    Wonderland
    Posts
    1,988
    Mentioned
    41 Post(s)
    Quoted
    272 Post(s)

    Default

    Ah, I think I have to read up then. I'm still getting the hang of which is what, thanks for helping me with the earlier questions though, as well as the object/find DTM. +rep !

  4. #54
    Join Date
    Mar 2007
    Location
    USA
    Posts
    1,433
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Le Jingle View Post
    Ah, I think I have to read up then. I'm still getting the hang of which is what, thanks for helping me with the earlier questions though, as well as the object/find DTM. +rep !
    No problem. When euphemism first came out with object DTM's they confused me too, so don't worry too much about it. I had the same thoughts you did initially.
    I'm Silent SPY
    Secret project: 0%
    Need help? Send me a PM

  5. #55
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    When I try to run my script it stops and takes me to the ObjDTM Include script and gives me this error in my debug box:

    Error: Out Of Range at line 845
    The following DTMs were not freed: [SRL - Lamp bitmap, 1]
    The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap]


    These are lines 844 and 845 in the ObjDTM Include:
    Simba Code:
    Result.Area[i - 1].x := ExIntArray[AB - 1];
    Result.Area[i - 1].y := ExIntArray[AB];


    Any help? And yes everything is updated....
    Last edited by Abu; 03-09-2012 at 04:58 PM.

  6. #56
    Join Date
    Feb 2009
    Location
    The Netherlands
    Posts
    45
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by abu_jwka View Post
    When I try to run my script it stops and takes me to the ObjDTM Include script and gives me this error in my debug box:

    Error: Out Of Range at line 845
    The following DTMs were not freed: [SRL - Lamp bitmap, 1]
    The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap]


    Any help? And yes everything is updated....
    uh huh, this worked for me
    http://villavu.com/forum/showthread.php?p=848708

  7. #57
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    Nah its got nothing to do with lag. The script doesn't even start... that error just comes up when I press run script, but it compiles successfully :S

  8. #58
    Join Date
    Feb 2009
    Location
    The Netherlands
    Posts
    45
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by abu_jwka View Post
    Nah its got nothing to do with lag. The script doesn't even start... that error just comes up when I press run script, but it compiles successfully :S
    GRMBL, just follow it. It's a really short post, and there's even a tl;dr....
    Download java from the link, there's your problem. You have different symptoms, but the same solution nontheless

  9. #59
    Join Date
    Dec 2011
    Location
    Behind you...
    Posts
    345
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Ok, so i created a DTM path, and after i had finished making it with the DTM tool, it gave me a load of numbers/points; my question is how to i include this into my script so it walks the path.
    I cant find anything in these tutorials that explains how you put the DTM walking into your script.

  10. #60
    Join Date
    Mar 2007
    Location
    USA
    Posts
    1,433
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by ssshhhaaa View Post
    Ok, so i created a DTM path, and after i had finished making it with the DTM tool, it gave me a load of numbers/points; my question is how to i include this into my script so it walks the path.
    I cant find anything in these tutorials that explains how you put the DTM walking into your script.
    Does the path tool give back the numbers in an array? If so you could implement it like this:

    Simba Code:
    for i:= 0 to LengthOfPathArray(set it manually or use a function) do
    ObjDTM_Walk([i], 1, 1000, 30, true);

    Or something similar to that. If they are just single paths/walking points, just use the ObjDTM_Walk like this
    Simba Code:
    ObjDTM_Walk('71:43:3:0:7:40:83:0:7:64:41:0:7:63:126', 1, 100, 40, true)

    Of course replace the path with yours, and change the last boolean if it isn't ground level.
    I'm Silent SPY
    Secret project: 0%
    Need help? Send me a PM

  11. #61
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    I have a question.

    If I use the function ObjDTM_InArea, then does the ObjDTM I want to check for only have to be the Area Polygon, or do I have to add objects to find with it as well as the area polygon?

    EDIT: Nevermind, figured it out
    Last edited by Abu; 04-02-2012 at 06:41 PM.

  12. #62
    Join Date
    Feb 2012
    Location
    SRL Jail
    Posts
    1,319
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Much better than SPS! I stayed up til 11 playing around with this
    Rep+

  13. #63
    Join Date
    Feb 2012
    Posts
    107
    Mentioned
    0 Post(s)
    Quoted
    21 Post(s)

    Default

    Edit.
    Last edited by spin3x; 05-30-2012 at 05:46 PM.

  14. #64
    Join Date
    May 2012
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Great tutorial! Took a little bit of experimentation for me to fully understand the concept, but I think I know how to apply this to my script now!

    One question I had though; can you add randomization? Easily, that is.

    From what I understand it walks directly towards the main point and this could be a little suspicious if you're doing it over and over. Is there any way to a little variation to where the flag is placed?

  15. #65
    Join Date
    Mar 2007
    Location
    USA
    Posts
    1,433
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Creath View Post
    Great tutorial! Took a little bit of experimentation for me to fully understand the concept, but I think I know how to apply this to my script now!

    One question I had though; can you add randomization? Easily, that is.

    From what I understand it walks directly towards the main point and this could be a little suspicious if you're doing it over and over. Is there any way to a little variation to where the flag is placed?
    If I remember correctly there is tolerance built into ObjDTM. In fact from use with my Spinner I know it doesn't click the exact same spot every time.
    I'm Silent SPY
    Secret project: 0%
    Need help? Send me a PM

  16. #66
    Join Date
    May 2012
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Silent SPY View Post
    If I remember correctly there is tolerance built into ObjDTM. In fact from use with my Spinner I know it doesn't click the exact same spot every time.
    I should've known ^_^ it seems like every pre-created function here is perfectly executed.

    Thanks!

  17. #67
    Join Date
    Mar 2007
    Location
    USA
    Posts
    1,433
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Creath View Post
    I should've known ^_^ it seems like every pre-created function here is perfectly executed.

    Thanks!
    No problem, glad I could help. euphemism put a lot of work into this system, it's actually quite easy to use once you get the hang of it.
    I'm Silent SPY
    Secret project: 0%
    Need help? Send me a PM

  18. #68
    Join Date
    Jun 2008
    Location
    United States
    Posts
    818
    Mentioned
    60 Post(s)
    Quoted
    90 Post(s)

    Default

    Quote Originally Posted by Creath View Post
    I should've known ^_^ it seems like every pre-created function here is perfectly executed.

    Thanks!
    d'aww

    Quote Originally Posted by Silent SPY View Post
    No problem, glad I could help. euphemism put a lot of work into this system, it's actually quite easy to use once you get the hang of it.
    D'awwwwwww. I have a lot of things to fix and improve. In its current state, the system is a bit run-down and has quite a handful of problems.
    [10/14/13:19:03] <BenLand100> this is special relatively, just cleverly disguised with yachts

  19. #69
    Join Date
    Mar 2007
    Location
    USA
    Posts
    1,433
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by euphemism View Post
    d'aww



    D'awwwwwww. I have a lot of things to fix and improve. In its current state, the system is a bit run-down and has quite a handful of problems.
    Then get your butt active and fix it! haha, <3
    I'm Silent SPY
    Secret project: 0%
    Need help? Send me a PM

  20. #70
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Im not sure If im doing something wrong, but it keeps saying im not logged in. I've tried logging in in the browser then running, doesent work, Ive tried just pressing play, then logging in, still dosent work. Am I doing something wrong?
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  21. #71
    Join Date
    Mar 2007
    Location
    USA
    Posts
    1,433
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Foooty View Post
    Im not sure If im doing something wrong, but it keeps saying im not logged in. I've tried logging in in the browser then running, doesent work, Ive tried just pressing play, then logging in, still dosent work. Am I doing something wrong?
    Its probably not going to work until Simba updates. Its broken like most everything else.
    I'm Silent SPY
    Secret project: 0%
    Need help? Send me a PM

  22. #72
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    :/ No srl include makes scripting so tough.
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  23. #73
    Join Date
    Mar 2007
    Location
    USA
    Posts
    1,433
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Footy View Post
    :/ No srl include makes scripting so tough.
    Yeah it's amazing how much help the built in functions actually are. If the Simba update news is to be believed we'll have an updated within two days.
    I'm Silent SPY
    Secret project: 0%
    Need help? Send me a PM

  24. #74
    Join Date
    Mar 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Still can't download the updated Object DTM simba files. I only have the sex file installed, and whenever it is trying to access the updated files on silentscripts.net, it says it does not exist. Could someone host me their updated v10.3 files, pretty please? I'm trying to work on a script with DTM finding, but cannot until I can use the generation tool, etc.

  25. #75
    Join Date
    Oct 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by lyo596 View Post
    Still can't download the updated Object DTM simba files. I only have the sex file installed, and whenever it is trying to access the updated files on silentscripts.net, it says it does not exist. Could someone host me their updated v10.3 files, pretty please? I'm trying to work on a script with DTM finding, but cannot until I can use the generation tool, etc.
    Same here, looks like his domain expired.

Page 3 of 4 FirstFirst 1234 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •