Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?
You are not logged in.
Skip to the bottom if you just want an explanation on how all this works.
Changes:
Explanation:
Anything wrong, mispelt, done poorly, let me know. Just a "quick" explanation/fix of old code I use to use when I first started to program. Just reminded me how easy it was to just pass up this code as "too advanced" cause I didn't bother to sit down and figure it out.
Final pastebin
Final bitmap
(Wrote this late at night with little sleep, sorry for poor grammar/mistakes)
If you would like me to make a bot for you, go here.
Offline
Isn't this one much better? It would add custom fonts too.
Offline
My system was similar to that of jaba's. It's useful because we as EE players do have a good idea of what size of font we care to use. It's somewhat more difficult (IMO) to get a regular font down to our 5-px size.
Offline
Would it be easier just to write the text to an image, crop the image, and just iterate through the pixels sequentially and send those pixels/blocks to EE?
Yes, it would be easier.
offtopic: windows 10 said i have drive errors hope my hard drive isnt dying e.e (It's probably my disk drive which has gone to junk)
Hey look a bunch of stats about me
Offline
Would it be easier just to write the text to an image, crop the image, and just iterate through the pixels sequentially and send those pixels/blocks to EE?
yes, it's easier, but in my experience it also looks better in larger text. We have a noticeably constricted range to work with ,though.
Offline
Would it be easier just to write the text to an image, crop the image, and just iterate through the pixels sequentially and send those pixels/blocks to EE?
You'd have to go through the trouble of importing all the block colors though (not sure an easy thing you can just download is out yet?).
+ it'd get more complicated when you'd have a certain background. Now if it was a single color it's no problem.
So you'd first have to make an image of the current minimap, write your text on there, and THEN iterate over all the changed pixels.
Or you can just use a font that doesn't have antialiasing...
Also: If you would want to make your own fonts (so not use actual TTF (or other) fonts), you can set the bot up so that the first "letter" will be a configuration part that shows how big each letter is and optionally can also contain antialiasing (by checking for how close each pixel is to white (white = transparent, black = solid, grey colors = semi-transparent) (though then you run into the previous problem again).
Offline
This tutorial was more to explain the importance of how you write code when other people are looking at it rather than explaining how to write letters in EE. But this does both for you can make your own font by modifying the bitmap. This isn't the best way, all the comments above show, but does teach new programmers the importance of names and comments.
If you would like me to make a bot for you, go here.
Offline
[ Started around 1732409544.5344 - Generated in 0.232 seconds, 12 queries executed - Memory usage: 1.64 MiB (Peak: 1.87 MiB) ]