Hello & Welcome to our community. Is this your first visit? Register
  • News & Announcements
      As a counter measurement to Ad spam, newly registered users are required to create a thread in the Introduction Forum before allowing to be able to reply and create threads.
      Please allow some time for posts to be approved. We thank you for your patience on this matter.
Bookmark Thread
Page 1 of 25 12311 ... LastLast
Results 1 to 10 of 241
  1. #1
    Commander Laforet's Avatar
    Join Date
    Aug 2014
    Posts
    293
    Rep
    79
    Mentioned
    73 Post(s)

    [Guide]Mod Your Game Guide

    Why would I want to mod KanColle? Is it safe?


    • The simple answer is to keep this game interesting by allowing more customisation. As much as we love KanColle and the contributing artists, some of the artwork is not as good as the rest and there are no signs that the developers are planning to fix it anytime soon.Instead of relying on developers to come up with new content every now and then, players are given the options to change the apperance of their own game at will.
    • And you must admit it looks pretty cool.



    [+] Spoiler






    • Various implementations of this modding method works by inserting itself between the client-server traffic route and selectively intercept those requests for certain file types (*.swf, *.png and *.mp3 in the current version) and save a copy of the file to a local folder. When the same file is requested again, the local copy is preferentially used unless a newer version is available on server. Additional rules has been written so that when a mod file ( [FileName].hack.[Extension]) is present, it will be injected into the game client instead of the real response.
    • Technically, the file injection method is safe to use as both the client and the server are totally unaware of the interception. The same tools has been used for more than a year by the Chinese community without any issues reported. If a locally stored file ever becomes corrupted, it may cause errors to occur in game. Once the offending file is removed the game shall resume working. This can happen with unmodified games as well as browser cache do occasionally become unusable, therefore this should not raise alarms anywhere.
    • I have made a simple flow diagram to help illustrate its internal logic used by the KCV plugin I use. More documentation and the source code is available for review from my GitHub repo with all comments translated.






    Set up KancolleCacher

    [+] Spoiler

    • Copy KancolleCacher.dll to the plugins folder under your KCV installation
    • Right click on the file, choose 'Properties' from the context menu and then click 'Unblock' on the 'General' tab before clicking 'OK' to exit.
    • Launch KCV and clear cache before the game is loaded. This step is important as the browser wrapped inside KCV maintains its own cache and will not request it through our plugin unless forced to do so. Similarly, it is necessary to flush the browser cache after adding mods. This should not cause any noticeable delay in game loading speed as the files has already been downloaded to your computer.
    • Cache Manager can be found under the 'Tools' tab of KCV alongside other plugins. Feel free to play with the settings, but the defaults should work fine.
    • For each ship, all sprites and banners are packaged in a single .swf. Therefore as long as the particular ship has been displayed once in game under any context, the full set of sprites will be downloaded and saved to MyCache folder by default. If you wish to mod enemy ships (yes, this can be done), you will need to sortie to a node where the enemy ship can be found.




    • Ship names are obfuscated in a half-assed attempt to prevent fuzzing. It is, unsurprisingly, only a small annoyance as the startup API (api_start2) contains a full list of ships matched to file names. The file names generally stay the same between game updates, with new ships added gradually over time.
    • To parse this information, go to the Cache Manager tab and choose 'Generate Sprite File List'. A list will be saved as â'GraphList.txt' to the cache folder in your settings.
    • Open the list and search for the character card number or ship name in Japanese. Note that ships with multiple character card numbers will have multiple files.
    • The files themselves are located under /kcs/resources/swf/ships/




    Sprite file pack- Data structure



    • As far as we are concerned, the .swf file is merely a stack of images in the following structure




    • Banners are static icons of fixed size, however they are not actually easy to make from scratch because we don't have access to the fonts and background texture used by the developers. People have tried to make their own template to emulate the appearance, however they are still a major hassle to create. I will leave them out of this tutorial for simplicity's sake. That said, well-drawn banners can be absolutely amazing like the one shown at the beginning of this post.


    • That leaves us with the most important part: images number 17 and 19. They are the highest resolution sprites used almost everywhere in game. The maximum size that can be displayed without obvious problem appears to be an 800x800 pixel square. Technically it is possible to accommodate oversized (as well as undersized) images by editing the shapes and frames defined in the swf file; however this can get fairly complex may require using paid software. In this tutorial I will try to keep it simple and only use in situ image replacements.


    Basic Mod Creation Example
    (Obsolete, please refer to the automated tools above)


    [+] Spoiler

    • First, prepare renders of your new sprite with transparent background. Plenty of tutorials can be found online.




    • Try to use that have a good amount of contrast/sharpness and without unnatural borders. For example, the render shown below is great, but not really usable with a large chunk missing to the left.




    • Open ShipGraph.txt generated by the plugin and find the files names we need to modify. In this case it will be feyfhhruhjse.swf. Find it under /kcs/resources/swf/ships/ and make a copy of it before you start. If you have not yet remodeled her, then you need to modify the sprite pack for Littorio which is hkhkiqkleprp.swf.



    • It is very tempting to simply resize the render and drop it in. However this rarely comes out satisfactory as the game only displays a pre-defined portion of the sprite that is unique for each sprite. While the game client has the mechanism to adjust the alignment, the x,y-coordinates are stored in api_start2 and not modifiable using our method. Hence we need to align the sprites before they are loaded into the game.



    • A quick way to align the images is to copy the new sprite to a new layer above the stock one, adjust the size and location until the head and/or torso of two layers overlap. The result may not be perfect, but should serve as a good starting point.



    • Delete the stock sprite layer; save the file under a new name.
    • Replace image 17 in feyfhhruhjse.swf with our new sprite, save the new file as feyfhhruhjse.hack.swf and make sure it is saved under /kcs/resources/swf/ships/



    • Relaunch KCV and click the 'Clear Cache' button before the game is loaded. This action forces the browser wrapped inside KCV to download those files again so our mods can be injected.
    • Not spectacular, but not bad either. The main sprites shown at port will not appear as sharp as you might expect - this is a consequence of the poorly coded 'breathing' animation in the game client. Depends on the source image you may need extra sharpening to maintain the appearance.



    • Also, waist-up renders are best not to be used for making damaged sprite as the battle damage animation scrolls through the entire height of the image. Use only full-body sprites if you are put off by the unintentional amputation. But don't just give up yet, patching things up is also part of the fun.



    • Some attempts at making full-body collages. For me this is a long shot, but the more artistic types of you should be able to do a better job!




    Sound Modding


    • Sound files are stored under /kcs/sound/kc[shipname]/ for friendly ships, and /ksc/sound/kc9998/ for enemy ships.
    • [Shipname] is the same string used for sprites that can be found in GraphList.txt, while vID needs to be parsed from BattleMain.swf (More information to come soon)
    • To mod it, simply rename the new sound clip to [number].hack.mp3 under the respective folder. Here appears to be no limitations on the length of audio, however you might want to keep it brief anyway.



    Miscellaneous Files


    • Be very careful if you wish to push the boundaries and edit files outside /kcs/resources/! Whilst unlikely, corrupted scripts within these files may cause the game to send malformed API calls that could attract repercussions. Scene files in particular are known to contain bot-detection code and a high degree of caution is advised if you wish to modify them.
    • The fonts used for game interfaces are stored in /kcs/resources/swf/font.swf. It is not commonly done, however people have done it and it should be safe.
    • commonAssets.swf, icons.swf and itemicons.swf contains other sprites shown in game. These should be safe to mod as long as you keep to the size limits.
    • /kcs/resources/image/slotitem/ contains the icon for equipment icons and text as they appear in battle.


    Final Considerations



    • Please show some respect to the artists by not redistributing their work unless you have clear permissions to do so. I would also suggest against repackaging any of the stock images in sprite packs you intend to redistribute as they are owned by DMM/KDKW. In any case the stock files are readily available for download from the game server anyway.
    • This tutorial is provided as is without any guarantees or liabilities admitted. I cannot be held responsible for any damage done to your property and data as a result of using this guide. Images used in this tutorial are covered under the fair use provisions of DMCA and they remain the intellectual property of their respective authors.



    Sources, references and acknowledgements

    @Gabracr07 for creating KancolleViewer
    @veigr for documenting the API and resource file structure
    df32 for creating the KancolleCacher project
    Julius128 for awesome Iku/Hestia art, 243798061 for making one of the best sprite packs
    @Nagifuma and @AkasaAi for Littorio art pieces.



  2. #2
    Admiral Yamako's Avatar
    Join Date
    Oct 2014
    IGN
    鎖那の花
    Server
    幌筵泊地
    Posts
    4,288
    Rep
    406
    Mentioned
    39 Post(s)

    Re: [Guide]Mod Your Game Guide

    So much effort just for an image swap. :V


    "Bolt actions speak louder than words."

  3. #3
    Admiral Zylphe's Avatar
    Join Date
    Aug 2014
    Server
    Tawi-Tawi
    Posts
    4,947
    Rep
    99
    Mentioned
    156 Post(s)

    Re: [Guide]Mod Your Game Guide

    Tested 2 image swaps

    [+] Spoiler

    destroyer hime (kantai collection) drawn by miruto netsuki - Danbooru


    destroyer hime (kantai collection) drawn by nagian - Danbooru


    Over-sharpened the second one through photoshop, I can confirm with the idea that over-sharpening the original image seems to make it look better when put into the game

    Just gonna use it to mute bosses for now, cards of the game's original style can be generated but I don't know any site which can generate sortie/refuel banners. Re-making those banners in a completely different design is viable, though.

    If the new image for 17/19 is wider than the old one, it will be cropped on the right during battle when actually placed in game, even if the image is less than 800x800. Gotta define the shape or whatever for that.



    avatarsource

    sometimes i stream using hitbox, sometimes twitch

  4. #4
    Shinmai Shosa (新米少佐) ReZero's Avatar
    Join Date
    Apr 2014
    Posts
    14
    Rep
    0
    Mentioned
    0 Post(s)

    Re: [Guide]Mod Your Game Guide

    I must admit this looks pretty cool.

    And now I can tell my friend who wanted AbyssalColle that it, in theory, is a thing.

    PS. I had some trouble getting the ships' .swf files to appear in the resource folder, you might want to add that one good way to get them there is to inspect the "library" in the game (the one which shows you all the ships and equipment you have as well as their descriptions and/or longer introductions), unless you know a better way or if other people don't have the same problem I did.

    PPS. yes



  5. #5
    Admiral sutenai's Avatar
    Join Date
    Nov 2014
    Posts
    4,942
    Rep
    48
    Mentioned
    10 Post(s)

    Re: [Guide]Mod Your Game Guide

    Tempted to try my hand at audio modding to replace game Nagato with anime Nagato, but I don't think I want to subject myself to watching the anime again to pick out good clips



  6. #6
    Admiral Zylphe's Avatar
    Join Date
    Aug 2014
    Server
    Tawi-Tawi
    Posts
    4,947
    Rep
    99
    Mentioned
    156 Post(s)

    Re: [Guide]Mod Your Game Guide


    Huh this looks surprisingly good. Probably helps that it's an official art style. Source image yuudachi (kantai collection) drawn by kujou ichiso - Danbooru



    -dl url snip-

    Replaces undamaged Yuudachi Kai Ni in all places including the dex. The refuel banner was done by literally slapping the new image on top of the old; it managed to cover up most of the old image. I didn't try it on the battle banner, and the card generator doesn't generate Kai Nis so it would look weird if I replaced it.

    Also, fun fact, the remodel banner can not be seen anywhere in the game since Yuudachi can't remodel further. I don't know why they even added it.



    avatarsource

    sometimes i stream using hitbox, sometimes twitch

  7. #7
    Shinmai Shosa (新米少佐) ReZero's Avatar
    Join Date
    Apr 2014
    Posts
    14
    Rep
    0
    Mentioned
    0 Post(s)

    Re: [Guide]Mod Your Game Guide

    Well, off to RE-inforce my equipment... (n-no pun intended)



    and yes, I made it animated, tho it's kinda hard to show here




  8. #8
    Captain
    Join Date
    Oct 2014
    Posts
    462
    Rep
    -16
    Mentioned
    107 Post(s)

    Re: [Guide]Mod Your Game Guide

    Thank for nice guide. Can you share your work (images) too ^^


    Never forget 28/11/2014, RIP my girls:
    Kumano Kai 56.
    Kiso Kai Ni 70.
    Yuudachi Kai Ni 75.
    Fubuki Kai 80.

  9. #9
    Shinmai Shosa (新米少佐) PinkGuy's Avatar
    Join Date
    Mar 2015
    Posts
    63
    Rep
    1
    Mentioned
    0 Post(s)

    Re: [Guide]Mod Your Game Guide

    If only, I have good (or maybe even decent) art skills to mod the art. (I want my WWE x Kancolle crossovers)

    Unless, someone doesn't mind about doing the in-game art for us.


    [SIGPIC][/SIGPIC]
    TIME TO PLAY THE GAME!~

  10. #10
    Captain Yamato kai A150 ausf B's Avatar
    Join Date
    May 2014
    IGN
    エリート大和
    Server
    Hitokappu Bay Port
    Posts
    694
    Rep
    17
    Mentioned
    17 Post(s)

    Re: [Guide]Mod Your Game Guide

    Planning to do this for Yamato, (yes she is retroffited!) thanks for the guide! (+1)


    Yamato-kai "Yamato A-150-2000", forever my heroine



 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT. The time now is 05:57 AM.
Powered by vBulletin® Version 4.2.2
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.
Resources saved on this page: MySQL 6.67%
vBulletin Optimisation provided by vB Optimise v2.6.3 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Thread / Post Bookmarks provided by Thread / Post Bookmarking v1.1.1pl1 (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd. Runs best on HiVelocity Hosting.
Live Threads provided by AJAX Threads (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBulletin Skin By: PurevB.com