Advertisement
Guest User

Untitled

a guest
Feb 9th, 2021
15,878
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.03 KB | None | 0 0
  1. #FL (Slideshow variant) v1.1
  2.  
  3. #Two quick things you'll need to get started:
  4. #1. A copy of mpv
  5. #https://sourceforge.net/projects/mpv-player-windows/files/64bit/
  6. #You can plop it down wherever you'd like
  7. #But it's easiest to store the exe in the same folder as this file
  8.  
  9. #2. The latest version of Python
  10. #Just go to Python.org and grab the latest version
  11.  
  12. #Now, if needed, you can modify the following filepaths
  13.  
  14. #Path to MPV installation. Not required if MPV is in the same folder.
  15. mpv_path = r'C:/Users/Anon/mpv/'
  16. #Path to Fap Land videos. Not required if in the Fap Land folder.
  17. fl_path = r'C:/Downloads/Fap Land/Main Game/'
  18. #Path to intervals. Point it towards your favorite image folder.
  19. #You can also create a folder called "intervals" where this file is, if you want.
  20. #If you don't want any breaks between rounds, you can leave this alone, too.
  21. int_path = r'C:/Users/Anon/anime tiddies/'
  22.  
  23. #When you're done, save this as a .py file (ie "FL.py") and run it.
  24. #If you have trouble, just ask in the thread
  25. #Good luck, hero!
  26.  
  27. import os, random, time, datetime
  28. from os import path
  29.  
  30. #automation for retards.
  31. if path.exists("mpv.exe"):
  32.     mpv_path = ""
  33.     print("mpv is here!")
  34. if path.exists("2.mp4"):
  35.     fl_path = ""
  36.     print("FL is here!")
  37. if path.exists("intervals"):
  38.     int_path = "intervals/"
  39.     print ("intervals are here!")
  40.  
  41. def diceroll(currentval):
  42.     roll = random.randint(1, 6)
  43.     newval = currentval + roll
  44.     if ((currentval < 25) and (newval >= 25)):
  45.         newval = 25
  46.     if ((currentval < 50) and (newval >= 50)):
  47.         newval = 50
  48.     if ((currentval < 75) and (newval >= 75)):
  49.         newval = 75
  50.     if ((currentval < 100) and (newval >= 100)):
  51.         newval = 100
  52.        
  53.    
  54.     return newval
  55.    
  56. def video(currentval):
  57.     #Quick automation for retards who don't want to rename the files
  58.     file = str(currentval)
  59.     if currentval == 1 and not path.exists("1.mp4"):
  60.         file = "1 - Start"
  61.     elif currentval % 25 == 0 and not path.exists("25.mp4"):
  62.         if currentval != 100:
  63.             file = str(currentval) + " - Checkpoint"
  64.         else:
  65.             file = str(currentval) + " - End"
  66.     os.system(mpv_path + "mpv.exe -msg-level=all=no -fs " + '"' + fl_path + file + '.mp4"')
  67.    
  68. def image():
  69.     if path.exists(int_path):
  70.         imageFile = os.listdir(int_path)
  71.         random_file = random.choice(imageFile)
  72.         fullImagePath = int_path + random_file
  73.         os.system(mpv_path + "mpv.exe -fs --image-display-duration=10 " + '"' + fullImagePath + '"')
  74.  
  75. def game():
  76.     print("Game start!")
  77.     pos = 1
  78.     print("")
  79.    
  80.     while pos < 100:
  81.         video(pos)
  82.         prevpos = pos
  83.         roll = random.randint(1, 6)
  84.         pos += roll
  85.         if prevpos % 25 > pos % 25:
  86.             if pos % 25 != 0:
  87.                 video(pos - pos%25)
  88.         elif prevpos != 1:
  89.             print("10 second break")
  90.             image()
  91.         print("Rolled a " + str(roll))
  92.         print("Position : " + str(pos))
  93.        
  94.         #if (pos % 25) != 0:
  95.         #   print("10 second break")
  96.         #   image()
  97.         #else:
  98.         #   if pos != 100:       
  99.         #       print("Checkpoint " + str(int(pos/25)))
  100.         print("")
  101.        
  102.     print("Congratulations, you've cleared the game!")
  103.  
  104. random.seed(int(datetime.datetime.now().strftime("%Y%m%d%H%M%S")))
  105. game()
  106.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement