Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Tutorials and Tips (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=27)
-   -   Cool code bits (http://www.mysidiaadoptables.com/forum/showthread.php?t=5358)

Abronsyth 07-24-2017 05:14 AM

Yooo, nice! I haven't had time to look into it much but I know Mysidia already employs GD Library for the alt. code.

Do you think you'll share it once you've figured it out?

Dinocanid 07-24-2017 06:41 AM

Yeah, since the script could use some examples outside of the siggy.
I got all the way up to generating different images as layers and merging them into one; then sending the final render to another page. (Since I've found that you can't render the same page with any text and still call the image) I'm getting some help on TGL now, since I was having problems with swapping layers from dropdowns.
EDIT: Also don't mind those long links in my last post. I was using a proxy to connect and it messed the link up.

LUC1G07CH1 07-24-2017 11:44 AM

Also...on the .js file, it gives "X" when i added the 3rd and the 4th question. Am i doing something wrong?
Edit: figured what i am doing wrong.

Edit: Fixed the "question not showing" thing. It's because the .js file had alot of errors and then i fixed all of them by just putting a "?" on the 3rd question.
Huh?

Dinocanid 07-24-2017 12:38 PM

That's strange. I just copy-pasted the .js file and I didn't have any errors at all. Make sure that when you add new questions, the closing bracket always has a comma next to it. (Highlighted in red)
Code:

  {
                                "question"                :        "Q1",
                                "choices"                :        [
                                                                                "answer"

                                                                        ],
                                "correct"                :        "answer",
                                "explanation"        :        "explain",
 
                        },
  {
                                "question"                :        "Q1",
                                "choices"                :        [
                                                                                "answer"

                                                                        ],
                                "correct"                :        "answer",
                                "explanation"        :        "explain",
 
                        },

If you don't the game will break/produce errors.


All times are GMT -5. The time now is 12:34 AM.

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