devolution

Author Topic: General Discussion  (Read 3821237 times)

0 Members and 60 Guests are viewing this topic.

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #7650 on: May 19, 2016, 05:29:58 PM »
Code: [Select]
result = result.replace("[character.mc_ref]", character.mc_ref)
Best version I think... safe to use with all the other possible tags, fast and will work well.
Like what we're doing?

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #7651 on: May 19, 2016, 07:49:18 PM »
We should prolly replace the cross that leads to previous screen with something simple along these lines:

https://www.google.bg/search?q=return+arrow+png&client=firefox-b&tbm=isch&tbo=u&source=univ&sa=X&ved=0ahUKEwiEhPWJqefMAhVIvhQKHV9hC8AQsAQIGg&biw=1920&bih=961#

I think that'll be more appropriate...
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #7652 on: May 20, 2016, 01:19:40 AM »
There is already back arrow button at some screens, like MC profile. There is no need in looking for other buttons, it's suitable for any screens.

Not really required because there should be no case where this fails cause you cover all the bases with choices. Also choice([]) is a crash so it would fail with a crash before that anyhow.
Well, it means that the function cannot be used for teams with more than 4 characters of the same MPTrait, because there won't be enough lines for them  :)
I don't think we'll even have more than 4 party members though, so it's probably fine.
« Last Edit: May 20, 2016, 01:56:35 AM by DarkTl »

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #7653 on: May 20, 2016, 02:40:45 AM »
I changed the algorithm a bit to make sure it correctly subtracts lists with different mc_ref, thus even lines with different mc_ref won't be repeated.

I added prebattle quotes inside BE, and they work. But now prebattle dissolve doesn't work...

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #7654 on: May 20, 2016, 03:10:12 AM »
Fixed the quotes. I've also set them to false, you usually want to set new stuff to None/False to make sure that new behavior doesn't occur everywhere.
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #7655 on: May 20, 2016, 03:46:04 AM »
Blue hair random pack just reminded me that generic battle sprite is needed for packs without one.
Better this than random non transparent picture.

Or this.
« Last Edit: May 20, 2016, 06:15:10 AM by DarkTl »

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #7656 on: May 20, 2016, 07:26:26 AM »
Quote
            "Kill her":
                "She stopped breathing. Serves her right."
                $ char.health = 0
Quote
  File "game/library/interactions/GM - negative.rpy", line 22, in script
    $ char.health = 0
  File "game/library/interactions/GM - negative.rpy", line 22, in <module>
    $ char.health = 0
  File "game/library/characters/classes - characters.rpy", line 3244, in __setattr__
    self.__dict__["stats"].mod_base_stat(key, value)
  File "game/library/characters/classes - characters.rpy", line 900, in mod_base_stat
    self.mod(key, value)
  File "game/library/characters/classes - characters.rpy", line 988, in mod
    hero.remove_girl(girl)
  File "game/library/characters/classes - characters.rpy", line 2601, in remove_girl
    if char in self._char:
  File "game/library/characters/classes - characters.rpy", line 1200, in __getattr__
    raise AttributeError(msg % (key, self.__class__.__name__))
AttributeError: '_char' is neither a gamestat nor an attribute of Player
::)

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #7657 on: May 20, 2016, 08:21:09 AM »
I've pushed a small update that should fix this particular error. Just keep in mind that this system is in like pre-alpha stage and it will not remove anyone from Arena or Interactions or FG teams but it looks like it's rigged to remove chars from heros team and employment.
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #7658 on: May 20, 2016, 09:35:14 AM »
Nope, you haven't pushed it  :D

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #7659 on: May 20, 2016, 10:15:19 AM »
Git is acting up again...
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #7660 on: May 20, 2016, 01:58:50 PM »
Quote
  File "game/script.rpy", line 289, in script call
    call testing
  File "game/library/testing.rpy", line 2, in script
    python:
  File "game/library/testing.rpy", line 55, in <module>
    hero.add_girl(new_random_girl)
  File "game/library/characters/classes - characters.rpy", line 1200, in __getattr__
    raise AttributeError(msg % (key, self.__class__.__name__))
AttributeError: 'add_girl' is neither a gamestat nor an attribute of Player
I thought maybe I need a new testing file, but the link you provided some time ago now leads to test_cases.rpy, which is something completely different.

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #7661 on: May 20, 2016, 02:11:36 PM »
I thought maybe I need a new testing file, but the link you provided some time ago now leads to test_cases.rpy, which is something completely different.

https://www.dropbox.com/s/5uiox4ka1oisgu5/testing.rpy?dl=0
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #7662 on: May 20, 2016, 02:27:04 PM »
I can give items from MC to a free character and then take them away freely. But cannot take items from hinata for example.
Is it a normal behavior? Does the game track which item was given by MC or something?

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #7663 on: May 20, 2016, 02:50:28 PM »
Does the game track which item was given by MC or something?

Yeap, it does.

http://www.pinkpetal.org/index.php?topic=1291.msg30364#msg30364

Maybe one of these... you sprites are a nightmare to clean up. Or we need to keep searching for one...
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #7664 on: May 20, 2016, 02:59:20 PM »
Oh come on, the second one has a solid, easily removable background. Here.