Re: I want my money back! (and lower taxes)
- From: "jpn" <piotr.noworyta@xxxxx>
- Date: 19 Dec 2005 05:06:49 -0800
I would like to test the setup I mentioned in the previous post (just
to see if it might work at all).
Immediately I found problems which are not caused by complexity of the
change, but my lack of familiarity with the server code. I would be
grateful if anyone can of the top of their heads direct me to the files
I need to look at, in order to:
1. Define new "P" and "I" flags and connect them, so that for example
I_IRON in src/lib/global/product.c "knows" it is the same commodity as
the product of P_IRON in src/lib/global/sect.c .
2. Add a new entry to the list of sectors in src/lib/global/sect.c (can
I just add a new entry, or do I have to utilize one of the unused
entries? do I have to modify a total number of entries in some other
file?)
3. Add a new entry to the list of products in src/lib/global/product.c
(the same doubts, as in question 2.)
4. Where do I need to make changes, in order to allow a new commodity,
"trade", to behave
the same way other commodities do? E.g, to be listed in the output
of "comm" command,
to be a valid argument of commands to move/distribute/deliver like
any other commodities.
Also to be included in the output of "prod" (and "budget", but I
don't think this last one would require any changes in the code).
If, as I hope, the above changes are not very difficult to code, the
only other changes in the test game might be as follows:
in data/econfig:
----------------------
eliminate taxes by setting:
money_civ 0.0000000
money_uw 0.0000000
in src/lib/global/product.s :
-------------------------------------
increase iron requirement for "heavy construction materials" production
from 2 to 3:
{{I_IRON, I_NONE, I_NONE}, {3, 0, 0},
add "income from venture" and "trading goods" products, by adding new
or modifying unused entries:
{{I_DUST, I_OIL, I_LCM}, {1, 5, 10},
I_NONE, NAT_TLEV, 0, 0, 0, NAT_ELEV, 5, 10, 100,
"trading goods", "trade",},
/does it matter,
where in the list I insert these lines?/
/would it make
sense, to eliminate tech and edu dependence
by replacing both
flags with -1 ? /
{{I_TRADE, I_NONE, I_NONE}, {1, 0, 0},
I_NONE, I_NONE, -300, 0, 0, -1, 0, 0, 10,
"income from venture", "income",},
/would these
parameters be a reasonable start for tests? /
in src/lib/global/sect.c :
--------------------------------
add new entry "venture" (here it mimics the params for "bank"):
{'v', P_TRADE, 2, 0, NPKG, 1.0, 2.25, 10, 0, 1, 0, 0, 999,
"venture"},
modify entry "highway" to include the new P_INCOME flag:
{'+', P_INCOME, 1, 0, NPKG, 1.0, 1.0, 3, 0, 1, 0, 0, 999,
"highway"},
I will be grateful for any comments, both technical (i.e.
implementation) and regarding playability/realism (including specific
values of parameters).
.
- References:
- I want my money back! (and lower taxes)
- From: jpn
- Re: I want my money back! (and lower taxes)
- From: jpn
- I want my money back! (and lower taxes)
- Prev by Date: Re: I want my money back! (and lower taxes)
- Next by Date: Re: I want my money back! (and lower taxes)
- Previous by thread: Re: I want my money back! (and lower taxes)
- Next by thread: Re: I want my money back! (and lower taxes)
- Index(es):
Relevant Pages
|