Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.48 KB | None | 0 0
  1. label start:
  2. $ mon = None
  3. $ ita = None
  4. scene black
  5. play music m1
  6. call screen dialog("Doki Doki Behind Closed Doors, has detected an uncorrupted version of the files.", ok_action=Return())
  7. call screen dialog("The game stopped unexpectedly last time, due to an error.", ok_action=Return())
  8. call screen dialog("In order to run the game without errors, every .chr file must be present.", ok_action=Return())
  9. call screen dialog("Some character files are encoded, please copy them into the characters folder, so that I can help you decode them.", ok_action=Return())
  10.  
  11. label repeat_it:
  12. call screen dialog("Press ok, once you have copied the files over, and I will check my directory.", ok_action=Return())
  13. call screen dialog("Scanning...", ok_action=Return())
  14.  
  15. label zerovars:
  16. $ mon = 0
  17. $ ita = 0
  18.  
  19. label try_both:
  20. if mon == 0 and ita == 0:
  21. call screen dialog("Let me see...", ok_action=Return())
  22. call try_ita
  23. call try_mon
  24.  
  25. if mon == 0 and ita == 1:
  26. call screen dialog("Itami.chr has been found.", ok_action=Return())
  27. call screen dialog("Press ok, once you're ready for me to scan again.", ok_action=Return())
  28. call try_mon
  29.  
  30. if mon == 1 and ita == 0:
  31. call screen dialog("Akinom.chr has been found.", ok_action=Return())
  32. call screen dialog("Press ok, once you're ready for me to scan again.", ok_action=Return())
  33. call try_ita
  34.  
  35. if mon == 1 and ita == 1:
  36. if renpy.loadable("../characters/itami.chr") and renpy.loadable("../characters/akinom.chr"):
  37. call screen dialog("Both character files have been found.", ok_action=Return())
  38. call start_game
  39. else:
  40. call zerovars
  41. return
  42.  
  43.  
  44. label set_mon:
  45. $ mon = 1
  46. call try_both
  47.  
  48. label set_ita:
  49. $ ita = 1
  50. call try_both
  51.  
  52. label try_ita:
  53. python:
  54. if renpy.exists("../characters/itami.chr"):
  55. renpy.call("set_ita")
  56. elif renpy.exists("../characters/SXRhbWkg.chr"):
  57. renpy.call("base64")
  58. else:
  59. renpy.call("file_missing")
  60.  
  61. label try_mon:
  62. python:
  63. if renpy.exists("../characters/akinom.chr"):
  64. renpy.call("set_mon")
  65. elif renpy.exists("../characters/010000010110101101101001011011100110111101101101.chr"):
  66. renpy.call("binary")
  67. else:
  68. renpy.call("file_missing")
  69.  
  70.  
  71.  
  72. label binary:
  73. scene filename
  74. call screen dialog("This appears to be encoded in binary.", ok_action=Return())
  75. call screen dialog("Please decode the character name, replace the code with the decoded name, and I'll check my directory for it.", ok_action=Return())
  76. call screen dialog("Example: Replace 'encoded.chr' with 'decoded.chr' in the character file itself.", ok_action=Return())
  77. call try_ita
  78.  
  79. label base64:
  80. scene filename
  81. call screen dialog("This appears to be encoded in base64.", ok_action=Return())
  82. call screen dialog("Please decode the character name, replace the filename with the decoded name, and I'll check my directory for it.", ok_action=Return())
  83. call screen dialog("Example: Replace 'encoded.chr' with 'decoded.chr'", ok_action=Return())
  84. call try_mon
  85.  
  86. label file_missing:
  87. scene black
  88. call screen dialog("The file I am trying to locate, cannot be found.", ok_action=Return())
  89. call screen dialog("Please try again.", ok_action=Return())
  90. call repeat_it
  91.  
  92. label start_game:
  93. "Test."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement