SRL Archive - Development

Quick summary


Wizzup?

2010-05-15 10:20:02

Alright. So we're hoping to do a release soon, one of the stoppers is an annoying memory leak in the interpreter, so let's hope that is fixed soon.
Apart from that, we'll focus on the Script Manager, incorporating Niels' DTM Editor and hopefully implement Tabbed Debugging.

Aside from that, any other things I am missing?

Other stuff:
- Improve rs_getuptext. (Can people send cases where it fails)
- srl stats

E: Memory leak fixed.
E2: DTM Editor works; Script Manager in development, probably postponed till after initial release; Tabbed debugging postponed to a future release.

mastaraymond

2010-05-15 16:05:24

SRL Stats

YoHoJo

2010-05-15 16:48:57

From: mastaraymond
SRL Stats


I was going to say that also. It would be sweet to have the new stats come out along with Simba too.

Wizzup?

2010-05-15 17:41:09

Alright, but I have exam stuff till may 28 or something. I was referring to stuff for Simba, btw.

YoHoJo

2010-05-15 17:58:56

I was thinking that Part of Simba=Script Manager, and Part of Script Manager= New Stats :D

Dan Cardin

2010-05-15 22:52:48

At the contempt of creating a new thread, I will wonder aloud here what if any changes have been made to the forums (which is somewhat relevant since i was under the impression that the forums would reopen with the release of Simba) or if any are planned. If none are made, then i fear that closing registrations will have made very little impact, since nothing has really been done since they closed as far as i can tell.

Narcle

2010-05-15 22:56:07

From: YoHoJo
I was thinking that Part of Simba=Script Manager, and Part of Script Manager= New Stats :D


+1

From my observation lots of people want it. I think it'll increase activity more then you know. I will be back to have my scripts use again. It was a neat thing to have before and I for one really miss it.

Script manager will be really nice though however.

@Dan Cardin
Back end stuff has been done that you don't see on the surface.

There is still SRL-stats (as mentioned here) and bunch of other stuff surface-wise that isn't ready/released yet.

Dan Cardin

2010-05-15 23:30:47

From: Narcle
+1

From my observation lots of people want it. I think it'll increase activity more then you know. I will be back to have my scripts use again. It was a neat thing to have before and I for one really miss it.

Script manager will be really nice though however.

@Dan Cardin
Back end stuff has been done that you don't see on the surface.

There is still SRL-stats (as mentioned here) and bunch of other stuff surface-wise that isn't ready/released yet.


any way of knowing what those are?

ZephyrsFury

2010-05-16 01:39:17

What about an embedded ACA?

nielsie95

2010-05-16 06:38:07

Maybe clean up the unneeded debugs like "Extension enabled" or "Loading extension" or "Succesfully saved" or "<no parameters expected>".

i luffs yeww

2010-05-16 06:42:41

I don't really like the "Is it Writeln(?" feature. :/ It doesn't show anything, really. And if you have something like Writeln(Between('!', '@', '!Hi@'));, it won't show the parameters for Between. :< That'd be really nice. :)

ShowerThoughts

2010-05-16 06:55:25

From: nielsie95
Maybe clean up the unneeded debugs like "Extension enabled" or "Loading extension" or "Succesfully saved" or "<no parameters expected>".

I agree with you, but not with the: "Succesfully saved"

nielsie95

2010-05-16 07:35:37

From: i luffs yeww
I don't really like the "Is it Writeln(?" feature. :/ It doesn't show anything, really. And if you have something like Writeln(Between('!', '@', '!Hi@'));, it won't show the parameters for Between. :< That'd be really nice. :)


I believe I removed the "Is it .." debugline some time ago? If you want param completion for Between use Ctrl + Shift + Space (for now).

Drakan

2010-05-16 07:46:49

What bothers me is that code hints from plugins (such as smart) don't show up. Or is there a way to turn that on? (Ctrl + Shift + Space didn't do anything).

Gu3st...

2010-05-16 08:17:44

When I use automatic code hint's Simba takes up 50% of the CPU… (Dual core) :(
(The code hint box flashes rapidly)

Wizzup?

2010-05-16 08:47:28

I think it is not double buffered yet. Due to some problems with multiple-platforms we have to partially use our own drawing. This needs to be done as well.

nielsie95

2010-05-16 08:56:55

From: drags111
What bothers me is that code hints from plugins (such as smart) don't show up. Or is there a way to turn that on? (Ctrl + Shift + Space didn't do anything).

Because plugins need to be "enabled" inside the script, it is kind of annoying to import those functions, so they do not work yet.

From: Zyt3x
When I use automatic code hint's Simba takes up 50% of the CPU… (Dual core) :(
(The code hint box flashes rapidly)

That's a thingy we should look into :)

Drakan

2010-05-16 09:58:02

What to you mean "enabled" and how do you do it?

nielsie95

2010-05-16 10:35:25

In Simba you need to do {.loadDLL yourDLL} before you can access the functions from the DLL. But I haven't integrated this in the parser yet.

Drakan

2010-05-16 13:13:56

Yah I loaded it but I guess its cuz of the parser thing like you said.

i luffs yeww

2010-05-16 15:25:54

I'm not too fond of how extended's are expressed. :<


var
x: Extended;

begin
x := 5.0;
Writeln('x: '+ToStr(x));
end.

[PHP]
Compiled succesfully in 52 ms.
5.0000000000000000E+0000
Successfully executed
[/PHP]

mastaraymond

2010-05-16 15:35:10

From: i luffs yeww
I'm not too fond of how extended's are expressed. :<


var
x: Extended;

begin
x := 5.0;
Writeln('x: '+ToStr(x));
end.

[PHP]
Compiled succesfully in 52 ms.
5.0000000000000000E+0000
Successfully executed
[/PHP]



var
x: Extended;

begin
x := 5.0;
Writeln('x: '+FloatToStr(x));
end.
Fixed!

i luffs yeww

2010-05-16 15:37:49

D: No change for ToString? </3

Nava2

2010-05-16 21:37:26

I actually like the way that ToStr does them.

ss23

2010-05-17 06:51:05

Regarding the extra output strewn around, there was the idea thrown around in http://bugs.villavu.com/view.php?id=154 but it seems to have no eventuated (probably being a separate issue to that original ticket)

nielsie95

2010-05-18 09:53:26

From: drags111
What bothers me is that code hints from plugins (such as smart) don't show up. Or is there a way to turn that on? (Ctrl + Shift + Space didn't do anything).


Added libraries to the code completion :)

From: Zyt3x
When I use automatic code hint's Simba takes up 50% of the CPU… (Dual core) :(
(The code hint box flashes rapidly)


Added a sleep(1), which seems to cut down cpu usage a lot (to around 1%).

Also, the DTM editor is pretty much ready for usage. Simba needs a few adjustments before it can work fully (DTMtoString and TMufasaBitmap in extensions).

Gu3st...

2010-05-18 12:15:52

From: nielsie95
Added a sleep(1), which seems to cut down cpu usage a lot (to around 1%).
Thanks a lot :p


rs_GetUpText fails if there is a skull in-between the characters (the one you get when attacking people in pvp)

Wizzup?

2010-05-30 12:31:24

Memory leak fixed, and exams are over… :D

Gu3st...

2010-05-30 13:40:52

If you use the functionss PosterizeBitmap() or GreyscaleBitmap() (or any of those cool bitmap-altering functions), simba will create one more bitmap each time those functions are called.

var
Bmp, I : Integer;
begin
Bmp := BitmapFromClient(0, 0, 50, 50);
for I := 1 to 9 do
Bmp := GreyscaleBitmap(Bmp);
end.
{
Compiled succesfully in 16 ms.
Successfully executed.
The following bitmaps were not freed: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
}

mastaraymond

2010-05-30 14:58:45

From: Zyt3x
If you use the functionss PosterizeBitmap() or GreyscaleBitmap() (or any of those cool bitmap-altering functions), simba will create one more bitmap each time those functions are called.

var
Bmp, I : Integer;
begin
Bmp := BitmapFromClient(0, 0, 50, 50);
for I := 1 to 9 do
Bmp := GreyscaleBitmap(Bmp);
end.
{
Compiled succesfully in 16 ms.
Successfully executed.
The following bitmaps were not freed: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
}

It's meant to do that..

Gu3st...

2010-05-31 05:12:27

From: mastaraymond
It's meant to do that..
Even though I am calling it like this?: Bmp := GreyscaleBitmap(Bmp); ?

Doesn't make sense to me…

i luffs yeww

2010-05-31 05:13:38

^ Check the sawse to see how it works! :D

Wizzup?

2010-05-31 05:37:22

From: Zyt3x
Even though I am calling it like this?: Bmp := GreyscaleBitmap(Bmp); ?

Doesn't make sense to me…


Well, that will lead to a leak. Use like this:

newBmp := GreyScaleBitmap(bmp);
FreeBitmap(bmp);
bmp := newBmp;

Gu3st...

2010-05-31 07:04:26

From: Wizzup?
Well, that will lead to a leak. Use like this:

newBmp := GreyScaleBitmap(bmp);
FreeBitmap(bmp);
bmp := newBmp;
Yeah, I figured I would have to do it like that :(

EDIT: OCR Test with skulls:

Even I have problems reading what it says.. so I guess it isn't really a problem :p

Wizzup?

2010-06-10 06:28:55

Yeah, skulls are known to cause issues. Not sure how to handle that so far.

Nava2

2010-06-10 08:36:22

From: Wizzup?
Yeah, skulls are known to cause issues. Not sure how to handle that so far.


What about getting the image over X time, with intervals that way the noise could be reduced?

Then throw that image through the filter.

Possibly use this as an *ex* of sorts.

Wizzup?

2010-06-10 10:41:37

From: Nava2
What about getting the image over X time, with intervals that way the noise could be reduced?

Then throw that image through the filter.

Possibly use this as an *ex* of sorts.


Make it and see if it works.

Wizzup?

2010-06-20 17:36:13

Post updated.