Reverted previous engine side encoding fix, converted the belonging script files to UTF-8.

This commit is contained in:
CaptainSegis 2017-10-29 15:54:31 -05:00
parent 911be5527d
commit 434d21a5d1
9 changed files with 12 additions and 12 deletions

View File

@ -51,7 +51,7 @@ Public Class Trainer
Dim path As String = GameModeManager.GetScriptPath("Trainer\" & TrainerFile & ".trainer")
Security.FileValidation.CheckFileValid(path, False, "Trainer.vb")
Dim Data() As String = System.IO.File.ReadAllLines(path, Encoding.GetEncoding("iso-8859-1"))
Dim Data() As String = System.IO.File.ReadAllLines(path)
If Data(0) = "[TRAINER FORMAT]" Then
LoadTrainer(Data)

View File

@ -1,10 +1,10 @@
[TRAINER FORMAT]
Name|Bethany
TrainerClass|Pokémon Breeder
TrainerClass|Pokémon Breeder
Money|1540
IntroMessage|I'm curious, how do you raise~your Pokémon?
OutroMessage|You raise your Pokémon with a whole lot of love!
DefeatMessage|In the same way your mother~raised you full of love,~you should raise your Pokémon.
IntroMessage|I'm curious, how do you raise~your Pokémon?
OutroMessage|You raise your Pokémon with a whole lot of love!
DefeatMessage|In the same way your mother~raised you full of love,~you should raise your Pokémon.
TextureID|1
Region|Sevii Islands
IniMusic|johto_trainer_intro

View File

@ -1,4 +1,4 @@
[TRAINER FORMAT]
[TRAINER FORMAT]
Name|Denise
TrainerClass|Swimmer
Money|212

View File

@ -1,4 +1,4 @@
[TRAINER FORMAT]
[TRAINER FORMAT]
Name|Samir
TrainerClass|Swimmer
Money|220

View File

@ -1,7 +1,7 @@
version=2
:if:<register.registered(trainer_fortune\water\005l)>=false
:then
@text.show(Miu: Hello, Pokémon!~It's time to play!)
@text.show(Miu: Hello, Pokémon!~It's time to play!)
:endif
@battle.starttrainer(fortune\water\005l)

View File

@ -1,7 +1,7 @@
version=2
:if:<register.registered(trainer_fortune\water\005r)>=false
:then
@text.show(Mia: Hello, Pokémon!~It's time to battle!)
@text.show(Mia: Hello, Pokémon!~It's time to battle!)
:endif
@battle.starttrainer(fortune\water\005r)

View File

@ -4,7 +4,7 @@ TrainerClass|Twins,
Money|1320
IntroMessage|
OutroMessage|Mia: You're mean!~You're bad for winning!
DefeatMessage|Mia: Ohh...~I'm sorry, My Pokémon...
DefeatMessage|Mia: Ohh...~I'm sorry, My Pokémon...
TextureID|littlegirl,littlegirl
Region|Sevii Islands
IniMusic|johto_trainer_intro

View File

@ -4,7 +4,7 @@ TrainerClass|Aroma Lady
Money|1456
IntroMessage|I let a pleasant breeze lead me~all the way here.
OutroMessage|Giggle... You're so cute when you're determined.
DefeatMessage|I want to go to the woods over~there, but...*There are lots of Bug Pokémon.~They scare me a little.
DefeatMessage|I want to go to the woods over~there, but...*There are lots of Bug Pokémon.~They scare me a little.
TextureID|PinkShirtGirl
Region|Sevii Islands
IniMusic|johto_trainer_intro

View File

@ -122,7 +122,7 @@ nextScript:
Security.FileValidation.CheckFileValid(path, False, "ActionScript.vb")
If System.IO.File.Exists(path) = True Then
Dim Data As String = System.IO.File.ReadAllText(path, Encoding.GetEncoding("iso-8859-1"))
Dim Data As String = System.IO.File.ReadAllText(path)
Data = Data.Replace(vbNewLine, "^")
Dim ScriptData() As String = Data.Split(CChar("^"))