Author Topic: A Config File For Cash Flow  (Read 11410 times)

0 Members and 1 Guest are viewing this topic.

Offline DocClox

  • Dev Team
  • *****
  • Posts: 1867
  • Messing Around With Python
A Config File For Cash Flow
« 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.
« Last Edit: December 03, 2009, 08:17:11 AM by DocClox »

Offline Mehzerz

  • Hero Member
  • *****
  • Posts: 564
  • Rockin' the after life after party
Re: A Config File For Cash Flow
« Reply #1 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?
Starter girls image additions progress:
26 girls, 18 to go

Offline DocClox

  • Dev Team
  • *****
  • Posts: 1867
  • Messing Around With Python
Re: A Config File For Cash Flow
« Reply #2 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.
« Last Edit: December 03, 2009, 09:58:18 AM by DocClox »

Offline Mehzerz

  • Hero Member
  • *****
  • Posts: 564
  • Rockin' the after life after party
Re: A Config File For Cash Flow
« Reply #3 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.

Starter girls image additions progress:
26 girls, 18 to go

Offline Solo761

  • Administrator
  • *****
  • Posts: 175
Re: A Config File For Cash Flow
« Reply #4 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.

Offline DocClox

  • Dev Team
  • *****
  • Posts: 1867
  • Messing Around With Python
Re: A Config File For Cash Flow
« Reply #5 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.
« Last Edit: December 03, 2009, 12:43:01 PM by DocClox »

Offline DocClox

  • Dev Team
  • *****
  • Posts: 1867
  • Messing Around With Python
Re: A Config File For Cash Flow
« Reply #6 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>

Offline ohnonono

  • Newbie
  • *
  • Posts: 19
Re: A Config File For Cash Flow
« Reply #7 on: December 09, 2009, 06:54:54 PM »
Whores have wages?  I figured they'd just work off commission.

Offline DocClox

  • Dev Team
  • *****
  • Posts: 1867
  • Messing Around With Python
Re: A Config File For Cash Flow
« Reply #8 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.

Offline Dagoth

  • Administrator
  • *****
  • Posts: 617
Re: A Config File For Cash Flow
« Reply #9 on: December 16, 2009, 10:57:38 AM »
"GirlsWorkBothel"?  ;)

Offline DocClox

  • Dev Team
  • *****
  • Posts: 1867
  • Messing Around With Python
Re: A Config File For Cash Flow
« Reply #10 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.

Offline Dagoth

  • Administrator
  • *****
  • Posts: 617
Re: A Config File For Cash Flow
« Reply #11 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

Offline DocClox

  • Dev Team
  • *****
  • Posts: 1867
  • Messing Around With Python
Re: A Config File For Cash Flow
« Reply #12 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.

Offline sgb

  • Sr. Member
  • ****
  • Posts: 380
Re: A Config File For Cash Flow
« Reply #13 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?

Offline DocClox

  • Dev Team
  • *****
  • Posts: 1867
  • Messing Around With Python
Re: A Config File For Cash Flow
« Reply #14 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...
« Last Edit: December 16, 2009, 04:51:56 PM by DocClox »