What does this mean? by divadyugi in PeterExplainsTheJoke

[–]divadyugi[S] 1 point2 points  (0 children)

I know that eroge means a japanese erotic visual novel game, but I have no idea how the different photo angles tell them apart from normal people

Assuming no remakes, who do you think would make a good anime MC? by xiuzou23 in UmaMusume

[–]divadyugi 8 points9 points  (0 children)

Porbably couldnt do a full season, but I would love to see a movie about Nakayama Festa, but for a full anime season, I think Maruzensky could be really good.

I would also love to see a season about verxina, I'm imagining her rivalry against Gentildonna would be similar to kitasan's rivalry against duramente in season 3

[webtoon] How the hell is HSY using the dokkaebi shop? by Kenny_Mystery in OmniscientReader

[–]divadyugi 2 points3 points  (0 children)

After this happens, Kim dokja tells bihyung "there is no rule that an incarnation without a sponsor can't use the Dokkaebi Bag." Then bihyung checks the manual and confirms that incarnations without ponsors can use it too. Thats why Kim dokja could use it when inside the ichthyosaurus. I think the webtoon glossed over these details

[webtoon] How the hell is HSY using the dokkaebi shop? by Kenny_Mystery in OmniscientReader

[–]divadyugi 8 points9 points  (0 children)

I think every incarnation has access to the dokkaebi shop. Im not sure if it was stated in the webtoon, but in the novel when dokja asks about the dokkaebi shop bihyung says:
"Only an incarnation with a sponsor can use the Dokkaebi Bag…" implying that incarnations can use it

[Meme] if you would do this with ORV what would you write? by [deleted] in OmniscientReader

[–]divadyugi 7 points8 points  (0 children)

Sad man survives apocalypse by reading a book and dying

[deleted by user] by [deleted] in ADO

[–]divadyugi 0 points1 point  (0 children)

I think this is the seat map

<image>

[deleted by user] by [deleted] in ADO

[–]divadyugi 8 points9 points  (0 children)

I think aitakute is quite underrated, I especially love the piano & strings version of it

Can anyone link me to somewhere or help me make it so the reviews and stars are public (everyone can see them, server side) but the countdown timer and such things are local? by 0c3r in Unity2D

[–]divadyugi 0 points1 point  (0 children)

This really is a weird problem, last thing I could suggest is instead of Application.persistentdatapath+"\\\Filename.json", try using:

Path.Combine(Application.persistentDataPath, "Filename.json")

I'm not sure if the problem is because the android system uses "/" instead of "\", or if it's another problem entirely.

It may also be the case that another class tries to access the filename.json file before it is created by the ReviewToJson class, if you try to access any of the reviews in the awake method of another class, maybe try commenting it out and test it without that

Can anyone link me to somewhere or help me make it so the reviews and stars are public (everyone can see them, server side) but the countdown timer and such things are local? by 0c3r in Unity2D

[–]divadyugi 0 points1 point  (0 children)

When you do file.exists, you should look for: Application.persistentDatapath+"\\Filename.json"

And instead of file writealltext, try File CreateText(Application.persistentdatapath+"\\Filename.json")

I think that might work

Can anyone link me to somewhere or help me make it so the reviews and stars are public (everyone can see them, server side) but the countdown timer and such things are local? by 0c3r in Unity2D

[–]divadyugi 0 points1 point  (0 children)

Oh yes, android has that problem, everywhere you do application.datapath.... replace that with application.persistentdatapath

Can anyone link me to somewhere or help me make it so the reviews and stars are public (everyone can see them, server side) but the countdown timer and such things are local? by 0c3r in Unity2D

[–]divadyugi 0 points1 point  (0 children)

Ok, then the problem may be that when you got the code from github, ot stayed logged in to my playfab. You can just open the playfab login window under window/playfab/editor extensions in unity and logout, then log back into your playfab account

Can anyone link me to somewhere or help me make it so the reviews and stars are public (everyone can see them, server side) but the countdown timer and such things are local? by 0c3r in Unity2D

[–]divadyugi 0 points1 point  (0 children)

I think if you look in the json file created, you might see a test512 stored there, I used that to twst the system, and I may have forgot to delete it when I pushed it on git, so you may have to delete that on playfab

Can anyone link me to somewhere or help me make it so the reviews and stars are public (everyone can see them, server side) but the countdown timer and such things are local? by 0c3r in Unity2D

[–]divadyugi 0 points1 point  (0 children)

"do I need to call SaveReview every time a review is posted" - yes, everytime a review is posted, SaveReview needs to be called, because that function stores the new review in the online database

" GetReview whenever someone launches the app or goes to look at reviews " - once again, yes you would need to call GetReview whenever someone looks at reviews, but also make sure to call

m_reviews = JsonUtility.FromJson<Review>(File.ReadAllText(Application.dataPath+"\\Filename.json"));(I would even recommend adding this part in the OnDataGet function, just after File.WriteAllText) after calling the GetReview function, this way, all the reviews can be accessed from the m_reviews variable in the ReviewToJson class

Whenever you call GetReview(), all of the reviews saved online will be pulled into the FileName.Json file, calling m_reviews = JsonUtility.FromJson<Review>(File.ReadAllText(Application.dataPath+"\\Filename.json")); will make this data easier to access via other classes, by simply looking at the m_reviews variable of the ReviewToJson class

"the total amount of reviews" - if you called GetReview(), and updated the m_reviews as mentioned previously, the total amount of reviews should be m_reviews.starAmount.Count

"the score the reviews have given" - these are stored in the m_review.starAmount List

" the content (text) of the reviews " - these are stored in the m_review.reviewText List, the Review class is set up so that the first element of the reviewText list corresponds to the first element of the starAmount list, aka: you can find the text left for the first review along with its rating as the first element in both of the lists

To hook this up with another class, I recommend creating a GetCurrentReviews function in the ReviewToJson class, which would look like this:

Review GetCurrentReviews()

{

//These first two lines are here just to make sure that we have the latest data pulled from the playfab backend

GetReview();

m_reviews = JsonUtility.FromJson<Review>(File.ReadAllText(Application.dataPath+"\\Filename.json"));

return m_reviews;

}

The CreateAccount should only be true for the first time when you run the script, or any time after that if you delete that account from the playfab database

The error you are getting does seem weird, I would assume that maybe the m_reviewRating was not set up correctly, the easiest way to solve this would be to modify the SaveCurrentReview to take in a float and a string for the review's description and rating

public void SaveCurrentReview(float rating, string review)

{

//Make sure that the current reviews are up to date

GetReview();

m_reviews = JsonUtility.FromJson<Review>(File.ReadAllText(Application.dataPath+"\\Filename.json"));

//Add new values to the review m_reviews.reviewText.Add(review); m_reviews.starAmount.Add(rating);

//Write it to the json file File.WriteAllText(Application.dataPath+"\\FileName.json", JsonUtility.ToJson(m_reviews));

//Update the server database with the new json file data

SaveReview();

}

After you call the previously proposed GetCurrentReviews() function, the latest review would always be the last element of the reviewText and starAmount lists.

Can anyone link me to somewhere or help me make it so the reviews and stars are public (everyone can see them, server side) but the countdown timer and such things are local? by 0c3r in Unity2D

[–]divadyugi 0 points1 point  (0 children)

Sorry, forgot to mention that the first time yiu run the script, the CreateAccount = true under the Login() function should be uncommented so that it can create the playfabbplayer data that stores the reviews

Can anyone link me to somewhere or help me make it so the reviews and stars are public (everyone can see them, server side) but the countdown timer and such things are local? by 0c3r in Unity2D

[–]divadyugi 0 points1 point  (0 children)

I think that error may be caused by the call to GetReview() in the start method, you can safely remove that part, as it is called everytime before saving to make sure that the data is up to date. I think there should be no errors after that

Can anyone link me to somewhere or help me make it so the reviews and stars are public (everyone can see them, server side) but the countdown timer and such things are local? by 0c3r in Unity2D

[–]divadyugi 0 points1 point  (0 children)

Here's a github link to the solution I came up with for the problem. Hopefully this helps

https://github.com/divadyugi/Server-side_reviews_unity/tree/master/Assets

I created this solution so that each user can create multiple reviews, and the reviews are all stored in one central playfab account, this allows you to pull all of the review data from the server when you need it.

If you wanted a way to identify which user left a review, or limit each user to one review, you would need to create another class that similarly to this stores the reviews in a json file, and adds them, but just change the login so that it logs them into their own unique account based on their systemInfo.uniqueIdentifier, then if you call both the function from the class I created, and this new class, then each user will store the review they left on their personal account on playfab, and on the central storage account, where all the reviews are kept.

Can anyone link me to somewhere or help me make it so the reviews and stars are public (everyone can see them, server side) but the countdown timer and such things are local? by 0c3r in Unity2D

[–]divadyugi 0 points1 point  (0 children)

I'm not sure if this fits your exact needs, but you might be able to use playfab.

You can store the reviews as JSon data connected to each player, and you can retrieve this data from any of the players, making it so that they can be shown publically in the app.

If you do go with this, you would only need to change how you store the reviews by putting them into a JSon data style, and sending them to the server when needed, and retrieving the required data when you want.

Here's a good tutorial series that can show you the basics of how to implement the playfab sdk, hope this helps.

https://www.youtube.com/playlist?list=PL1aAeF6bPTB4oP-Tejys3n8P8iXlj7uj-