Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - spilinek

Pages: [1]
1
General / Re: Snes9x and Flycast Primary Montior Position error
« on: March 25, 2023, 07:18:57 PM »
Any time an emulator fails to run I will look at the console output for attract. I’ll copy the command that was executed by attract and run it manually from command prompt. Some emulators have verbose logging that can be helpful in diagnosing problems

2
If you can do it from command prompt then you can do it with attract mode.

3
Scripting / Re: Played Count and Played Time STAT files
« on: March 08, 2023, 11:49:04 AM »
I can confirm the same issue on my side. The stats are associated with the romlist and not the emulator. I was able to alter the code to use emulator. Below are the changes I made. It's not the most clean solution, but it works for the tests I've done so far.

I have two romlists:
  • Arcade.txt
  • Metal Slug Collection.txt

With the below changes I see the PlayedCount loaded and updated from .attract/stats/Arcade/mslug.stat

fe_romlist.cpp
for ( FeRomInfoListType::iterator it=m_list.begin(); it!=m_list.end(); ++it ){
   // (*it).load_stats( stat_path );
   (*it).load_stats( m_config_path + "stats/" + (*it).get_info( FeRomInfo::Emulator ) + "/" );
}

fe_info.hpp
// void update_stats( const std::string &path, int count_incr, int played_incr );
void update_stats( const std::string &path, const std::string &m_config_path, int count_incr, int played_incr );

fe_info.cpp
// std::string filename = path + m_info[Romname] + FE_STAT_FILE_EXTENSION;
std::string filename = m_config_path + "stats/" + m_info[Emulator] + "/" + m_info[Romname] + FE_STAT_FILE_EXTENSION;

fe_settings.cpp
// rom->update_stats( path, play_count, play_time );
rom->update_stats( path, m_config_path, play_count, play_time );

4
General / Re: POLL: What system are you running Attract Mode on?
« on: January 31, 2023, 05:11:51 PM »
Ubuntu 22.04

5
Themes / Re: The Great Themes Collection for Attract-Mode Plus [Beta]
« on: January 30, 2023, 12:34:13 PM »
Sony Playstation Portable layout is missing cartart. I copied the cartart code from Sony Playstation 2/layout.nut and it looks good.

6
Themes / Re: The Great Themes Collection for Attract-Mode Plus [Beta]
« on: January 30, 2023, 12:10:44 PM »
I built attractplus with the latest code on Ubuntu. When I launch attractplus I see font warnings in the console like:

Code: [Select]
! NOTE: Relative path to BigSquareDots not provided. Font found in a subfolder. This may be slower.
Ran below commands from the ~/.attract directory:
find . -type f -name "*.otf"
find . -type f -name "*.ttf"

The theme has 109 *.oft and 70 *.ttf files. Looks like there's a lot of repeats too. I think it would be more efficient to create ~/.attract/fonts directory and place all of the font files there. Then update the layout.nut files with the relative path. For example I updated layouts/At-The-Arcade/layout.nut:

fe.layout.font = "fonts/BigSquareDots"

I moved the BigSquareDots.ttf from the layout directory into the new fonts directory and I no longer see the warnings.

BTW the warnings come from this submission: https://github.com/oomek/attractplus/commit/ed109597696a72cc375ac5755543eeca96ec366b

Pages: [1]