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 - rand0m

Pages: 1 ... 21 22 [23]
331
Scripting / Re: Static List & Dynamic Selection Bar
« on: November 08, 2017, 03:07:01 AM »
Thank you, the part where it selects consoles is exactly what i want. I'll check Modified grid

332
General / Re: Some emulators have a different retroarch hotkey
« on: November 08, 2017, 03:04:41 AM »
You can use "exit hotkey" feature in Setting> Emulators> Emu. It should work with Retroarch.

333
General / Re: Game Order tweaks
« on: November 08, 2017, 02:58:58 AM »
Following info structure is being used in romlists:

#Name;Title;Emulator;CloneOf;Year;Manufacturer;Category;Players;Rotation;Control;Status;DisplayCount;DisplayType;AltRomname;AltTitle;Extra;Buttons

You can make the changes in Title and then go to required display settings and tweak the "ALL" filter to sort files via Title. Or open attract.cfg, scroll down till you reach the required list (say multisyslist) and in ALL filter change the sort order to Title.

Long way if the above doesn't work (make a backup of romlist):

1. import the said romlist.txt in excel: Open Excel > Import > Romlist > Delimited, Delimiters check "Others" and enter ;  select General
2. You will have columns divided by the ; sign. Make all the changes in Titles (can also sort the rows via title to get an exact idea of changes) and save as "tab delimited txt"
3. Open the newly made txt file, got to Find and Replace. In "Find" press tab for blank space and In "Replace" enter ; (if using notepad you have to open any file in wordpad press tab, select the blank space copy it and then use that in "Find")
4. Rename this file same as your romlist and use it (If you generate romlist again or use any other online or offline source as extra file/ source the titles might be overwritten - so if there are many changes keep a backup)

334
General / Re: One list
« on: November 07, 2017, 06:44:10 AM »
Hi, go to Settings > Emulators

Go to the end (between the options "Add Emulator" and "Back") you will find "Generate Collection/ Romlist". Choose that and a new page will open listing all the emulators/ lists configured on your system. Turn on the lists you want in your complete romlist, give a name (e.g. multi system) and you are good to go.

(P.S I'm using latest nightly build from here > https://build.btolab.com/project/attractmode/ - it might be different in prior versions.)



335
Scripting / Re: Static List & Dynamic Selection Bar
« on: November 07, 2017, 06:35:14 AM »
Thanks, I am trying to achieve the following for a theme I am working on:

example (default behavior):

rom1
rom2
rom3 <--select/ highlight/ choose bar/area
rom4
rom5

If i press up or down, the select bar (or cursor) remains at the same spot that is for example if it was on location 400x200 - it will remain on that same spot, the list will move up or down so in above example if I press up rom2 will move to the place of rom3 (to select area) if I press down rom 4 will move to the place of rom3 while select/ highlight area remains static. What I am hoping for is a way to find where the rom list remains intact while select area moves so in above example pressing up will move the "select bar" to rom 2. Same is the case with conveyor.

Advance Layouts (https://github.com/mickelson/attract/wiki/Layouts---advanced-lists) mention specifying slots for items in list but the behavior is same. Thank you for the MVS tip, I'll check it out.


336
Scripting / Static List & Dynamic Selection Bar
« on: November 07, 2017, 03:52:40 AM »
Hi, can someone please guide me on how to get a static gamelist (listbox entries)? The way it works right now is that list is dynamic (moves up or down) while selection bar remains static. I want to move the selection bar while keeping the items in listbox static. Is it possible on default setup? or with help of conveyor plugin? Thanks.



337
Scripting / Re: Icon class WIP
« on: February 11, 2017, 02:02:28 PM »
Its looking awesome. Uniform sized/ themed icons will look really well in any setup

338
Scripting / Re: Modifying Gameinfo structure
« on: February 11, 2017, 01:54:50 PM »
Yes, tags would definitely be a better place to store that, and that allows you to adjust your filters based on the tags! Extra is really best used for text about the game or something like that..

You can use string.find(search, startIndex) to find a substring in squirrel. Here's some info on strings for squirrel:
https://electricimp.com/docs/squirrel/string/

And here's an example flag image using tags for region:
Code: [Select]
local flag = fe.add_image("[!game_region]", 0, 30, 64, 64)
function game_region() {
    local tags = fe.game_info(Info.Tags).tolower()
    if (tags.find("usa") != null ) return "images/flags/usa.png"
    else if (tags.find("japan") != null ) return "images/flags/japan.png"
    else if (tags.find("europe") != null ) return  "images/flags/europe.png"
    else return "images/flags/unknown.png"
}

Note that tags and the find function are case-sensitive so I converted the taglist to lowercase before using find. Tags is a delimited string using semicolons, so if you needed a more exact search, you could use split() to do more with the tag list.


Thanks a lot liquid8d its working perfectly now :D

339
General / Re: Attract Mode closing when launching PS1 games
« on: February 11, 2017, 01:37:53 AM »
1) Use full path to the executable and in args.

2) If there are/is spaces in path use " at start and end of arg  i.e.  -L "path/to/core" "romfilename". 

340
Scripting / Re: Modifying Gameinfo structure
« on: February 10, 2017, 06:57:34 AM »
AFAIK Extra field is not being used by any database (even MAME) but the problem I am facing with "Extra" is same as "Tags". If I add more then one category I can't call them separately. If I add Region and Language info it will list both. In a layout I am trying to develop I want to call them separately and list the outcome in separate places. i.e. if region is "USA" add a specific image, list [Language] info at a specific place. Tags use ; as separator (can be used it in [Extra] too), I don't know of anyway to define the "if" statement so it lists the correct info. For example:

function romreg () {
     if (fe.game_info (Info.Tags) == "USA") return "/images/flags/usa.png";
     else if (fe.game_info (Info.Tags) == "Japan") return "/images/flags/japan.png";
     else if (fe.game_info (info.Tags) == "Europe") return  "/images/flags/europe.png";
     else if (fe.game_info (info.Tags) != "Japan" || "USA" || "Europe" return "/images/flags/unknown.png";
     }

local romregi = fe.add_image ("[!romreg], 0,0,200,100];

 
This doesn't work because there will be more then one Tag on said rom and it won't be equal. If I use "!=" it will be use less in this case. Something like following would work with both Tags and Extra:

if (fe.game_info (Info.Tags) Contains the String "USA") return "/images/flags/usa.png"

I have tried finding out if there is any "contain" expression in squirrel or "find in string" expression but have not found any yet which works.

2) I am already using filters based on tags. The basic structure is something like: console system > Filters (based on Category contains "catver info") > Categories (based on catver.ini, manual input to catver via excel:  Action, Adventure, beat 'em Up etc).

If I add filters with both region;category it will greatly increase the amount of filters (Platform;USA, Platform;Japan, Platform:Europe and so on), if I add a filter with Platform;USA/Japan/EU I will be back to square one (this is similar to Filter:Platform, there is no way of calling 'region' info from layout). Since basic organization is through filters i don't want to go the first way.

Currently I am using [DisplayType] & [DisplayCount] heads for [Region] and [Language] (manually changed that) but that means if I ever update the gameinfo through hyperspin .xml, mame.xml or any online database the values I added will be rewritten. Tags would ideally be the place since they are AM specific and wont won't interfere with other databases.

341
Themes / Re: Load background based up emulator
« on: February 08, 2017, 10:39:03 PM »
This is what I'm using.

//Add Artwork: System Flyer, x,y Co-ordinates height and width
local sysfl = fe.add_image("/Images/Systems/[Title].png", 100, 500, 780, 350);

For a background you'll either stretch the background picture (e.g. 0, 0, 1920, 1080) or if picture is already at proper resolution add it it without any co-ordinates (0,0,0,0). Plus if you have opted for not showing brackets in lists then [Title].png also won't include brackets.

[I have a separate layout.nut for dispaly-menu, so calling [Title] from there lists consoles/systems]


342
Scripting / Re: Modifying Gameinfo structure
« on: February 08, 2017, 02:20:02 AM »
Thanks jedoine, I added the required info (region & language) under [DisplayCount] and [DisplayType] heads. Its working as expected and since info is accessible via magic tokens it can be easily accessed in themes  :D


(IMHO Dev should consider either giving us the option to modify the game info structure for consoles (non-mame) or somehow quantify tags (Tag1, Tag2, Tag3...) which can be called separately from layouts. Tags are attract-mode dependent so won't come in way of importing rom info from other sources like hyperspin xmls or internet gamedatabases.)

343
Scripting / Modifying Gameinfo structure
« on: February 06, 2017, 10:39:48 PM »
Is it possible to modify gameinfo structure and add some more categories like region, language and series info in it? or perhaps gather this info from another text file through "additional import files"? (simple catver.ini structure doesn't work I have already tried that)

I have also tried to add that information in tags (which seems like the best place of adding such info) but don't know anyway of limiting the return to one value. E.g. lets say a game Pang has the tags "Japan;Japanese;Pang series" (Region/Language/Series). I don't know how to call one tag (maybe there is a find in string function or "contains" expression) in this string. Listing tags via (info.Tags) simply lists all Tags which beats the purpose.


Pages: 1 ... 21 22 [23]