Pink Petal Games

Feedback => New Features => Topic started by: DocClox on December 03, 2009, 07:31:21 AM

Title: A Config File For Cash Flow
Post by: DocClox on December 03, 2009, 07:31:21 AM
OK, as discussed elsewhere, I'm going to knock up a quick config file to let you guys balance income and outgoings. And possibly other stuff as well. This will likely be augmented by some in-game controls in the future, but for now I'm making it an XML file.

It's pretty simple really:

Code: [Select]
config>
<!--
 !      These are the numbers that will multiply the money from
 !      various sources of income. So setting
 !      "GirlsWorkBothel" to "0.5" will reduce the cash your girls
 !      generate in the brothel by half. You can also use numbers
 !      >1 to increase income if you are so inclined.
 !-->   
        <Income
                Extortion       = "1.0"
                GirlsWorkBothel = "1.0"
                GirlsWorkStreet = "1.0"
                Movies          = "1.0"
                Stripper        = "1.0"
                Barmaid         = "1.0"
                Gambling        = "1.0"
                SlaveSales      = "1.0"
                ItemSales       = "1.0"
        />

!--
 !      These are the mulipliers for your expenses.
 !      Training doesn't currently have a cost,
 !      So I'm setting it to 1 gold per girl per week
 !      and defaulting the multiplier to 0 (so no change
 !      by default). Set it higher and training begins to
 !      cost beyond the simple loss of income.
 !
 !      ActressWages are like training costs: a per-girl
 !      expense nominally 1 gold per girl, but with a default
 !      factor of 0, so no change to the current scheme unless
 !      you alter that. MakingMovies is the setup cost for
 !      a movie: I'm going to make this 1000 gold per movie,
 !      but again, with a zero factor by default.
 !
 !      Otherwise, same as above, except you probably
 !      want numbers > 1 to make things more expensive here.
 !-->
        <Outgoings
                Training        = "0.0"
                MakingMovies    = "0.0"
                ActressWages    = "0.0"
                Tax             = "1.0"
                GoonWages       = "1.0"
                WhoreWages      = "1.0"
                Consumables     = "1.0"
                Items           = "1.0"
                Slaves          = "1.0"
                BuyBrothel      = "1.0"
                Bribes          = "1.0"
        />
</config>

The idea is you'll be able to edit that in notepad and change the values to suit your play style. Let me know if there's anything you think I've missed out.
Title: Re: A Config File For Cash Flow
Post by: Mehzerz on December 03, 2009, 09:42:17 AM
This might be a silly question but can this be used in-game? If so, where do I put it and does it need a specific name?
Title: Re: A Config File For Cash Flow
Post by: DocClox on December 03, 2009, 09:46:23 AM
I'm, coding it in now. It will be called "config.xml" and appear in the top level game folder, unless anyone persuades me otherwise.

With a bit of luck, you'll be able to play with it come the next build.

[edit]

Thinking about it, let's make that Resources\config.xml. A bit more consistent, that way.
Title: Re: A Config File For Cash Flow
Post by: Mehzerz on December 03, 2009, 10:00:53 AM
Very cool. I look forward to it.
I'll definitely add a fee to making movies and training.

Title: Re: A Config File For Cash Flow
Post by: Solo761 on December 03, 2009, 10:52:16 AM
Technically they're aren't free as it is. Girls that are training or making movies don't make any income, and it takes money to keep them in training or making movies.
Title: Re: A Config File For Cash Flow
Post by: DocClox on December 03, 2009, 12:17:25 PM
Technically they're aren't free as it is. Girls that are training or making movies don't make any income, and it takes money to keep them in training or making movies.

True enough. Is there a cost for making movies? I'll default the multiplier to 1 and use that for the base if so. I thought the cost of movies and training was purely in lost income, although I will admit that I've not got around to looking yet.

In any case, the version of the config file that ships with the game will be set up so that the game behaves exactly as it did before. Anyone who's happy with the costing of any particular area can just leave that part alone.

[edit]

No, you're right. making movies cost 100 per day of shooting. I'll multiply that, then.
Title: Re: A Config File For Cash Flow
Post by: DocClox on December 07, 2009, 10:55:37 AM
This keeps growing:

Code: [Select]
<config>
    <Initial
        Gold    = "4000"
    />
<!--
 !    These are the numbers that will multiply the money from
 !    various sources of income. So setting
 !    "GirlsWorkBothel" to "0.5" will reduce the cash your girls
 !    generate in the brothel by half. You can also use numbers
 !    >1 to increase income if you are so inclined.
 !-->
    <Income
        ExtortionIncome    = "1.0"
        GirlsWorkBothel    = "1.0"
        GirlsWorkStreet    = "1.0"
        MovieIncome    = "1.0"
        StripperIncome    = "1.0"
        BarmaidIncome    = "1.0"
        SlaveSales    = "1.0"
        ItemSales    = "1.0"
    />
<!--
 !    These are the mulipliers for your expenses.
 !    Training doesn't currently have a cost,
 !    So I'm setting it to 1 gold per girl per week
 !    and defaulting the multiplier to 0 (so no change
 !    by default). Set it higher and training begins to
 !    cost beyond the simple loss of income.
 !
 !    ActressWages are like training costs: a per-girl
 !    expense nominally 1 gold per girl, but with a default
 !    factor of 0, so no change to the current scheme unless
 !    you alter that. MakingMovies is the setup cost for
 !    a movie: I'm going to make this 1000 gold per movie,
 !    but again, with a zero factor by default.
 !
 !    Otherwise, same as above, except you probably
 !    want numbers > 1 to make things more expensive here.
 !
 !    One more exception: Tax rate is the % of your earnings
 !    taken as tax.
 !-->
    <Expenses
        Training    = "0.0"
        MovieCost    = "0.0"
        ActressWages    = "0.0"
        GoonWages    = "1.0"
        WhoreWages    = "1.0"
        MatronWages    = "1.0"
        Consumables    = "1.0"
        Items        = "1.0"
        Slaves        = "1.0"
        BuyBrothel    = "1.0"
        Bribes        = "1.0"
        Advertising    = "1.0"
    />

<!--
 !    Gambling:
 !
 !    The starting %chance for the tables is given by "Odds"
 !
 !    Wins and losses on the tables are
 !    calculated as  the "Base" value + a random number
 !    between 1 and the value of "Spread". If the house
 !    wins, the amount is mutiplied by the HouseFactor
 !    and if the customer wins, by the customer factor
 !
 !    So: if Base = 50 and spread = 100 then the basic amount
 !    won or lost per customer would be 50+d100.
 !
 !    As it stands, the default odds are near 50%
 !    while the payout is 2:1 in favour of the house.
 !    So by default, the tables are rigged!
 !-->
    <Gambling
        Odds        = "49%"
        Base        = "79"
        Spread        = "400"
        CustomerFactor    = "0.5"
        HouseFactor    = "1.0"
    />

<!--
 !
 !    Tax:
 !
 !    Rate is the rate at which your income is taxed
 !    Min is the minumum adjusted rate after influence is
 !    used to lower the tax rate.
 !    Laundty is the Maximum % of your income that can be
 !    Laundered and so escape taxation.
 !
 !-->
    <Tax
        Rate        = "6%"
        Min        = "1%"
        Laundry        = "25%"
    />
</config>
Title: Re: A Config File For Cash Flow
Post by: ohnonono on December 09, 2009, 06:54:54 PM
Whores have wages?  I figured they'd just work off commission.
Title: Re: A Config File For Cash Flow
Post by: DocClox on December 09, 2009, 07:05:30 PM
Whoops. That probably ought to read "WhoreSupport". Basically anything spent on behalf of the girls. From the couple of gold a day food that you pay, to accommodation costs and anything else that doesn't explicitly fall elsewhere.
Title: Re: A Config File For Cash Flow
Post by: Dagoth on December 16, 2009, 10:57:38 AM
"GirlsWorkBothel"?  ;)
Title: Re: A Config File For Cash Flow
Post by: DocClox on December 16, 2009, 11:31:01 AM
"GirlsWorkBothel"?  ;)
That's an Income field. Sort of "PlayerIcomeDerivedFromGirlWorkingAsProstitutesInTheBrothel". But that was a bit long, so I shortened it. :P

GirlSupport is an Expenses field, so it's money going out.
Title: Re: A Config File For Cash Flow
Post by: Dagoth on December 16, 2009, 11:59:48 AM
That's an Income field. Sort of "PlayerIcomeDerivedFromGirlWorkingAsProstitutesInTheBrothel". But that was a bit long, so I shortened it. :P

GirlSupport is an Expenses field, so it's money going out.
OK, but what's a Bothel?  :P
Title: Re: A Config File For Cash Flow
Post by: DocClox on December 16, 2009, 12:01:25 PM
OK, but what's a Bothel?  :P

It's a fixed in the next-a release-a but one.
Title: Re: A Config File For Cash Flow
Post by: sgb on December 16, 2009, 01:28:42 PM
Now that we have this spiffy new config file, I'd like to request a 'pregnancy time' setting.  It's pretty time consuming if you want to test daughters at the moment.  Being able to shorten it to 4 turns or so would be nice; if not in a config setting then as a Test Mode feature.

Also, does 'Extortion' cover theft income, or just money from owned territory?
Title: Re: A Config File For Cash Flow
Post by: DocClox on December 16, 2009, 02:16:03 PM
Now that we have this spiffy new config file, I'd like to request a 'pregnancy time' setting.  It's pretty time consuming if you want to test daughters at the moment.  Being able to shorten it to 4 turns or so would be nice; if not in a config setting then as a Test Mode feature.

Also, does 'Extortion' cover theft income, or just money from owned territory?

Pregnancy time: can do. It'd make debugging easier, too :)

Extortion ... covers extortion. That's a bug - I'm supposed to be tracking grand and petty theft, and a few other categories as well. So there ought to be config categories for them. But looking at the code, I'm not running the values through the tariff anyway. So that's another one.

Oh well, at least we know about it now :)

[edit]

Well, the extortion etc is being recorded by category, it's just not going through the tariff, so it's not too bad.

As for the pregnancy, this should cover everything:

Code: [Select]
        <Pregnancy
                PlayerChance    = "8%"
                CustomerChance  = "8%"
                MonsterChance   = "8%"
                GoodSexFactor   = "2.0"
                ChanceOfGirl    = "50%"
                WeeksPregnant   = "38"
                WeeksTillGrown  = "60"
                CoolDown        = "4"
        />
The numbers work as you might expect, but girl children aren't turning up in the dungeon on schedule, so I'm going to try and squash that before any release.

[edit]

Hmm... the boy/girl % isn't working either...
Title: Re: A Config File For Cash Flow
Post by: Alugere on December 16, 2009, 09:41:32 PM
For gambling odds in that file. It isn't actually said in game or out whether those odds are the player's chance to win or the customer's chance to win. Could that be specified in the config file?
Title: Re: A Config File For Cash Flow
Post by: sgb on December 16, 2009, 09:50:08 PM
Thanks, those new settings are working great with 1.29.4.4.
Title: Re: A Config File For Cash Flow
Post by: DocClox on December 17, 2009, 09:09:02 AM
For gambling odds in that file. It isn't actually said in game or out whether those odds are the player's chance to win or the customer's chance to win. Could that be specified in the config file?

Sounds reasonable. The odds are the chances of the customer winning.

I can add a line to the comment above the gambling section, or I can change the name to something like "CustomerWin". The first one is easier and will generate fewer bug reports from out of date config files. The second one has the benefit of being more of less self explanatory...

Thanks, those new settings are working great with 1.29.4.4.

Cool :D
Title: Re: A Config File For Cash Flow
Post by: hewhoispale on December 23, 2009, 12:05:59 PM
Not sure if this would be the place to specify it, but I would like the ability to specify the handling of tips (Take all tips, take slaves' tips, don't take tips). It seems like it would be 'nice' to let slave girls keep the tips they earn, thus giving them some income to spend during freetime.
Title: Re: A Config File For Cash Flow
Post by: DocClox on December 23, 2009, 05:28:52 PM
Seems like a sensible place to make config requests.

Tip handling: can't see why not. Probably do it as two binary options TakeSlaveTips and TakeFreeGirlTips.

But it's going to have to wait until we get 1.30 out the door.
Title: Re: A Config File For Cash Flow
Post by: fires_flair on December 25, 2009, 11:56:24 PM
*looks at pregnacy modifire* ooh cool. just how do I get that? do I have to wait fo rto be included or just save the text a a certain file type (or did I just miss something very obvious?).
also the tipping this is something I can't wait to see :).
I really like the game so far.
Title: Re: A Config File For Cash Flow
Post by: DocClox on December 26, 2009, 12:08:22 AM
*looks at pregnacy modifire* ooh cool. just how do I get that? do I have to wait fo rto be included or just save the text a a certain file type

Look in Resources\config.xml under the game root and you should find a file called config.xml. You can open it in notepad, or any decent programming editor. The pregnancy options should be toward the end.

also the tipping this is something I can't wait to see :) .
I really like the game so far.

Cool. Thanks :)
Title: Re: A Config File For Cash Flow
Post by: fires_flair on December 26, 2009, 12:41:17 AM
oh, ok thanks :)  now I can play around with it :)