Second ORAS support commit

still WIP
This commit is contained in:
Kurt
2014-11-21 19:26:16 -08:00
parent 21eccb0dad
commit 188aab7236
29 changed files with 1106 additions and 979 deletions

View File

@@ -301,6 +301,20 @@
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<None Include="Resources\img\Pokemon Sprites\25-6.png" />
<None Include="Resources\img\Pokemon Sprites\25-5.png" />
<None Include="Resources\img\Pokemon Sprites\25-4.png" />
<None Include="Resources\img\Pokemon Sprites\25-3.png" />
<None Include="Resources\img\Pokemon Sprites\25-2.png" />
<None Include="Resources\img\Pokemon Sprites\25-1.png" />
<None Include="Resources\img\box\box_wp24o.png" />
<None Include="Resources\img\box\box_wp23o.png" />
<None Include="Resources\img\box\box_wp22o.png" />
<None Include="Resources\img\box\box_wp21o.png" />
<None Include="Resources\img\box\box_wp20o.png" />
<None Include="Resources\img\box\box_wp19o.png" />
<None Include="Resources\img\box\box_wp18o.png" />
<None Include="Resources\img\box\box_wp17o.png" />
<None Include="Resources\img\item\item_769.png" />
<None Include="Resources\img\item\item_768.png" />
<None Include="Resources\img\item\item_767.png" />

View File

@@ -2115,13 +2115,13 @@ private void setForms(int species)
new { Text = forms[912], Value = 1},
};
var form_pikachu = new[] {
new { Text = types[0], Value = 0},
new { Text = forms[729], Value = 1},
new { Text = forms[730], Value = 2},
new { Text = forms[731], Value = 3},
new { Text = forms[732], Value = 4},
new { Text = forms[733], Value = 5},
new { Text = forms[734], Value = 6},
new { Text = types[0], Value = 0}, // Normal
new { Text = forms[729], Value = 1}, // Rockstar
new { Text = forms[730], Value = 2}, // Belle
new { Text = forms[731], Value = 3}, // Pop
new { Text = forms[732], Value = 4}, // PhD
new { Text = forms[733], Value = 5}, // Libre
new { Text = forms[734], Value = 6}, // Cosplay
};
CB_Form.DataSource = form_list;
@@ -2153,7 +2153,8 @@ private void setForms(int species)
}
// Regular Form List
if (species == 201) { form_list = form_unown; }
if (species == 025) { form_list = form_pikachu; }
else if (species == 201) { form_list = form_unown; }
else if (species == 351) { form_list = form_castform; }
else if (species == 386) { form_list = form_deoxys; }
else if (species == 421) { form_list = form_cherrim; }
@@ -2271,25 +2272,25 @@ private void Label_Marking_Click(object sender, EventArgs e)
}
private void Label_OT_Click(object sender, EventArgs e)
{
string OT = Util.TrimFromZero(Encoding.Unicode.GetString(savefile, 0x19448 + savindex * 0x7F000, 0x1A));
string OT = Util.TrimFromZero(Encoding.Unicode.GetString(savefile, SaveGame.TrainerCard + 0x48 + savindex * 0x7F000, 0x1A));
if (OT.Length > 0)
{
TB_OT.Text = OT;
int savshift = 0x7F000 * savindex;
// Set Gender Label
int g6trgend = savefile[0x19405 + savshift];
int g6trgend = savefile[SaveGame.TrainerCard + 0x5 + savshift];
if (g6trgend == 1)
Label_OTGender.Text = "♀";
else Label_OTGender.Text = "♂";
// Get TID/SID
TB_TID.Text = BitConverter.ToUInt16(savefile, 0x19400 + savshift).ToString();
TB_SID.Text = BitConverter.ToUInt16(savefile, 0x19402 + savshift).ToString();
int game = savefile[0x19404 + savshift];
int subreg = savefile[0x19426 + savshift];
int country = savefile[0x19427 + savshift];
int _3DSreg = savefile[0x1942C + savshift];
int lang = savefile[0x1942D + savshift];
TB_TID.Text = BitConverter.ToUInt16(savefile, SaveGame.TrainerCard + 0 + savshift).ToString();
TB_SID.Text = BitConverter.ToUInt16(savefile, SaveGame.TrainerCard + 2 + savshift).ToString();
int game = savefile[SaveGame.TrainerCard + 0x4 + savshift];
int subreg = savefile[SaveGame.TrainerCard + 0x26 + savshift];
int country = savefile[SaveGame.TrainerCard + 0x27 + savshift];
int _3DSreg = savefile[SaveGame.TrainerCard + 0x2C + savshift];
int lang = savefile[SaveGame.TrainerCard + 0x2D + savshift];
// CB_GameOrigin.SelectedValue = game;
@@ -3935,9 +3936,10 @@ private void openSave(bool oras)
// temp ORAS save-editing disable
// GB_SAVtools.Enabled = !oras;
B_OpenBerryField.Enabled = B_JPEG.Enabled = B_OpenBoxLayout.Enabled = B_OpenEventFlags.Enabled = B_OpenTrainerInfo.Enabled =
B_OpenOPowers.Enabled = B_OpenPokedex.Enabled = B_OpenPokepuffs.Enabled = B_OpenSuperTraining.Enabled =
B_OpenTrainerInfo.Enabled = B_OUTHallofFame.Enabled = B_OUTPasserby.Enabled = (!oras);
B_OpenBerryField.Enabled = B_JPEG.Enabled =
B_OpenOPowers.Enabled = B_OpenPokedex.Enabled = B_OpenSuperTraining.Enabled =
B_OUTHallofFame.Enabled = B_OUTPasserby.Enabled = (!oras);
//B_OpenTrainerInfo.Enabled = B_OpenPokepuffs.Enabled = B_OpenBoxLayout.Enabled =
this.Width = largeWidth;
}
@@ -4241,7 +4243,6 @@ public byte[] preparepkx(byte[] buff)
{
pkx[0x14] = (byte)Util.getIndex(DEV_Ability); // Ability
pkx[0xEC] = (byte)Math.Min(Convert.ToInt32(MT_Level.Text), 255); // Level
Array.Copy(BitConverter.GetBytes(PKX.getEXP(pkx[0xEC], Util.getIndex(CB_Species))), 0, pkx, 0x10, 4); // EXP
}
// Fix Moves if a slot is empty
@@ -4902,8 +4903,6 @@ private void exportSAV(object sender, EventArgs e)
byte[] cybersav = new Byte[0x65600];
if (savegame_oras) cybersav = new Byte[0x76000];
Array.Copy(editedsav, 0x5400, cybersav, 0, cybersav.Length);
ushort wtf = BitConverter.ToUInt16(editedsav, 0x75E1A);
ushort wtf2 = BitConverter.ToUInt16(cybersav, 0x75E1A);
if (savegame_oras) goto postcheck;
// Chunk Error Checking
byte[] FFFF = new Byte[0x200];
@@ -5261,7 +5260,8 @@ public void setPKXBoxes()
int boxbgofst = (0x7F000 * savindex) + 0x9C1E + C_BoxSelect.SelectedIndex;
int boxbgval = 1 + savefile[boxbgofst];
PAN_Box.BackgroundImage = (Image)Properties.Resources.ResourceManager.GetObject("box_wp" + boxbgval.ToString("00"));
string imagename = "box_wp" + boxbgval.ToString("00"); if (savegame_oras && boxbgval > 16) imagename += "o";
PAN_Box.BackgroundImage = (Image)Properties.Resources.ResourceManager.GetObject(imagename);
PictureBox[] pba = {
bpkx1, bpkx2, bpkx3, bpkx4, bpkx5, bpkx6,
@@ -5284,13 +5284,13 @@ public void setPKXBoxes()
// Reload Party
for (int i = 0; i < 6; i++)
{
int offset = 0x19600 + (0x7F000 * savindex) + 0x104 * i;
int offset = SaveGame.Party + (0x7F000 * savindex) + 0x104 * i;
getSlotFiller(offset, pba[i + 30]);
}
// Reload Battle Box
for (int i = 0; i < 6; i++)
{
int offset = 0x09E00 + (0x7F000 * savindex) + 0xE8 * i;
int offset = SaveGame.BattleBox + (0x7F000 * savindex) + 0xE8 * i;
getSlotFiller(offset, pba[i + 36]);
}
// Reload Daycare
@@ -5304,10 +5304,10 @@ public void setPKXBoxes()
};
for (int i = 0; i < 2; i++)
{
int offset = 0x20600 + (0x7F000 * savindex) + 0xE8 * i + 8 * (i + 1);
int offset = SaveGame.Daycare + (0x7F000 * savindex) + 0xE8 * i + 8 * (i + 1);
getSlotFiller(offset, pba[i + 42]);
dctexta[i].Text = BitConverter.ToUInt32(savefile, 0x20600 + (0x7F000 * savindex) + 0xF0 * i + 4).ToString();
if (Convert.ToBoolean(savefile[0x20600 + (0x7F000 * savindex) + 0xF0 * i])) // If Occupied
dctexta[i].Text = BitConverter.ToUInt32(savefile, SaveGame.Daycare + (0x7F000 * savindex) + 0xF0 * i + 4).ToString();
if (Convert.ToBoolean(savefile[SaveGame.Daycare + (0x7F000 * savindex) + 0xF0 * i])) // If Occupied
{
pba[i + 42].Image = Util.ChangeOpacity(pba[i + 42].Image, 1);
dclabela[i].Text = (i + 1) + ": Occupied";
@@ -5318,14 +5318,14 @@ public void setPKXBoxes()
dclabela[i].Text = (i + 1) + ": Not Occupied";
}
}
DayCare_HasEgg.Checked = Convert.ToBoolean(savefile[0x20600 + (0x7F000 * savindex) + 0x1E0]);
TB_RNGSeed.Text = BitConverter.ToUInt64(savefile, 0x20600 + (0x7F000 * savindex) + 0x1E8).ToString("X16");
DayCare_HasEgg.Checked = Convert.ToBoolean(savefile[SaveGame.Daycare + (0x7F000 * savindex) + 0x1E0]);
TB_RNGSeed.Text = BitConverter.ToUInt64(savefile, SaveGame.Daycare + (0x7F000 * savindex) + 0x1E8).ToString("X16");
// GTS
getSlotFiller(0x1CC00 + (0x7F000 * savindex), pba[44]);
getSlotFiller(SaveGame.GTS + (0x7F000 * savindex), pba[44]);
// Fused
getSlotFiller(0x1B400 + (0x7F000 * savindex), pba[45]);
getSlotFiller(SaveGame.Fused + (0x7F000 * savindex), pba[45]);
// SUBE
for (int i = 0; i < 3; i++)
@@ -5964,6 +5964,9 @@ private void InitializeStrings()
itempouch = Util.getStringList("ItemPouch", l);
wallpapernames = Util.getStringList("Wallpaper", l);
// Fix (None) tags
abilitylist[0] = itemlist[0] = movelist[0] = "("+itemlist[0]+")";
// Fix Item Names (Duplicate entries)
itemlist[629] += " (2)";
itemlist[707] += " (2)";
@@ -6040,7 +6043,7 @@ public class SaveGames
{
public struct SaveStruct
{
public int Box, Party, BattleBox, GTS, Daycare, Fused, SUBE, Puff, Item, Trainer1, Trainer2, PCLayout, Wondercard, BerryField, OPower, EventFlag, PokeDex, HoF, PSS, JPEG;
public int Box, TrainerCard, Party, BattleBox, GTS, Daycare, Fused, SUBE, Puff, Item, Trainer1, Trainer2, PCLayout, Wondercard, BerryField, OPower, EventFlag, PokeDex, HoF, PSS, JPEG;
public string Name;
public SaveStruct(string GameID)
{
@@ -6048,6 +6051,7 @@ public SaveStruct(string GameID)
{
Name = "XY";
Box = 0x27A00;
TrainerCard = 0x19400;
Party = 0x19600;
BattleBox = 0x09E00;
Daycare = 0x20600;
@@ -6075,11 +6079,12 @@ public SaveStruct(string GameID)
// Temp
Name = "ORAS";
Box = 0x38400; // Confirmed
TrainerCard = 0x19400;
Party = 0x19600; // Confirmed
BattleBox = 0x09E00;// Confirmed
Daycare = 0x20600;
GTS = 0x1CC00;
Fused = 0x1B400;
GTS = 0x1D600;
Fused = 0x1BE00;
SUBE = 0x22C90;
Puff = 0x5400;
@@ -6102,6 +6107,7 @@ public SaveStruct(string GameID)
// Copied...
Name = "Unknown";
Box = 0x27A00;
TrainerCard = 0x19400;
Party = 0x19600;
BattleBox = 0x09E00;
Daycare = 0x20600;

File diff suppressed because it is too large Load Diff

View File

@@ -5104,4 +5104,46 @@
<data name="_80_1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\img\Pokemon Sprites\80-1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="box_wp17o" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\img\box\box_wp17o.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="box_wp18o" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\img\box\box_wp18o.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="box_wp19o" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\img\box\box_wp19o.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="box_wp20o" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\img\box\box_wp20o.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="box_wp21o" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\img\box\box_wp21o.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="box_wp22o" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\img\box\box_wp22o.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="box_wp23o" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\img\box\box_wp23o.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="box_wp24o" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\img\box\box_wp24o.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_25_1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\img\Pokemon Sprites\25-1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_25_2" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\img\Pokemon Sprites\25-2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_25_3" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\img\Pokemon Sprites\25-3.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_25_4" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\img\Pokemon Sprites\25-4.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_25_5" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\img\Pokemon Sprites\25-5.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_25_6" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\img\Pokemon Sprites\25-6.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

Binary file not shown.

After

Width:  |  Height:  |  Size: 419 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 487 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 456 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 403 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 369 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View File

@@ -199,7 +199,7 @@
Einform
Ein
@@ -349,7 +349,7 @@ Einform
Formeo
eo
@@ -384,7 +384,7 @@ Kyogre
Groudon
Normalform
Normal
@@ -410,8 +410,8 @@ Normalform
Pflanzenumhang
Pflanzenumhang
Pflanzen
Pflanzen
@@ -419,9 +419,9 @@ Pflanzenumhang
Wolkenform
Westliches Meer
Westliches Meer
Wolken
Westliches
Westliches
@@ -485,12 +485,12 @@ Rotom
Wandelform
Wandel
Landform
Land
Arceus
@@ -548,12 +548,12 @@ Arceus
Rotlinige Form
Rotlinige
Normalmodus
Normal
@@ -583,8 +583,8 @@ Normalmodus
Frühlingsform
Frühlingsform
Frühlings
Frühlings
@@ -639,14 +639,14 @@ Frühlingsform
Inkarnationsform
Inkarnationsform
Inkarnations
Inkarnations
Inkarnationsform
Inkarnations
Kyurem
Standardform
Gesangsform
Standard
Gesangs
Genesect
@@ -664,22 +664,22 @@ Genesect
Frostmuster
Frost
Rotblütler
Rotblütler
Rotblütler
Rot
Rot
Rot
Zottelform
Zottel
Männlich
Schildform
Schild
@@ -708,22 +708,22 @@ Schildform
Größe M
Größe M
M
M
Ruhe-Modus
Ruhe-
Gebanntes Hoopa
Gebanntes
Mega-Bisaflor
Mega-Glurak X
Mega-Glurak Y
Mega
Mega X
Mega Y
Mega-Turtok
Mega-Bibor
Mega-Tauboss
@@ -743,33 +743,33 @@ Mega-Aerodactyl
Mega-Mewtu X
Mega-Mewtu Y
Mega-Ampharos
Einform
Einform
Einform
Einform
Einform
Einform
Einform
Einform
Einform
Einform
Einform
Einform
Einform
Einform
Einform
Einform
Einform
Einform
Einform
Einform
Einform
Einform
Einform
Einform
Einform
Einform
Einform
Ein
Ein
Ein
Ein
Ein
Ein
Ein
Ein
Ein
Ein
Ein
Ein
Ein
Ein
Ein
Ein
Ein
Ein
Ein
Ein
Ein
Ein
Ein
Ein
Ein
Ein
Ein
Mega-Stahlos
Mega-Scherox
Mega-Skaraborn
@@ -787,9 +787,9 @@ Mega-Voltenso
Mega-Tohaido
Mega-Camerupt
Mega-Altaria
Sonnenform
Regenform
Schneeform
Sonnen
Regen
Schnee
Mega-Banette
Mega-Absol
Mega-Firnontor
@@ -797,19 +797,19 @@ Mega-Brutalanda
Mega-Metagross
Mega-Latias
Mega-Latios
Protomorphose
Protomorphose
Proto
Proto
Mega-Rayquaza
Angriffsform
Verteidigungsform
Initiativeform
Sandumhang
Lumpenumhang
Sandumhang
Lumpenumhang
Sonnenform
Östliches Meer
Östliches Meer
Angriffs
Verteidigungs
Initiative
Sand
Lumpen
Sand
Lumpen
Sonnen
Östliches
Östliches
Mega-Schlapor
Mega-Knakrack
Mega-Lucario
@@ -820,8 +820,8 @@ Wasch-Rotom
Frost-Rotom
Wirbel-Rotom
Schneid-Rotom
Urform
Zenitform
Ur
Zenit
Arceus
Arceus
Arceus
@@ -840,74 +840,74 @@ Arceus
Arceus
Arceus
Mega-Ohrdoch
Blaulinige Form
Trance-Modus
Sommerform
Herbstform
Winterform
Sommerform
Herbstform
Winterform
Tiergeistform
Tiergeistform
Tiergeistform
Weißes Kyurem
Schwarzes Kyurem
Resolutform
Tanzform
Blaulinige
Trance
Sommer
Herbst
Winter
Sommer
Herbst
Winter
Tiergeist
Tiergeist
Tiergeist
Weißes
Schwarzes
Resolut
Tanz
Genesect
Genesect
Genesect
Genesect
Schneefeldmuster
Flockenmuster
Kontinentalmuster
Ziergartenmuster
Prunkmuster
Blumenmeermuster
Innovationsmuster
Aquamarinmuster
Archipelmuster
Dürremuster
Sandmuster
Flussdeltamuster
Monsunmuster
Savannenmuster
Sonnenmuster
Ozeanmuster
Dschungelmuster
Fantasiemuster
Pokéball-Muster
Gelbblütler
Orangeblütler
Blaublütler
Weißblütler
Gelbblütler
Orangeblütler
Blaublütler
Weißblütler
Ewigblütler
Gelbblütler
Orangeblütler
Blaublütler
Weißblütler
Herzchenschnitt
Sternchenschnitt
Diamantenschnitt
Fräuleinschnitt
Damenschnitt
Kavaliersschnitt
Königinnenschnitt
Kabuki-Schnitt
Herrscherschnitt
Schneefeld
Flocken
Kontinental
Ziergarten
Prunk
Blumenmeer
Innovations
Aquamarin
Archipel
Dürre
Sand
Flussdelta
Monsun
Savannen
Sonnen
Ozean
Dschungel
Fantasie
Pokéball
Gelb
Orange
Blau
Weiß
Gelb
Orange
Blau
Weiß
Ewig
Gelb
Orange
Blau
Weiß
Herzchen
Sternchen
Diamanten
Fräulein
Damen
Kavaliers
Königinnen
Kabuki
Herrscher
Weiblich
Klingenform
Größe S
Größe L
Größe XL
Größe S
Größe L
Größe XL
Aktiv-Modus
Klingen
S
L
XL
S
L
XL
Aktiv
Mega-Diancie
Entfesseltes Hoopa
Entfesseltes

View File

@@ -1,4 +1,4 @@
Kein Item
Kein
Meisterball
Hyperball
Superball

View File

@@ -74,7 +74,7 @@ Label_ContestStats = Contest Stats
Label_Cool = Cool
Label_Beauty = Beauty
Label_Cute = Cute
Label_Smart = Smart
Label_Smart = Clever
Label_Tough = Tough
Label_Sheen = Sheen
-------------------Attacks Tab Data---------------------

View File

@@ -199,7 +199,7 @@
One form
One
@@ -384,7 +384,7 @@ Kyogre
Groudon
Normal Forme
Normal
@@ -410,8 +410,8 @@ Normal Forme
Plant Cloak
Plant Cloak
Plant
Plant
@@ -419,7 +419,7 @@ Plant Cloak
Overcast Form
Overcast
West Sea
West Sea
@@ -485,12 +485,12 @@ Rotom
Altered Forme
Altered
Land Forme
Land
Arceus
@@ -548,12 +548,12 @@ Arceus
Red-Striped Form
Red-Striped
Standard Mode
Standard
@@ -583,8 +583,8 @@ Standard Mode
Spring Form
Spring Form
Spring
Spring
@@ -639,14 +639,14 @@ Spring Form
Incarnate Forme
Incarnate Forme
Incarnate
Incarnate
Incarnate Forme
Incarnate
Kyurem
Ordinary Form
Aria Forme
Ordinary
Aria
Genesect
@@ -664,22 +664,22 @@ Genesect
Icy Snow Pattern
Icy Snow
Red Flower
Red Flower
Red Flower
Red
Red
Red
Natural Form
Natural
Male
Shield Forme
Shield
@@ -708,31 +708,31 @@ Shield Forme
Average Size
Average Size
Average
Average
Neutral Mode
Neutral
Hoopa Confined
Confined
Mega Venusaur
Mega Charizard X
Mega Charizard Y
Mega
Mega X
Mega Y
Mega Blastoise
Mega Beedrill
Mega Pidgeot
Pikachu Rock Star
Pikachu Belle
Pikachu Pop Star
Pikachu, Ph.D.
Pikachu Libre
Cosplay Pikachu
Rock Star
Belle
Pop Star
Ph.D.
Libre
Cosplay
Mega Alakazam
Mega Slowbro
Mega Gengar
@@ -743,33 +743,33 @@ Mega Aerodactyl
Mega Mewtwo X
Mega Mewtwo Y
Mega Ampharos
One form
One form
One form
One form
One form
One form
One form
One form
One form
One form
One form
One form
One form
One form
One form
One form
One form
One form
One form
One form
One form
One form
One form
One form
One form
One form
One form
One
One
One
One
One
One
One
One
One
One
One
One
One
One
One
One
One
One
One
One
One
One
One
One
One
One
One
Mega Steelix
Mega Scizor
Mega Heracross
@@ -787,9 +787,9 @@ Mega Manectric
Mega Sharpedo
Mega Camerupt
Mega Altaria
Sunny Form
Rainy Form
Snowy Form
Sunny
Rainy
Snowy
Mega Banette
Mega Absol
Mega Glalie
@@ -797,17 +797,17 @@ Mega Salamence
Mega Metagross
Mega Latias
Mega Latios
Primal Reversion
Primal Reversion
Primal
Primal
Mega Rayquaza
Attack Forme
Defense Forme
Speed Forme
Sandy Cloak
Trash Cloak
Sandy Cloak
Trash Cloak
Sunshine Form
Attack
Defense
Speed
Sandy
Trash
Sandy
Trash
Sunshine
East Sea
East Sea
Mega Lopunny
@@ -820,8 +820,8 @@ Wash Rotom
Frost Rotom
Fan Rotom
Mow Rotom
Origin Forme
Sky Forme
Origin
Sky
Arceus
Arceus
Arceus
@@ -840,74 +840,74 @@ Arceus
Arceus
Arceus
Mega Audino
Blue-Striped Form
Zen Mode
Summer Form
Autumn Form
Winter Form
Summer Form
Autumn Form
Winter Form
Therian Forme
Therian Forme
Therian Forme
White Kyurem
Black Kyurem
Resolute Form
Pirouette Forme
Blue-Striped
Zen
Summer
Autumn
Winter
Summer
Autumn
Winter
Therian
Therian
Therian
White
Black
Resolute
Pirouette
Genesect
Genesect
Genesect
Genesect
Polar Pattern
Tundra Pattern
Continental Pattern
Garden Pattern
Elegant Pattern
Meadow Pattern
Modern Pattern
Marine Pattern
Archipelago Pattern
High Plains Pattern
Sandstorm Pattern
River Pattern
Monsoon Pattern
Savanna Pattern
Sun Pattern
Ocean Pattern
Jungle Pattern
Fancy Pattern
Poké Ball Pattern
Yellow Flower
Orange Flower
Blue Flower
White Flower
Yellow Flower
Orange Flower
Blue Flower
White Flower
Eternal Flower
Yellow Flower
Orange Flower
Blue Flower
White Flower
Heart Trim
Star Trim
Diamond Trim
Debutante Trim
Matron Trim
Dandy Trim
La Reine Trim
Kabuki Trim
Pharaoh Trim
Polar
Tundra
Continental
Garden
Elegant
Meadow
Modern
Marine
Archipelago
High Plains
Sandstorm
River
Monsoon
Savanna
Sun
Ocean
Jungle
Fancy
Poké Ball
Yellow
Orange
Blue
White
Yellow
Orange
Blue
White
Eternal
Yellow
Orange
Blue
White
Heart
Star
Diamond
Debutante
Matron
Dandy
La Reine
Kabuki
Pharaoh
Female
Blade Forme
Small Size
Large Size
Super Size
Small Size
Large Size
Super Size
Active Mode
Blade
Small
Large
Super
Small
Large
Super
Active
Mega Diancie
Hoopa Unbound
Unbound

View File

@@ -199,7 +199,7 @@
Una forma
Unaa
@@ -349,7 +349,7 @@ Una forma
Forma de Castform
de Castform
@@ -384,7 +384,7 @@ Kyogre
Groudon
Forma Normal
Normal
@@ -410,8 +410,8 @@ Forma Normal
Tronco Planta
Tronco Planta
Planta
Planta
@@ -419,7 +419,7 @@ Tronco Planta
Forma Encapotado
Encapotado
Mar Oeste
Mar Oeste
@@ -477,7 +477,7 @@ Mar Oeste
Forma de Rotom
de Rotom
@@ -485,13 +485,13 @@ Forma de Rotom
Forma Modificada
Modificada
Forma Tierra
Forma de Arceus
Tierra
de Arceus
@@ -548,12 +548,12 @@ Forma de Arceus
Forma Raya Roja
Raya Roja
Modo Normal
Normal
@@ -583,8 +583,8 @@ Modo Normal
Forma Primavera
Forma Primavera
Primavera
Primavera
@@ -639,15 +639,15 @@ Forma Primavera
Forma Avatar
Forma Avatar
Avatar
Avatar
Forma Avatar
Forma Kyurem
Forma Habitual
Forma Lírica
Forma de Genesect
Avatar
Forma
Habitual
Lírica
de Genesect
@@ -664,22 +664,22 @@ Forma de Genesect
Motivo Polar
Polar
Flor Roja
Flor Roja
Flor Roja
Roja
Roja
Roja
Forma Salvaje
Salvaje
Macho
Forma Escudo
Escudo
@@ -708,31 +708,31 @@ Forma Escudo
Tamaño Normal
Tamaño Normal
Normal
Normal
Modo Relajado
Relajado
Hoopa Contenido
Contenido
Mega-Venusaur
Mega-Charizard X
Mega-Charizard Y
Mega
Mega X
Mega Y
Mega-Blastoise
Mega-Beedrill
Mega-Pidgeot
Pikachu Roquera
Pikachu Aristócrata
Pikachu Superstar
Pikachu Erudita
Pikachu Enmascarada
Pikachu Coqueta
Roquera
Aristócrata
Superstar
Erudita
Enmascarada
Coqueta
Mega-Alakazam
Mega-Slowbro
Mega-Gengar
@@ -743,33 +743,33 @@ Mega-Aerodactyl
Mega-Mewtwo X
Mega-Mewtwo Y
Mega-Ampharos
Una forma
Una forma
Una forma
Una forma
Una forma
Una forma
Una forma
Una forma
Una forma
Una forma
Una forma
Una forma
Una forma
Una forma
Una forma
Una forma
Una forma
Una forma
Una forma
Una forma
Una forma
Una forma
Una forma
Una forma
Una forma
Una forma
Una forma
Unaa
Unaa
Unaa
Unaa
Unaa
Unaa
Unaa
Unaa
Unaa
Unaa
Unaa
Unaa
Unaa
Unaa
Unaa
Unaa
Unaa
Unaa
Unaa
Unaa
Unaa
Unaa
Unaa
Unaa
Unaa
Unaa
Unaa
Mega-Steelix
Mega-Scizor
Mega-Heracross
@@ -787,9 +787,9 @@ Mega-Manectric
Mega-Sharpedo
Mega-Camerupt
Mega-Altaria
Forma Sol
Forma Lluvia
Forma Nieve
Sol
Lluvia
Nieve
Mega-Banette
Mega-Absol
Mega-Glalie
@@ -797,17 +797,17 @@ Mega-Salamence
Mega-Metagross
Mega-Latias
Mega-Latios
Regresión Primigenia
Regresión Primigenia
Primigenia
Primigenia
Mega-Rayquaza
Forma Ataque
Forma Defensa
Forma Velocidad
Tronco Arena
Tronco Basura
Tronco Arena
Tronco Basura
Forma Soleado
Ataque
Defensa
Velocidad
Arena
Basura
Arena
Basura
Soleado
Mar Este
Mar Este
Mega-Lopunny
@@ -815,99 +815,99 @@ Mega-Garchomp
Mega-Lucario
Mega-Abomasnow
Mega-Gallade
Rotom Calor
Rotom Lavado
Rotom Frío
Rotom Ventilador
Rotom Corte
Forma Origen
Forma Cielo
Forma de Arceus
Forma de Arceus
Forma de Arceus
Forma de Arceus
Forma de Arceus
Forma de Arceus
Forma de Arceus
Forma de Arceus
Forma de Arceus
Forma de Arceus
Forma de Arceus
Forma de Arceus
Forma de Arceus
Forma de Arceus
Forma de Arceus
Forma de Arceus
Forma de Arceus
Calor
Lavado
Frío
Ventilador
Corte
Origen
Cielo
de Arceus
de Arceus
de Arceus
de Arceus
de Arceus
de Arceus
de Arceus
de Arceus
de Arceus
de Arceus
de Arceus
de Arceus
de Arceus
de Arceus
de Arceus
de Arceus
de Arceus
Mega-Audino
Forma Raya Azul
Modo Daruma
Forma Verano
Forma Otoño
Forma Invierno
Forma Verano
Forma Otoño
Forma Invierno
Forma Tótem
Forma Tótem
Forma Tótem
Kyurem Blanco
Kyurem Negro
Forma Brío
Forma Danza
Forma de Genesect
Forma de Genesect
Forma de Genesect
Forma de Genesect
Motivo Taiga
Motivo Tundra
Motivo Continental
Motivo Vergel
Motivo Oriental
Motivo Floral
Motivo Moderno
Motivo Marino
Motivo Isleño
Motivo Estepa
Motivo Desierto
Motivo Oasis
Motivo Monzón
Motivo Pantano
Motivo Solar
Motivo Océano
Motivo Jungla
Motivo Fantasía
Motivo Poké Ball
Flor Amarilla
Flor Naranja
Flor Azul
Flor Blanca
Flor Amarilla
Flor Naranja
Flor Azul
Flor Blanca
Flor Eterna
Flor Amarilla
Flor Naranja
Flor Azul
Flor Blanca
Corte Corazón
Corte Estrella
Corte Rombo
Corte Señorita
Corte Dama
Corte Caballero
Corte Aristocrático
Corte Kabuki
Corte Faraónico
Raya Azul
Daruma
Verano
Otoño
Invierno
Verano
Otoño
Invierno
Tótem
Tótem
Tótem
Blanco
Negro
Brío
Danza
de Genesect
de Genesect
de Genesect
de Genesect
Taiga
Tundra
Continental
Vergel
Oriental
Floral
Motivorno
Marino
Isleño
Estepa
Desierto
Oasis
Monzón
Pantano
Solar
Océano
Jungla
Fantasía
Poké Ball
Amarilla
Naranja
Azul
Blanca
Amarilla
Naranja
Azul
Blanca
Eterna
Amarilla
Naranja
Azul
Blanca
Corazón
Estrella
Rombo
Señorita
Dama
Caballero
Aristocrático
Kabuki
Faraónico
Hembra
Forma Filo
Tamaño Pequeño
Tamaño Grande
Tamaño Extragrande
Tamaño Pequeño
Tamaño Grande
Tamaño Extragrande
Modo Activo
Filo
Pequeño
Grande
Extragrande
Pequeño
Grande
Extragrande
Activo
Mega-Diancie
Hoopa Desatado
Desatado

View File

@@ -1,4 +1,4 @@
Ningún objeto
Ningún
Master Ball
Ultra Ball
Super Ball

View File

@@ -199,7 +199,7 @@
Forme Unique
Unique
@@ -349,7 +349,7 @@ Forme Unique
Forme de Morphéo
de Morphéo
@@ -384,7 +384,7 @@ Kyogre
Groudon
Forme Normale
Normale
@@ -410,8 +410,8 @@ Forme Normale
Cape Plante
Cape Plante
Plante
Plante
@@ -419,7 +419,7 @@ Cape Plante
Temps Couvert
Couvert
Mer Occident
Mer Occident
@@ -477,7 +477,7 @@ Mer Occident
Forme de Motisma
de Motisma
@@ -485,13 +485,13 @@ Forme de Motisma
Forme Alternative
Alternative
Forme Terrestre
Forme de Arceus
Terrestre
de Arceus
@@ -548,7 +548,7 @@ Forme de Arceus
Motif Rouge
Rouge
@@ -583,8 +583,8 @@ Mode Normal
Forme Printemps
Forme Printemps
Printemps
Printemps
@@ -639,15 +639,15 @@ Forme Printemps
Forme Avatar
Forme Avatar
Avatar
Avatar
Forme Avatar
Forme de Kyurem
Avatar
de
Aspect Normal
Forme Chant
Forme de Genesect
Chant
de Genesect
@@ -664,22 +664,22 @@ Forme de Genesect
Motif Blizzard
Blizzard
Fleur Rouge
Fleur Rouge
Fleur Rouge
Rouge
Rouge
Rouge
Forme Sauvage
Sauvage
Mâle
Forme Parade
Parade
@@ -708,31 +708,31 @@ Forme Parade
Taille Normale
Taille Normale
Normale
Normale
Mode Paisible
Paisible
Hoopa Enchaîné
Enchaîné
Méga-Florizarre
Méga-Dracaufeu X
Méga-Dracaufeu Y
Méga
Méga X
Méga Y
Méga-Tortank
Méga-Dardargnan
Méga-Roucarnage
Pikachu Rockeur
Pikachu Lady
Pikachu Star
Pikachu Docteur
Pikachu Catcheur
Pikachu Cosplayeur
Rockeur
Lady
Star
Docteur
Catcheur
Cosplayeur
Méga-Alakazam
Méga-Flagadoss
Méga-Ectoplasma
@@ -743,33 +743,33 @@ Méga-Ptéra
Méga-Mewtwo X
Méga-Mewtwo Y
Méga-Pharamp
Forme Unique
Forme Unique
Forme Unique
Forme Unique
Forme Unique
Forme Unique
Forme Unique
Forme Unique
Forme Unique
Forme Unique
Forme Unique
Forme Unique
Forme Unique
Forme Unique
Forme Unique
Forme Unique
Forme Unique
Forme Unique
Forme Unique
Forme Unique
Forme Unique
Forme Unique
Forme Unique
Forme Unique
Forme Unique
Forme Unique
Forme Unique
Unique
Unique
Unique
Unique
Unique
Unique
Unique
Unique
Unique
Unique
Unique
Unique
Unique
Unique
Unique
Unique
Unique
Unique
Unique
Unique
Unique
Unique
Unique
Unique
Unique
Unique
Unique
Méga-Steelix
Méga-Cizayox
Méga-Scarhino
@@ -787,9 +787,9 @@ Méga-Élecsprint
Méga-Sharpedo
Méga-Camérupt
Méga-Altaria
Forme Solaire
Forme Eau de Pluie
Forme Blizzard
Solaire
Eau de Pluie
Blizzard
Méga-Branette
Méga-Absol
Méga-Oniglali
@@ -800,14 +800,14 @@ Méga-Latios
Primo-Résurgence
Primo-Résurgence
Méga-Rayquaza
Forme Attaque
Forme Défense
Forme Vitesse
Cape Sable
Cape Déchet
Cape Sable
Cape Déchet
Temps Ensoleillé
Attaque
Défense
Vitesse
Sable
Déchet
Sable
Déchet
Ensoleillé
Mer Orient
Mer Orient
Méga-Lockpin
@@ -815,99 +815,99 @@ Méga-Carchacrok
Méga-Lucario
Méga-Blizzaroi
Méga-Gallame
Motisma Chaleur
Motisma Lavage
Motisma Froid
Motisma Hélice
Motisma Tonte
Forme Originelle
Forme Céleste
Forme de Arceus
Forme de Arceus
Forme de Arceus
Forme de Arceus
Forme de Arceus
Forme de Arceus
Forme de Arceus
Forme de Arceus
Forme de Arceus
Forme de Arceus
Forme de Arceus
Forme de Arceus
Forme de Arceus
Forme de Arceus
Forme de Arceus
Forme de Arceus
Forme de Arceus
Chaleur
Lavage
Froid
Hélice
Tonte
Originelle
Céleste
de Arceus
de Arceus
de Arceus
de Arceus
de Arceus
de Arceus
de Arceus
de Arceus
de Arceus
de Arceus
de Arceus
de Arceus
de Arceus
de Arceus
de Arceus
de Arceus
de Arceus
Méga-Nanméouïe
Motif Bleu
Bleu
Mode Transe
Forme Été
Forme Automne
Forme Hiver
Forme Été
Forme Automne
Forme Hiver
Forme Totémique
Forme Totémique
Forme Totémique
Été
Automne
Hiver
Été
Automne
Hiver
Totémique
Totémique
Totémique
Kyurem Blanc
Kyurem Noir
Aspect Décidé
Forme Danse
Forme de Genesect
Forme de Genesect
Forme de Genesect
Forme de Genesect
Motif Banquise
Motif Glace
Motif Continent
Motif Verdure
Motif Monarchie
Motif Floraison
Motif Métropole
Motif Rivage
Motif Archipel
Motif Sécheresse
Motif Sable
Motif Delta
Motif Cyclone
Motif Mangrove
Motif Zénith
Motif Soleil Levant
Motif Jungle
Motif Fantaisie
Motif Poké Ball
Fleur Jaune
Fleur Orange
Fleur Bleue
Fleur Blanche
Fleur Jaune
Fleur Orange
Fleur Bleue
Fleur Blanche
Danse
de Genesect
de Genesect
de Genesect
de Genesect
Banquise
Glace
Continent
Verdure
Monarchie
Floraison
Métropole
Rivage
Archipel
Sécheresse
Sable
Delta
Cyclone
Mangrove
Zénith
Soleil Levant
Jungle
Fantaisie
Poké Ball
Jaune
Orange
Bleue
Blanche
Jaune
Orange
Bleue
Blanche
Éternelle
Fleur Jaune
Fleur Orange
Fleur Bleue
Fleur Blanche
Coupe Cœur
Coupe Étoile
Coupe Diamant
Coupe Demoiselle
Coupe Madame
Coupe Monsieur
Coupe Reine
Coupe Kabuki
Coupe Pharaon
Jaune
Orange
Bleue
Blanche
Cœur
Étoile
Diamant
Demoiselle
Madame
Monsieur
Reine
Kabuki
Pharaon
Femelle
Forme Assaut
Taille Mini
Taille Maxi
Taille Ultra
Taille Mini
Taille Maxi
Taille Ultra
Mode Déchaîné
Assaut
Mini
Maxi
Ultra
Mini
Maxi
Ultra
Déchaîné
Méga-Diancie
Hoopa Déchaîné
Déchaîné

View File

@@ -1,4 +1,4 @@
Aucun objet
Aucun
Master Ball
Hyper Ball
Super Ball

View File

@@ -93,7 +93,9 @@ private void B_Save_Click(object sender, EventArgs e)
private void changeBoxBG(object sender, EventArgs e)
{
sav[(0x7F000 * savindex) + 0x9C1E + LB_BoxSelect.SelectedIndex] = (byte)CB_BG.SelectedIndex;
PAN_BG.BackgroundImage = (Image)Properties.Resources.ResourceManager.GetObject("box_wp" + (CB_BG.SelectedIndex+1).ToString("00"));
string imagename = "box_wp" + (CB_BG.SelectedIndex + 1).ToString("00"); if (m_parent.savegame_oras && (CB_BG.SelectedIndex + 1) > 16) imagename += "o";
PAN_BG.BackgroundImage = (Image)Properties.Resources.ResourceManager.GetObject(imagename);
}
}
}

View File

@@ -132,6 +132,7 @@ private void InitializeComponent()
this.label19 = new System.Windows.Forms.Label();
this.label20 = new System.Windows.Forms.Label();
this.GB_Appear = new System.Windows.Forms.GroupBox();
this.label35 = new System.Windows.Forms.Label();
this.MT_1403F = new System.Windows.Forms.MaskedTextBox();
this.MT_1403E = new System.Windows.Forms.MaskedTextBox();
this.MT_1403D = new System.Windows.Forms.MaskedTextBox();
@@ -188,7 +189,6 @@ private void InitializeComponent()
this.CB_Stats = new System.Windows.Forms.ComboBox();
this.label39 = new System.Windows.Forms.Label();
this.MT_Stat = new System.Windows.Forms.MaskedTextBox();
this.label35 = new System.Windows.Forms.Label();
this.GB_Badges.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pb8)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pb6)).BeginInit();
@@ -833,10 +833,12 @@ private void InitializeComponent()
this.CB_Game.FormattingEnabled = true;
this.CB_Game.Items.AddRange(new object[] {
"X",
"Y"});
this.CB_Game.Location = new System.Drawing.Point(157, 62);
"Y",
"AS",
"OR"});
this.CB_Game.Location = new System.Drawing.Point(141, 62);
this.CB_Game.Name = "CB_Game";
this.CB_Game.Size = new System.Drawing.Size(35, 21);
this.CB_Game.Size = new System.Drawing.Size(51, 21);
this.CB_Game.TabIndex = 24;
//
// CB_Gender
@@ -844,11 +846,11 @@ private void InitializeComponent()
this.CB_Gender.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.CB_Gender.FormattingEnabled = true;
this.CB_Gender.Items.AddRange(new object[] {
"Male",
"Female"});
"♂",
"♀"});
this.CB_Gender.Location = new System.Drawing.Point(99, 62);
this.CB_Gender.Name = "CB_Gender";
this.CB_Gender.Size = new System.Drawing.Size(57, 21);
this.CB_Gender.Size = new System.Drawing.Size(40, 21);
this.CB_Gender.TabIndex = 22;
//
// TB_Style
@@ -1316,6 +1318,15 @@ private void InitializeComponent()
this.GB_Appear.TabStop = false;
this.GB_Appear.Text = "Current Appearance (X/Y)";
//
// label35
//
this.label35.AutoSize = true;
this.label35.Location = new System.Drawing.Point(116, 244);
this.label35.Name = "label35";
this.label35.Size = new System.Drawing.Size(55, 13);
this.label35.TabIndex = 72;
this.label35.Text = "Outfit Vals";
//
// MT_1403F
//
this.MT_1403F.Location = new System.Drawing.Point(90, 242);
@@ -1887,15 +1898,6 @@ private void InitializeComponent()
this.MT_Stat.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
this.MT_Stat.TextChanged += new System.EventHandler(this.changeStatVal);
//
// label35
//
this.label35.AutoSize = true;
this.label35.Location = new System.Drawing.Point(116, 244);
this.label35.Name = "label35";
this.label35.Size = new System.Drawing.Size(55, 13);
this.label35.TabIndex = 72;
this.label35.Text = "Outfit Vals";
//
// SAV_Trainer
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);

View File

@@ -12,6 +12,9 @@ namespace PKHeX
{
public partial class SAV_Trainer : Form
{
private int TrainerCard = 0x19400;
private int Trainer1 = 0x6800;
private int Trainer2 = 0x9600;
public SAV_Trainer(Form1 frm1, string gamename)
{
Game = gamename;
@@ -355,13 +358,9 @@ private void getBadges()
for (int i = 0; i < 8; i++)
{
if (!cba[i].Checked)
{
pba[i].Image = Util.ChangeOpacity(bma[i], 0.1);
}
else
{
pba[i].Image = Util.ChangeOpacity(bma[i], 1);
}
}
}
private void getTextBoxes()
@@ -372,26 +371,26 @@ private void getTextBoxes()
cba[i].Checked = !((badgeval & (1 << i)) == 0);
// Get Data
string OT_NAME = Encoding.Unicode.GetString(sav, 0x19448 + savshift, 0x1A);
string OT_NAME = Encoding.Unicode.GetString(sav, TrainerCard + 0x48 + savshift, 0x1A);
string RIV_NAME = Encoding.Unicode.GetString(sav, 0x9610 + savshift, 0x1A);
CB_Game.SelectedIndex = sav[0x19404 + savshift]-0x18;
CB_Gender.SelectedIndex = sav[0x19405 + savshift];
CB_Game.SelectedIndex = sav[TrainerCard + 0x04 + savshift]-0x18;
CB_Gender.SelectedIndex = sav[TrainerCard + 0x05 + savshift];
int TID = BitConverter.ToUInt16(sav, 0x19400 + savshift);
int SID = BitConverter.ToUInt16(sav, 0x19402 + savshift);
uint money = BitConverter.ToUInt32(sav, 0x9608 + savshift);
int TID = BitConverter.ToUInt16(sav, TrainerCard + 0x0 + savshift);
int SID = BitConverter.ToUInt16(sav, TrainerCard + 0x2 + savshift);
uint money = BitConverter.ToUInt32(sav, Trainer2 + 0x8 + savshift);
string saying1 = Encoding.Unicode.GetString(sav, 0x1947C + savshift, 0x20);
string saying2 = Encoding.Unicode.GetString(sav, 0x1949E + savshift, 0x20);
string saying3 = Encoding.Unicode.GetString(sav, 0x194C0 + savshift, 0x20);
string saying4 = Encoding.Unicode.GetString(sav, 0x194E2 + savshift, 0x20);
string saying5 = Encoding.Unicode.GetString(sav, 0x19504 + savshift, 0x20);
string saying1 = Encoding.Unicode.GetString(sav, TrainerCard + 0x7C + savshift, 0x20);
string saying2 = Encoding.Unicode.GetString(sav, TrainerCard + 0x9E + savshift, 0x20);
string saying3 = Encoding.Unicode.GetString(sav, TrainerCard + 0xC0 + savshift, 0x20);
string saying4 = Encoding.Unicode.GetString(sav, TrainerCard + 0xE2 + savshift, 0x20);
string saying5 = Encoding.Unicode.GetString(sav, TrainerCard + 0x104 + savshift, 0x20);
int _region = sav[0x19426 + savshift];
int _country = sav[0x19427 + savshift];
int _3dsreg = sav[0x1942C + savshift];
int _language = sav[0x1942D + savshift];
int _region = sav[TrainerCard + 0x26 + savshift];
int _country = sav[TrainerCard + 0x27 + savshift];
int _3dsreg = sav[TrainerCard + 0x2C + savshift];
int _language = sav[TrainerCard + 0x2D + savshift];
// Display Data
TB_OTName.Text = OT_NAME;
@@ -444,14 +443,18 @@ private void getTextBoxes()
TB_MBMN.Text = BitConverter.ToUInt16(sav, savshift + 0x205C0 + 2 * 18).ToString();
TB_MBMS.Text = BitConverter.ToUInt16(sav, savshift + 0x205C0 + 2 * 19).ToString();
TB_CoordM.Text = BitConverter.ToUInt16(sav, savshift + 0x6802).ToString();
TB_CoordX.Text = BitConverter.ToSingle(sav, savshift + 0x6810).ToString();
TB_CoordZ.Text = BitConverter.ToSingle(sav, savshift + 0x6814).ToString();
TB_CoordY.Text = BitConverter.ToSingle(sav, savshift + 0x6818).ToString();
TB_CoordM.Text = BitConverter.ToUInt16(sav, savshift + Trainer1 + 0x02).ToString();
TB_CoordX.Text = BitConverter.ToSingle(sav, savshift + Trainer1 + 0x10).ToString();
TB_CoordZ.Text = BitConverter.ToSingle(sav, savshift + Trainer1 + 0x14).ToString();
TB_CoordY.Text = BitConverter.ToSingle(sav, savshift + Trainer1 + 0x18).ToString();
// Load BP and PokeMiles
TB_BP.Text = BitConverter.ToUInt32(sav, savshift + 0x963C).ToString();
TB_BP.Text = BitConverter.ToUInt32(sav, savshift + Trainer2 + 0x3C).ToString();
TB_PM.Text = BitConverter.ToUInt32(sav, savshift + 0x238FC).ToString();
// Temp ORAS
TB_PM.Enabled = GB_MaisonBest.Enabled = GB_MaisonCurrent.Enabled = GB_Appear.Enabled =
GB_Map.Enabled = GB_Misc.Enabled = TB_BP.Enabled = !m_parent.savegame_oras;
TB_Style.Text = sav[0x694D + savshift].ToString();
@@ -461,39 +464,39 @@ private void getTextBoxes()
MT_Seconds.Text = sav[0x6C03 + savshift].ToString();
// Load PSS Sprite
int sprite = sav[0x19407];
int sprite = sav[TrainerCard + 0x07];
MT_Sprite.Text = sprite.ToString();
// Load Clothing Data
int hat = sav[0x19431 + savshift] >> 3;
int haircolor = sav[0x19431 + savshift] & 7;
int hat = sav[TrainerCard + 0x31 + savshift] >> 3;
int haircolor = sav[TrainerCard + 0x31 + savshift] & 7;
MT_Hat.Text = hat.ToString();
MT_HairColor.Text = haircolor.ToString();
MT_14030.Text = sav[0x19430 + savshift].ToString();
MT_14031.Text = sav[0x19431 + savshift].ToString();
MT_14032.Text = sav[0x19432 + savshift].ToString();
MT_14033.Text = sav[0x19433 + savshift].ToString();
MT_14034.Text = sav[0x19434 + savshift].ToString();
MT_14035.Text = sav[0x19435 + savshift].ToString();
MT_14036.Text = sav[0x19436 + savshift].ToString();
MT_14037.Text = sav[0x19437 + savshift].ToString();
MT_14038.Text = sav[0x19438 + savshift].ToString();
MT_14039.Text = sav[0x19439 + savshift].ToString();
MT_1403A.Text = sav[0x1943A + savshift].ToString();
MT_1403B.Text = sav[0x1943B + savshift].ToString();
MT_1403C.Text = sav[0x1943C + savshift].ToString();
MT_1403D.Text = sav[0x1943D + savshift].ToString();
MT_1403E.Text = sav[0x1943E + savshift].ToString();
MT_1403F.Text = sav[0x1943F + savshift].ToString();
MT_14030.Text = sav[TrainerCard + 0x30 + savshift].ToString();
MT_14031.Text = sav[TrainerCard + 0x31 + savshift].ToString();
MT_14032.Text = sav[TrainerCard + 0x32 + savshift].ToString();
MT_14033.Text = sav[TrainerCard + 0x33 + savshift].ToString();
MT_14034.Text = sav[TrainerCard + 0x34 + savshift].ToString();
MT_14035.Text = sav[TrainerCard + 0x35 + savshift].ToString();
MT_14036.Text = sav[TrainerCard + 0x36 + savshift].ToString();
MT_14037.Text = sav[TrainerCard + 0x37 + savshift].ToString();
MT_14038.Text = sav[TrainerCard + 0x38 + savshift].ToString();
MT_14039.Text = sav[TrainerCard + 0x39 + savshift].ToString();
MT_1403A.Text = sav[TrainerCard + 0x3A + savshift].ToString();
MT_1403B.Text = sav[TrainerCard + 0x3B + savshift].ToString();
MT_1403C.Text = sav[TrainerCard + 0x3C + savshift].ToString();
MT_1403D.Text = sav[TrainerCard + 0x3D + savshift].ToString();
MT_1403E.Text = sav[TrainerCard + 0x3E + savshift].ToString();
MT_1403F.Text = sav[TrainerCard + 0x3F + savshift].ToString();
}
private void save()
{
string OT_Name = TB_OTName.Text;
//string RIV_Name = TB_Rival.Text;
sav[0x19404 + savshift] = (byte)(CB_Game.SelectedIndex + 0x18);
sav[0x19405 + savshift] = (byte)CB_Gender.SelectedIndex;
sav[TrainerCard + 0x04 + savshift] = (byte)(CB_Game.SelectedIndex + 0x18);
sav[TrainerCard + 0x05 + savshift] = (byte)CB_Gender.SelectedIndex;
uint TID = ToUInt32(MT_TID.Text);
uint SID = ToUInt32(MT_SID.Text);
@@ -510,36 +513,36 @@ private void save()
uint _3dsreg = ToUInt32(CB_3DSReg.SelectedValue.ToString());
uint _language = ToUInt32(CB_Language.SelectedValue.ToString());
Array.Copy(BitConverter.GetBytes(TID), 0, sav, 0x19400 + savshift, 2);
Array.Copy(BitConverter.GetBytes(SID), 0, sav, 0x19402 + savshift, 2);
Array.Copy(BitConverter.GetBytes(money), 0, sav, 0x9608 + savshift, 4);
Array.Copy(BitConverter.GetBytes(_region), 0, sav, 0x19426 + savshift, 1);
Array.Copy(BitConverter.GetBytes(_country), 0, sav, 0x19427 + savshift, 1);
Array.Copy(BitConverter.GetBytes(_3dsreg), 0, sav, 0x1942C + savshift, 1);
Array.Copy(BitConverter.GetBytes(_language), 0, sav, 0x1942D + savshift, 1);
Array.Copy(BitConverter.GetBytes(TID), 0, sav, TrainerCard + 0x0 + savshift, 2);
Array.Copy(BitConverter.GetBytes(SID), 0, sav, TrainerCard + 0x2 + savshift, 2);
Array.Copy(BitConverter.GetBytes(money), 0, sav, Trainer2 + 0x8 + savshift, 4);
Array.Copy(BitConverter.GetBytes(_region), 0, sav, TrainerCard + 0x26 + savshift, 1);
Array.Copy(BitConverter.GetBytes(_country), 0, sav, TrainerCard + 0x27 + savshift, 1);
Array.Copy(BitConverter.GetBytes(_3dsreg), 0, sav, TrainerCard + 0x2C + savshift, 1);
Array.Copy(BitConverter.GetBytes(_language), 0, sav, TrainerCard + 0x2D + savshift, 1);
byte[] OT = Encoding.Unicode.GetBytes(OT_Name);
Array.Resize(ref OT, 0x1A);
Array.Copy(OT, 0, sav, 0x19448 + savshift, 0x1A);
Array.Copy(OT, 0, sav, TrainerCard + 0x48 + savshift, 0x1A);
//byte[] Rival = Encoding.Unicode.GetBytes(RIV_Name);
//Array.Resize(ref Rival, 0x1A);
//Array.Copy(Rival, 0, sav, 0x9610 + savshift, 0x1A);
byte[] s1 = Encoding.Unicode.GetBytes(saying1);
Array.Resize(ref s1, 0x22);
Array.Copy(s1, 0, sav, 0x1947C + savshift, 0x22);
Array.Copy(s1, 0, sav, TrainerCard + 0x7C + savshift, 0x22);
byte[] s2 = Encoding.Unicode.GetBytes(saying2);
Array.Resize(ref s2, 0x22);
Array.Copy(s2, 0, sav, 0x1949E + savshift, 0x22);
Array.Copy(s2, 0, sav, TrainerCard + 0x9E + savshift, 0x22);
byte[] s3 = Encoding.Unicode.GetBytes(saying3);
Array.Resize(ref s3, 0x22);
Array.Copy(s3, 0, sav, 0x194C0 + savshift, 0x22);
Array.Copy(s3, 0, sav, TrainerCard + 0xC0 + savshift, 0x22);
byte[] s4 = Encoding.Unicode.GetBytes(saying4);
Array.Resize(ref s4, 0x22);
Array.Copy(s4, 0, sav, 0x194E2 + savshift, 0x22);
Array.Copy(s4, 0, sav, TrainerCard + 0xE2 + savshift, 0x22);
byte[] s5 = Encoding.Unicode.GetBytes(saying5);
Array.Resize(ref s5, 0x22);
Array.Copy(s5, 0, sav, 0x19504 + savshift, 0x22);
Array.Copy(s5, 0, sav, TrainerCard + 0x104 + savshift, 0x22);
// New stuff.
// Copy Maison Data in
@@ -558,10 +561,10 @@ private void save()
}
// Copy Position
byte[] m = BitConverter.GetBytes( Int16.Parse(TB_CoordM.Text)); Array.Resize(ref m, 2); Array.Copy(m,0,sav, savshift + 0x6802,2);
byte[] x = BitConverter.GetBytes(Single.Parse(TB_CoordX.Text)); Array.Resize(ref x, 4); Array.Copy(x,0,sav, savshift + 0x6810,4);
byte[] z = BitConverter.GetBytes(Single.Parse(TB_CoordZ.Text)); Array.Resize(ref z, 4); Array.Copy(z,0,sav, savshift + 0x6814,4);
byte[] y = BitConverter.GetBytes(Single.Parse(TB_CoordY.Text)); Array.Resize(ref y, 4); Array.Copy(y,0,sav, savshift + 0x6818,4);
byte[] m = BitConverter.GetBytes( Int16.Parse(TB_CoordM.Text)); Array.Resize(ref m, 2); Array.Copy(m,0,sav, savshift + Trainer1 + 0x02,2);
byte[] x = BitConverter.GetBytes(Single.Parse(TB_CoordX.Text)); Array.Resize(ref x, 4); Array.Copy(x,0,sav, savshift + Trainer1 + 0x10,4);
byte[] z = BitConverter.GetBytes(Single.Parse(TB_CoordZ.Text)); Array.Resize(ref z, 4); Array.Copy(z,0,sav, savshift + Trainer1 + 0x14,4);
byte[] y = BitConverter.GetBytes(Single.Parse(TB_CoordY.Text)); Array.Resize(ref y, 4); Array.Copy(y,0,sav, savshift + Trainer1 + 0x18,4);
byte[] bp = BitConverter.GetBytes(ToUInt32(TB_BP.Text)); Array.Resize(ref bp, 2); Array.Copy(bp, 0, sav, savshift + 0x963C, 2);
byte[] pm = BitConverter.GetBytes(ToUInt32(TB_PM.Text)); Array.Resize(ref pm, 4); Array.Copy(pm, 0, sav, savshift + 0x238FC, 4); Array.Copy(pm, 0, sav, savshift + 0x23900, 4);
@@ -582,26 +585,26 @@ private void save()
sav[0x6C03 + savshift] = (byte)(UInt16.Parse(MT_Seconds.Text) % 60);
// Sprite
sav[0x19407] = Byte.Parse(MT_Sprite.Text);
sav[TrainerCard + 0x07] = Byte.Parse(MT_Sprite.Text);
sav[0x19431] = (byte)(Byte.Parse(MT_HairColor.Text) + (Byte.Parse(MT_Hat.Text) << 3));
sav[TrainerCard + 0x31] = (byte)(Byte.Parse(MT_HairColor.Text) + (Byte.Parse(MT_Hat.Text) << 3));
sav[0x19430 + savshift] = Byte.Parse(MT_14030.Text);
//sav[0x19431 + savshift] = Byte.Parse(MT_14031.Text);
sav[0x19432 + savshift] = Byte.Parse(MT_14032.Text);
sav[0x19433 + savshift] = Byte.Parse(MT_14033.Text);
sav[0x19434 + savshift] = Byte.Parse(MT_14034.Text);
sav[0x19435 + savshift] = Byte.Parse(MT_14035.Text);
sav[0x19436 + savshift] = Byte.Parse(MT_14036.Text);
sav[0x19437 + savshift] = Byte.Parse(MT_14037.Text);
sav[0x19438 + savshift] = Byte.Parse(MT_14038.Text);
sav[0x19439 + savshift] = Byte.Parse(MT_14039.Text);
sav[0x1943A + savshift] = Byte.Parse(MT_1403A.Text);
sav[0x1943B + savshift] = Byte.Parse(MT_1403B.Text);
sav[0x1943C + savshift] = Byte.Parse(MT_1403C.Text);
sav[0x1943D + savshift] = Byte.Parse(MT_1403D.Text);
sav[0x1943E + savshift] = Byte.Parse(MT_1403E.Text);
sav[0x1943F + savshift] = Byte.Parse(MT_1403F.Text);
sav[TrainerCard + 0x30 + savshift] = Byte.Parse(MT_14030.Text);
//sav[TrainerCard + 0x31 + savshift] = Byte.Parse(MT_14031.Text);
sav[TrainerCard + 0x32 + savshift] = Byte.Parse(MT_14032.Text);
sav[TrainerCard + 0x33 + savshift] = Byte.Parse(MT_14033.Text);
sav[TrainerCard + 0x34 + savshift] = Byte.Parse(MT_14034.Text);
sav[TrainerCard + 0x35 + savshift] = Byte.Parse(MT_14035.Text);
sav[TrainerCard + 0x36 + savshift] = Byte.Parse(MT_14036.Text);
sav[TrainerCard + 0x37 + savshift] = Byte.Parse(MT_14037.Text);
sav[TrainerCard + 0x38 + savshift] = Byte.Parse(MT_14038.Text);
sav[TrainerCard + 0x39 + savshift] = Byte.Parse(MT_14039.Text);
sav[TrainerCard + 0x3A + savshift] = Byte.Parse(MT_1403A.Text);
sav[TrainerCard + 0x3B + savshift] = Byte.Parse(MT_1403B.Text);
sav[TrainerCard + 0x3C + savshift] = Byte.Parse(MT_1403C.Text);
sav[TrainerCard + 0x3D + savshift] = Byte.Parse(MT_1403D.Text);
sav[TrainerCard + 0x3E + savshift] = Byte.Parse(MT_1403E.Text);
sav[TrainerCard + 0x3F + savshift] = Byte.Parse(MT_1403F.Text);
}
private void showTSV(object sender, EventArgs e)