Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
||||
|
||||
Word Scramble Game
This word scramble game is a modification of Kyttias's HiLo game! ~courtesy of Kyttias Word Scramble Game Demo: JSBin Preview Download: Compressed Folder View game at yoursite.com/wordscramble Please upload these files: games/.htaccess games/wordscramble/sendscore.php games/wordscramble/wordscramble.php games/wordscramble/wordscramble.css games/wordscramble/wordscramble.js wordscramble.php classes/class_cookies.php (replace the original file) view/wordscramble.php Create this table if you haven't: phpMyAdmin->SQL->paste Code:
CREATE TABLE IF NOT EXISTS `adopts_games` ( `gid` int(11) NOT NULL AUTO_INCREMENT, `game` varchar(30) NOT NULL, `username` varchar(30) NOT NULL, `plays` int(11) NOT NULL, `timestamp` int(11) NOT NULL, PRIMARY KEY (`gid`), UNIQUE KEY `key` (`gid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=0; The script runs games/wordscramble/wordscramble.js not games/wordscramble/wordscramble_non.js. wordscramble.js is obfuscated for security: Re-obfuscate Edited Files Here. This game uses three filler words to unscramble! Don't forget to add more! To do so, edit the arrays at lines 8 and 40 in wordscramble_non.js. Then, obfuscate the code and paste it into wordscramble.js. Last edited by Hwona; 01-28-2016 at 04:54 PM. Reason: Fixed: Game ends regardless of plays left. I forgot to include one more file in the download: class_cookies. |
#2
|
||||
|
||||
Er, ok, something's definitely not right. As soon as I submit the answer it tells me game over, see you tomorrow, and says I have 0 plays left for today (though I've only played once), and then if I refresh the page it resets and says
"Plays Left Today: of 20" Not updated my currency amount at all, though I guarantee I am getting the answers correct. The only thing I changed in the files would be the words available to unscramble. It's also not updating at all anywhere in the database, despite me now having attempted to play 4 times. Even with the 100% original files it's still having this error.
__________________
My Mods Site (1.3.4, 2020 Mods) Last edited by Abronsyth; 01-28-2016 at 09:40 AM. |
#3
|
||||
|
||||
*bangs head on table*
I forgot one more thing... I recently posted a code replacement for the class cookies file in the hilo thread. Please replace your original file with that? Sorry, Ill do a proper thread update when I have access to my computer. |
#4
|
||||
|
||||
Oh dear, I tried that and it resulted in this;
Catchable fatal error: Argument 2 passed to Registry::set() must implement interface Resource\Native\Objective, instance of Cookies given, called in /home/catisserie/public_html/classes/class_mysidia.php on line 237 and defined in /home/catisserie/public_html/classes/class_registry.php on line 198
__________________
My Mods Site (1.3.4, 2020 Mods) |
#5
|
||||
|
||||
Quote:
PHP Code:
Last edited by Hwona; 01-28-2016 at 04:52 PM. |
#6
|
||||
|
||||
Okay, it seems to be working so far...hopefully the reset tomorrow works as well (since that's where I was running into major issues with Kyttias's game script).
Thank you, Wallie :) Edit; Just a note, all of my users have had to log out and then log back in to get it to work correctly.
__________________
My Mods Site (1.3.4, 2020 Mods) Last edited by Abronsyth; 01-28-2016 at 07:45 PM. |
#7
|
||||
|
||||
Quote:
|
#8
|
|||
|
|||
Uploaded the files, tried to visit the game, I get this message;
http://prntscr.com/a445x7 |
#9
|
||||
|
||||
Error Message
Quote:
Hope this helps. |
#10
|
|||
|
|||
For some reason, it duplicated the games folder. deleting one of them helped. Thanks!
|
Tags |
games |
Thread Tools | |
Display Modes | |
|
|
What's New? |
What's Hot? |
What's Popular? |