Infrastructure Sharing

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

User avatar
Gremnon
Tycoon
Tycoon
Posts: 1517
Joined: 16 Sep 2005 12:23
Skype: the_gremnon
Location: /home
Contact:

Re: Infrastructure Sharing

Post by Gremnon »

planetmaker wrote:The hg repository is reachable at http://mz.openttdcoop.org:8000/ -mind the port number.
I know that's where the repositry is, but either both tortoiseHG and the bash interface are set up wrong, or there's something they don't like about that repositry, because neither can locate it.
Chico008
Traffic Manager
Traffic Manager
Posts: 143
Joined: 05 Mar 2008 10:56
Location: France

Re: Infrastructure Sharing

Post by Chico008 »

i tried TortoiseHG and it worked fine, i get the repository and compile the version.

but how to know which version we get ?
on which Trunk are you based for your patch ?
User avatar
Gremnon
Tycoon
Tycoon
Posts: 1517
Joined: 16 Sep 2005 12:23
Skype: the_gremnon
Location: /home
Contact:

Re: Infrastructure Sharing

Post by Gremnon »

Solved it. I was using an old version.
But Chico has a point... which trunk revision is this based against?
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Infrastructure Sharing

Post by planetmaker »

Gremnon wrote:Solved it. I was using an old version.
But Chico has a point... which trunk revision is this based against?
Just check the log which show just at that link, if you paste it in your browser. The last merge with trunk was r14736 - quite some changes since...
User avatar
Gremnon
Tycoon
Tycoon
Posts: 1517
Joined: 16 Sep 2005 12:23
Skype: the_gremnon
Location: /home
Contact:

Re: Infrastructure Sharing

Post by Gremnon »

Hmm... inconvenient... but no matter, thanks for that useful bit of info... might help me see if i can patch it into a more recent build...
User avatar
escopena
Engineer
Engineer
Posts: 28
Joined: 22 Aug 2006 10:03
Location: Finland

Re: Infrastructure Sharing

Post by escopena »

Hi,

Have you any idea how to update my custom ottd build. I have first applied my custom patches against openttd trunk revision 14536. Then I applied IS patch which was made againts same trunk revision. After that I made some couplings between IS and my patches. Now I would like to update my patches and IS patch to trunk revision (svn r14736) but problem is that IS has been moved to mercurial. Actually I would like to update them to more reacent trunk revision but IS is not updated.

Which way to go?

1. Shall I first update my custom patches against trunk revision (svn r14736) an then merge them with current IS revision? Can svn patch/diff files be applied to mercurial repo?

2. Is it possible to get patch/diff file between IS mercurial repo and svn trunk which could be applied to svn repo. So I could continue developing my patches against svn repo, couldn't I?

Maybe the question is: Which way is easier: Try to get IS back to svn repo or move my patches to IS repo.

I studied mercurial and managed to get latest revision from IS repo. I also managed to make diff file between IS revision e17a18bb827f (svn r14536) and IS tip revision. Unfortunately diff file was broken due language file encondings. Which encoding should be used? I also tried to apply diff to svn truck revision (svn r14736) with no success.

Hopefully you understood my point(I am not sure myself:), if not, please ask!
Yeah!
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Infrastructure Sharing

Post by planetmaker »

Hi,
escopena wrote: 1. Shall I first update my custom patches against trunk revision (svn r14736) an then merge them with current IS revision? Can svn patch/diff files be applied to mercurial repo?
Sure they can. hg just is a version tracking system (a quite good one); the source can be patched as usual. Which way you go updating you patches, which first - that's mostly not an issue and doesn't matter much unless they conflict. Then there's no general solution. Best update everything to trunk seperately and then try to merge.
2. Is it possible to get patch/diff file between IS mercurial repo and svn trunk which could be applied to svn repo. So I could continue developing my patches against svn repo, couldn't I?
Also that is possible:
hg diff -rVERSION1:VERSION2 > patchfile.diff
works nicely. See hg help diff for more. That patch file needs to be applied with patch -p1 (instead of -p0 as usual svn procedure is).
Maybe the question is: Which way is easier: Try to get IS back to svn repo or move my patches to IS repo.
Well, you can do what you like. Personally I found it quite helpful to use mercurial queues (hg queues) for maintaining a number of patches which shall work jointly. It combines both: the ease to update a single patch at a time, saves MUCH hassle on integration and gives you easy as pie a joint patch. So I recommend to get a diff of IS to trunk it was last and then maintain all your patches, including IS, using hg queues. That's what I do in order to obtain things like http://trac.openttdcoop.org/changeset/564
Further, it's easy as pie to take out a single patch which just won't apply anymore or needs more fixing than you currently have time for. Later you can add it as easy again.
I studied mercurial and managed to get latest revision from IS repo. I also managed to make diff file between IS revision e17a18bb827f (svn r14536) and IS tip revision. Unfortunately diff file was broken due language file encondings. Which encoding should be used? I also tried to apply diff to svn truck revision (svn r14736) with no success.
I understand that some file encoding gives you problems, but I don't follow here. I never had that when it came to patches...

regards,
pm

EDIT: all this said, I'm really happy that you try to keep IS up to date with current trunk. I'm currently just missing the time :S
Chico008
Traffic Manager
Traffic Manager
Posts: 143
Joined: 05 Mar 2008 10:56
Location: France

Re: Infrastructure Sharing

Post by Chico008 »

are you still working on the project ?

no updates in mercurial since 4 weeks :s
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Infrastructure Sharing

Post by planetmaker »

I'm afraid, as it seems, I'll have to drop maintaining IS. Because with all the recent changes to trunk (especially inclusion of 15 companies as opposed 8), but also others, it - again - would rather mount to a re-write... :( And currently I just don't have the time to completely re-write a patch of this magnitude. There's after all, something called real life, too...

Anyone who feels like doing some serious work on this topic, please, contact me. The right to submit to the hg repository (or the possibility to actually create a new one, if desired) are there :) .
Chico008
Traffic Manager
Traffic Manager
Posts: 143
Joined: 05 Mar 2008 10:56
Location: France

Re: Infrastructure Sharing

Post by Chico008 »

arf, is there any hopes we get at least a final patch file for IS ?!

it's really a great patch for online playing, i hopes that OTTD Devs will include it.
User avatar
JacobD88
Chief Executive
Chief Executive
Posts: 710
Joined: 16 Aug 2008 17:51
Location: Long Eaton, Nottinghamshire. UK
Contact:

Re: Infrastructure Sharing

Post by JacobD88 »

Chico008 wrote:arf, is there any hopes we get at least a final patch file for IS ?!

it's really a great patch for online playing, i hopes that OTTD Devs will include it.

I think he's saying because of changes that have already been made to trunk its going to take too much time to write the next patch, so unless i'm corrected by the release of one, i think that's all for now... So no final release...

A shame really, right since i opened TTO (without the world editor even being released yet... so a hell of a time ago) i always wanted track sharing implemented as standard... I hoped TTD would bring it, it didn't, i then hoped the genius of Mr Drexler (and the rest) would bring it to TTDPatch, it didn't, so this patch was my best hope for a release into the OTTD trunk :cry:
dbkblk
Traffic Manager
Traffic Manager
Posts: 154
Joined: 29 Mar 2008 18:38

Re: Infrastructure Sharing

Post by dbkblk »

JacobD88 wrote:A shame really, right since i opened TTO (without the world editor even being released yet... so a hell of a time ago) i always wanted track sharing implemented as standard... I hoped TTD would bring it, it didn't, i then hoped the genius of Mr Drexler (and the rest) would bring it to TTDPatch, it didn't, so this patch was my best hope for a release into the OTTD trunk :cry:
I have to admit that this patch coupled with cargodest is definitly the ULTIMATE modifications to have fun in multiplayer friendly-party ! Life is hard with dreamy players sometimes... :)
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: Infrastructure Sharing

Post by DaleStan »

JacobD88 wrote:i always wanted track sharing implemented as standard... I hoped TTD would bring it, it didn't, i then hoped the genius of Mr Drexler (and the rest) would bring it to TTDPatch, it didn't
Um ... experimentalfeatures.cooperative?
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
User avatar
JacobD88
Chief Executive
Chief Executive
Posts: 710
Joined: 16 Aug 2008 17:51
Location: Long Eaton, Nottinghamshire. UK
Contact:

Re: Infrastructure Sharing

Post by JacobD88 »

DaleStan wrote:
JacobD88 wrote:i always wanted track sharing implemented as standard... I hoped TTD would bring it, it didn't, i then hoped the genius of Mr Drexler (and the rest) would bring it to TTDPatch, it didn't
Um ... experimentalfeatures.cooperative?
Ah, wasn't aware of that feature... which revision did it appear in? I stopped using TTPatch in 2006/7, that feature and Custom Bridge Heads may switch me away from OTTD once more :D
dihedral
Tycoon
Tycoon
Posts: 1053
Joined: 14 Feb 2007 17:48

Re: Infrastructure Sharing

Post by dihedral »

JacobD88 wrote: I stopped using TTPatch in 2006/7, that feature and Custom Bridge Heads may switch me away from OTTD once more :D
your choice! nobody's going to stop you!
User avatar
nm2588
Engineer
Engineer
Posts: 33
Joined: 09 Jul 2004 12:37
Location: Indiana

Re: Infrastructure Sharing

Post by nm2588 »

Okay, I downloaded the patch to work with version 14422 then went and downloaded that version using the instructions in this post: http://www.tt-forums.net/viewtopic.php?p=725810#p725810

When I run make it goes through and does the compile. So what do I do after that? I've never worked with patching or compiling a version of OTTD.
NM

Sweet forgiveness could ya roll me easy...
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Infrastructure Sharing

Post by planetmaker »

nm2588 wrote:Okay, I downloaded the patch to work with version 14422 then went and downloaded that version using the instructions in this post: http://www.tt-forums.net/viewtopic.php?p=725810#p725810

When I run make it goes through and does the compile. So what do I do after that? I've never worked with patching or compiling a version of OTTD.
if you did everything in exactly that order as described there, you should have a working binary with infrastructure sharing capabilities. You need to check out and change the advanced settings (or patch settings) in order to enable it.
User avatar
nm2588
Engineer
Engineer
Posts: 33
Joined: 09 Jul 2004 12:37
Location: Indiana

Re: Infrastructure Sharing

Post by nm2588 »

what do I need to copy over to my install of OTTD? I got to that part and don't know where to go from there.
NM

Sweet forgiveness could ya roll me easy...
Conditional Zenith
Chief Executive
Chief Executive
Posts: 697
Joined: 10 Jun 2003 00:19
Location: Australia

Re: Infrastructure Sharing

Post by Conditional Zenith »

From the bundle directory, copy across the binary and the language files.
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Infrastructure Sharing

Post by planetmaker »

If you have your base grf, your config file and the newgrf you want to use in the central directory as described in the readme you don't need to do anything. Just start the binary.

EDIT: For windows it should be something along the lines of C:\My Files\OpenTTD
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 2 guests