View Full Version : BMP bar mask
XcanadamanX
12-08-2006, 07:42 PM
does anyone have a Bar mask? if so can u please pm me it or put it on here plz. thank you.:D
Bam Bam
12-08-2006, 07:55 PM
Please give a better description of this bar and so that forum members are able to help you and point you in the proper direction. :)
XcanadamanX
12-08-2006, 08:00 PM
sorry...i mean a bar (like a bar after you smelt the ores) mask so that i can count the bars in the inventory. so its like an ore mask but a bar mask instead. i would make one but i dont know how to make a mask. any help is appreciated.(is that better?)
Pentti
12-08-2006, 08:03 PM
How can you count your value of bars with bitmap?
Where would you use bar mask? To count your bars? There's better ways to count them. :)
Boreas
12-08-2006, 08:05 PM
If it doesn't matter what kind of bar, then just make a dtm of the black (65536) outline, and use countdtm (in inventory.scar) its awesome.
XcanadamanX
12-08-2006, 08:06 PM
first i will use this to count(its in inventory)
{************************************************* ******************************
function CountItemBmpMaskTol(bmp, tol, ctol: Integer) : Integer;
By: Stupid3ooo
Description: Performs a count of inventory items by bmpmasks with tol tolerance,
and Ctol ContourTolerance.
************************************************** *****************************}
ok whats a better way to count them? also its not just one type of bar so i cant use colors.
also ive tried to make DTM's but i cant get them to work. ive used tutorials but still no luck.
Boreas
12-08-2006, 08:21 PM
Get a bright (the most different from black outline) colored bar (gold), put in inventory, drag crosshairs of scar, open dtm editor, and click the black points around the edge. Then you can use countdtm.
XcanadamanX
12-08-2006, 08:39 PM
ok...i have the dtm now how would i put the amount of bars made into the progress report?
Boreas
12-08-2006, 10:20 PM
Ooo ok. Well countdtm is better for when you're smelting and you want to wait until the bars are all done, so you can do
repeat
wait
until coundtm(dtmbar)=number
where number is 9 for steel, 5 for mith etc
For progress report you should just do loads:=loads+1 and then in the proggy do number*loads where number is 9 for steel, 5 for mith etc. You don't really need dtm/bitmaps for that.
XcanadamanX
12-08-2006, 10:26 PM
ok thanks...i was just going to try to make my proggy really accurate.
Boreas
12-08-2006, 10:42 PM
Well unlike cooking, when you get out 18 coal and 9 iron, you will definitely get 9 steel bars. The only thing that will make it slightly in accurate, is if a player runs out of ores, and cant do a complete load.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.