Official Everybody Edits Forums

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.

#1 2016-08-16 08:35:16

Jabatheblob1
Member
Joined: 2015-03-01
Posts: 856

[Tutorial/Explained?] Writing Letters In EE

Long Version
Short Version

Skip to the bottom if you just want an explanation on how all this works.

Original Code(if you don't want to switch between tabs)
Bitmap(to go with the code)

Changes:

1). There's three lines of code that serve no use to the actual function of the command.
2). The code is inside a command.
3). Mother of labels.
4). Bitmap is a little weird
5). Add notes.

Explanation:

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

Wooted by:

#2 2016-08-16 12:39:27

capasha
Member
Joined: 2015-02-21
Posts: 4,066

Re: [Tutorial/Explained?] Writing Letters In EE

Isn't this one much better? It would add custom fonts too.

Offline

Wooted by: (3)

#3 2016-08-16 13:57:57

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: [Tutorial/Explained?] Writing Letters In EE

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

#4 2016-08-16 14:20:06

Hexagon
Member
Joined: 2015-04-22
Posts: 1,213

Re: [Tutorial/Explained?] Writing Letters In EE

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?

Offline

Wooted by: (3)

#5 2016-08-16 14:53:04

Joshua708
Member
From: everybodyedits.com
Joined: 2015-03-04
Posts: 153

Re: [Tutorial/Explained?] Writing Letters In EE

Hexagon wrote:

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
browser-chrome-blue.svg visual%20studio-community%202017-7D3BC4.svg windows-10-brightgreen.svg download-70%20mbps-blue.svg upload-10%20mbps-blue.svg

ram-16%20gb-green.svg Processor-Intel%20i5--5200U-green.svg Graphics-Intel%20HD%20Graphics%205500-green.svg



kyK5VkB.png

Offline

#6 2016-08-16 18:29:55

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: [Tutorial/Explained?] Writing Letters In EE

Hexagon wrote:

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

#7 2016-08-16 22:50:35

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: [Tutorial/Explained?] Writing Letters In EE

Hexagon wrote:

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

#8 2016-08-16 23:25:49

Jabatheblob1
Member
Joined: 2015-03-01
Posts: 856

Re: [Tutorial/Explained?] Writing Letters In EE

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

Jabatheblob11471386349619492

Board footer

Powered by FluxBB

[ Started around 1732741679.5655 - Generated in 0.388 seconds, 12 queries executed - Memory usage: 1.63 MiB (Peak: 1.87 MiB) ]