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

oktal
Engineer
Engineer
Posts: 1
Joined: 03 Feb 2006 04:49
Location: Hull, UK
Contact:

Post by oktal »

If this could be combined with multiplayer it would make an interesting new type of game, like a hybrid of co-op and competitive play, where you can co-operate on building infrastructure but still compete over cargo transportation, by having everyone join the same company but play as different subsidiaries.
User avatar
LordOfThePigs
Route Supervisor
Route Supervisor
Posts: 435
Joined: 01 Jul 2004 10:28
Location: Jura/Switzerland

Post by LordOfThePigs »

It already does that. All players can already control different companies and use the opponents' infrastructures (against a fee, of course). It also works in multiplayer.
Sometimes I'm told "Brilliant"...
Sometimes I'm told "Charming"...
And Often I'm told "Shut Up"!
KING
Traffic Manager
Traffic Manager
Posts: 180
Joined: 12 Dec 2005 08:03

Post by KING »

I would never use it.
1)since my busy jubctions are built for a MAX of 6 tile trains these 40 long trains would gridlock it.
2)Also some player would crash there train into mine or stop one of there trains on the main line.

soloutions for problem 2:
stop/start and run red signal commands for the owner of the TRACK not the TRAIN.
Image
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

KING wrote:stop/start and run red signal commands for the owner of the TRACK not the TRAIN.
No good. Track owner would just run the opponents' trains off to dead-end sidings and stop them there. Or, worse yet, crash them there.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Sebastiaan
Engineer
Engineer
Posts: 110
Joined: 20 Jun 2005 19:22
Location: Leuven, Belgium

Post by Sebastiaan »

i just love this patch. we've played 6 hours last night with an old integrated nightly (I4 if i recall correctly) to have subsidiaries and multiplayer.

if your competitors play decent this is amazing in multiplayer. i helped the guy out with too complex junctions... and then i cash a few mil every year for his trains running on them. :)

of course, if players get nasty fun could be over very fast. even without crashing trains: cou can add crossections on your opponent lines which could slow down his whole mainline and it would take a year before he notices.. (on a big map) For private gaming it's perfect though :D
gagarin
Engineer
Engineer
Posts: 57
Joined: 26 Feb 2006 18:52
Location: Berlin, Germany

Post by gagarin »

I've create a new diff-file, so that you can now patch subsidiaries in r3675.
I've startet a game, could overtake a company and let the trainis share rails, depos and stations.
Exchanging money works too.
So I think it should all work properly. :wink:
If not, please reply, so that I can fix it.

There is no windows-build, because I have no Windows on my computer. :roll:
I have patched all localized laguages, that were in the last patch. I hope they work. The german translation works.
Attachments
subsidiaries.r3675.diff
just patch and compile
(138.36 KiB) Downloaded 215 times
User avatar
LordOfThePigs
Route Supervisor
Route Supervisor
Posts: 435
Joined: 01 Jul 2004 10:28
Location: Jura/Switzerland

Post by LordOfThePigs »

Thanks a lot for your work!
Sometimes I'm told "Brilliant"...
Sometimes I'm told "Charming"...
And Often I'm told "Shut Up"!
RedDevil
Engineer
Engineer
Posts: 1
Joined: 27 Feb 2006 14:02

Post by RedDevil »

Could someone make this for windows avalble too?
I'm new here :oops: , so if i say something wrong please correct me :P
gagarin
Engineer
Engineer
Posts: 57
Joined: 26 Feb 2006 18:52
Location: Berlin, Germany

Post by gagarin »

Here is a windows prcompiled binary plus some languages for the subs patch.
Download 0.4.5 extract it and the extrat the zip in the game folder.
Attachments
r3675_subsidiaries_win32.zip
(588.59 KiB) Downloaded 232 times
gagarin
Engineer
Engineer
Posts: 57
Joined: 26 Feb 2006 18:52
Location: Berlin, Germany

Subsidiaries management, Build 3729

Post by gagarin »

Hi!

I have done the patch for r3729 and corrected a little bug.
The station owner for bus-stops was always set to 0.
This was corrected in the windows-build, I posted, too.

I try to post a windows build this evening (in europe :wink:).

Edit: There are some changes in the settings gui. I have to updtae those things in the patch. :(
gagarin
Engineer
Engineer
Posts: 57
Joined: 26 Feb 2006 18:52
Location: Berlin, Germany

Post by gagarin »

Finally its working.
I will upload a widowsbuild as soon as I can.

Edit: uploaded a new Patch, which includes the dutch translation
I have recent builds for Debian teting and FreeBSD 5.4, if anyone needs them, just ask.
Attachments
subsidiaries.r3736.diff
(143.92 KiB) Downloaded 286 times
Last edited by gagarin on 03 Mar 2006 07:11, edited 1 time in total.
User avatar
Thief^
Route Supervisor
Route Supervisor
Posts: 469
Joined: 10 Oct 2004 00:11

Post by Thief^ »

On the previous page is a dutch translation, would you add this to your patch? (To stop the next person forgetting it too).
You can upload new files into your last post by editing it.

Also, could someone change the thread title to the new build?
Melt with the Shadows,
Embrace your destiny...
gagarin
Engineer
Engineer
Posts: 57
Joined: 26 Feb 2006 18:52
Location: Berlin, Germany

Post by gagarin »

I can't change the title, since im not allowd to change the first post. It has to be done from a moderator or LordOfThePigs.
User avatar
LordOfThePigs
Route Supervisor
Route Supervisor
Posts: 435
Joined: 01 Jul 2004 10:28
Location: Jura/Switzerland

Post by LordOfThePigs »

Done!
Sometimes I'm told "Brilliant"...
Sometimes I'm told "Charming"...
And Often I'm told "Shut Up"!
gagarin
Engineer
Engineer
Posts: 57
Joined: 26 Feb 2006 18:52
Location: Berlin, Germany

Post by gagarin »

Thx LordOfThePigs.

Here is the latest windows build.

Edit: I uploaded a wrong file.
Attachments
openttd_r3755_win32.zip
(1.19 MiB) Downloaded 251 times
lordel
Engineer
Engineer
Posts: 9
Joined: 09 Aug 2005 14:13

Post by lordel »

gagarin wrote:Finally its working.
I will upload a widowsbuild as soon as I can.

Edit: uploaded a new Patch, which includes the dutch translation
I have recent builds for Debian teting and FreeBSD 5.4, if anyone needs them, just ask.
Hello,

I tried to patch it but tortoiseSVN says something like "Line Index: is missing. Maybe the file is empty or it is not a diff file"

What did I wrong?

Thanks for your help
gagarin
Engineer
Engineer
Posts: 57
Joined: 26 Feb 2006 18:52
Location: Berlin, Germany

Post by gagarin »

You could try with this one.
It's done with svn. The other one was done per hand.
Attachments
subsidiaries.r3778.diff
(117.43 KiB) Downloaded 261 times
User avatar
Thief^
Route Supervisor
Route Supervisor
Posts: 469
Joined: 10 Oct 2004 00:11

Post by Thief^ »

Yeah, hand-altering .diff files isn't good. Remember that the diff file keeps record of the line number a section starts for both the original and modifed versions. Or something like that anyway, I had to hand-modify one of the previous .diff files to remove my custom build settings and correct a diffing error: the diff file was made with svn but wouldn't patch back onto svn for some reason I can't remember now. The key is to check whether it works every time you change something.
Melt with the Shadows,
Embrace your destiny...
gagarin
Engineer
Engineer
Posts: 57
Joined: 26 Feb 2006 18:52
Location: Berlin, Germany

Post by gagarin »

It wasn't hand altered. It was done with diff instead of svn.
init
Engineer
Engineer
Posts: 93
Joined: 07 Apr 2005 10:01

Post by init »

gagarin wrote:You could try with this one.
It's done with svn. The other one was done per hand.
I tried this patch against a fresh checkout of rev 3778, and while the patch applies cleanly, the build fails miserably, with many complaints that it cannot find subsidiaries.h.

And, by the way, my build environment is Linux.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 11 guests