Converting VN's to Ren'py (For Android?)

A place to discuss things that aren't specific to any one creator or game.
Forum rules
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
Post Reply
Message
Author
User avatar
Melanz
Newbie
Posts: 2
Joined: Fri Apr 01, 2011 8:59 am
Contact:

Converting VN's to Ren'py (For Android?)

#1 Post by Melanz » Fri Apr 01, 2011 9:50 am

Good day folks!

I'm planning on getting a Android device soon, and after looking around on the web for programs I found out that Ren'py runs on Android as well. Later that evening I thought, "It would be nice to play existing VN's like Wanko to kurasou on Android too".

So the next day I started to look around for the translated scripts, of course it would be a tremendous pain in the arse to convert the scripts to Ren'Py by hand. So after I found the scripts, I started to write (With my limited knowledge of one programming language php) a simple script that converts the MarbleEngine scripts to Ren'py. The code is still in a proof-of-concept state. I still have to make the output more 'optimized'. Currently it just defines a image for every time it is being called in the original script.

Code: Select all

image bg img_249 = "D:/renpy/template/images/abg_a03.BMP"
image img_249 = "D:/renpy/template/images/bku_a00.BMP"
image bg img_250 = "D:/renpy/template/images/abg_a03.BMP"

After a bit of coding I had the character lines ported, many hours followed by trying to extract the CG and sound files (I still don't have the sound effects). But after I extracted those files the background, character images and voice files worked as well.

So now I have a tiny bit of Wanko To Kurasou running in Ren'py (First script), without the story options yet. I still have to think of a way to convert these. Another big problem is that the extractor I used (Crage) extracted the CG as BMP without any transparency. And that it doesn't display the date yet.


I'm not going to recruit people (Though, if you would like to help out I'd appreciated it), I just like to hear a opinion on this project which I originally started for just myself, but I wouldn't mind to give it away (Without CG etc since that would be illegal ;))

Why I'm doing this even though I could just play it on my laptop?
Because I can, and I got a lot of free time on my hands.

*Looks at the date*
I don't see why this would be a joke, even though I happen to post this on 1 April, But if you don't believe me I included screenshot's of both engine's running and of both scripts~

I wonder if I chose the right forum category. I also apologized for any grammar mistake's, English is not my first language.
Attachments
Wanko_Renpy.jpg
Original script next to the Ren'py script.
RenPyPort.jpg
Both Ren'py and Wanko running.

pondrthis
Veteran
Posts: 265
Joined: Tue Dec 14, 2010 5:20 pm
Completed: G-Senjou no Maou Translation
Location: Nashville, TN
Contact:

Re: Converting VN's to Ren'py (For Android?)

#2 Post by pondrthis » Fri Apr 01, 2011 11:01 am

First off, I guess you're extracting the images as 32-bit BMP. Convert those to whatever image format Ren'Py likes... I would think *.png for alpha-enabled channels.

I have lots of experience with Crage (and, indeed, with hacking VNs in general) since I headed the "G-Senjou no Maou" translation. Crage outputs images as 32-bit BMP since that's the simplest alpha-enabled file format, but most engines don't accept those files. The transparency IS enabled, I assure you, but when you try to use the BMP in Ren'Py it's not reading right.

Convert to *.png using another program. I forgot which program I used before... TGA or TIFF or something? Look up how to convert 32-bit (or alpha-enabled) bitmaps to png's.

I could help I guess, but I don't know why you'd pick a furry game instead of any number of other awesome games out there T.T

EDIT: Stupid me... TGA and TIFF are other image formats. The program I used was called XnView, it's free.

User avatar
Melanz
Newbie
Posts: 2
Joined: Fri Apr 01, 2011 8:59 am
Contact:

Re: Converting VN's to Ren'py (For Android?)

#3 Post by Melanz » Fri Apr 01, 2011 2:49 pm

pondrthis wrote:First off, I guess you're extracting the images as 32-bit BMP. Convert those to whatever image format Ren'Py likes... I would think *.png for alpha-enabled channels.
So I poked around with Xnview and the BMP's, but didn't mange to save it as a transparent PNG. (Turning on 32bit mode didn't do any changes). So I wondered if they were really 32bit but imagemagick returned me this:

Code: Select all

Image: BKAN_B00.bmp
  Format: BMP (Microsoft Windows bitmap image)
  Class: DirectClass
  Geometry: 456x600+0+0
  Units: PixelsPerCentimeter
  Type: TrueColor
  Endianess: Undefined
  Colorspace: RGB
  Depth: 8-bit
  Channel depth:
    red: 8-bit
    green: 8-bit
    blue: 8-bit
So I guess either I'm doing it totally wrong with Xnview, or the images weren't extracted properly somehow.
pondrthis wrote:I could help I guess, but I don't know why you'd pick a furry game instead of any number of other awesome games out there T.T
Well everyone his own taste, I'd just happen to use Wanko because I have a weak for loli's, read most of it (so I wouldn't spoil myself) and it was the only VN I have in reach at the moment.

This is merely a proof-of-concept, though I do have plans if this is going easy to convert more visual novels (Perhaps start a small group to give some support etc). If you still would like to help out that that would be nice. (If possible I prefer to use IRC for that).

fischer22
Regular
Posts: 60
Joined: Thu Apr 22, 2010 2:59 am
Contact:

Re: Converting VN's to Ren'py (For Android?)

#4 Post by fischer22 » Wed May 25, 2011 7:34 pm

You can always convert games to Onscripter and then use Onscripter for Android (don't know if english version would work, but japanese version sure does).
There are converters for games like: Saya no Uta, G-Senjou no Maou, Cross Channel, Sharin no Kuni, etc... :)

User avatar
Enerccio
Miko-Class Veteran
Posts: 616
Joined: Thu Oct 26, 2006 4:23 pm
Projects: My Teacher; Songs of Araiah; Something new; Possible Cross Bomber?
Location: Slovakia, Kosice
Contact:

Re: Converting VN's to Ren'py (For Android?)

#5 Post by Enerccio » Thu May 26, 2011 6:49 am

No, the format you are extracting must have alpha channel set somewhere. If you extract it as a bmp, you will lose that information.
Image
http://www.bishojo.tk is technically ONLINE!
Songs of Araiah promo: http://www.youtube.com/watch?v=CalchucuoDU

pondrthis
Veteran
Posts: 265
Joined: Tue Dec 14, 2010 5:20 pm
Completed: G-Senjou no Maou Translation
Location: Nashville, TN
Contact:

Re: Converting VN's to Ren'py (For Android?)

#6 Post by pondrthis » Thu May 26, 2011 10:51 am

@Enerccio: Crage tends to extract things as 32-bit bmps in my experience, which certainly DO have alpha channels. You just have to open them with the right program to get the channel recognized.

While I suspect this is just a bit of bumbling on the part of the OP, there's a chance Wanko to Kurasou uses an uncommon encoding mechanism which allows all but the alpha channel to be extracted using default parameters. I doubt it, though, since Wanko is listed under the general "support list" file without any special instructions. For reference, a game I worked with for a while called "水平線まで何マイル?" is listed under the "kirikiri" support list with special directions and required additional tweaking to unpack properly.

Post Reply

Who is online

Users browsing this forum: Google [Bot]