Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

readme.txt

By: m2e on Oct 2nd, 2012  |  syntax: None  |  size: 6.65 KB  |  hits: 564  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. THIS IS NOW OUTDATED. CHECK THIS LINK FOR NEW VERSIONS http://pastebin.com/ZyRkVY5W
  2.  
  3. ######################################################################################
  4.  
  5. KS2Android.py can be found at http://pastebin.com/ZyRkVY5W
  6.  
  7. ---------------------------------------------------------------------------------------
  8. Here's a compiled apk for lazy people: http://tiny.cc/KS-v1-Android
  9. The above also includes a fix for crashes cased by some character animations.
  10. For those who are computer savvy, it required a change in RenPy's compatibility module.
  11. It replaces the MoveTransition function with OldMoveTransition which in turn causes
  12. define.move_transitions to fail.
  13.  
  14. Regarding the license and derivative works, Katawa Shoujo itself remains unchanged.
  15. The engine that runs KS was ported to Android and as such KS can run on it.
  16. ---------------------------------------------------------------------------------------
  17.  
  18. UPDATE: Send an email here if you need support [email protected] or to tell me you succeeded.
  19.         Report bugs and crashes, I will be updating the script as issues arise.
  20.         When additional support is added by Ren'Py developers, I will update it.
  21.         You might want to check this every now and then.
  22.  
  23. UPDATE2: 2 January 2013
  24.          - The script has been modified and a bit. I removed some cleanup steps so the script doesn't
  25.          delete the helper scripts and doesn't backup the game scripts before changing them.
  26.          However all of that doesn't really matter because you will be running the script in a COPY
  27.          of your Katawa Shoujo folder which you can later safely delete.
  28.          - Added instructions on how to set the SD card as the default installation location for
  29.          Android phones with less than required internal memory
  30.  
  31. These are instructions on how to port Katawa Shoujo to Android.
  32. KS2Android does 92% of the work for you automagically.
  33.  
  34. What works:
  35.  - The text and the script (I hope; I didn't test everything)
  36.  - Backgrounds and characters
  37.  - Particles (e.g. snow)
  38.  - Sound effects
  39.  - Music
  40.  
  41. What doesn't:
  42.  - During some transitions the game will "crash", just click on ignore and you're good to go
  43.         This is due to a bug in RenPy itself
  44.  - Videos between acts
  45.  - Some scene transitions (the first blackout, eyes opening and closing, "bubble" transitions when starting the game and opening the menu)
  46.  
  47. What you will need:
  48.  - Windows OS
  49.  - Windows version of Katawa Shoujo
  50.  - Python
  51.  - Java Development Kit
  52.  - Internet connection
  53.  - 3GB of free space
  54.  - About 60 minutes of free time
  55.  - An Android phone with over 300MB of free app space
  56.  - A pinch of luck
  57.  
  58. If your phone doesn't have 300MB of free internal memory you might want to try this:
  59. http://www.howtogeek.com/114667/how-to-install-android-apps-to-the-sd-card-by-default-move-almost-any-app-to-the-sd-card/
  60. You will find the Android SDK installed under \rapt-6.14.1.0\android-sdk after you have successfully finished running the script (step 2 specifically)
  61.  
  62.  
  63. First thing you will need to do is install Python2.7 and JDK (Java Development Kit)
  64.  
  65. You can get Python2.7 from http://www.python.org/download/
  66. Choose "Python 2.7.3 Windows Installer", download it and install it with default options.
  67. I'm not sure if the 64-bit version could cause problems. It shouldn't.
  68. Feel free to install that one if you have a 64-bit version of Windows.
  69.  
  70. You can get the latest version of JDK from http://www.oracle.com/technetwork/java/javase/downloads/index.html
  71. You need the JDK, not JRE so click the download button that says JDK next to it.
  72. You will need to accept the license agreement and choose the Windows version.
  73. "Windows x86" if you have 32-bit windows and "Windows x64" if you have 64-bit windows.
  74. Download that and install it.
  75.  
  76. After you've installed everything make a copy of your Katawa Shoujo folder and copy KS2Android.py in there.
  77.  
  78.  
  79. Now you are ready to launch the script.
  80. If you installed Python correctly you can just double-click KS2Android.py to run it.
  81.  
  82. It will start by downloading RAPT (RenPy Android Packaging tool)
  83. Give it a minute to finish the download.
  84.  
  85. Then it will extract RAPT and run a RAPT script that installs Apache Ant and Android SDK.
  86.  
  87. Apache Ant will be installed after a minute.
  88. RAPT will then open a webpage and ask if you accept Android SDK Terms and Conditions.
  89.  
  90. Write "yes" in the console to continue.
  91.  
  92. It will continue to download and install Android SDK.
  93. This will take a while (let's say 10 minutes) so you can get up and exercise while you wait.
  94.  
  95. You will then be asked if you want to create a signing key. You want that.
  96. Android usually doesn't let you install unsigned packages without a bit of hacking.
  97. Type "yes" and press enter.
  98.  
  99. Another question: Will you create a backup? Write "yes" here even though you won't.
  100. It doesn't matter if you lose it, you can just make another since you're making it only for yourself.
  101.  
  102. You will have to enter a name too. Write whatever you want. It doesn't matter at all.
  103.  
  104. RAPT will finish it's business and return you back to KS2Android.
  105.  
  106. Now it will unpack the game files because it has to remove the videos since they aren't supported on Android yet and they would just take up extra space.
  107. Then the game will be launched and closed twice to decompile, patch and recompile a file that is causing problems on Android.
  108. Without this backgrounds wouldn't load and you wouldn't see any of the characters either.
  109.  
  110. After patching it will copy some settings and start building the package.
  111. It shouldn't take longer than a few minutes.
  112.  
  113. And that's it, your Android port of Katawa Shoujo is done.
  114.  
  115. You will then have a file called "KatawaShoujo.apk" that is just over 330MB large.
  116. Copy that file to your Android phone and install it.
  117.  
  118. DISTRIBUTING THAT FILE IS AGAINST THE CREATIVE COMMONS (NC ND) LICENSE!"
  119. DO NOT SHARE IT!"
  120.  
  121.  
  122. NOTES:
  123. A file named "progress.txt" will be created in the same folder as KS2Android.py
  124. That file is used to track the progress in case something goes wrong and the script crashes.
  125. If that happens you can try running the script again and it might continue as if nothing happened.
  126. You can also try setting the progress value to represent the last successful step and restarting it.
  127.  1 - Installed RAPT
  128.  2 - Installed Android SDK
  129.  3 - Downloaded UnRPA script
  130.  4 - Unpacked the game files
  131.  5 - Removed game videos
  132.  6 - Copied game scripts
  133.  7 - Downloaded decompile script
  134.  8 - Decompiled game scripts
  135.  9 - Patched
  136.  10 - Made a backup of the original script before recompiling <-- Removed in UPDATE2
  137.  11 - Recompiled the patched script (and restored the backup)
  138.  12 - Copied the compiled patched script
  139.  13 - Copied RAPT packaging configuration
  140.  14 - Built the package