Skip to content

Commit

Permalink
0.3
Browse files Browse the repository at this point in the history
- Fix CheckUsedLCI() which didn't take into account directories themselves (fixes hang in BS-X).
- [Special Event] is now [Hydrant Access].
- Exporting now changes the Town ID and Directory ID.
  • Loading branch information
LuigiBlood committed Jan 5, 2018
1 parent 2396a34 commit eb8f0c0
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 10 deletions.
6 changes: 3 additions & 3 deletions SatellaWave/SatellaWave/MainWindow.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 11 additions & 4 deletions SatellaWave/SatellaWave/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ static class Program

public static MainWindow mainWindow;
public static string lastSavedXMLFile = "";
public static byte lastExportID = 0;

public static readonly string[] buildingList = {
"Robot Tower",
Expand Down Expand Up @@ -115,6 +116,7 @@ public static void NewRepository()
AddChannel(2);

lastSavedXMLFile = "";
lastExportID = 0;
mainWindow.setTitle("");
}

Expand Down Expand Up @@ -360,6 +362,11 @@ public static bool CheckUsedLCI(ushort _lci)
{
if (_node.Tag.GetType() == typeof(Directory))
{
if ((_node.Tag as Directory).lci == _lci)
{
return true;
}

//Check Folders
foreach (TreeNode _nodeChildFolder in _node.Nodes)
{
Expand Down Expand Up @@ -1098,7 +1105,6 @@ public static void ExportBSX(string folderPath)
}
}


List<byte> ChannelFile = new List<byte>();
List<byte> FileIDs = new List<byte>();

Expand All @@ -1121,7 +1127,7 @@ public static void ExportBSX(string folderPath)
}

//Directory Header
ChannelFile.Add(1); //Directory ID
ChannelFile.Add(lastExportID); //Directory ID
ChannelFile.Add((byte)(_DirectoryCheck.Nodes.Count + Convert.ToByte(checkInclude))); //Folder Count
ChannelFile.Add(0); //Unknown
ChannelFile.Add(0);
Expand Down Expand Up @@ -1517,8 +1523,8 @@ public static void ExportBSX(string folderPath)
ChannelFile.Clear();

ChannelFile.Add(0); //Flag
ChannelFile.Add(1); //Town Status ID
ChannelFile.Add(1); //Directory ID
ChannelFile.Add(lastExportID); //Town Status ID
ChannelFile.Add(lastExportID); //Directory ID

ChannelFile.Add(0);
ChannelFile.Add(0);
Expand Down Expand Up @@ -1719,6 +1725,7 @@ public static void ExportBSX(string folderPath)
mapfile.Write(ChannelMapFile.ToArray(), 0, ChannelMapFile.Count);
mapfile.Close();

lastExportID++;
MessageBox.Show("Export is a success.", "Export", MessageBoxButtons.OK);
}

Expand Down
4 changes: 2 additions & 2 deletions SatellaWave/SatellaWave/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut
// en utilisant '*', comme indiqué ci-dessous :
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.2.0.0")]
[assembly: AssemblyFileVersion("0.2.0.0")]
[assembly: AssemblyVersion("0.3.0.0")]
[assembly: AssemblyFileVersion("0.3.0.0")]
8 changes: 7 additions & 1 deletion SatellaWave/SatellaWave/readme.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SatellaWave 0.2 (2018-01-04)
SatellaWave 0.3 (2018-01-05)
by LuigiBlood

This software can make Satellaview compatible server binary files.
Expand All @@ -23,6 +23,12 @@ Currently supported channels:
- Shigesato Itoi no Bass Fishing No. 1 Contest Channels

Changelog:
0.3 (2018-01-05)
- Fix CheckUsedLCI() which didn't take into account directories themselves (fixes hang in BS-X).
- [Special Event] is now [Hydrant Access].
- Exporting now changes the Town ID and Directory ID. This allows to change the satellite data in real time as it is emulated if you directly export to the folder.
NOTE: As said earlier in the readme, current stable versions of emulators do not support file downloads properly.

0.2 (2018-01-04)
- Prevent User from choosing more than 5 NPCs/Events (with exceptions).
- Streamed File signification a little clearer (and prevent use of it).
Expand Down

0 comments on commit eb8f0c0

Please sign in to comment.