f.write(0xEF.chr) What is 0xEF?

SookyLala

Veteran
Veteran
Joined
Jun 20, 2015
Messages
34
Reaction score
7
First Language
English
Primarily Uses
Afternoon, would someone be able to point me in the right direction.

I'm reading some scripts from Pokemon Essentials, specifically how they go about reading/writing from their text files.

I've come across this a lot

Code:
def pbWriteDefaultTypes
  if !safeExists?("PBS/types.txt")
    File.open("PBS/types.txt","w"){|f|
      f.write(0xEF.chr)
      f.write(0xBB.chr)
      f.write(0xBF.chr)
fx=<<END
[0]
Name=Normal
InternalName=NORMAL
Weaknesses=FIGHTING
Immunities=GHOST
I tried to look it up and I came across ASCII and UTF-8 but it doesn't seem to match.

Do you know of any tutorials or links that would help me understand what is going on there?
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,036
Messages
1,018,461
Members
137,821
Latest member
Capterson
Top