custom map icon too big

Started by habi, Feb 29, 2020, 02:47 PM

Previous topic - Next topic

habi



i went on reducing size of m100_pink.png. now it is too small. 1px * px. but when i use on game, the map icon is big.
console
CreateMarker(FindPlayer(0).UniqueWorld, FindPlayer(0).Pos, 1, RGB(241, 36, 241), 100 );
Note: I was using vcmp's default mapicon (ID 0 ). but that is smaller. so i went for custom mapicon,

MEGAMIND

Size doesnt matter what matters is that its a valid png format and valid code
CreateMarker(1, BriefCass.Pos, 5, RGB(0, 0, 0), 111 );or
CreateMarker(1, Vector( -10.4317, -213.3678, 10.1507 ), 5, RGB(0, 0, 0), 111 );

habi

yes MEGAMIND, everything is correct. but mapicon is big

MEGAMIND

#3
Quote from: habi on Mar 01, 2020, 01:26 PMyes MEGAMIND, everything is correct. but mapicon is big
just how big any pic? or link so that i can view whats issue at ur side
my png pics are of 750x750 and 400x400 and 250x250 size doesnt matter make sure ur icon name is something like this
store/mapicons/mapicons_unp.7z/m120_tune.pngIf nothing helps try https://www.youtube.com/watch?v=CpUyjylCfAU from one of my videos

Sebastian

I think there is a standard size for map icons,  except the default ones vc has,  which are used for targets in storyline.

If you tried different sizes for your png,  and it is still not getting smaller,  I think the only way left is to use a transparent background for your map icon.  So you will be able to make it as small as posible