Subsidiaries management (latest build: r7213)

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
User avatar
LordOfThePigs
Route Supervisor
Route Supervisor
Posts: 435
Joined: 01 Jul 2004 10:28
Location: Jura/Switzerland

Subsidiaries management (latest build: r7213)

Post by LordOfThePigs »

Hello everybody,

I'm currently develloping a patch that will allow subsidiaries management in OTTD. It is a patch so it is fully disableable (hmm... another great wording from me).

Basically, this will allow a player to run multiple companies simultaneously. For now, it is not possible to create a Subsidiary from scratch, you have to buy out an AI to get a subsidiary company (but I promess it will soon be possible).

So how does it work: the mother company has full control on its subsidiaries. You can at anytime switch the company you play with. Vehicles from affiliated companies can travel on affiliated squares, and get into affiliated stations.

However, subsidiaries aren't full blown companies, so there are some restrictions. For example, a subsidiary (as opposed to the mother company) cannot by shares into other companies. At the time it becomes a daughter company, it has to give out all of its shares in other companies to the mother company. Fund transfers from one affiliated company to another is possible, however, it costs 2% of the transaction amout (those banks...).

Finally, if one of you subsidiaries really is financially in a bad shape, you can perform a Merger, and absorb it into any of your other subsidiaries (this also makes room for new AI's).

Check the screenshot to see the current progress, and drop a message here to tell me what you think!

Lord of the Pigs

Get the latest version of the Subsidiaries Patch here!
Attachments
Check out the yellow Train in the Pink station. It's actually making profit. Also notice the different track colors between the stations
Check out the yellow Train in the Pink station. It's actually making profit. Also notice the different track colors between the stations
Digne Transport, 20th Aug 1930.png (156.06 KiB) Viewed 5579 times
Last edited by LordOfThePigs on 19 Nov 2006 11:18, edited 17 times in total.
traskjd
Engineer
Engineer
Posts: 40
Joined: 17 Nov 2004 04:18
Location: Wellington, New Zealand
Contact:

Post by traskjd »

Looks cool!

Would definately be great for when the economy engine is rewritten later and things like this (which reflect real life) would be useful.

btw - one spelling thing. The word would be "Administer" not "Administrate" unless you speak some language just off English :-)

- JD
traskjd
Engineer
Engineer
Posts: 40
Joined: 17 Nov 2004 04:18
Location: Wellington, New Zealand
Contact:

Post by traskjd »

One thought, to reflect a real economy you could have something like "The official cash rate" which is what most central banks (read: government) alter in order to increase and decrease interest rates for all banks operating in the country.

Again, possibly more of a think of the economic re-write, but just a thought. Might be nice to know you'll lose 10% to fees, but that you think it would go down to 2% in the near future etc.

- JD
User avatar
mdhowe
Route Supervisor
Route Supervisor
Posts: 446
Joined: 09 Jul 2004 07:12
Location: Hobart, Australia

Post by mdhowe »

Sounds very interesting, good job!

Have you thought about submitting it to Sourceforge so the devs can keep track of it?
"Set fashion, not follow. Spit vitriol, not swallow" - Marilyn Manson
User avatar
LordOfThePigs
Route Supervisor
Route Supervisor
Posts: 435
Joined: 01 Jul 2004 10:28
Location: Jura/Switzerland

Post by LordOfThePigs »

mdhowe wrote:Sounds very interesting, good job!

Have you thought about submitting it to Sourceforge so the devs can keep track of it?
I'll do this as soon as it's totally finished. To be honest, I just wanted some motivating feedback before going on.

About the spelling, that was just a wild guess, my mother tongue isn't english, it's french.

Lord of the Pigs.
Sometimes I'm told "Brilliant"...
Sometimes I'm told "Charming"...
And Often I'm told "Shut Up"!
Moriarty
Tycoon
Tycoon
Posts: 1395
Joined: 12 Jun 2004 00:37
Location: United Kingdom of Great Britain and Northern Ireland
Contact:

Post by Moriarty »

Personally i believe the word "administrate" is actually preferable to Administer.

Administrate means "to administer".


Relating to the gameplay: I don't think the companies should be able to bounce cash around between themselves that easily.
It makes sense for the mother company to give money to the subsidiary, however the ability to give cash doesn't make much sense. Maybe if a percent of the subsidiaries profits went to the mother company or something similar.
traskjd
Engineer
Engineer
Posts: 40
Joined: 17 Nov 2004 04:18
Location: Wellington, New Zealand
Contact:

Post by traskjd »

I see - and you're free to keep it that way. Usually in my development when naming buttons I say "I would click here to"... and pick the word.

For example:

- I would click here to save
- I would click here to merge
- I would click here to edit
- I would click here to send money

as this keeps it consistant hence why I thought "Administer" would be best (and it is onmy my opinion) and it would add consistency.

- JD
User avatar
Villem
Tycoon
Tycoon
Posts: 3310
Joined: 28 Aug 2003 09:38

Post by Villem »

Whee Finally i can have diffrent coloured trains visiting the same station when this is intergrated..
Joker
Transport Coordinator
Transport Coordinator
Posts: 259
Joined: 01 Oct 2004 12:16
Location: Earth, Europe, Czech Republic, Prague

Post by Joker »

Well I guess that it enables tunelling, too :lol:

I don't know if the term "tunelling" is used widely, so I'll explain what it means:
1. found daughter company
2. daughter company borrows money from the bank
3. transfer all the capital from daughter company to mother company
4. daughter company declares bankrupt
5. if (lucky) goto 1. else goto prison :lol:
User avatar
LordOfThePigs
Route Supervisor
Route Supervisor
Posts: 435
Joined: 01 Jul 2004 10:28
Location: Jura/Switzerland

Post by LordOfThePigs »

I had thought about that problem, however it is prevented.

Daughter companies cannot borrow money (they can repay though)
If They need money, they can get it from any of their sister (or mother) companies.

Bad boy, no cheating.
Sometimes I'm told "Brilliant"...
Sometimes I'm told "Charming"...
And Often I'm told "Shut Up"!
User avatar
LordOfThePigs
Route Supervisor
Route Supervisor
Posts: 435
Joined: 01 Jul 2004 10:28
Location: Jura/Switzerland

Post by LordOfThePigs »

Ok, the patch is complete. Here is the full feature set of the "Subsidiaries Management" patch.

Creating a subsidiary:
You can create a subsidiary by either, buying out 100% of an AI company, or creating your own subsidiary from scratch.

Features of subsidiaries:
Any Vehicle from any sister company can use the tracks roads, stations or depot of any other sister company. It thus enables you to build multicolor network such as in the screen shot (You could have one color for cargo, one for passengers, one for aircrafts, and any onther you might think about).
They can be pretty usefull when you have to terraform, or destroy a lot of city buildings, do this with one of your subsidiaries, and then build the station using another one.
Also, any subsidiary may freely connect their railway tracks to sister of (mother) companies. Building multicolor networks has never been so easy!

Limitations of subsidiaries:
Even if they look they are, subsidiaries aren't full blown companies, and have some restrictions applied to their behavior. For example, a subsidiary cannot borrow money, only the mother company can.
How can you finance your subsidiairies then? You can easily transfer any amount of money to and from any of your subsidiary using the management window. But please note that it costs ~3% of the transaction amount in bank fees, so your subsidiaries had better be profitable.

Well, I guess that's it. Check out the SF tracker for the patch. If you have a compiler and an SVN client, please try it out, and tell me what you think.

I can't wait to have it included in the nighties...

Lord of the Pigs
Attachments
Nantes Transports, 5th Jul 1950.png
(270.97 KiB) Downloaded 1788 times
Sometimes I'm told "Brilliant"...
Sometimes I'm told "Charming"...
And Often I'm told "Shut Up"!
User avatar
nwa320
Engineer
Engineer
Posts: 40
Joined: 06 Feb 2004 10:01

Post by nwa320 »

Hey great work dude
I have been waiting for this for so long! now my airlines can finaly have dedicated low-cost and regional brands! I am a newish user so is their anyway you can post a link to somewhare ware i can just install an exe version as i dont have compiler or svn and dont know how to code

I thank you once again on the best new patch!
GARBAGE - The One and Only
New Album (Bleed Like Me) is Awesome
User avatar
LordOfThePigs
Route Supervisor
Route Supervisor
Posts: 435
Joined: 01 Jul 2004 10:28
Location: Jura/Switzerland

Post by LordOfThePigs »

nwa320 wrote:Is their anyway you can post a link to somewhare ware i can just install an exe version as i dont have compiler or svn and dont know how to code
Sure here it is. It's only a windows executable, I don't have what's required to cross build for other platforms (and would have no way to check it actually works).

All you have to do is extract the exe to your openTTD directory. You'll want to rename the original exe file before doing that (so that if something goes wrong, you can easily go back to your previous version).

Lord of the pigs
Sometimes I'm told "Brilliant"...
Sometimes I'm told "Charming"...
And Often I'm told "Shut Up"!
User avatar
nwa320
Engineer
Engineer
Posts: 40
Joined: 06 Feb 2004 10:01

Post by nwa320 »

Thankyou very much mate :lol:
much appreciated and keep up the good work
:wink: nwa320
GARBAGE - The One and Only
New Album (Bleed Like Me) is Awesome
User avatar
nwa320
Engineer
Engineer
Posts: 40
Joined: 06 Feb 2004 10:01

Post by nwa320 »

hey sorry but I get a invalid language packs error so if possible could be a legend and tell me what lang files i need or upload the ones that that .exe file usually operates with


cheers Lord of the pigs
GARBAGE - The One and Only
New Album (Bleed Like Me) is Awesome
User avatar
LordOfThePigs
Route Supervisor
Route Supervisor
Posts: 435
Joined: 01 Jul 2004 10:28
Location: Jura/Switzerland

Post by LordOfThePigs »

Ooops, sorry. Here it is, the only usable languge yet is english.
Just copy it into your OTTD/lang directory. Don't forget to backup your original english.lang (so you can revert back to the original version at any time).
Last edited by LordOfThePigs on 28 Nov 2004 22:46, edited 5 times in total.
Sometimes I'm told "Brilliant"...
Sometimes I'm told "Charming"...
And Often I'm told "Shut Up"!
Moriarty
Tycoon
Tycoon
Posts: 1395
Joined: 12 Jun 2004 00:37
Location: United Kingdom of Great Britain and Northern Ireland
Contact:

Post by Moriarty »

lordofthepigs: a typo for you: in the screenie it says "substract".
I think you mean "Subtract" (only 1 s :) ).

taskjd:
I would click here to Administrate
I would click here to Administer

Both work using your logic 8) . But for some reason Administrate sounds better to me. :)

i can never remember all that stuff about nouns/verbs etc, so looking it up won't get me far (as in clarifying which is preferable. :(
User avatar
mdhowe
Route Supervisor
Route Supervisor
Posts: 446
Joined: 09 Jul 2004 07:12
Location: Hobart, Australia

Post by mdhowe »

Administer & Administrate are synonyms (mean exactly the same thing)

A couple of google searches show that "administer" is much more widely used.

7,140,000 for administer

291,000 for administrate
"Set fashion, not follow. Spit vitriol, not swallow" - Marilyn Manson
User avatar
LordOfThePigs
Route Supervisor
Route Supervisor
Posts: 435
Joined: 01 Jul 2004 10:28
Location: Jura/Switzerland

Post by LordOfThePigs »

Moriarty wrote:lordofthepigs: a typo for you: in the screenie it says "substract".
I think you mean "Subtract" (only 1 s :) ).
Well, I'll fix this. As for the Administrate vs Administer issue. My opinion is that's just splitting hair in 4 (does this expression exist in english?).

Lord of the pigs
Sometimes I'm told "Brilliant"...
Sometimes I'm told "Charming"...
And Often I'm told "Shut Up"!
Moriarty
Tycoon
Tycoon
Posts: 1395
Joined: 12 Jun 2004 00:37
Location: United Kingdom of Great Britain and Northern Ireland
Contact:

Post by Moriarty »

lordofthepigs: The expression in English is:

"splitting hairs"

No need for the number 4. :)
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 11 guests