SRL Archive - Reflection Help

What do i do??? Wierd Situation.


P1nky

2008-11-21 21:44:56

well, like people know im making/updating a PC'er. and i wanna use reflection walking inside Pest Control(mini game).
To walk to the center.

well for some odd reason i cant get the tiles to WORK :s

i went to google, and googled pest control got the inside game map and used in sumilion's pathmaker. didnt work.

than i used Nava's Tile Recorder or w/e. and that didnt work…

whats up w/ this :S


please tell me what else can i do to get the tiles.

thanks


edit:

here is the walking proc, i dont see anything wrong w/ this….(used in other scripts same format and works perfect.)

Function WalkPath(Path: TPointArray; Tol, R_FFlag: Integer): Boolean;
Var
Count: Integer;
Begin
Count := 0;
Repeat

Result := WalkToTile(Path[Count], Tol, R_FFlag);
If (Not Result) Then
Result := WalkToTile(Path[Count], tol, R_FFlag);

Count := Count + 1;
Until (Not Result) Or (Count > High(Path));
End;

Function WalkingPath(Which: String): TPointArray;
Begin
Case Lowercase(which) Of
'center':
Begin
SetLength(Result, 4);

Result[0] := Point(2851, 3450);
Result[1] := Point(2853, 3445);
Result[2] := Point(2851, 3441);
Result[3] := Point(2851, 3438);
end;
end;
end;

i called it too:

WalkPath(WalkingPath('center'), 2, 3)

noidea

2008-11-21 21:48:24

Up date your hooks, they could be outdated.

P1nky

2008-11-21 21:49:16

already done that twice.

at 130 :O

mormonman

2008-11-21 22:02:25

delete everything in reflection folder and redo the svn… it worked for me on my laptop…

P1nky

2008-11-22 00:14:47

From: mormonman
delete everything in reflection folder and redo the svn… it worked for me on my laptop…


i doubt thats the problem.

Method

2008-11-22 00:18:08

Try picking new tiles, and adding a few WriteLn calls to debug your functions to see where it's stuffing up.

Narcle

2008-11-22 09:17:03

You can't get the tiles? Well in any case you can't use the old fashion method for Pest Control. You can't grab the tiles then reuse the same ones. Why?
Because on each world I've estimated there is 49 different areas for each Pest Control game in difficulty… meaning there can be 49 games of each going at the same time. Which means you would need about 150 different tile sets for each location, which makes the old method not possible.

I already figured out a method for my PCer but I won't say what it is, its not hard to figure out.

0wn 4 skill

2008-11-25 13:27:10

Why dont you use color walking to the centre of PC then
GetMyPos;

Store it as a global and then you can take it from there?

P1nky

2008-11-25 14:55:40

From: Narcle
You can't get the tiles? Well in any case you can't use the old fashion method for Pest Control. You can't grab the tiles then reuse the same ones. Why?
Because on each world I've estimated there is 49 different areas for each Pest Control game in difficulty… meaning there can be 49 games of each going at the same time. Which means you would need about 150 different tile sets for each location, which makes the old method not possible.

I already figured out a method for my PCer but I won't say what it is, its not hard to figure out.


wow dude :O lol nice find.

yeah well ill find a way, ill prob get it to void by reflection, or ill do something lol.

last thing ill do its probally coord clicking with randomness :S

mormonman

2008-11-25 16:14:30

maybe have it find a tree and click a tile next to it… then try to find the knight…

P1nky

2008-11-25 16:19:47

From: mormonman
maybe have it find a tree and click a tile next to it… then try to find the knight…


yeah i tried that, and it works.

but i may have a better solution.

Timer

2008-11-25 16:30:47

Heres a crazy thought… ;)
Multiple games can go on at once, in theory, saying that theres more then one pest control island… Saying: Tiles wont work again after you leave and enter a new game (unless a streak of luck, and your on the same map..)

Make sense? :D

mormonman

2008-11-25 16:30:52

From: ~~Joker~~
yeah i tried that, and it works.

but i may have a better solution.


…i feel like a loser… first i posted something that didn't even have to do anything with your question.. then i posted something that you have already thought of…:(