View Issue Details

IDProjectCategoryLast Update
0019144AI War 2SuggestionJun 19, 2017 9:11 pm
ReporterBadgerBadger Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product Version0.301 The New HDR Visual Stack 
Fixed in Version0.450 Sound! 
Summary0019144: Add link to "How to play" to game start screen
DescriptionThere's a link for "Open Release Notes", but how about a link to the "How to play Instructions" as well? That might help out people getting started in the Early Access.
TagsNo tags attached.

Activities

BadgerBadger

Jun 6, 2017 10:02 am

manager   ~0046262

I actually have a proposed implementation for this, if it's something y'all want. In diff format:

+++ b/AIWarExternalCode/src/UIs/Window_MainMenu.cs
@@ -84,6 +84,17 @@ namespace Arcen.AIW2.External
             public override void HandleMouseover() { }
             public override void OnUpdate() { }
         }
+ public class bOpenTutorial : ButtonAbstractBase
+ {
+ public override void GetTextToShow( ArcenDoubleCharacterBuffer Buffer )
+ {
+ base.GetTextToShow( Buffer );
+ Buffer.Add( "Open Tutorial \n(In External Browser)" );
+ }
+ public override void HandleClick() { Process.Start( "https://wiki.arcengames.com/index.php?title=AI_War_2:Earlier_Than_Earlier_Alpha_Play_Instructions" ); }
+ public override void HandleMouseover() { }
+ public override void OnUpdate() { }
+ }
 
and then
+++ b/GameData/Configuration/UIWindow/KDL_UIWindows.xml
@@ -37,7 +37,8 @@
        <element type="Button" prefab_lookup_name="ButtonBlueSmallerCenter" x="0.0" y="21.0" width="20" height="6" type_name="bConnectToServer" />
        <element type="Button" prefab_lookup_name="ButtonBlueSmallerCenter" x="0.0" y="28.0" width="20" height="6" type_name="bLoadGame" />
        <element type="Button" prefab_lookup_name="ButtonBlueSmallerCenter" x="0.0" y="35.0" width="20" height="6" type_name="bOpenReleaseNotes" />
- <element type="Button" prefab_lookup_name="ButtonBlueSmallerCenter" x="0.0" y="42.0" width="10" height="6" type_name="bExitApplication" />
+ <element type="Button" prefab_lookup_name="ButtonBlueSmallerCenter" x="0.0" y="42.0" width="20" height="6" type_name="bOpenTutorial" />
+ <element type="Button" prefab_lookup_name="ButtonBlueSmallerCenter" x="0.0" y="49.0" width="10" height="6" type_name="bExitApplication" />
        
Here's a picture of what you get

BadgerBadger

Jun 6, 2017 10:02 am

manager  

tutorial.png (838,116 bytes)

Chris_McElligottPark

Jun 19, 2017 8:47 pm

administrator   ~0046306

* Added a link to the external tutorial on the main menu.
** Thanks to BadgerBadger for literally coding the addition!

Chris_McElligottPark

Jun 19, 2017 8:55 pm

administrator   ~0046307

As an aside, I have no idea how to use the diff format, so had to copy it out by hand. My main diffing tools are WinMerge and TortoiseSVN, although I also have TortoiseGit installed. What the heck sort of tool should I be using for this? I know you're creating it on linux, but it's not a format I know how to apply. Cheers. :)

BadgerBadger

Jun 19, 2017 9:10 pm

manager   ~0046312

In the linux world one creates a diff with the "diff" command and then apply those changes with the "patch" command. You can do similar things with the "git format-patch" and "git apply" commands. I keep my copy of AI War 2 in a git repository to make it easy to see what new code has come in when a new version is checked in.

What you actually got is a truncated version of a "git diff" (I cropped some of the extra text out). I think tortoiseGit will allow you to apply a properly formatted git patch, so I'll make it a point to give things to you that way in the future.

Chris_McElligottPark

Jun 19, 2017 9:11 pm

administrator   ~0046313

Hmm -- we store our data in SVN, though, so I'm not sure I can pull up Git Merge directly on these files. I might be able to with WinMerge, which is more generic, I'm not sure.

Issue History

Date Modified Username Field Change
May 30, 2017 11:17 pm BadgerBadger New Issue
Jun 6, 2017 10:02 am BadgerBadger Note Added: 0046262
Jun 6, 2017 10:02 am BadgerBadger File Added: tutorial.png
Jun 19, 2017 8:47 pm Chris_McElligottPark Note Added: 0046306
Jun 19, 2017 8:47 pm Chris_McElligottPark Status new => resolved
Jun 19, 2017 8:47 pm Chris_McElligottPark Fixed in Version => 0.450 Sound!
Jun 19, 2017 8:47 pm Chris_McElligottPark Resolution open => fixed
Jun 19, 2017 8:47 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Jun 19, 2017 8:55 pm Chris_McElligottPark Note Added: 0046307
Jun 19, 2017 9:10 pm BadgerBadger Note Added: 0046312
Jun 19, 2017 9:11 pm Chris_McElligottPark Note Added: 0046313