Romance of the Three Kingdoms XIII

Romance of the Three Kingdoms XIII

No Custom Portraits?
I just played the game, and there doesn't seem to be a portrait editor... Might I ask, how do you guys put custom portraits in this game? And, do you have to replace anything?
< >
Showing 31-45 of 51 comments
Hex Jul 10, 2016 @ 1:04pm 
If we can get this working we can open up new stories to this game. Think of it! It'll be unlore friendly to history but having our favorite characters in the game, making them bond, etc.

I saw somewhere along here someone got Saber in the game, Chun Li in the game and more.
Spartanlemur Jul 10, 2016 @ 1:21pm 
If anyone wants the dl link for the San13tool, you can get it here. Use your browser's inbuilt translate feature.

http://www.samkok911.com/p/romance-of-three-kingdoms-13.html
Spartanlemur Jul 10, 2016 @ 1:33pm 
@Raven

I'm a bit stuck. I double-clicked the "DATA0.S13" file, and then proceeded to use the "export" function you mentioned. I typed 6 in the left box and 10 in the right box, before clicking the highlighter button on the top right.

However, a warning came up which stopped me proceeding. I believe it was asking me for the output directory, so I created an "images" folder somewhere on my drive and used the bottom right button to browse for it.

I again clicked the top right button, and it successfully took me to this screen:

https://ibin.co/2nc5q4e5wgGB.png

Where essentially nothing is happening. It just stays like that - I've tried leaving it ten minutes, but no luck.

Have I done something wrong? Is the location of my output folder relevant? Should I be using the x64 exe or the normal one (I presume the former)?

EDIT: Never mind - I had to click the left button, which I thought was "cancel", followed by a crash. Insteead, this begins the extraction.
Last edited by Spartanlemur; Jul 10, 2016 @ 1:39pm
JustaGamer Jul 10, 2016 @ 1:43pm 
Originally posted by Spartanlemur:
@Raven


I again clicked the top right button, and it successfully took me to this screen:

https://ibin.co/2nc5q4e5wgGB.png

Where essentially nothing is happening. It just stays like that - I've tried leaving it ten minutes, but no luck


Eh I forgot to say you have to hit the left button on that window (which is the start key). The other key is the Exit button. I'll edit the guide.
Spartanlemur Jul 10, 2016 @ 2:06pm 
OK, I'm, willing to take a request (for a set of 7 ready-to-import images) if anyone can provide me with an image to test out.
Last edited by Spartanlemur; Jul 10, 2016 @ 2:06pm
JustaGamer Jul 10, 2016 @ 2:13pm 
What do you mean? If you want to test to see if the swapping method work, I already verify that it works. You can test yourself by swapping 2 original image as if it's a new image. As for set of ready made image, I found several on Baidu but like I said, without an account for it you can't download them.

The tool is very picky, I think there are some editing standard to follow as well, just making it roughly the same size and the tool will reject it.

If you mean you're willing to make a set ... well, if you can please do this image I posted earlier. Since I like it:

http://imgur.com/F12kCa8
Last edited by JustaGamer; Jul 10, 2016 @ 2:14pm
Spartanlemur Jul 10, 2016 @ 2:20pm 
Originally posted by Raven2015:
What do you mean? If you want to test to see if the swapping method work, I already verify that it works. You can test yourself by swapping 2 original image as if it's a new image. As for set of ready made image, I found several on Baidu but like I said, without an account for it you can't download them.

The tool is very picky, I think there are some editing standard to follow as well, just making it roughly the same size and the tool will reject it.

I want to try and experiment with creating new images from basic artwork. Maybe see if I can get breathing effects working.

The photoshop side of things.

I'll see what I can do with that image you linked to.
Last edited by Spartanlemur; Jul 10, 2016 @ 2:20pm
Spartanlemur Jul 10, 2016 @ 7:12pm 
OK, it's definitely not easy. I don't even know if these images work (I know they import into the editor, but haven't checked them in-game), but anyone here is free to try them. The San13editor seems really unstable, as it keeps crashing for me and wouldn't save. I might try moving ROTK13 and the editor to my SSD to see if that makes any difference.

https://filebin.net/cfdnzdgxviuq5vph

(the hair is far from perfect)

Also, with breathing, I think the way that Koei achieved it is by creating a cutout of the character, and then vaguely splitting them into torso - waist - head. This is actually how each trio of images is ordered, which you can see for yourself if you open them in Pixelformer.

I think once you have a basic cutout, dividing it into three parts isn't very hard, especially given that Koei's own efforts don't seem to precise (there's overlap and a lot of faded edges between each part).
JustaGamer Jul 10, 2016 @ 10:06pm 
Hey Spartan, it works for about 99%.

http://steamcommunity.com/sharedfiles/filedetails/?id=722174045

Two thing though:

- first, you don't have to remove the background image, if you notice the original images all have a background, the game remove it automatically during conversation but let it appears during event. This way the character still have a color image in the Bio and their event.

- Second, your alpha chanel is good enough that the dialogue portrait display properly and doesn't show anything weird as you can see above. (I have seen people did it wrong and character missing limb and part). However instead of the breathing effect, the whole portrai move slightly up and down. Unless people was speficially pay attention though it mostly unoticable, in fact I'm happy enough as it is since I don't care much for the breathing effect as long as the image is displayed properly.

Most importantly I got no error installed all the image so you get the cropping right. Do you mind posting a guide for it? We'll might combine our guides in a new topic so people can get start, after more people jumping on board I'm sure the quality will improve!

Anyway, with that the technical stuff is out of the way, all of you Photowiz out there, get to work! :D

This is where I got the pic from, I think a few have a ready make set available (but again you need an account to download the set, otherwise you can only get the original pic like I did).

http://game.ali213.net/forum.php?mod=viewthread&tid=6000510&extra=page%3D1%26filter%3Dtypeid%26typeid%3D4305%26typeid%3D4305


About the tool stability, yes moving to an SSD will help. (Btw you can jsut move the DATA0 file back and forth before and after editing). I don't think it's stability issue, the tool just work slow because it decodes in real time. It used to crash for me when I first started because I was impatient, if it enter a pause and you start clicking left and right, it'll crash, but if you just let it be it'll reponsive again. Loading pack 6 and 7 will usually take extra time.


Edit: I think I know what causing the issue with your alpha channel. I think only the upper body was supposed to be moving up and down, not the entire pic.

Last edited by JustaGamer; Jul 10, 2016 @ 10:28pm
ES 21 Jul 11, 2016 @ 4:08am 
Hey guys. I've been messing around with this program myself, however, like Raven my photoediting skills are subpar. In regards to your comment about the game auto-removing backgrounds, the picture I implemented in the game shows up with the background. So, Spartanlemur, if you could tell me how you removed the background that would be awesome. I'm gonna look more into it, (could be that particular image itself). Aside from that nice work from everyone. I'm gonna have to keep my eye on this discussion.
Last edited by ES 21; Jul 11, 2016 @ 4:38am
Spartanlemur Jul 11, 2016 @ 8:05am 
Originally posted by ES 21:
Hey guys. I've been messing around with this program myself, however, like Raven my photoediting skills are subpar. In regards to your comment about the game auto-removing backgrounds, the picture I implemented in the game shows up with the background. So, Spartanlemur, if you could tell me how you removed the background that would be awesome. I'm gonna look more into it, (could be that particular image itself). Aside from that nice work from everyone. I'm gonna have to keep my eye on this discussion.

I'll produce a more detailed guide later, and try to streamline the process, but the basic idea is to create an alpha channel using your preferred photoshop tool (I use GIMP), export as a PNG file, which you then open in Pixelformer (it's free) and save as a BMP ticking the alpha channels box.

Not all software can save BMPs with alpha channels. You need pixelformer.
ES 21 Jul 11, 2016 @ 11:32am 
Originally posted by Spartanlemur:
Originally posted by ES 21:
Hey guys. I've been messing around with this program myself, however, like Raven my photoediting skills are subpar. In regards to your comment about the game auto-removing backgrounds, the picture I implemented in the game shows up with the background. So, Spartanlemur, if you could tell me how you removed the background that would be awesome. I'm gonna look more into it, (could be that particular image itself). Aside from that nice work from everyone. I'm gonna have to keep my eye on this discussion.

I'll produce a more detailed guide later, and try to streamline the process, but the basic idea is to create an alpha channel using your preferred photoshop tool (I use GIMP), export as a PNG file, which you then open in Pixelformer (it's free) and save as a BMP ticking the alpha channels box.

Not all software can save BMPs with alpha channels. You need pixelformer.

Thanks for the info. I used the programs you mentioned and it worked. Thanks again for the tip.
JustaGamer Jul 11, 2016 @ 3:28pm 
Originally posted by ES 21:

Thanks for the info. I used the programs you mentioned and it worked. Thanks again for the tip.

You mean you manage to create a set of image from scratch and import them? If so can one of the you post a guide? I'm eager to get in it myself.
Spartanlemur Jul 11, 2016 @ 3:30pm 
Originally posted by Raven2015:
Originally posted by ES 21:

Thanks for the info. I used the programs you mentioned and it worked. Thanks again for the tip.

You mean you manage to create a set of image from scratch and import them? If so can one of the you post a guide? I'm eager to get in it myself.

I'm working on one now.
Spartanlemur Jul 11, 2016 @ 7:15pm 
OK, so here is my guide for creating image sets ready to import into ROTK 13 using the method wich Raven mentioned.

1. Pick an image. It will make your life a lot easier if you go with something with a distinct background, and less "flowy parts", but you can use any image you like if you're prepared to invest the time into it. Make sure the image is sufficiently large - for an idea of what to look for, check the "00000007" images exported from ROTK13 using the San13Pictool. You need an image that you would be satisfied with at this size (if you choose something too small, your character will appear smaller than others, or you will have to expand it, which will make it blurry). It's a matter of taste, so entirely up to you.

2. Download GIMP.

3. Launch GIMP and open your chosen image.

4. You're going to want to create a cut-out of your character using a layer mask, and you're going to want to do it in the ***aspect ratio*** "633x900", as this is what ROTK13 uses. You can do the whole image if you want, but it's unnecessary. DO NOT make it 633x900 pixels: it will need to be larger than this, as later you're going to have to cut out a 1024x1024 elbow-up image from it (see images from batch 7 for an example).

If you know how to do this, create your layer mask based cutout and skip to step 8.

5. So first of all, click "Windows > Dockable Dialogues > Tool Options" along the top to allow you to edit your selection. Now press "R" and drag a basic rectangle, before using the tool you just opened (if it was already open, check any windows which began open - it's called "Tool Options") to modify size to:

Left box: 633 Right box: 900

Click "Fixed (aspect ratio)" above to allow you to resize your rectangle to the correct size.

Now drag the corner of your rectangle and move it around until you have the selection you want.

If you mess this up, ctrl+z has quite a long memory in GIMP, and you can just press R and create a new rectangle to start the process again.

6. "Image > Crop to selection". This (minus the background) is how your image will appear in the game. If you don't like how it looks, undo, and repeat step 5.

7. Follow this guide to see how backgrounds are generally removed in GIMP:

https://www.youtube.com/watch?v=5pBNVLP3PQ0

Two step you need to do differently from the video:

- right click layer > delete top/transparent layer after cutting the black+white image as per the video

- don't do the background stuff at the end. Stop at the point where you have pasted your layer mask

This is basically what you are going to be doing. If your image has a complex background, you're going to have to manually trace along the edge of your cutout character, or carefully use the "fuzzy select tool" to select your character (shift click to select multiple areas) and then use the pencil/paint tool to fill with white (or do the reverse with black for the background). Your brush will not paint anything outside the selection. CTRL+A to select the whole image if you want to "reset" your selection. MAKE SURE that when you are painting the image white, you have the duplicate image selected in the right-hand panel (otherwise you will paint the main image).

The video says to turn the contrast up very high - this WILL NOT WORK if your background is similar to the main image. Fiddle around with the sliders to reach something that you think makes the cutout as distinct as possible from the background.

8. You now have your basic file. Most of the work has now been done. Save as a standard xcf file, as you'll want a backup in case something now goes horribly wrong.

9. We'll start with a "batch 7" image (the very large ones)". Create a 1024X1024 rectangle, fix the aspect ratio, and expand it to cover the part of the image you would like to use. Use the young Liu Bei portrait from Raven's guide as an example. If you want to see the background to help you with this, right-click on the layer in the tool panel, and check "disable layer mask". Make sure yo re-enable it once you are done.

10. Image > Crop to Selection. Image > Scale Image > 1024x1024 (it must be EXACTLY this size). Right click the layer in the tool panel again, and make sure "show layer mask" and "edit layer mask" are checked. Press "P" for the paintbrush tool, and in the brush panel, select something which fades at the edges. Use "]" to expand the size, select black as your colour, and click on the bottom left side of your image, hold shift, and then click on the bottom right side of your image. You may want to repeat this for the sides if any parts are cut off. Uncheck "show layer mask" and when you are happy with your profile, proceed to step 11.

11. File > Export As > Select by file type > BMP

***BREATHING IMAGES***

12. Open your "base.xcf" file (the basic cutout you created). Now click Layer > New Layer > 1024x1024 and transparent fill. Put this on the bottom.

13. Now make sure the image you want is in the aspect ratio 633:900, and then Image > Scale image to 633x900. Make sure "edit layer mask" is deselected. Press M and drag it into the top left corner so it meets it perfectly.

14. Image > Fit canvas to layers

15. Now, make sure that your cutout is the top layer (drag it to the top in the tool panel if you need to). Ensure "edit layer mask" is checked, then click

-Edit > Cut.
-Layer > Merge down.
-Add a layer mask to the base image, as per the video. You want it to be "black - full transparency" this time.
-CTRL+V
-Move the layer mask into the top left corner
-Anchor layer

16. Save as an xcf template. You now have your basic file from which you will create three sub-images which the game will use for breathing.

17. Download a programme called "Pixelformer", and use it to open up a set of three batch 6 images. Click view > alpha only to see how Koei has done them. The order is torso - waist - head. In GIMP, check "show layer mask", and "edit layer mask" and use the paintbrush tool as before to fade away the body parts you are not doing (face/torso/chest), and then when done, export each as a BMP file. Check them in Pixelformer to make sure they will cover the whole body.

Repeat this for each part, and you will now have breathing images done!

18. You should by now have batch 6 and 7 out the way. 8 and 10 are simple cut+paste jobs, while 9 requires the same method you used to get your breathing template.

19. When done with your set, follow Raven's guide to put them into the game.

If this guide has any errors, let me know and I'll update it.
Last edited by Spartanlemur; Jul 12, 2016 @ 10:17am
< >
Showing 31-45 of 51 comments
Per page: 1530 50

Date Posted: Jul 6, 2016 @ 11:06pm
Posts: 51