FANDOM

A FANDOM user
  Loading editor
  • Thought I'd ask someone else aswell:

    http://flowerknight.wikia.com/wiki/Thread:7862

    Perfect example: http://flowerknight.wikia.com/wiki/Candle_Bark

    Plus, it's literally in the edit options "NutakuName".

    I don't get what's wrong. It is written like that on Nutaku: http://harem-battle.club/wiki/Flower-Knight-Girl/FKG:Sweetpea

    So, this revision was completely unnecessary.

      Loading editor
    • A FANDOM user
        Loading editor
  • Def up abilities seem to always come with the damage reduction part as well.

    This is inconvenient on some pages as those knight do not have that attacked to their def_up abilities

      Loading editor
    • A FANDOM user
        Loading editor
  • I've gotten a bit fed up with all these character data listed in the same formats without any means to consolidate them, so here I made a python script to do exactly that, by taking the advantage of the template being the first thing in those pages.

    #!/usr/bin/python3
    # coding: utf-8
    import os, sys, re, urllib.request
    
    alldata = "fkdata={\"flowerknight\":["				#prepended JSON text format
    CharaList = ["Salvia", "White_Pansy", "Yellow_Pansy", "Purple_Pansy", "Camellia", "Black_Baccara", "Royal_Princess", "Novalis", "Alstroemeria", "Oncidium", "Cymbidium", "Dendrobium", "Cattleya", "Hibiscus", "Mountain_Hydrangea", "Hydrangea", "Gladiolus", "Japanese_Bellflower", "Sunflower", "Red_Ginger", "Water_Lily", "Red_Water_Lily", "Bistort", "Calystagia", "Moonflower", "Morning_Glory", "Casablanca", "Golden-rayed_Lily", "Rosy_Lily", "Field_Mustard", "African_Violet", "Marguerite", "Cactus", "Lily_of_the_Valley", "Violet", "Strawberry", "Japanese_Apricot", "Rose", "Sakura", "Thunberg_Spirea", "Amaryllis", "Hinoki_Cypress", "Chinese_Milk_Vetch", "Yulan", "Moth_Orchid", "Cosmos", "Marigold", "Cyclamen", "Mint", "Lavender", "Blue_Lotus", "Sasanqua", "Burnet", "Gomphrena_Globosa", "White_Clover", "Fragrant_Olive", "Jasmine", "Toad_Lily", "Heliconia", "Edelweiss", "Dandelion", "Cyani_Cornflower", "Cary_Ophyllus", "Snowflake", "Sweet_Pea", "Lilac", "Rice_Lily", "Red_Tulip", "Yellow_Tulip", "Purple_Tulip", "White_Tulip", "Cepha_Lanthera", "Leschenaultia", "Star_Lily", "Tachibana", "Peach", "Peach_Blossom", "Ifafa_Lily", "Anemone", "Gerbera", "Chocolate_Cosmos", "Strawberry_Candle", "Glory_of_the_Sun", "Dogwood", "Iris", "Anthurium", "Daisy", "Green_Bristlegrass", "German_Iris", "Geranium", "Kerria", "Cherry", "Hypericum", "Lupin", "Southern_Cross", "Cherry_Sage", "Queen_of_the_Night", "Japanese_Water_Iris", "Pink", "Canna", "Ionocidium", "Wood_Sorrel", "Dahlia", "Nerine", "Flamingo_Plant", "Cape_Jasmine", "Calla", "Dipladenia", "Royal_Water_Lily", "Evening_Primrose", "Night_Phlox", "Marvel_of_Peru", "Red_Spider_Lily", "Epidendrum", "Snapdragon", "Monotropastrum_Humile", "Camellia_(Bride_of_Fos)", "Oncidium_(Bride_of_Fos)", "Cactus_(Bride_of_Fos)", "Black_Locust", "Night_Blooming_Cereus", "Japanese_Silver_Grass", "Hare's_Tail", "Lunaria", "Nasturtium", "Laurentia", "Helenium", "Blanket_Flower", "Eucalyptus", "Ginkgo", "Maple", "Lily_of_the_Valley_Tree", "Agave", "Apple_of_Sodom", "Lantana", "Summer_Squash", "Japanese_Gentian", "Star_Cluster", "Echinacea", "Viola", "Fatsia", "Apple", "Ivy", "Mistletoe", "Sandersonia", "Fir_Tree", "Christmas_Rose", "Poinsettia", "Holly", "Chloranthus", "Heavenly_Bamboo", "Ornamental_Kale", "Coral_Bush", "Pine_Tree", "Tree_Peony", "Lily", "Herbaceous_Peony", "Amur_Adonis", "Acacia", "Heliotrope", "Poppy", "Rain_Lily", "Veronica", "Balloon_Vine", "Wax_Vine", "Buttercup", "Tall_Stewartia", "Burning_Bush", "Himalayan_Creeping_Saxifrage", "Primula", "Wintersweet", "Zephyranthes", "Aconite", "Rosemary", "Mimosa", "Cineraria", "Hop", "Heather", "Apricot", "Delphinium", "Japanese_Mugwort", "Panama_Queen", "Japanese_Rowan", "Aster", "Snake_Gourd", "Saffron", "Firecracker_Plant", "Aloe", "Liriope", "Snow_Drop", "Satsuki", "Cockspur_Coral_Tree", "Tatarian_Aster", "Texas_Bluebell", "Evergreen_Candytuft", "Belladonna", "Forget-Me-Not", "Green_Bell", "Alium", "Hollyhock", "Alyssum", "Lady's_Sorrel", "Creeping_Smartweed", "Hebranthus", "Fuchsia", "Cuphea", "Coral_Bush_(June_Bride)", "Peach_Blossom_(June_Bride)", "Royal_Water_Lily_(June_Bride)", "Treasure_Flower", "German_Iris_(Tanabata)", "Wood_Sorrel_(Tanabata)", "Tree_of_A_Thousand_Star", "Lesser_Celandine", "Devil's_Claw", "Cattleya_(Swimsuit)", "Chocolate_Cosmos_(Swimsuit)", "Epidendrum_(Swimsuit)", "Plumeria", "Water_Hyacinth", "Barrenwort", "Scotch_Broom", "Bolivian_Sunset", "Sakura_(Apron)", "Dogwood_(Yukata)", "Japanese_Apricot_(Yukata)", "Viola_(Yukata)", "Clematis", "Kinutasou", "Chinese_Lantern", "Skunk_Vine", "Ghost_Weed", "Trailing_Abutilon", "Nightmare_(Katakuri)", "Alstroemeria_(Gratitude_Towards_The_Future)", "Anemone_(World's_Flower_Shrine_Maiden)", "Pink_(World's_Flower_Shrine_Maiden)", "Red_Spider_Lily_(World's_Flower_Shrine_Maiden)", "Amazon_Lily", "Thoroughwort", "Pussy_Ears", "Bush_Clover", "Asiatic_Dayflower", "Pouch_Flower", "Acanthus", "Dusty_Miller", "Bird_of_Paradise", "Lampranthus"]	#put all the flower knights in this list
    
    #download the raw wikia source code, convert them into JSON list, append them to aggregrate data, repeat for all characters.
    for x in CharaList:
    	linkin = "http://flowerknight.wikia.com/wiki/"+x+"?action=raw"
    	f = urllib.request.urlopen(linkin)
    	filedata = f.read().decode("utf-8")
    	f.close()
    	print("Loading " + x + "...")
    	newdata = filedata.replace("\"","\\\"").replace(" = ","\": \"").replace("\n|","\",\n\"")
    	newdata = newdata.replace("{{CharacterPage3\",","{").replace("{{CharacterPage\",","{").replace("\n}}","\"\n}, <rmvall>")
    	newdata = newdata.partition("<rmvall>")[0]#.partition("#REDIRECT")[0]  
    	alldata = alldata+newdata;
    
    data = alldata[:-2]+"]\n}";							#remove the comma from aggregrate data
    f = open('flowerknightp.json','w',encoding='UTF8')	#write to flowerknight.json
    f.write(data)
    f.close()
    


    It assumes that all the character page templates have proper line breaks. If that's not the case, the script below should correct the text. I'm not quite sure how to detect the texts without the line breaks just yet.

    #!/usr/bin/python3
    # coding: utf-8
    import os, sys, urllib.request
    
    #Request input the specific flower knight
    x = input("Select character to load:")
    #Open and download the wikipage source
    linkin = "http://flowerknight.wikia.com/wiki/"+x+"?action=raw"
    f = urllib.request.urlopen(linkin)
    filedata = f.read().decode("utf-8")
    f.close()
    
    #Replace the text with a series of text replacement.
    newdata = filedata.replace("|","\n|").replace("\n|thumb\n|","|thumb|").replace("\n|center]]","|center]]").replace("}}","\n}}<del>").partition("<del>")[0]
    
    #Open and write to the target file.
    fileout = x + "-template.txt"
    f = open(fileout,'w',encoding='UTF8')
    f.write(newdata)
    f.close()
    
      Loading editor
    • A FANDOM user
        Loading editor
  • I know I've made the Knightquote template, but even I got a little block in there.

    I got a little problem with converting this text particular from Japanese Wiki:

    |会話①&br;(好感度0~29%)|いやぁ~、あたしがフォスの花嫁なんてほんっとビックリ!こ~んな可愛い服まで着せてくれるなんてね!&br;遊びまわったら汚れるかもっていうのが、ちょっとだけ心配かな?|

    to this:

    | 会話①(好感度0~29%) = いやぁ~、あたしがフォスの花嫁なんてほんっとビックリ!こ~んな可愛い服まで着せてくれるなんてね!<br/>遊びまわったら汚れるかもっていうのが、ちょっとだけ心配かな?
    The pipe symbol has to altered in 3 different ways, depending on their locations. Also, the break code in the 会話 variable is omitted, but are converted to HTML tag elsewhere.
      Loading editor
    • Where is this conversion taking place? Is the Knightquote template doing that or did someone make a script that extracts quotes?

        Loading editor
    • CodeHK wrote:
      Where is this conversion taking place? Is the Knightquote template doing that or did someone make a script that extracts quotes?
      Previously I have to retrieve and convert it by hand, using Notepad++ in a series of fairly complex "find and replace" procedure. It's untenable for me to do this for hundreds of flower knights out there, so here I am.
        Loading editor
    • Here's a list of the replacement batch I make:

      "会話①&br;" --> "会話①"
      "会話②&br;" --> "会話②"
      "会話③&br;" --> "会話③"
      "|" --> " = "
      " = \r\n = " --> "\r\n|"
      "&br;" --> "<br>"
      
        Loading editor
    • A FANDOM user
        Loading editor
  • Hi Code. So I've checked the new promo on the gatcha section and... I'm kinda confused (GT confused me even more). Do you know if we can get a ticket from it or the rainbow unit that they give us is completely random?. 

      Loading editor
    • You'll get a 6* that you do not already own along with a bonus 5* equipment flower. If you already own all 6* girls, you'll get a random 6* girl.

      Edit: I should clarify that you don't get a ticket of any sort.

        Loading editor
    • I see, so in my case that should be a random one since I don't own any 6*. I guess I'll wait for a promo ticket then because I have an awful luck.

      Anyway, thank you Code.

        Loading editor
    • A FANDOM user
        Loading editor
  • Hi again Code. I forgot to tell you that I managed to extract the text from the bin after installing py 2. Now I know that the extract line py is only for text but I was wondering if your updated script can be used on Har files.

    Edit: So... I tested what it looks like to be a shorter version of DefinitelyDrunk's script on Py 3 (written by him) and I got it to work. Although it gave me a "xname.bin.decompressed" file but since I knew it was an image I rename it "xname.png" and got the proper image. I work only on bins tho.

    #!/usr/bin/python3
    import glob, sys, zlib
    def main():
     files = glob.glob('./*.bin') # puts filenames for  '.bin' files in the current directory in an  array
     # loop through array elements and decompress
     for fn in files:
       s1 = open(fn, 'rb').read()
       s2 = zlib.decompress(s1)
       f = open(fn + '.decompressed', 'wb')
       f.write(s2)
       f.close()
    if __name__ == '__main__':
     main()
    

      Loading editor
    • The simple script written there is for all types of HAR content, but the bigger script he put in his blog was intended to filter out the junk. My edited variant had improvements on it such as looking for the storyline script. The script we had a conversation about for the past few days was entirely different; it was one I made specifically for formatting the storyline of the game into a wikitable so that it could be quickly copy-pasted into the Wiki.

        Loading editor
    • Yeah I noticed that when I looked the code. The odd part is that I can't make any of those scripts to work but on the other hand I can know extract text and images so... Thank you so much shishou!.

      Another thing. Both Nazuna and the SDs are compressed in other types of format. (Looks like Nzn's json in the giftbox and shop menus). Is there a way to get those assets as well?

        Loading editor
    • The SDs are probably a lost cause because there's a whole ton of data related to them when they get downloaded. It's not a case of "download the PNG and be done with it." They appear to be, not surprisingly, compresseed Flash objects. I have no idea how to read that, but chances are the only reader for that in existence is the game itself. It's an in-house thing.

      As for Nazuna, I suspect that she's embedded in the game object itself as opposed to be downloaded on the fly like the other girls. Hence, she won't show up in the network traffic and our scripts won't ever see her. I've tried downloading her during maintenence times, but even then she would not show up even though the Flash object we see is basically just her and some text.

      I did try basically "unlocking" the script we use to mass download assets so that itm wouldn't discriminate, but it didn't actually give me anything useful.

        Loading editor
    • Wait a sec, I think I have something...

      Made it. I'm pretty sure there's no full sprite Nzn aside the original illust but this size will be enough.
      WDN
        Loading editor
    • A FANDOM user
        Loading editor
  • Hi code.

    I got your script and what it looks like the dialogue from Raseria's. The problem is that... I don't know how to use python or rather is usage so I tried to toss the bin inside the py, the cmd popped up for a fraction of a second and I got a txt but that file has nothing in it. So am... mind to teach me the usage?. Oh and I used Python 3.5.

      Loading editor
    • View all 10 replies
    • Oh, that's a Python 3 error. Sorry, I haven't tested my script in Python 3, although now I know that it's broken in Python 3. :|

      For now, you'll need to run it in Python 2.

        Loading editor
    • No prob. I'll give it a try tomorrow and let you know if I made progress.

        Loading editor
    • A FANDOM user
        Loading editor
  • Hi, welcome to Flower Knight Girl Wikia! Thanks for your edit to the File:Daily1.jpg page.

    Please leave me a message if I can help with anything!

      Loading editor
    • A FANDOM user
        Loading editor
Give Kudos to this message
You've given this message Kudos!
See who gave Kudos to this message

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.