HentHighSchool Development Forum

Game Development => Brothel King => Topic started by: Ch12 on May 27, 2022, 03:55 PM

Title: [Resources] PictureNamer (Tagging Tool)
Post by: Ch12 on May 27, 2022, 03:55 PM
Description:
The PictureNamer Tool makes it easier to tag files properly. Like BK, it is based on Renpy. It's functions include:

Current Version: 2.8.14

Installation:

1) Download from MEGA (https://mega.nz/file/1fFWxKTL#5flUKm1fiR4uME_sNzOtFdWdMTAS3sAcphFSTyXhcPA)
2) Unzip (Get 7zip (https://www.7-zip.org/) if you cannot open the file)
3) Download the latest patch (https://mega.nz/file/JaVUAB6A#d0aIFmJ0SkpWusdc1zVBssUMiTsODF7PE3QzxH1GzA0) and unzip it to the game folder.
3) Go to the game/images folder, create a new folder there (should be named like the girl), put your images inside
4) Start Picture_namer_for_BK

Credits:
The tool was originally written by Goldo.
The BK.ini generator was written by neronero and RudolfU

Version History
2.8.14: (2022-06-10)
Fix for BK.ini Generator

2.8.13: (2022-05-29)
Integrated the BK.ini Generator by neronero & RudolfU

2.8.12: (2022-05-27)
Added "fight" to sorting_dict (so that it has a higher priority in the filename)
Added "Copy/Paste Tags"
Registered Keypad keys (Left, Right, Delete)
Keeping separate RenameLog per Girl
Bugfix: No longer showing checkered background for videos

2.8.11: (2021-04-20)
Updated tag definition for "public"
Removed auto-add of "public" from "nature", "beach", "town"
Made the location tags visible all the time (when Tag Filter = ON)
New Settings Variable BK_AUTOADDS (To help keep the rating calculation in line)
Bugfix: Exception when switching from Browse Mode to Edit Mode with no selected image
Bugfix: Exception when commiting while a video is playing

2.8.10: (2021-03-21)
"lesbian" tag moved to main tags
"freq_highest" removed
"nun" integrated into "ceremony"
Updated tag descriptions for "lesbian", "sex", "anal"
Added Renaming Log
More efficient use of screen space
Alligned Rating calculation with BK 0.20 (Score Ceiling 10/5, Lesbian counts as Bisexual, Fixation Cunnilingus)
VIDEOFORMATS: ".mp4" removed, ".mpg" added

Hotfix 2.8.9: (2020-11-29)
Switched Quality Tags to Frequency

2.8.9: (2020-11-19)
Showing custom background for transparent images. Standard is checkered, you can use your own if you edit UI/img_bg.png
Added description that "profile" and "portrait" should be solo pics
Removed "profile" from the description of "friend"

2.8.8: (2020-10-07)
New tags: xq, hq, lq
Image prediction
Display image resolution

2.8.7: (2020-09-13)
Distinct Numbering over different extensions
Images in subfolders are sorted towards the end in the filelist

2.8.6: (2020-09-06)
Video Support : .webm, .mp4, .mkv, .avi
Slightly faster renaming of _UNTAGGED files

2.8.5: (2020-08-02)
Support for subdirectories
Fixed the Custom Search bug
Improved the definition of the 'lesbian' tag
Cycle All Images

2.8.4: (2020-07-18)
New tag definitions for: bisexual, group, lesbian, machine, toy, sex, anal, libido, obedience, constitution, sensitivity, naked, strip

2.8.3: (2020-06-28)
New tags: todo, party, study, tempt, friend
Bugfix: cumshot autoadd

2.8.2: (2020-06-05)
Improved tag recognition
Bugfixes
Tags upgraded to central entity
Girldata CSV

2.8.1: (2020-06-01)
Inital Release
TagSets Core and Extended
[close]
Title: Re: PictureNamer
Post by: Ch12 on May 27, 2022, 03:55 PM
Reserved
Title: Re: PictureNamer
Post by: Ch12 on May 27, 2022, 03:55 PM
Reserved
Title: Re: PictureNamer
Post by: Ch12 on May 27, 2022, 04:01 PM
Hey everyone!

Seems like the forum is back up. I thought it was gone for good...

To celebrate the unexpected revival, I'm releasing a new version of the Picture Namer. New features:

Enjoy!
Title: Re: PictureNamer
Post by: neronero on May 27, 2022, 04:09 PM
Welcome back! ;D

With some help from a user called RudolfU on F95zone I created an addon (https://www.mediafire.com/file/6u941vmk4onua17/BKini_generator_for_Tagging_Tool.zip/file) (for the previous version) which added a menu option to generate a BK.ini file by filling out a series of questions. Perhaps it could be incorporated into a new version?
Title: Re: PictureNamer (Tagging Tool)
Post by: Ch12 on May 27, 2022, 04:14 PM
It's good to be back. :)

The addon sounds interesting. I'll take a look at it and try to isolate the new codeparts.
Title: Re: PictureNamer (Tagging Tool)
Post by: Leortha on May 27, 2022, 08:00 PM
Quote from: Ch12 on May 27, 2022, 04:14 PMIt's good to be back. :)

The addon sounds interesting. I'll take a look at it and try to isolate the new codeparts.

Please do.   The addon is useful enough that I hesitate to replace links to the version with it with your version without it.   A combo version with the INI tool and your changes would be very, very nice.
Title: Re: PictureNamer (Tagging Tool)
Post by: Ch12 on May 29, 2022, 12:55 PM
And here's the promised patch, adding the BK.ini generator.

I moved most of the code to a new file named 'ini_generator.rpy'. Encapsulating everything in one file should hopefully make it easier to integrate future changes, and should also improve readability of the sourcecode.

Download Link can be found in the first post of the topic.
Title: Re: [Resources] PictureNamer (Tagging Tool)
Post by: Leortha on May 29, 2022, 02:26 PM
I've updated my "Girl pack resource" thread to point to the top of this thread for the rename tool instead of trying to maintain my own copies of links there.   Hopefully that means that any future updates to the tool, updated at the start of this thread, will not require updates to my thread.

I'll note that I have made a backup copy of the current version of the tool (2.8.13) on my mega.   It's mostly there in case something happens to Ch12's links.

backup link: https://mega.nz/folder/MFhHwDbb#ra0mTdSK50cqrwOXPJrGqQ
Title: Re: [Resources] PictureNamer (Tagging Tool)
Post by: neronero on Jun 05, 2022, 11:22 PM
After tormenting Jman for years by hiding bugs in Bonanza, I've now also managed to sneak a bug into the tagging tool.  :-[  Although I'm not 100% sure if this should be fixed on the Tagging Tool side or in BK.

Quote from: Leortha on Jun 05, 2022, 06:55 PMOn the above issue, analysis on F95 continued.  From Araminth, and confirmed by  cosmonight19:


---------

So I've noticed this when using the BK.ini generating tool, my packs were generating with random names and I'm not sure why but a fix I found was simply to add a space between the " and the ; in the ini so instead of "Karin"; and "Kakudate"; it's "Karin" ; and "Kakudate" ; (and also inverted_names = False ; since idk which part fixed it)

-----------
 
Title: Re: [Resources] PictureNamer (Tagging Tool)
Post by: DougTheC on Jun 06, 2022, 01:50 AM
Quote from: neronero on Jun 05, 2022, 11:22 PMAfter tormenting Jman for years by hiding bugs in Bonanza, I've now also managed to sneak a bug into the tagging tool.  :-[  Although I'm not 100% sure if this should be fixed on the Tagging Tool side or in BK.

Quote from: Leortha on Jun 05, 2022, 06:55 PMOn the above issue, analysis on F95 continued.  From Araminth, and confirmed by  cosmonight19:


---------

So I've noticed this when using the BK.ini generating tool, my packs were generating with random names and I'm not sure why but a fix I found was simply to add a space between the " and the ; in the ini so instead of "Karin"; and "Kakudate"; it's "Karin" ; and "Kakudate" ; (and also inverted_names = False ; since idk which part fixed it)

-----------
 

I'd start with fixing _BK.ini generation in tagging tool so it always uses
; (space-semicolon) to start same-line comments, and not just semicolon.

You probably use ## to start full-line comments properly.

Goldo seems to use a third-party parser to scan _BK.ini files, so might be difficult to change there. Could use a documentation line in sample _BK.ini for (space-semicolon) same-line comment.
Title: Re: [Resources] PictureNamer (Tagging Tool)
Post by: Ch12 on Jun 06, 2022, 03:48 AM
I did a quick check, as far as I can tell, the problem exists for these entries:

Could you guys check and confirm?
Title: Re: [Resources] PictureNamer (Tagging Tool)
Post by: neronero on Jun 06, 2022, 06:46 AM
Quote from: Ch12 on Jun 06, 2022, 03:48 AMI did a quick check, as far as I can tell, the problem exists for these entries:
  • first_name
  • last_name
  • inverted_name
  • always
  • always_fixations

Could you guys check and confirm?
Confirmed. Also the comment at the beginning of the file:
## Same line comments must be added using a semi-colon sign (;) to
## Same line comments must be added using a space and a semi-colon sign ( ;)
Title: Re: [Resources] PictureNamer (Tagging Tool)
Post by: Ch12 on Jun 10, 2022, 03:11 AM
Took me a bit. The new patch is available for download, fixing the comment-bug in the ini_generator.
Title: Re: [Resources] PictureNamer (Tagging Tool)
Post by: Leortha on Jun 10, 2022, 03:24 AM
Could you please update the version number in the OP.
Title: Re: [Resources] PictureNamer (Tagging Tool)
Post by: neronero on Jul 15, 2022, 03:38 PM
A user on F95zone uses the tagging tool on mobile, but is running into a channel problem when editing videos

Quote from: nahitsnotimportant, post: 8545040, member: 785391Tagging tool works on mobile but you can't edit videos, traceback says issue is with config hw_video. Any helpers? :HideThePain:

traceback
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/script.rpy", line 1714, in script call
  File "game/script.rpy", line 1151, in script
  File "game/script.rpy", line 1151, in <module>
  File "game/screens.rpy", line 612, in execute
  File "game/screens.rpy", line 612, in execute
  File "game/screens.rpy", line 618, in execute
  File "game/screens.rpy", line 623, in execute
  File "game/screens.rpy", line 624, in execute
  File "game/script.rpy", line 485, in get_std_displayable
Exception: Movie(channel='movie') doesn't work on mobile when config.hw_video is true. (Use a different channel argument.)

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "game/script.rpy", line 1714, in script call
  File "game/script.rpy", line 1151, in script
  File "renpy/ast.py", line 914, in execute
  File "renpy/python.py", line 2028, in py_exec_bytecode
  File "game/script.rpy", line 1151, in <module>
  File "renpy/ui.py", line 297, in interact
  File "renpy/display/core.py", line 2702, in interact
  File "renpy/display/core.py", line 3094, in interact_core
  File "renpy/display/core.py", line 541, in visit_all
  File "renpy/display/core.py", line 541, in visit_all
  File "renpy/display/core.py", line 541, in visit_all
  File "renpy/display/screen.py", line 430, in visit_all
  File "renpy/display/core.py", line 3094, in <lambda>
  File "renpy/display/screen.py", line 440, in per_interact
  File "renpy/display/screen.py", line 625, in update
  File "game/screens.rpy", line 612, in execute
  File "game/screens.rpy", line 612, in execute
  File "game/screens.rpy", line 618, in execute
  File "game/screens.rpy", line 623, in execute
  File "game/screens.rpy", line 624, in execute
  File "<screen language>", line 624, in <module>
  File "game/script.rpy", line 485, in get_std_displayable
  File "renpy/display/video.py", line 378, in __init__
Exception: Movie(channel='movie') doesn't work on mobile when config.hw_video is true. (Use a different channel argument.)
[close]
Title: Re: [Resources] PictureNamer (Tagging Tool)
Post by: Ch12 on Aug 01, 2022, 05:41 AM
I did try looking for a quick fix, but even Dr. Google didn't know what to make of this.

Also, I cannot even imagine how you are going to meaningfully push the tag buttons on a small phone screen.

Last but not least, to test this properly you'd have to buy different sets of phones, which is an investment I do not want to make for what is essentially a hobby.

Sorry, but I'm not going to open that can of worms. From the bug description, I cannot even tell whether it is about IOS or Android. (Probably Android?)

Still, if anyone can resolve this, I'll gladly include the fix in the next patch. (as long as it has no negative impact on the PC version)
Title: Re: [Resources] PictureNamer (Tagging Tool)
Post by: neronero on Jul 31, 2023, 02:09 PM
Here's an updated ini_generator.rpy file (https://www.mediafire.com/file/35na6kqu7hovnjf/ini_generator.rpy/file) with some modifications for BK 0.3 (place it in the \game\ folder of your Tagger's directory)

Note that this is still subject to changes as BK 0.3's testing & development continues.