SRL Archive - OSR Help

FindTPAinTPA


m3gaman3g3nd

2012-02-04 22:16:42

EDITING IS SHIT ON HERE SO I MADE IT ON PASTEBIT… MY FORMAT STAYS INTACT NO OFFENCE…



BUT IM HAVEING A QUARAL WITH FindTPAinTPA.
HERE IS MY KRYPT


http://paste.villavu.com/show/pDCGr0zOUg8oORZRHH9k/


HERE IS THE DEBUG IMAGE OF MSX AND MSY




WHITE = TPA3

RED = TPA2

TEAL = TPA1



YOU SEE THAT FINDTPAINTPA IS NOT WORKING HOW I EMAGINED..

PatDuffy

2012-02-04 22:18:17

Caps Lock?

What exactly are you searching for

m3gaman3g3nd

2012-02-04 22:27:53

The coal.. Sorry for vaugueness thats the dwarven mine resource…


The red iS the rock color which is perfect and i searched for that rock color tpa in the giant green one but weirdly i finds that rectangle, i colored it white

Brandon

2012-02-04 22:32:39

wait.. what exactly is the point of all that? To clarify, you are searching the mainscreen for a tpa that is definitely on the mainscreen and is painting it red.. Then what exactly is the point of TPA 3 aka the white box?

m3gaman3g3nd

2012-02-04 23:03:57

well i am trying to extract the WHITE TPA 3 difference from the blue TPA1 USING TPA2, and it is all for accuracy… but the funny part is the white should be covering the red but it is not..

i replyed late cuz i was away for a bit…

Brandon

2012-02-04 23:12:47

Hmm try printing both the White TPA and the Red TPA and see if they both match.. or do an if statement since TPAinTPA results in a boolean..

if it is found, then..

m3gaman3g3nd

2012-02-04 23:24:00

Here is my debug:
.
.
.
.

SRL Compiled in 16 msec
SMART Initialized.
Loaded: Server 30, Members: False, Signed: True, Super Detail: False.
IF THIS IS HERE IT MEANS BOOLEAN IS TRUE
LENGTH 2022 OF TPA2
LENGTH 14586 OF TPA3
Successfully executed.

.
.
.
.
no match but its true, im skeptical or this is just odd..

Brandon

2012-02-04 23:47:13

Print the actual TPA's don't print the lengths..

kitchenrange

2012-02-05 00:10:07

He is printing the actual tpa's he has those in there because those are "supposed" to return the same length based on his code.

Haven't checked to help much just clearing up a misunderstanding.

m3gaman3g3nd

2012-02-05 00:32:44

LOL i was posting the tpas but the list is soo huge villavu wont let me nyways yes KITCHEN is right about what hes saying..


but OMG!!!!! AHHH this FindTpaINtpa is ARRRGGGGGG!!!!!!!!!!!!!!