devolution

Author Topic: General Discussion  (Read 3821226 times)

0 Members and 49 Guests are viewing this topic.

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #4365 on: January 17, 2015, 09:35:45 AM »
Retagged King of Fighters pack. There is only one character, but she is very known. I kept stumbling upon her all the time, so I made a pack after all.
And tagged Attack on Titan pack, I made it several months ago but didn't tagged until we finished new concept.

I have to say, using portraits+sprite makes packs creating much easier.

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #4366 on: January 17, 2015, 10:01:47 AM »
Retagged King of Fighters pack. There is only one character, but she is very known. I kept stumbling upon her all the time, so I made a pack after all.
And tagged Attack on Titan pack, I made it several months ago but didn't tagged until we finished new concept.

I have to say, using portraits+sprite makes packs creating much easier.

It turned out to be a really shitty day for me yesterday so I didn't get anything done. Going to look into items screen tonight.
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #4367 on: January 17, 2015, 10:39:02 AM »
Small update for tagger. Now other buttons, such as delete, give focus to file list when pressed too.

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #4368 on: January 18, 2015, 06:25:25 PM »
I am not going to push yet because there is some odd behavior here and there + a lot of stuff isn't ready but:

- Added Unique items.
- Added Quest items (forgot the filters).
- Rescaled a LOT of items display/control code.
- Auto-Mood should now be applied to portrait pics as well.
- Added bg_color = "dark" property, which darkens itemsframe and sets the items count white within that frame.
- New sells property added to shops (determins what they will buy).
- Restored mousewheel controls to the girlslist screen.
- Updated most items related screens.

Like what we're doing?

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #4369 on: January 19, 2015, 08:59:36 PM »
Phew...

Added the sprite --> height method + default height ("average", other options are "tall", "short").
Added "skillmax" to items, old cmax is now called "statmax". Same rules apply, this only works for items that apply their effects without reverse (like consumables without ctemp or misc).
Adapted and rescaled auto-equip method.

This damn thing sure took a lot out of me :(
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #4370 on: January 20, 2015, 12:24:14 AM »
Now would be a good time for guide about creating unique girls items. I'm working on a pack where characters could use such items.

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #4371 on: January 20, 2015, 07:38:24 AM »
Now would be a good time for guide about creating unique girls items. I'm working on a pack where characters could use such items.

Right now they are items that can only be used with a specific character.

Field is:
"unique": "chr_id",

For the rest they can be same as the other items. I am thinking about allowing several ids in the list or maybe origin (any girl from a specific origin) field as well in the future.
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #4372 on: January 20, 2015, 08:47:12 AM »
So, those items already will be in girl's inventory from the beginning? And all that remains is to add item json and icon in the items folder?

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #4373 on: January 20, 2015, 09:18:57 AM »
So, those items already will be in girl's inventory from the beginning? And all that remains is to add item json and icon in the items folder?

No, usually you want to create a quest to find such an item so it's not an option to place it into girls inventory. You can always add it manually and maybe even create it manually. CW got examples I think.

*Yeap, he does:

Code: [Select]
label start_Airi:
    # registering item
    python:   
        item = Item()
        item.id = "Wraith's Scythe"
        item.icon = "content/chars/Queen's_Blade/Airi/Airis_scythe.png"
        item.desc = "This high quality scythe has been imbued with dark magic and has the ability to become incorporeal together with its wielder."
               
        item.mod = dict(attack=25, magic=10)
        item.max = dict(attack=15, magic=5)
       
        item.price = "0"
        item.sex = "female"
        item.chance = "0"
        item.eqchance = "0"
        item.slot = "weapon"
        item.type = "Scythe"
        item.attack = "ScytheAttack"
        item.hidden = "false"

        item.init()
       
        items[item.id] = item

   
    # equiping item to girl
    $chr=char["Airi"]
    $chr.inventory.append(items["Wraith's Scythe"])   
    $equip_item(items["Wraith's Scythe"], chr)
   

    return

You'll have to add item.unique = "Airi" to ensure new logic applies. It will not work until I push and we get rid of all the bugs. Note that CW creates script folders and places unique resources there, hence the path not leading to usual folders.

You can also use:

Code: [Select]
item.mod = {"attack": 25, "magic": 10}
which is marginally faster and looks similar to JSON that you're prolly used to. The rest of the code can also be simplified:

Code: [Select]
chr=char["Airi"]
chr.inventory.append(item)
equip_item(item, chr)
But put it on pythons indent if you are not using oneliner statements ($).
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #4374 on: January 20, 2015, 09:41:07 AM »
I see. This script is tied to start_Airi label, it seems. What to do with it?

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #4375 on: January 20, 2015, 09:46:18 AM »
I see. This script is tied to start_Airi label, it seems. What to do with it?

Every girls comes with her own starting label bound to start_girlid, like Hinatas would be:

Code: [Select]
label start_Hinata:
or Namis:

Code: [Select]
label start_Nami:
I would prolly supply chr to the label as argument, I'll try adding that with the next push.

Also do not forget to add "return" to the end of the label or the game will end with it.
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #4376 on: January 20, 2015, 10:00:31 AM »
So, the label is always 'start_' + character id? What would happen if you use it for random character id?

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #4377 on: January 20, 2015, 10:07:26 AM »
So, the label is always 'start_' + character id? What would happen if you use it for random character id?

I am not sure, most likely whatever the code you put there will end up running many, many times (lots of random girls in the game). It is meant for unique girls only.
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #4378 on: January 20, 2015, 11:48:30 AM »
Small push with traits and blocked traits that I forgot last time. I restored well-mannered and ill-mannered traits, they now affect refinment skill.
Also uploaded Blazblue pack and jsons. Most of charaters there could use unique items, I'll upload them later when the system will be ready.

That's a high quality pack, characters are well-designed, popular and well drawn. They even released it on pc recently, so now anyone can become familiar with the game.

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #4379 on: January 20, 2015, 11:53:17 AM »
Cool. I am going to push as well, going back to a revision on your own PC with Mercurial is a lot harder than falling back to the server version. Some stuff is unfinished but a least you can take a look at the items screens and I can fall back with one command line after messing with BE.
Like what we're doing?