Skip to content

Commit

Permalink
- use SKU (empty) to hide the in-game marker with fewer side effects
Browse files Browse the repository at this point in the history
  • Loading branch information
cozy1 committed Nov 8, 2018
1 parent 8c8e32f commit 79a2304
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 16 deletions.
11 changes: 7 additions & 4 deletions RocksmithTookitGUI/DLCPackageCreator/ArrangementForm.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -175,18 +175,21 @@ private set
var scrollSpeed = value.ScrollSpeed; var scrollSpeed = value.ScrollSpeed;
if (scrollSpeed == 0) if (scrollSpeed == 0)
scrollSpeed = Convert.ToInt32(ConfigRepository.Instance().GetDecimal("creator_scrollspeed") * 10); scrollSpeed = Convert.ToInt32(ConfigRepository.Instance().GetDecimal("creator_scrollspeed") * 10);

tbarScrollSpeed.Value = Math.Min(scrollSpeed, tbarScrollSpeed.Maximum); tbarScrollSpeed.Value = Math.Min(scrollSpeed, tbarScrollSpeed.Maximum);
UpdateScrollSpeedDisplay(); UpdateScrollSpeedDisplay();


if (Arrangement.RouteMask == RouteMask.Bass) if (Arrangement.RouteMask == RouteMask.Bass)
chkBassPicked.Checked = value.PluckedType == PluckedType.Picked; chkBassPicked.Checked = value.PluckedType == PluckedType.Picked;

// TODO: monitor this change // TODO: monitor this change
// for default => represent is true and bonus is false // Default => represent is true and bonus is false
// for bonus => represent is false and bonus is true // Bonus => represent is false and bonus is true
// for alternate => both represent and bonus are false // Alternate => both represent and bonus are false
// Unknown => both represent and bonus are true
if (value.Represent && value.BonusArr) if (value.Represent && value.BonusArr)
{ {
var diaMsg = "Illegal Arrangement Default/Bonus/Alternate Conditon ... " + Environment.NewLine + Environment.NewLine + var diaMsg = "Invalid Arrangement Default/Bonus/Alternate Conditon ... " + Environment.NewLine + Environment.NewLine +
"Toolkit will reset the arrangement to" + Environment.NewLine + "Toolkit will reset the arrangement to" + Environment.NewLine +
"the default represent condition." + Environment.NewLine; "the default represent condition." + Environment.NewLine;
BetterDialog2.ShowDialog(diaMsg, "<WARNING> Arrangement Represent", null, null, "OK", Bitmap.FromHicon(SystemIcons.Warning.Handle), "Warning", 150, 150); BetterDialog2.ShowDialog(diaMsg, "<WARNING> Arrangement Represent", null, null, "OK", Bitmap.FromHicon(SystemIcons.Warning.Handle), "Warning", 150, 150);
Expand Down
2 changes: 1 addition & 1 deletion RocksmithTookitGUI/Properties/AssemblyInfo.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
// //
// THESE VALUES ARE PROGRAMMATICALLY GENERATED - DO NOT EDIT // THESE VALUES ARE PROGRAMMATICALLY GENERATED - DO NOT EDIT
[assembly: AssemblyVersion("2.9.1.0")] [assembly: AssemblyVersion("2.9.1.0")]
[assembly: AssemblyInformationalVersion("1e2ddd6a")] [assembly: AssemblyInformationalVersion("8c8e32f2")]
[assembly: AssemblyConfiguration("BETA")] [assembly: AssemblyConfiguration("BETA")]
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -103,16 +103,17 @@ public AttributesHeader2014(string arrangementFileName, Arrangement arrangement,
PersistentID = arrangement.Id.ToString().Replace("-", "").ToUpper(); PersistentID = arrangement.Id.ToString().Replace("-", "").ToUpper();
Shipping = true; Shipping = true;


// DLC controls wheter album artwork marker is shown in-game setlist, but has
// negative effect that 'Alternate Arrangements' are locked for new player profiles
DLC = true;

// TODO: monitor this change // TODO: monitor this change
if (info.ToolkitInfo == null || info.ToolkitInfo.PackageAuthor == "Ubisoft") if (info.ToolkitInfo == null || info.ToolkitInfo.PackageAuthor == "Ubisoft")
DLC = true; // shows album artwork marker in-game setlist SKU = "RS2"; // shows purple marker w/ "DLC" text overlay
else else
DLC = false; // hides album artwork marker in-game setlist SKU = ""; // hides album artwork marker in-game setlist

SKU = "RS2"; // shows purple marker w/ "DLC" text overlay
// SKU = ""; // or DLC = false hides marker for RS2


// SKU and DLCKey combination shows black marker w/ "RS1" text overlay on album artwork in-game setlist // this SKU and DLCKey combination shows black marker w/ "RS1" text overlay on album artwork in-game setlist
// SKU = "RS1"; // SKU = "RS1";
// DLCKey = "RS1CompatibilityDisc"; // DLCKey = "RS1CompatibilityDisc";


Expand Down
5 changes: 3 additions & 2 deletions RocksmithToolkitLib/DLCPackage/Packer.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1037,12 +1037,13 @@ private static void UpdateManifest2014(string srcPath, Platform targetPlatform)
attr.MaxPhraseDifficulty = manifestFunctions.GetMaxDifficulty(song2014); attr.MaxPhraseDifficulty = manifestFunctions.GetMaxDifficulty(song2014);


// TODO: monitor this change updates both json and hsan files // TODO: monitor this change updates both json and hsan files
attr.DLC = true; // shows album artwork marker in-game setlist
if (!String.IsNullOrEmpty(toolkitVersionFile)) if (!String.IsNullOrEmpty(toolkitVersionFile))
{ {
var tkInfo = GeneralExtensions.ReadToolkitInfo(toolkitVersionFile); var tkInfo = GeneralExtensions.ReadToolkitInfo(toolkitVersionFile);
// hide album artwork marker in-game setlist
// while leaving Alternate Arrangements unlocked for new user profile
if (tkInfo != null && tkInfo.PackageAuthor != "Ubisoft") if (tkInfo != null && tkInfo.PackageAuthor != "Ubisoft")
attr.DLC = false; // hides album artwork marker in-game setlist attr.SKU = "";

This comment has been minimized.

Copy link
@L0FKA

L0FKA Nov 9, 2018

Member

Nice catch so tagger woukd work I wondernif we ciuld have custom one here...

} }
} }


Expand Down
2 changes: 1 addition & 1 deletion RocksmithToolkitLib/Properties/AssemblyInfo.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@
// //
// THESE VALUES ARE PROGRAMMATICALLY GENERATED - DO NOT EDIT // THESE VALUES ARE PROGRAMMATICALLY GENERATED - DO NOT EDIT
[assembly: AssemblyVersion("2.9.1.0")] [assembly: AssemblyVersion("2.9.1.0")]
[assembly: AssemblyInformationalVersion("1e2ddd6a")] [assembly: AssemblyInformationalVersion("8c8e32f2")]
[assembly: AssemblyConfiguration("BETA")] [assembly: AssemblyConfiguration("BETA")]
2 changes: 1 addition & 1 deletion RocksmithToolkitUpdater/Properties/AssemblyInfo.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
// //
// THESE VALUES ARE PROGRAMMATICALLY GENERATED - DO NOT EDIT // THESE VALUES ARE PROGRAMMATICALLY GENERATED - DO NOT EDIT
[assembly: AssemblyVersion("2.9.1.0")] [assembly: AssemblyVersion("2.9.1.0")]
[assembly: AssemblyInformationalVersion("1e2ddd6a")] [assembly: AssemblyInformationalVersion("8c8e32f2")]
[assembly: AssemblyConfiguration("BETA")] [assembly: AssemblyConfiguration("BETA")]
2 changes: 1 addition & 1 deletion VersionInfo.txt
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,3 @@
2.9.1.0 2.9.1.0
1e2ddd6a 8c8e32f2
BETA BETA

0 comments on commit 79a2304

Please sign in to comment.