Jump to content
RealModScene
Sign in to follow this  
saywaking

Ideas to extend for Rating, Fav and Commenting

Recommended Posts

What i would like to have is the following.

Why don't we have a Rating System in the new Site ?

People could rate all games and add even Comments, which will be collected and calculated in the Database(set it up in DB and add to Appendix A), and forwarded as subtitle which can be shown in the Game Information.

The Idea is to have a 5-Stars Rating System.

And of course, all should be optional, even in current version, filtering Xbox 360 is missing. The Goal is to have all possibilities all in one.

Why is it not good to edit FilterCategoryUser.lua ?
 

Subtitle.lua  ---- Add Ratings, Comments, Favs

GameListSubtitles["UnityRating"] = GameListSubtitleUnityRating
GameListSubtitles["LiveRating"] = GameListSubtitleLiveRating
GameListSubtitles["UnityComments"] = GameListSubtitleUnityComments
GameListSubtitles["Favorite"] = GameListSubtitleFavorite



SubtitleFunctions.lua  ----  Showing them

function GameListSubtitleUnityRating(Content)
    -- The Rating should be received from the Unity Database, which is calculated
    -- The User Rating is also in this one
    return string.format("Unity Rating:  %s", Content.UnityBase.Rating)
end


function GameListSubtitleUnityComments(Content)
    -- The Comments should be exchangeable ?
    local value = "No Comments added"
    if Content.UnityBase.Comment ~= "" then
        value = string.format("Unity Comments:  %s by %s", Content.UnityBase.Comment, Content.UnityBase.User)
    end
    return value
end

function GameListSubtitleLiveRating(Content)
    return string.format("LIVE Rating:  %4.2f [%d]", Content.LiveRating, Content.LiveRaters)
end

function GameListSubtitleFavorite(Content)
    local value = "No Fav"
    if Content.Favorite == true then
        value = string.format("FAV")
    end
    return value
end

 


 


FilterCategoryMisc.lua  ---- Unity Rating Filter

.
.
.

miscFilters["Rated Only"] = FilterCategoryMiscUnityRatedOnly

.
.
.

function FilterCategoryMiscUnityRatedOnly(Content)
    -- Shows Unity Rated Only
   return Content.UnityBase.Rating
end

 



FilterCategoryUser.lua  ---- User Fav and Rating Filter

.
.
.

userFilters["Favorite Only"] = FilterCategoryUserFavoriteOnly
userFilters["Rated Only"] = FilterCategoryMiscUserRatedOnly

.
.
.

function FilterCategoryUserFavoriteOnly(Content)
    -- Return if this game is flagged as Favorite
   return Content.Favorite
end

function FilterCategoryUserUserRatedOnly(Content)
    -- Shows User Rated Only
   return Content.UserRating
end

 

 

Sort.lua   ---- Sort by Rating
 

GameListSorters["Rating"] = GameListSortByRating

 




SortFunctions.lua 
 

 function GameListSortByRating(Item1, Item2, Type)
    
    -- Check if sort Descending
    if Type == SortType.Descending then
        if Item1.UserRating > Item2.UserRating then
            return false
        elseif Item1.UserRating < Item2.UserRating then
            return true
        end

        return string.lower(Item2.Name) > string.lower(Item1.Name)
    end

    -- Sort Ascending
    if Item1.UserRating > Item2.UserRating then
        return true
    elseif Item1.UserRating < Item2.UserRating then
        return false
    end

    return string.lower(Item2.Name) > string.lower(Item1.Name)
end

 


 

Appendix A --- would additionally need in content and the DB will need slots for Saving the UnityBase Infos

double UserRating;
struct {    
    string User;               
    string Comment;
    double Rating;
   
  } UnityBase;

 

Looks like you forgot an "s" ?

Filter.lua

GameListFilterCategories["Emulators"] = GameListFilterEmulator(s)
  • Like 2

Share this post


Link to post
Share on other sites

The Favorites and also the Live Rating were already there (in F3/RxE)

It would be great, if we could expand the Community Unity and add some important features, such as Rating and Commenting. The DataBase will grow, but as this is just text, later a Messaging function would work in a same way. (For LiNK but it's a different story)

  • Like 1

Share this post


Link to post
Share on other sites

Yeah i agree with you, they will be fixing some bugs and adding some stuff in next versions, but the community clearly need more resources on Aurora and on LiNK(Unity), i'm waiting if they will add Messaging and friendlist functions on LiNK because we already reached 120.000 users.. Think about this, every day there's more 500 RGH users who want new features.

Share this post


Link to post
Share on other sites

could do != should do

ideas != must do

then don't do it :D maybe you think of it first. But either way you do what you want and barely listen to a community.Maybe you just can't do but i doubt it. Anyway you do a good job. Everytime.

  • Like 1

Share this post


Link to post
Share on other sites

could do != should do

ideas != must do

then don't do it :D maybe you think of it first. But either way you do what you want and barely listen to a community.Maybe you just can't do but i doubt it. Anyway you do a good job. Everytime.

Here's an idea for you personally:

Don't bitch with the ppl that make things happen for you... and don't bite the hand that feeds you ;)

If they want to add stuff, they will... if they don't, well live with it!

  • Like 2

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...
Sign in to follow this  

×
×
  • Create New...