Author Topic: General Discussion  (Read 3821742 times)

0 Members and 17 Guests are viewing this topic.

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #5130 on: July 15, 2015, 01:28:00 PM »
This post explains some things about labels and GMs. But it doesn't answer my questions about adding new options and renaming old ones. Or maybe is does, but I don't understand it  :D
« Last Edit: July 15, 2015, 01:31:11 PM by DarkTl »

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #5131 on: July 15, 2015, 06:24:46 PM »
This post explains some things about labels and GMs. But it doesn't answer my questions about adding new options and renaming old ones. Or maybe is does, but I don't understand it  :D

You can take a look at the files he mentions, a lot of comments there. Menus are being built in label girl_interactions:, pretty straight forward.
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #5132 on: July 16, 2015, 04:09:15 AM »
I need to know how to compare stat with its max. I tried chr.mp >= chr.get_max("mp"), but it gives me an error, even though such things are used in screens rpy.

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #5133 on: July 16, 2015, 05:05:05 AM »
...Not sure what's wrong. I gave Mage class trait to one of characters for testing. It has Warrior and Caster occupations. Now when I check cgo("Warrior"), it works. When I check cgo("Caster"), it doesn't.

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #5134 on: July 16, 2015, 09:00:32 AM »
I need to know how to compare stat with its max. I tried chr.mp >= chr.get_max("mp"), but it gives me an error, even though such things are used in screens rpy.

What error? This looks perfect? It should not fail unless chr is not an instance of Character.

...Not sure what's wrong. I gave Mage class trait to one of characters for testing. It has Warrior and Caster occupations. Now when I check cgo("Warrior"), it works. When I check cgo("Caster"), it doesn't.

My guess would me that testing mage overwrites real mage trait. We need to either rename testing file to have it start with 0 for example or delete it/remove traits from there.

===
Code: [Select]
            "magic": [
                -5,
                -1
            ],

This may break the game, we'll see how it tests.

===
Have you figured out interaction menus? Or should I do it?
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #5135 on: July 16, 2015, 09:24:13 AM »
What error? This looks perfect? It should not fail unless chr is not an instance of Character.
While running game code:
  File "game/library/interactions/GM - chat.rpy", line 287, in script
    if chr.health < 40:
  File "game/library/interactions/GM - chat.rpy", line 289, in <module>
    elif chr.health >= chr.getmax("health") and not(chr.effects["Food Poisoning"]['active']) and not(chr.effects["Down with Cold"]['active']):
  File "game/library/characters/classes - characters.rpy", line 1070, in __getattr__
    raise AttributeError(msg % (key, self.__class__.__name__))
AttributeError: 'getmax' is neither a gamestat nor an attribute of Girl

My guess would me that testing mage overwrites real mage trait. We need to either rename testing file to have it start with 0 for example or delete it/remove traits from there.
Yup. After I deleted it, it started to work.

Have you figured out interaction menus? Or should I do it?
I think so. I didn't tried to change GM menu so far, but if there are no bugs in the code that handles labels, it should be possible too. I'll let you know if there will be issues with GM buttons.

Offline oratorio

  • Newbie
  • *
  • Posts: 7
Re: General Discussion
« Reply #5136 on: July 16, 2015, 10:24:23 AM »
While running game code:
  File "game/library/interactions/GM - chat.rpy", line 287, in script
    if chr.health < 40:
  File "game/library/interactions/GM - chat.rpy", line 289, in <module>
    elif chr.health >= chr.getmax("health") and not(chr.effects["Food Poisoning"]['active']) and not(chr.effects["Down with Cold"]['active']):
  File "game/library/characters/classes - characters.rpy", line 1070, in __getattr__
    raise AttributeError(msg % (key, self.__class__.__name__))
AttributeError: 'getmax' is neither a gamestat nor an attribute of Girl


You have 'getmax' instead of 'get_max' as you showed in your previous post.

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #5137 on: July 16, 2015, 12:06:18 PM »

You have 'getmax' instead of 'get_max' as you showed in your previous post.

Yeap, that would do it...
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #5138 on: July 16, 2015, 01:12:07 PM »
Yup, my bad. I have multiple get_max checks, and I haven't noticed that only one of them is wrong, I thought they all are.

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #5139 on: July 16, 2015, 03:27:41 PM »
Sourceforge is down. Including the website  ::)
My push wll have to wait.
 

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #5140 on: July 18, 2015, 11:14:04 AM »
Not sure when sourceforge is going to work again. Or maybe it's not going to  :D

It's been more than a day, and they barely restored some very unimportant parts of the service, while all major ones are down, including all devs instruments. I wonder if they don't have a backup or something.

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #5141 on: July 18, 2015, 11:16:39 AM »
Not sure when sourceforge is going to work again. Or maybe it's not going to  :D

It's been more than a day, and they barely restored some very unimportant parts of the service, while all major ones are down, including all devs instruments. I wonder if they don't have a backup or something.

Well, my dev folder is backed up on dropbox, my desktop and laptop so loosing a repo may be inconvinient but still not that big of a deal. We can even leave entire history intact if we stay with mercurial. Lets give SF a couple more days.
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #5142 on: July 18, 2015, 11:26:57 AM »
Another renpy game. A bit unusual BE, we could use some ideas. Also open sourced, gonna take some sprites and bgs  :)

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #5143 on: July 18, 2015, 11:37:27 AM »
Another renpy game. A bit unusual BE, we could use some ideas. Also open sourced, gonna take some sprites and bgs  :)

Nyaatrap made it, we are both very active on lemma. This game has been around for a while now.

If SF doesn't come back online:

http://programmers.stackexchange.com/questions/164618/why-are-many-programmers-moving-their-code-to-github

Github software is very confusing but their servers are fast and together with Git Extensions, it's a very good option.
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #5144 on: July 18, 2015, 11:50:17 AM »
I may be wrong, but isn't it that sh#t that gave us ueof errors all the time?