Poll: What should Freddy do?

Page 5 of 5 FirstFirst ... 345
Results 101 to 125 of 125

Thread: SCAR => Important

  1. #101
    Join Date
    May 2007
    Location
    NSW, Australia
    Posts
    2,823
    Mentioned
    3 Post(s)
    Quoted
    25 Post(s)

    Default

    First of all, I cant believe you (Freddy) spend your time making a program for all of us over these years. Like great job seriously, pat on the back .

    My opionion about the poll:
    SCAR 4 would be nice, giving us a brand new feel to scripting i believe, but what ever happens, doesnt bother me.

  2. #102
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by Freddy1990 View Post
    I only have one issue, the idea was to develop SCAR 4 using CodeGear RAD studio 2009 to offer full support for Vista, Windows 7, Unicode, ... But I never managed to get my hands on a license... So if I start on Delphi 7, I'll end up getting causing the same problem I have now which is that I can't port the thing to a higher version because the stuff I used isn't compatible
    I'd say wait for 2010 first In the mean time, compile SCAR 3.21 in 2007. Shouldn't make that much of a difference
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  3. #103
    Join Date
    May 2007
    Location
    UK
    Posts
    4,007
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    I say 4
    As BobboHobbo said, it would give us scripters a new lease on scripting so I say do that
    But what does my vote count as hey?
    Do what you think is best

    T~M

  4. #104
    Join Date
    Feb 2008
    Posts
    517
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    When is 4 gonna get started to be worked on?

  5. #105
    Join Date
    Feb 2006
    Location
    Belgium
    Posts
    3,137
    Mentioned
    3 Post(s)
    Quoted
    5 Post(s)

    Default

    Soon, but I have to issue 3.21b with bugfixes first and then 3.22 to finish up. I've already started writing some of the core functions for SCAR 4 though.
    Last edited by Freddy1990; 07-30-2009 at 07:30 PM.

  6. #106
    Join Date
    Feb 2006
    Location
    Belgium
    Posts
    3,137
    Mentioned
    3 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by The Man View Post
    SWEET


    Aww man, just realised I am not allowed to post yet...
    Tell me when you see this freddy and maybe quote it, cause i need to delete it

    T~M
    Lol, I don't get it...

    Btw, the functions I've been writing for SCAR 4 so far is mainly color finding stuff, and they are already faster than the ones in SCAR currently

  7. #107
    Join Date
    Feb 2008
    Posts
    517
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Freddy1990 View Post
    Soon, but I have to issue 3.21b with bugfixes first and then 3.22 to finish up. I've already started writing some of the core functions for SCAR 4 though.
    Awesome, I'm gonna keep bugging you because I need a linked list for something, and everyone needs some encouragement!

  8. #108
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Quote Originally Posted by Feroc1ty View Post
    Awesome, I'm gonna keep bugging you because I need a linked list for something, and everyone needs some encouragement!
    Implement the linked list with an array. There will be no pointers in Pascal Script for a long time. Perhaps the SCAR 4.0 engine supports Pointers.

    E: Array + structs. Pretty useless, but whatever.
    Last edited by Wizzup?; 07-31-2009 at 07:42 AM.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  9. #109
    Join Date
    Feb 2008
    Posts
    517
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Wizzup? View Post
    Implement the linked list with an array. There will be no pointers in Pascal Script for a long time. Perhaps the SCAR 4.0 engine supports Pointers.

    E: Array + structs. Pretty useless, but whatever.
    He did say it will support real classes, which I would assume it would be able to hold itself inside of it, if it's a real class.


    EDIT: Wanna help me create a linked list using arrays, because I have no clue how I would go about doing that.

  10. #110
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    You could set an initial array length of 1000. The array would be an array of some_record, and some_record would store a `value' and a `next' value. This next value would just be an Integer, the `next' index in the array. If you want a doubly linked list, also add a `previous' array index to the record.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  11. #111
    Join Date
    Feb 2008
    Posts
    517
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Wizzup? View Post
    You could set an initial array length of 1000. The array would be an array of some_record, and some_record would store a `value' and a `next' value. This next value would just be an Integer, the `next' index in the array. If you want a doubly linked list, also add a `previous' array index to the record.
    Good idea, sigh now to create annoying procedures.

    EDIT: I finished it, but I was wondering if anyone could see any obvious ways to optimize it since I'm gonna be using this quite a lot.

    SCAR Code:
    program New;

    type path = record
         node: TPointArray;
         index: integer;
         connection: array of integer;
    end;

    var paths:array of path;
        curindex: integer;
       
    function CreatePath(node:TPointArray):integer;
    begin
        SetArrayLength(paths, curindex+1);
        paths[curindex].node := node;
        paths[curindex].index := curindex;
        result := curindex;
        curindex := curindex + 1;
    end;

    procedure LinkPath(i,y:integer);
    begin
         SetArrayLength(paths[i].connection, GetArrayLength(paths[i].connection)+1);
         paths[i].connection[High(paths[i].connection)] := paths[y].index;
    end;

    function blanktpa():TPointArray;
    var empty:TPointArray;
    begin
         result := empty;
    end;

    var one,two,three:integer;

    begin
         one := CreatePath(blanktpa());
         two := CreatePath(blanktpa());
         three := CreatePath(blanktpa());
         LinkPath(one,two);
         LinkPath(two,three);
         writeln(inttostr(paths[one].connection[0]));
         writeln(inttostr(paths[two].connection[0]));
    end.
    Last edited by Feroc1ty; 08-01-2009 at 04:23 PM.

  12. #112
    Join Date
    Aug 2008
    Location
    England
    Posts
    320
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Wow... SCAR 4... I never thaught I would see the day it came ouit :P
    I think you should go to SCAR 4. Rewrite, and with RAD2009 you will be able you flatten out the bugs easier. Or, of course, move on to C#.
    If you go to SCAR 4, you could make it open sauce for SRL devs or trusted members who know delphi or C# and let them help you trace the bugs. Just stick it all on SVN
    -- Start non-important bit --
    Still, with RAD2009 you'd have support for 32-bit icons and PNGs, make SCAR look awsome...
    -- End non-important bit --

    -- BP

  13. #113
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Quote Originally Posted by Feroc1ty View Post
    Good idea, sigh now to create annoying procedures.

    EDIT: I finished it, but I was wondering if anyone could see any obvious ways to optimize it since I'm gonna be using this quite a lot.

    SCAR Code:
    program New;

    type path = record
         node: TPointArray;
         index: integer;
         connection: array of integer;
    end;

    var paths:array of path;
        curindex: integer;
       
    function CreatePath(node:TPointArray):integer;
    begin
        SetArrayLength(paths, curindex+1);
        paths[curindex].node := node;
        paths[curindex].index := curindex;
        result := curindex;
        curindex := curindex + 1;
    end;

    procedure LinkPath(i,y:integer);
    begin
         SetArrayLength(paths[i].connection, GetArrayLength(paths[i].connection)+1);
         paths[i].connection[High(paths[i].connection)] := paths[y].index;
    end;

    function blanktpa():TPointArray;
    var empty:TPointArray;
    begin
         result := empty;
    end;

    var one,two,three:integer;

    begin
         one := CreatePath(blanktpa());
         two := CreatePath(blanktpa());
         three := CreatePath(blanktpa());
         LinkPath(one,two);
         LinkPath(two,three);
         writeln(inttostr(paths[one].connection[0]));
         writeln(inttostr(paths[two].connection[0]));
    end.
    If you want it to be really fast, create a plugin and code all your code in there. Pascal Script is awfully slow.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  14. #114
    Join Date
    Feb 2008
    Posts
    517
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Wizzup? View Post
    If you want it to be really fast, create a plugin and code all your code in there. Pascal Script is awfully slow.
    Any tutorials on how to do that? And in what language are they written in, delphi?

  15. #115
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by Feroc1ty View Post
    Any tutorials on how to do that? And in what language are they written in, delphi?
    Plugins are written in delphi and there are a couple instructions and templates in the SCAR Plugins folder. Apparently you can import C++ functions for use in plugins too.

  16. #116
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Quote Originally Posted by Feroc1ty View Post
    Any tutorials on how to do that? And in what language are they written in, delphi?
    There is a tutorial somewhere, lemme see if I can find it for you.

    Edit: Here's one for Delphi:
    http://www.villavu.com/forum/showthread.php?t=41311

  17. #117
    Join Date
    Dec 2006
    Location
    Banville
    Posts
    3,914
    Mentioned
    12 Post(s)
    Quoted
    98 Post(s)

    Default

    Real Delphi can make a linked list...
    The jealous temper of mankind, ever more disposed to censure than
    to praise the work of others, has constantly made the pursuit of new
    methods and systems no less perilous than the search after unknown
    lands and seas.

  18. #118
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Quote Originally Posted by R0b0t1 View Post
    Real Delphi can make a linked list...
    Um, SCAR isn't "fake Delphi" by any means. It uses Pascal, which Delphi is derived from.

  19. #119
    Join Date
    May 2007
    Location
    Some where fun.
    Posts
    2,891
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default

    I suggust you stick to one project, it seems to me that you are working on 3.20, 3.21, 3.22 and starting 4. I suggust, make one CLEAN release with no bugs, call it 3.22, then start working on 4.

    I personally think your working on too many scar, stick to one at a time, by all means correct me if im wrong

  20. #120
    Join Date
    Dec 2007
    Location
    Colombia. Bogotá D.C
    Posts
    720
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    As many people said , It'd be better to give a quick fix , and then you can start working on Scar 4 , that way we can still use a good fixed scar while waiting for the shiney new one
    -------------------------------------------------------------------


  21. #121
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Dracody View Post
    As many people said , It'd be better to give a quick fix , and then you can start working on Scar 4 , that way we can still use a good fixed scar while waiting for the shiney new one
    'o.O SCAR's broken? :/ I never have problems with it.. >_>

  22. #122
    Join Date
    Feb 2008
    Posts
    517
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by senrath View Post
    There is a tutorial somewhere, lemme see if I can find it for you.

    Edit: Here's one for Delphi:
    http://www.villavu.com/forum/showthread.php?t=41311
    Is there a way to make it in C++, because I'm unfamiliar with delphi, that's why I asked if it was in delphi language.

  23. #123
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Quote Originally Posted by Feroc1ty View Post
    Is there a way to make it in C++, because I'm unfamiliar with delphi, that's why I asked if it was in delphi language.
    There are ways to do it. Benland, Yakman and I have done this. It isn't too hard, you just have to know what Pascal Types are like. There are a few tutorials on this.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  24. #124
    Join Date
    Feb 2008
    Posts
    517
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Wizzup? View Post
    There are ways to do it. Benland, Yakman and I have done this. It isn't too hard, you just have to know what Pascal Types are like. There are a few tutorials on this.
    Couldn't find a single one, guess I'll just stick to the original script instead of creating a plugin.

  25. #125
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Quote Originally Posted by Feroc1ty View Post
    Couldn't find a single one, guess I'll just stick to the original script instead of creating a plugin.
    http://www.villavu.com/forum/showthread.php?t=13118



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

Page 5 of 5 FirstFirst ... 345

Thread Information

Users Browsing this Thread

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

Posting Permissions

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