Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Mys v1.3.x Mods (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=42)
-   -   Mys v1.3.4 Higher Or Lower Game (http://www.mysidiaadoptables.com/forum/showthread.php?t=4964)

Abronsyth 01-10-2016 03:15 PM

Sorry to further pester you...but I seem to be having an issue. I just did a fresh download and reset it all up, but the day following the first a user plays they can simply refresh the page and continue playing endlessly, but are not rewarded with any currency. So they can wait a day, and then play again but not earn any of the currency. It works right the very first day, but not any of the days after that.

I don't know if that makes any sense, sorry ;^;

Kyttias 01-10-2016 06:53 PM

After a while, I finally managed to recreate this problem on one of my accounts. It's actually a major problem but I should be able to fix it. :exexex: It should be updating on a duplicate entry but it's not, thus causing some weird issues. When the fix is up I'm probably also going to have to have you guys clean out the table (by deleting it and readding it), so everyone will have their plays reset properly.

Sooooo I'll get back to you on that!!

Abronsyth 01-11-2016 09:48 PM

Alrighty! If there's any way I might be able to help, please let me know!

I've been looking at the files you created to see if I can figure out how to apply this to some different javascript games, as well!

bisexuowl 01-19-2016 08:47 PM

https://gyazo.com/10be6dad33a390269df542d3cdfd3a22 this happened upon installing :C

Abronsyth 01-19-2016 09:18 PM

Simply sounds like you didn't do something right, likely a file was not put into the proper place in your site directory. I would double check the front thread thoroughly and check the listed directories to make sure the right files are in there;
games/.htaccess
games/hilo/sendscore.php
games/hilo/hilo.php
games/hilo/hilo.css
games/hilo/hilo.js
hilo.php
view/hiloview.php

So the first 5 should be in a folder called "games" (exactly, including all lower case), hilo.php should be in your base directory, and then hiloview.php should be in your view folder.

Hwona 01-27-2016 05:08 AM

Hi Kyttias! Mind if I confirm something with you? I noticed that the iframe displays the hilo game page with the username in the url. Since this is editable via inspect element, wouldn't users be able to play as others? Thanks! :3

Kyttias 01-27-2016 09:38 AM

In short... yes? If you have a better solution, feel free to suggest one? If they play as another user, that other user will get the gold, not them (no matter what may display for the current user pretending). It will also count down the the other user's plays.

Hwona 01-27-2016 05:16 PM

Re
 
Quote:

Originally Posted by Kyttias (Post 33593)
In short... yes? If you have a better solution, feel free to suggest one? If they play as another user, that other user will get the gold, not them (no matter what may display for the current user pretending). It will also count down the the other user's plays.

Okay, I see. I was just concerned as some users might mischeviously try to use up all others' plays and guess the number wrong? O.o

Kyttias 01-27-2016 05:53 PM

It should be possible to do it by the user's id number instead... since that information is less readily available?

Hwona 01-27-2016 06:11 PM

Re
 
Quote:

Originally Posted by Kyttias (Post 33598)
It should be possible to do it by the user's id number instead... since that information is less readily available?

Wait, I found a solution! We can just use cookies on the sendscore.php page. Umm, I'll try creating a new cookie when a user logs in... this will be username. If the cookie doesn't match the inputed username, the script can be stopped.


All times are GMT -5. The time now is 08:43 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.