Jump to content
RealModScene
Gualdimar

Aurora filter by folder template

Recommended Posts

here are some templates

just copypaste script in txt doc, change needed fields, rename .txt to .lua and move to your xbox in "Aurora\Media\Scripts\UserFilters"

here is the first one:

this filter checks device and then folder, so, for example, if you have same folders on hdd and usb, it won`t show games from usb.

this filter will show you all games, which are on hdd1 in folder /games/myfolder.

GameListFilterCategories.User["FolderFilter"] = function(Content)
	if (string.lower(Content.Root) == "hdd1:") then
	   return (string.match(Content.Directory, "^\\games\\myfolder.-$") ~= nil)
	end
	return false
end

fields you need to change: 

FolderFilter - filter`s name, will be shown in aurora;  

hdd1: - name of device, which contains your folders(must end with : ); 

^\\games\\myfolder.-$ - path to your folder(must start with ^\\ and end with .-$ , each folder must be separated by \\ )

the second one:

this filter only checks folder, so, for example, if you have same folders on hdd and usb, it will show games from both hdd and usb.

this filter will show you all games, which are on any device in folder /games/myfolder.

GameListFilterCategories.User["FolderFilter"] = function(Content)
	return (string.match(Content.Directory, "^\\games\\myfolder.-$") ~= nil)
end 

fields you need to change: 

FolderFilter - filter`s name, will be shown in aurora;  

^\\games\\myfolder.-$ - path to your folder(must start with ^\\ and end with .-$ , each folder must be separated by \\ )

the third one:

this filter checks for folder`s name in the path, so, for example, if you have same folders in different paths(e.g. /newgames/myfolder and /oldgames/myfolder), it will show games from both of them.

this filter will show you all games, which are on any device and contain "myfolder" in teh path.

GameListFilterCategories.User["FolderFilter"] = function(Content)
	return (string.match(Content.Directory, "^.-myfolder.-$") ~= nil)
end 

fields you need to change: 

FolderFilter - filter`s name, will be shown in aurora;  

^.-myfolder.-$ - your folder`s name(must start with ^.- and end with .-$ )

  • Like 8

Share this post


Link to post
Share on other sites

Holy sh... this is what I really need since day 1. Thanks a lot mate.

BTW, will these work in 0.4b? I don't use connectx so I like .04b because it's lighter than the .05b.

Share this post


Link to post
Share on other sites

Holy sh... this is what I really need since day 1. Thanks a lot mate.

BTW, will these work in 0.4b? I don't use connectx so I like .04b because it's lighter than the .05b.

Yes, these should work in any version of Aurora (0.1 -> 0.5b)

  • Like 2

Share this post


Link to post
Share on other sites

Holy sh... this is what I really need since day 1. Thanks a lot mate.

BTW, will these work in 0.4b? I don't use connectx so I like .04b because it's lighter than the .05b.

Just because you dont use connectX doesnt mean that updating is a bad idea. the quick view filters alone make it worth it, and then the fix to the FTPserver, overscan, etc. Not to mention with one of the next releases it will include Nova, which will not be compatible with 0.4b.

Share this post


Link to post
Share on other sites

here are some templates

just copypaste script in txt doc, change needed fields, rename .txt to .lua and move to your xbox in "Aurora\Media\Scripts\UserFilters"

here is the first one:

this filter checks device and then folder, so, for example, if you have same folders on hdd and usb, it won`t show games from usb.

this filter will show you all games, which are on hdd1 in folder /games/myfolder.

GameListFilterCategories.User["FolderFilter"] = function(Content)
	if (string.lower(Content.Root) == "hdd1:") then
	   return (string.match(Content.Directory, "^\\games\\myfolder.-$") ~= nil)
	end
	return false
end

fields you need to change: 

FolderFilter - filter`s name, will be shown in aurora;  

hdd1: - name of device, which contains your folders(must end with : ); 

^\\games\\myfolder.-$ - path to your folder(must start with ^\\ and end with .-$ , each folder must be separated by \\ )

the second one:

this filter only checks folder, so, for example, if you have same folders on hdd and usb, it will show games from both hdd and usb.

this filter will show you all games, which are on any device in folder /games/myfolder.

GameListFilterCategories.User["FolderFilter"] = function(Content)
	return (string.match(Content.Directory, "^\\games\\myfolder.-$") ~= nil)
end 

fields you need to change: 

FolderFilter - filter`s name, will be shown in aurora;  

^\\games\\myfolder.-$ - path to your folder(must start with ^\\ and end with .-$ , each folder must be separated by \\ )

the third one:

this filter checks for folder`s name in the path, so, for example, if you have same folders in different paths(e.g. /newgames/myfolder and /oldgames/myfolder), it will show games from both of them.

this filter will show you all games, which are on any device and contain "myfolder" in teh path.

GameListFilterCategories.User["FolderFilter"] = function(Content)
	return (string.match(Content.Directory, "^.-myfolder.-$") ~= nil)
end 

fields you need to change: 

FolderFilter - filter`s name, will be shown in aurora;  

^.-myfolder.-$ - your folder`s name(must start with ^.- and end with .-$ )

Thank you, but i'm very noob in messing with all of this. Its much ask for you do a video of how to do this? 

Share this post


Link to post
Share on other sites

It's really not hard, you do know how to use notepad right? changing the fields is quite simple aswell, you'll just have to learn a few things about LUA

Share this post


Link to post
Share on other sites

Is there a way to makeit like in FSD 3 that the scaning content of the folder X Aurora recognize its content as "X" Thing so it can be sorted out?(i,e xbox 360 games ,xbla, etc)

In Magnage Path there is no Xbox 360 filter :c

Share this post


Link to post
Share on other sites

You can set custom script data and filter on that...

Sent from my SM-G903F

Share this post


Link to post
Share on other sites

You can set custom script data and filter on that...

Sent from my SM-G903F

How do I set the custom data?

Share this post


Link to post
Share on other sites

There is a option in manage paths that does it... explore!

Sent from my SM-G903F

Share this post


Link to post
Share on other sites

Hello guys.. I'm not really in to that coding thing. tried to do stuff but failed.

Thing is i connected external HDD and want filter games only from my external HDD (Usb0).

I couldn't manage to get exact script so just created folder in ex HDD "GODgames" and tried this:

 

GameListFilterCategories.User["ExternalHDD"] = function(Content)
    return (string.match(Content.Directory, "^.-GODgames.-$") ~= nil)
end

 

And when using this filter no games appeared.

Any help?

Share this post


Link to post
Share on other sites

Try removing the specific start/end bits (^.- and .-$), that would make it search for that string specifically anywhere in that string...

Sent from my SM-G903F

Share this post


Link to post
Share on other sites
On 7/3/2015 at 9:58 AM, Almir Canella said:

Thank you, but i'm very noob in messing with all of this. Its much ask for you do a video of how to do this? 

Hi, is this script working in the latest aurora. I know that the user folder location have changed. Anyhow I tried using all 3 scripts and none of them worked. I wonder if anything have to be adjusted for the current version of aurora.

Share this post


Link to post
Share on other sites
On 2/22/2019 at 7:48 PM, isilkin said:

I figured it out. Hopefully it helps someone. you have to change your content type to "other"

Hi. What does it mean - change your content type to "other"?
Where to change it (maybe some example for it)?
I hope for help, I really need to run this script on Aurora0.7b.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...