Log in

View Full Version : ~ Changing the color in the debug?



Lance
06-18-2009, 05:47 AM
hey im makeing a reflection radar type thing for gaining drop potential safely, it tells you all the players around you and if there combat is in the range to so they can attack you, aswell as there distance from you. so i got a few questions..

1. Is it posible to have red text something like "WARNING, Enemies approching" when players are detected? And if so which functions would i use?

2. I know reflection can detect things that are off the map, but how wide is its range realy? ive been meaning to test it but i havent had a chance to. if i were standing in the wild would it be able to detect well outside of what you can see on the mini map?

This things saved my life a few times already ;D if i can get it to work realy well i might make it all snazzy and release it :] though, has something like this already been released? it is quite a simple idea realy.

ZaSz
06-18-2009, 05:49 AM
#2. Just the chunk of minimap that loads during the "Loading, Please wait". Eveytime you get that it loads the chunk that reflection can use.

Richard
06-18-2009, 05:56 AM
DisplayDebugImageWindow(Height, Width: Integer);

SafeDrawBitmap(Source: Integer; Canvas: TCanvas; x, y: Integer);

Just have an image of the writing or something, and with "Canvas: TCanvas" just do GetDebugCanvas.

Lance
06-18-2009, 06:13 AM
ok thanks, and wow everything loaded? isnt that alot of space?
oh and how do i get smart to play a sound file again?

Edit: i just tested it and i only got 20 tiles away from this guy (like so he was just alittle outside of the map) and then reflection stoped detecting him.. shouldnt it do alot better than that if it can detect everything thats loaded?

ZaSz
06-18-2009, 06:15 AM
ok thanks, and wow everything loaded? isnt that alot of space?
oh and how do i get smart to play a sound file again?

Its quite a small chunk actually. i think a 50x50 i think?

Shuttleu
06-18-2009, 06:22 AM
i thought you could only read what was displayed on the map?

~shut

Da 0wner
06-18-2009, 06:27 AM
To play a sound use procedure PlaySound

senrath
06-18-2009, 06:32 AM
Its quite a small chunk actually. i think a 50x50 i think?

Actually, I think it's a 104x104 tile area.