SRL Archive - General

SCAR 3.20 issues


Freddy1990

2009-05-03 14:09:05

Hi,

I've kinda growing tired of people posting about issues with SCAR 3.20 and such… In fact, at the moment there are no bugs in SCAR 3.20b's color or bitmap routines known to me.

First off, if you have SCAR 3.20, ditch it, get 3.20b, 3.20 has a problem with the HSL tolerance comparison mode for several functions.

Issues:

I've found that people find it easy to blame their own stupidity on SCAR, if you write a mistake in your code and it results in a function not working properly, it's not a bug in SCAR.

SCAR 3.20 has a fundamental difference with the 3.1x and previous versions. FindBitmap, FindBitmapIn, FindBitmapTolerance and FindBitmapToleranceIn no longer skip black pixels on the bitmap you're trying to find. Instead 2 new functions have been added which allow you to find a bitmap and skip the pixels of a predefined color. FindTransparentBitmap and FindTransparentBitmapTolerance.

Now if you do actually find a bug, please post it on my forums so I'll actually know about it. http://freddy1990.com/forums/index.php?board=82.0

BobboHobbo

2009-05-03 14:34:43

Oh sweet. Never knew SCAR 3.20B was out, Thanks!

Janilabo

2009-05-03 16:22:14

Great post, Freddy! Worth a sticky, IMHO.

Now if everyone just could notice this…

nielsie95

2009-05-03 16:52:26

Same, I'm not having troubles with 3.20b either.

ShowerThoughts

2009-05-03 19:46:04

Spread the news!

Harry

2009-05-04 06:13:04

Nice.

P1nky

2009-05-04 07:43:11

Awsome our headline (marquee) should say Download Scar 3.20b for a while :P

just a suggestion, GJ Freddyadooo lol

Da 0wner

2009-05-04 10:20:17

Great job freddy :).

ShowerThoughts

2009-05-04 13:15:44

Everyone should read this!
Sticky!

Nadeem

2009-05-05 03:12:19

lol as i've mentioned in a few other threads…

SCAR 3.20+ = TH3 B0MB!

I've currently abused almost all of your new functions too, GJ! Definetly worth a sticky!

WhoCares357

2009-05-05 04:05:24

Thanks for posting. So glad I read this, as I didn't know about the new bitmap transparency functions. Was wondering why bitmaps weren't working like they used to :D.

Freddy1990

2009-05-05 14:45:50

From: Nadeem
lol as i've mentioned in a few other threads…

SCAR 3.20+ = TH3 B0MB!

I've currently abused almost all of your new functions too, GJ! Definetly worth a sticky!


:) SCAR 3.21 Alpha 1 is available on my forums, it's basically SCAR 3.20b with some small fixes and the addition of TransparentBitmap functions for multiple bitmaps like FindBitmaps

EDIT: I've found that the FindTransparentBitmap functions have a fundamental flaw which will basically render them useless as they'll only be working on rare occasions… However, I've already fixed them and I'll be fixing the new ones I added for 3.21 and then release 3.20c. Here's a little something to show you the progress that this new SCAR brings though, even though it's getting a rough start :) http://freddy1990.com/devblog/?p=45

Nadeem

2009-05-06 06:45:18

haha awesome! dling now! I've just finished abusing your GetDebugParams; feature in my re-coded agil trainer last night :) its awesome! hope to see more friendly features as such. But sticking more to topic, I really haven't noticed any problems except for small annoying issues such as, ctrl + spacebar sometimes gives a SCAR runtime error while coding, but does not close SCAR. Also when copy and pasting a piece of code, the top few lines go white/blank until i highlight them.

Da 0wner

2009-05-06 06:56:14

The second bug Nadeem mentioned I also get.

Smartzkid

2009-05-06 07:40:02

Hey Freddy, did the script engine get updated between 3.20 and 3.15?

Freddy1990

2009-05-06 09:37:34

From: Smartzkid
Hey Freddy, did the script engine get updated between 3.20 and 3.15?


Of course. I hope to have fixed the bugs in all transparentbitmap functions today, then I'll release 3.20c which also has a new version of the script engine with 2 more bugs fixed.

EDIT: SCAR 3.20c has been released:
SCAR Divi 3.20c:
----------------

Bugfixes:
- BitmapMaskFromText and CreateBitmapFromText didn't recycle bitmap indexes
- Memory leak in the script editor component
- FindTransparentBitmap functions didn't work properly for transparent bitmaps

Improvements:
- The DTM system now recycles the DTM array

Additions:
- function FindTransparentBitmaps(Bitmap: Integer; var Points: TPointArray; TranspCol, xs, ys, xe, ye: Integer): Boolean;
- function FindTransparentBitmapsTolerance(Bitmap: Integer; var Points: TPointArray; TranspCol, xs, ys, xe, ye, Tol: Integer): Boolean;
- function CountTransparentBitmap(Bitmap: Integer; TranspCol, xs, ys, xe, ye: Integer): Integer;
- function CountTransparentBitmapTolerance(Bitmap: Integer; TranspCol, xs, ys, xe, ye, Tol: Integer): Integer;

Dervish

2009-06-02 23:18:06

I'm not able to download includes on 3.20d….

Thought it was unnecessary to make a new topic so I'll ask here.

Nadeem

2009-06-02 23:54:56

From: Dr D. Dervish
I'm not able to download includes on 3.20d….

Thought it was unnecessary to make a new topic so I'll ask here.


Then just download the includes with 3.20c and then install 3.20d on top of 3.20c and would work :)



~NS

Torrent of Flame

2009-06-03 00:05:30

So 3.20d is in full working order?

noidea

2009-06-03 02:13:27

From: Torrent of Flame
So 3.20d is in full working order?


Apparently. I switched two days ago.

mrpickle

2009-06-03 04:20:04

A side question partly related. Will scar be able to run with more operating systems in the future? MAC?

Shuttleu

2009-06-03 04:27:04

From: mrpickle
A side question partly related. Will scar be able to run with more operating systems in the future? MAC?


no
SCAR is written in Delphi which is WINDOWS ONLY!
sorry

~shut

mrpickle

2009-06-03 04:31:08

alright, thanks for the conformation

senrath

2009-06-03 06:23:10

From: mrpickle
alright, thanks for the conformation


While SCAR is Windows only, one of Freddy's future projects is called Leviathon, which aims to be a cross-platform version of SCAR. However, I don't think it's very high on his to-do list, so it might be a very long time coming.

Da 0wner

2009-06-03 06:39:58

Not future, discontinued (so I was told, when I mentioned that).

senrath

2009-06-03 07:20:46

From: Da 0wner
Not future, discontinued (so I was told, when I mentioned that).


I'm just going by what Freddy's wiki said.

Freddy1990

2009-06-10 01:02:33

From: Da 0wner
Not future, discontinued (so I was told, when I mentioned that).


I intend to pursue it's development when I have time, but I took down the pre-release version because someone *cough* Wizzup *cough* was bitching about it not being able to do enough even though it was a "pre-alpha" version… Just merely to show I was working on the project.

ShowerThoughts

2009-06-10 01:03:47

From: Freddy1990
I intend to pursue it's development when I have time, but I took down the pre-release version because someone *cough* Wizzup *cough* was bitching about it not being able to do enough even though it was a "pre-alpha" version… Just merely to show I was working on the project.


Just take your time, summer vacation is comming, so be a no-lifer and work on it 24/7.