Jump to content
LaunchBox Community Forums

Grila

Members
  • Content Count

    587
  • Joined

  • Last visited

  • Days Won

    29

File Comments posted by Grila

    LBPlex

       4,435    47
    2 hours ago, Daliant said:

    I'm using this great theme. Will be updated to support latest Launchbox version with the new retroachievments menu?

    Thanks a lot for your effort!!!

    Update now available that adds this, version 1.4 in the downloads.

  1. 3 hours ago, Rincewind said:

    @Grila I've been using this startup video since you created it back in 2017, and wondered if you could maybe recreate it in a 21:9 Ultrawide version. As since I changed over to Ultrawide I end up with black bars on the edges. Totally understand if it's not possible

    Sure, I'll try to find my original source file. Should be no problem. Can you give me the resolution you're using please?

  2. 1 hour ago, cenutrio351 said:

    Hello!

    I was playing some games and its working perfect in retorarch ones, many thanks!, there are any possibilities to fix in Steam games in the future?.When I play Steam games put me 1 second playing or nothing, if not, I'll make it manually when is ready.

    Thanks!, Im very happy with this :)

    The Steam bug is a problem with the LaunchBox Plugin API, not my plugin. The problem would have to be fixed in the API by the LaunchBox devs. 

  3. 1 minute ago, fawkesyeah said:

    This plugin looks great! I'd love if there was a way to manually add playtime without having to load the game first. I just added the plugin so all my games previously do not have any playtime on them. If I edit the Custom Field with time (lets say I copy/paste from another game with recorded time), it will not create the game.txt file of the time. I have to actually execute the game for it to create the txt file, which I can then edit manually afterwards. If the process of manually editing times could be improved, this would be super amazing!

    Another idea, and this might be a bit lofty, but if were somehow possible to upload playtime to HowLongToBeat, oh boy.

    I'm actually working on this now and should have an update in a few days or so. It will allow you to manually enter playtime for any game from the right-click menu. 

    • Thanks 1
  4. 49 minutes ago, TheNewClassics said:

    10.7 beta 4, and Windows 10. Ok, I'll try a couple. Should a file be created after the first playthrough? I'll try running a couple different games.

     

    EDIT:

    Tried a couple, still nothing in the Playtime Tracker folder, and nothing showing up in LB/BB.

    What platform?

  5. 11 minutes ago, TheNewClassics said:

    Thanks for making this, appreciate it big time. For some reason, it doesn't seem to work for me. I extract the file to the Plugins folder, and check properties; it's not giving me any option to unblock (it's not there). When I go into LB/BB the Playtime stat isn't there. When I right click on a title, at the bottom the Reset Playtime option is grayed out. I've launched games and noticed there's a folder for Playtime Tracker in the plugins folder created, but it remains empty. Any idea what I might be doing wrong?

    What version of LB are you on?

    What platform are you testing with?

    The games have to be run once before anything will show. Also, because of the way LB works, after you run a game you have to select another game, then select the previous game to see the updated playtime. 

  6. 2 hours ago, Mumut said:

    Can we use it to make an automatic playlist of "most played games" ?

    I won't say no, but it's a little out of the scope of this project. I'll keep it in mind though.

    3 hours ago, Mumut said:

    And I have a request too : is it possible to add the possibility to add time of play to a game? (I have many hours in a few RPG, it would be great to indicate the actual time of my save in order to have a really accurate time, in BigBox).

    It is possible. Under the LaunchBox\Plugins\PlaytimeTracker folder there will be a bunch of plain .txt files that store the actual timespan. The problem is, is that they are named by the game's id from your LaunchBox\Data\Platforms xml file.

    So in the plugin's current state, you'd have to find the id from the data xml from the corresponding platform, then edit the text file from the plugin directory with the same id with the same format as in the text file (hours:minutes:seconds, example 00:00:05.8454237)

    I do have an update that I'll push soon that will make this easier, but it's not entirely ready yet.

    • Like 1
  7. 2 hours ago, Krakerman said:

    haha I can't speak for the majority but for me a content creator per say I am working on and testing startup/shutdown and pause themes and doing so I run the games to test not to actually play so be nice to reset it once I finally finish them. 

    Thanks for the plugin btw .... I was not one of those that actually been requesting it but is a nice feature to have and it works pretty good! Thanks

    Ahh gotcha. I can add the ability to reset this weekend. 

    • Like 1

    ComixBox Theme

       3,664    18
    2 hours ago, David Lavers said:

    Yes clear logos no go, Thank You (it would be rad, adding extra pop to the theme). The videos that play for a second and then static image. Any fix, tried all options in video background, all no go. Still kick ass theme, thanks again.

    Sounds like a codec issue to me...try switching BigBox to use VLC instead of WMP or vice versa. You're the first to have this issue so I don't think it's theme related.

  8. 1 hour ago, wallmachine said:

    Hey @Grila, do you know why this might be happening? I am trying to add your plugin to the OptionsView.xaml and OptionsPage.xaml but I get the error below. It is accepting the FontSize and also stays centred in the OptionsView.xaml however it throws the error when I press up or down also not sure how to add it to OptionsPage.xaml.

    
    Object reference not set to an instance of an object.
    
    App:     Big Box
    Version: 9.10-beta-5
    Type:    System.NullReferenceException
    Site:    Int32 (System.Windows.Controls.ListBox)
    Source:  Unbroken.LaunchBox.Wpf
    
       at (ListBox )
       at Unbroken.LaunchBox.Wpf.ListBoxHelper.GetNumberOfVerticalVisibleItems(ListBox listBox)
       at (<>c__DisplayClass15_0 )
       at Unbroken.LaunchBox.Wpf.BigBox.ViewModels.OptionsViewModel.<>c__DisplayClass15_0.<set_SelectedMenuItem>b__0()
       at System.Windows.Threading.DispatcherOperation.InvokeDelegateCore()
       at System.Windows.Threading.DispatcherOperation.InvokeImpl()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Windows.Threading.DispatcherOperation.Wait(TimeSpan timeout)
       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherOperation operation, CancellationToken cancellationToken, TimeSpan timeout)
       at System.Windows.Threading.Dispatcher.Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout)
       at System.Windows.Threading.Dispatcher.Invoke(Action callback, DispatcherPriority priority)
       at (Action , DispatcherPriority )
       at Unbroken.LaunchBox.Wpf.Threading.Invoke(Action callback, DispatcherPriority priority)
       at Unbroken.LaunchBox.Wpf.BigBox.ViewModels.OptionsViewModel.set_SelectedMenuItem(MenuItemViewModel value)
       at (OptionsViewModel , Boolean , Boolean )
       at Unbroken.LaunchBox.Wpf.BigBox.ViewModels.OptionsViewModel.OnDown(Boolean held, Boolean onlyDownPressed)
       at (MainViewModel , Boolean )
       at Unbroken.LaunchBox.Wpf.BigBox.ViewModels.MainViewModel.OnDown(Boolean onlyDownPressed)
       at (MainViewModel , KeyEventArgs )
       at Unbroken.LaunchBox.Wpf.BigBox.ViewModels.MainViewModel.HandleKeyDown(KeyEventArgs e)
       at (MainView , Object , KeyEventArgs )
       at Unbroken.LaunchBox.Wpf.BigBox.Views.MainView.MainView_OnPreviewKeyDown(Object sender, KeyEventArgs e)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
       at System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
       at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
       at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
       at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
    
    Recent Log:
    
       7:38:25 AM Music.Pause Start
       7:38:25 AM Music.Resume Start
       7:38:25 AM Music.Resume Start
       7:38:28 AM Music.Pause Start
       7:38:29 AM Music.Resume Start
       7:38:29 AM Music.StopAndResumeBackground Start
       7:38:30 AM Music.Initialize Start
       7:38:30 AM Music.Kill Start
       7:38:30 AM Music.Kill Finished
       7:38:34 AM Music.Kill Start
       7:38:34 AM Music.Kill Finished
       7:38:35 AM Exception

     

    I edited the project as follows.

    OptionsView.xaml

    
    xmlns:lbsc="clr-namespace:ListBoxScrollCenter;assembly=ListBoxScrollCenter"
    
    <lbsc:OptionsList Name="MenuItems" FontSize="45">
    			<i:Interaction.Triggers>
    				<i:EventTrigger EventName="MouseDoubleClick">
    					<cal:ActionMessage MethodName="OnEnter" />
    				</i:EventTrigger>
    			</i:Interaction.Triggers>
    </lbsc:OptionsList>

     

    OptionsList.xaml

    
    <UserControl x:Class="ListBoxScrollCenter.OptionsList"
                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
                 xmlns:local="clr-namespace:ListBoxScrollCenter"
                 mc:Ignorable="d" 
                 d:DesignHeight="400" d:DesignWidth="600">
        <local:DPIFix>
            <ListBox Name="CenteredLB" SelectionChanged="ScrollIntoView" Style="{DynamicResource ListBoxStyle}" ItemsSource="{Binding MenuItems}" SelectedItem="{Binding Path=SelectedMenuItem}">
                <ListBox.ItemsPanel>
                    <ItemsPanelTemplate>
                        <VirtualizingStackPanel IsItemsHost="True" Orientation="Vertical" VirtualizingPanel.VirtualizationMode="Recycling"/>
                    </ItemsPanelTemplate>
                </ListBox.ItemsPanel>
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <Border Name="Border" Width="{Binding ActualWidth, RelativeSource={RelativeSource AncestorType={x:Type ListBox}}}">
                            <DockPanel>
                                <TextBlock Name="Text" DockPanel.Dock="Left" Text="{Binding Text}" TextTrimming="CharacterEllipsis" TextWrapping="NoWrap"/>
                            </DockPanel>
                        </Border>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
        </local:DPIFix>
    </UserControl>

     

    OptionsList.xaml.cs

    
    using System.Windows.Controls;
    
    namespace ListBoxScrollCenter
    {
        public partial class OptionsList : UserControl
        {
            public OptionsList()
            {
                InitializeComponent();
            }
    
            private void ScrollIntoView(object sender, SelectionChangedEventArgs e)
            {
                CenteredLB.ScrollToCenterOfView(CenteredLB.SelectedItem);
            }
        }
    }

    It never worked in the Options view because Jason is doing some magic to calculate how many items are shown and adjusting the text size (I presume) or spacing based on the number of items. I remember telling him about it when I wrote the plug-in but never figured out a fix for it. 

    • Thanks 1

    LBPlex

       4,435    47
    1 hour ago, Nawaf said:

    Looks amazing, just add the total number of games available on each platform and it will be perfect.

    Total number of games available on each platform is already in the theme...

    img.thumb.png.28fdf95fc761c06c4f808254d571042e.png

    LBPlex

       4,435    47
    <Rectangle x:Name="KeyRectangle" Grid.Column="5" Fill="{Binding SelectionBackgroundBrush, UpdateSourceTrigger=PropertyChanged, NotifyOnTargetUpdated=True}" Visibility="Collapsed">
                <Rectangle.Triggers>
                    <EventTrigger RoutedEvent="Binding.TargetUpdated">
                        <BeginStoryboard>
                            <Storyboard>
                                <ColorAnimation Storyboard.TargetName="brush1" Storyboard.TargetProperty="Color" To="{Binding Fill.Color, ElementName=KeyRectangle}" Duration="0:0:0.5" />
                            </Storyboard>
                        </BeginStoryboard>
                    </EventTrigger>
                </Rectangle.Triggers>
            </Rectangle>
            <controls:VolumeKnobControl Grid.Column="5" FillBrush="{Binding ForegroundBrush}" Value="{Binding Path=VolumeValue, Mode=TwoWay}" HorizontalAlignment="Right" Focusable="True" IsTabStop="True" FocusVisualStyle="{StaticResource FocusVisualStyle}" Padding="10,0,10,0" Margin="0,2,0,2">
                <controls:VolumeKnobControl.HighlightBrush>
                    <SolidColorBrush x:Name="brush1" Color="{Binding ElementName=KeyRectangle, Path=Fill.Color}" />
                </controls:VolumeKnobControl.HighlightBrush>
            </controls:VolumeKnobControl>

     

    • Like 1
×
×
  • Create New...