Pink Petal Games

PyTFall => PyTFall: Game design => Topic started by: mcmanus82 on April 03, 2014, 06:46:34 AM

Title: <-- Archived --> Image tagger for PyTFall (new)
Post by: mcmanus82 on April 03, 2014, 06:46:34 AM
Xela: While this was an excellent design, we went with file names for beta release.

This is the first second release version of the new image tagger, specifically designed for PyTFall.

(http://s8.postimg.org/tcg5pgmt1/Screen3.jpg)(http://s12.postimg.org/5ctyh0wsd/Screen4.jpg)

Current version 0.2(2014.04.12)
Current dynamic tags: 167


Current features:
Planned features:Download in attachment, If you find any issues or have feedback please report it here.

Adding or remove new tags/checkboxes:

Checkboxes.xml contains all the checkboxes visible on the UI and their related tag string, home panel, order position on the panel, and that the checkbox has extra spacing above it.

One checkbox data from the xml:

  <NewCheckBox>  - Start tag for a single checkbox.
    <OnPanel>PanelClothing</OnPanel>  - Which panel the checkbox is located on, UI control name, not label.
    <NumberOnP>1</NumberOnP>  - Determines the order of the cbs on the panel.
    <AboveSpacing>False</AboveSpacing> - Determines if there is extra spacing above the cb, used for visual group.
    <ID>1</ID> - Used to identify checkboxes and pair them with a tag. SRC zip contains tags_sorted.txt with the ID for each cb, when adding a new cb, find the highest ID and add(currently 167) 1 to it to get the next ID to use.
    <TagString>armor</TagString> - The tag exactly as it is written in tags.json files.
    <CBLabel>Armor</CBLabel> - Label for the checkbox.
  </NewCheckBox>  - End tag for a single checkbox.

Title: Re: Image tagger for PyTFall (new)
Post by: DarkTl on April 03, 2014, 09:37:45 AM
Very cool, thanks a lot! Works flawlessly so far.

A couple of suggestions.
- The tagger could remember the last opened folder. It is not necessarily, but on many occasions will help to select the folder you need much faster when you tag several girls in a row.
- Maybe screen resolution. I don't need it, the tagger works perfectly for me as it is, but I cannot speak for others.


Also, if I'm not mistaken, right now the game doesn't use the path in tags jsons, it simply looks for them in girls folders. So it's not a problem, as long the tagger saved tags jsons in the girl's folder.
Title: Re: Image tagger for PyTFall (new)
Post by: Xela on April 03, 2014, 10:36:13 AM
71 kb? Freaking insane... What language is it coded  in?
Title: Re: Image tagger for PyTFall (new)
Post by: mcmanus82 on April 03, 2014, 10:46:59 AM
Very cool, thanks a lot! Works flawlessly so far.

My pleasure :)

- The tagger could remember the last opened folder. It is not necessarily, but on many occasions will help to select the folder you need much faster when you tag several girls in a row.

It does, as long as you dont close the program.

Also, if I'm not mistaken, right now the game doesn't use the path in tags jsons, it simply looks for them in girls folders. So it's not a problem, as long the tagger saved tags jsons in the girl's folder.

It saves the tags.json in the currently selected folder, so yes. Will that path be ever needed? If not i will not bother with it.

71 kb? Freaking insane... What language is it coded  in?

C# Windows form application
Title: Re: Image tagger for PyTFall (new)
Post by: DarkTl on April 03, 2014, 11:19:35 AM
It saves the tags.json in the currently selected folder, so yes. Will that path be ever needed? If not i will not bother with it.
That's Xela's domain, he should know.
Title: Re: Image tagger for PyTFall (new)
Post by: Xela on April 03, 2014, 11:51:23 AM
It saves the tags.json in the currently selected folder, so yes. Will that path be ever needed? If not i will not bother with it.

It's up to the game to determine the path so there is no need to specify it in json.
Title: Re: Image tagger for PyTFall (new)
Post by: DarkTl on April 07, 2014, 09:07:23 AM
Could use please share the source code of the tagger, in case you will disappear one day (like Rudi did)? So we could rely on your tagger in all circumstances in the future.
Title: Re: Image tagger for PyTFall (new)
Post by: mcmanus82 on April 08, 2014, 04:29:19 AM
Could use please share the source code of the tagger, in case you will disappear one day (like Rudi did)? So we could rely on your tagger in all circumstances in the future.

I would but i do not have the sc for the released version, the good news is that im working on making it fully configurable from XML.

In detail - all of the currently present checkboxes are loaded from an XML, containing their home panel and order on the panel, panels are resized automatically, clicking and holding LMB on the label of the panel allows to move it around.
XML can be edited to add/remove CBs, change their tag string, change their label, change where a CB is on a panel and on which panel it is.
All of this is done and working, only thing remaining to do is to save the location of the panels on exit, and load it at start.

Hopefully this will be done in 1-2 days, then i will make a new release and include the sc, which you will not need by then :)
Title: Re: Image tagger for PyTFall (new)
Post by: mcmanus82 on April 12, 2014, 11:21:09 AM
v0.2 release bump.. :)
Title: Re: Image tagger for PyTFall (new)
Post by: Xela on April 12, 2014, 01:40:05 PM
Awesome :)
Title: Re: Image tagger for PyTFall (new)
Post by: h3nta1fun on April 12, 2014, 02:12:20 PM
Thanks  :)
Title: Re: Image tagger for PyTFall (new)
Post by: DarkTl on April 12, 2014, 02:16:23 PM
Great, thanks. Now I feel 100% safe  :)
Title: Re: Image tagger for PyTFall (new)
Post by: Lurker on May 02, 2014, 05:25:02 AM
So I'm guessing this is what you use instead of naming the file in the image folder? Or do the image name still have its uses, if so what image categories are available?
Been looking around for some info on this but I havnt found anything. Granted I'm terrible at finding info on forums. xD
ps Neat version of the game lads. :)
Title: Re: Image tagger for PyTFall (new)
Post by: CherryWood on May 02, 2014, 06:45:44 AM
So I'm guessing this is what you use instead of naming the file in the image folder? Or do the image name still have its uses, if so what image categories are available?
Been looking around for some info on this but I havnt found anything. Granted I'm terrible at finding info on forums. xD
If you use tagger (this or previous one, both works fine) to create tags.json file in the girl's image folder, then filenames doesn't matter (so 1321fdgdg31.jpg is ok - it just have to match the entry in .json). Filenames are used only when the game is trying to convert WM packs.

There is no info thread how to tag packs yet, because we will change tags a bit before next version and that means anyone who tag packs right now will need to retag it again in the future, so it's not encouraged. We will create a proper guide after that.
Title: Re: Image tagger for PyTFall (new)
Post by: Lurker on May 02, 2014, 10:12:18 AM
If you use tagger (this or previous one, both works fine) to create tags.json file in the girl's image folder, then filenames doesn't matter (so 1321fdgdg31.jpg is ok - it just have to match the entry in .json). Filenames are used only when the game is trying to convert WM packs.

There is no info thread how to tag packs yet, because we will change tags a bit before next version and that means anyone who tag packs right now will need to retag it again in the future, so it's not encouraged. We will create a proper guide after that.

Ah nice. Fiddled abit with it earlier and i get the idea. Thanks for the info. :)
Likely wont be tagging anything right now but thats good to know for ze future.
Title: Re: Image tagger for PyTFall (new)
Post by: bigbadwolfe on July 25, 2014, 06:14:38 AM
What kind of images does this read? I have some that were ignored by the tagger.
Title: Re: Image tagger for PyTFall (new)
Post by: DarkTl on July 25, 2014, 09:18:14 AM
We use only png and jpg in our packs. If you have any others, you probably have to convert them to one of those.
Title: Re: Image tagger for PyTFall (new)
Post by: bigbadwolfe on July 29, 2014, 06:16:57 AM
okay thanks, I'll just convert them
Title: Re: Image tagger for PyTFall (new)
Post by: Pinkutako on July 29, 2014, 10:42:18 AM
Also,  I've noticed that you have to watch the spelling on jpg files.  Thats is to say:  imagename.jpeg seems to get ignored while simply changing it to imagename.jpg will work fine.
Title: Re: Image tagger for PyTFall (new)
Post by: bigbadwolfe on July 30, 2014, 09:40:37 AM
I see, I didn't know it was that easy. I had to download a converter. Thanks!
Title: Re: Image tagger for PyTFall (new)
Post by: bigbadwolfe on August 04, 2014, 08:09:46 AM
I'm having a little trouble with what tags to use, Sometimes there are tags that break the game. Is there a list of tags I can use?
Title: Re: Image tagger for PyTFall (new)
Post by: Xela on August 04, 2014, 08:24:48 AM
I'm having a little trouble with what tags to use, Sometimes there are tags that break the game. Is there a list of tags I can use?

??? There shouldn't be any code that can "break" a game on the unknown tag! What errors do you get?
Title: Re: Image tagger for PyTFall (new)
Post by: CherryWood on August 04, 2014, 08:32:07 AM
??? There shouldn't be any code that can "break" a game on the unknown tag! What errors do you get?
I can confirm this, custom tags are ok even if they're total crap like chinese characters. (they're displayed in moonspeak in galery though)
I was using some manually written tags for events and they were working fine.
So I'm curious what this problem could be...
Title: Re: Image tagger for PyTFall (new)
Post by: Xela on August 04, 2014, 08:47:37 AM
custom tags are ok even if they're total crap like chinese characters. (they're displayed in moonspeak in galery though)

I'll see if we can sort them out in the future...
Title: Re: Image tagger for PyTFall (new)
Post by: Xela on August 04, 2014, 09:07:27 AM
You've prolly manually edited the file and forgot a delimiter somewhere. Open the folder using tagger software again and create a new JSON.
Title: Re: Image tagger for PyTFall (new)
Post by: bigbadwolfe on August 04, 2014, 10:38:00 AM
I tried it too but still no luck, I'll just use the other tagger. Btw, how come there's no profile tag on the other tagger?
Title: Re: Image tagger for PyTFall (new)
Post by: Xela on August 04, 2014, 11:01:29 AM
I tried it too but still no luck, I'll just use the other tagger. Btw, how come there's no profile tag on the other tagger?

Can you upload your pack somewhere? I am sure the problem is not with the file. I can most likely fix it and send it back to you (with our tagger you'll prolly have to retag the whole thing).

There should be profile! You're prolly using a wrong version.

Link

This is the most recent one I have but Dark/CW may have a better build (Smarter tabs/less tags). (CW, Can you link to your version, same for Dark pls, we need to compare :D).

Any version will work, it's all about convenience.
Title: Re: Image tagger for PyTFall (new)
Post by: bigbadwolfe on August 04, 2014, 11:31:25 AM
Thanks for the tagger, this one has the profile tag ;D
It's ok, I'll just tag the pack again. It only has a few pics anyway :)
Title: Re: Image tagger for PyTFall (new)
Post by: CherryWood on August 04, 2014, 11:44:29 AM

This is the most recent one I have but Dark/CW may have a better build (Smarter tabs/less tags). (CW, Can you link to your version, same for Dark pls, we need to compare :D ).
I'm using this (https://www.dropbox.com/s/hr3xpyk4tho4dw0/ImageTaggerWindows.rar) one, but it's customized for my resolution and there are few tags that are not used in game that I added for testing, so I doubt it's useful to others much. I stopped tagging a long while ago after we agreed that there will be a tag review (and stopped updating the usage in game) and didn't expect anyone to do so until then...
Title: Re: Image tagger for PyTFall (new)
Post by: Xela on August 04, 2014, 12:11:43 PM
Yes, this is the better version, use it :)
Title: Re: Image tagger for PyTFall (new)
Post by: bigbadwolfe on August 04, 2014, 10:32:22 PM
Okay thanks! I didn't know about the tagging review.. good thing I only added a few pics then lol!
Title: Re: Image tagger for PyTFall (new)
Post by: Xela on August 04, 2014, 11:14:49 PM
We can make due with the current system I guess. So far noone did really make an effort to come up with a proper concept for an improved system.

+ We have 10**100 other thing to do...
Title: Re: Image tagger for PyTFall (new)
Post by: CherryWood on August 05, 2014, 03:45:36 AM
We can make due with the current system I guess. So far noone did really make an effort to come up with a proper concept for an improved system.
lol, I would seriously want to know what is a "proper" concept, because everything I tried to tell you about tags so far was refused or told to not care and wait  :D
Title: Re: Image tagger for PyTFall (new)
Post by: DarkTl on August 05, 2014, 04:24:03 AM
Cherry, if you want to make new packs, just do it without tagging. We already have enough packs for testing, and you always can tag them after the review.