Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.3.x Mods

Reply
 
Thread Tools Display Modes
  #11  
Old 01-10-2016, 04:15 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 996
Gender: Male
Credits: 40,374
Abronsyth is on a distinguished road
Default

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 ;^;
Reply With Quote
  #12  
Old 01-10-2016, 07:53 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 840
Gender: Unknown/Other
Credits: 35,637
Kyttias is on a distinguished road
Default

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. 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!!
__________________
Please do not contact me. I cannot offer tech support on any coding I've done prior to 2018.
Reply With Quote
  #13  
Old 01-11-2016, 10:48 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 996
Gender: Male
Credits: 40,374
Abronsyth is on a distinguished road
Default

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!
Reply With Quote
  #14  
Old 01-19-2016, 09:47 PM
bisexuowl bisexuowl is offline
x3 furry trash x3
 
Join Date: Sep 2015
Location: California
Posts: 22
Gender: Male
Credits: 1,669
bisexuowl is on a distinguished road
Default

https://gyazo.com/10be6dad33a390269df542d3cdfd3a22 this happened upon installing :C
Reply With Quote
  #15  
Old 01-19-2016, 10:18 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 996
Gender: Male
Credits: 40,374
Abronsyth is on a distinguished road
Default

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.
Reply With Quote
  #16  
Old 01-27-2016, 06:08 AM
Hwona's Avatar
Hwona Hwona is offline
Member
 
Join Date: Mar 2013
Posts: 624
Gender: Female
Credits: 18,567
Hwona is on a distinguished road
Default

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
Reply With Quote
  #17  
Old 01-27-2016, 10:38 AM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 840
Gender: Unknown/Other
Credits: 35,637
Kyttias is on a distinguished road
Default

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.
__________________
Please do not contact me. I cannot offer tech support on any coding I've done prior to 2018.
Reply With Quote
  #18  
Old 01-27-2016, 06:16 PM
Hwona's Avatar
Hwona Hwona is offline
Member
 
Join Date: Mar 2013
Posts: 624
Gender: Female
Credits: 18,567
Hwona is on a distinguished road
Default Re

Quote:
Originally Posted by Kyttias View Post
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
Reply With Quote
  #19  
Old 01-27-2016, 06:53 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 840
Gender: Unknown/Other
Credits: 35,637
Kyttias is on a distinguished road
Default

It should be possible to do it by the user's id number instead... since that information is less readily available?
__________________
Please do not contact me. I cannot offer tech support on any coding I've done prior to 2018.
Reply With Quote
  #20  
Old 01-27-2016, 07:11 PM
Hwona's Avatar
Hwona Hwona is offline
Member
 
Join Date: Mar 2013
Posts: 624
Gender: Female
Credits: 18,567
Hwona is on a distinguished road
Default Re

Quote:
Originally Posted by Kyttias View Post
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.

Last edited by Hwona; 01-27-2016 at 07:52 PM.
Reply With Quote
Reply

Tags
ajax, game, higher or lower, javascript

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:32 PM.

Currently Active Users: 232 (1 members and 231 guests)
Threads: 3,942, Posts: 31,405, Members: 15,530
Welcome to our newest members, ancrsbys01.
BER





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636