Infrastructure sharing 2.1.1

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
MagicBuzz
Tycoon
Tycoon
Posts: 1354
Joined: 15 Feb 2003 17:32
Location: Vergezac, France

Re: Infrastructure sharing 2.1.1

Post by MagicBuzz »

Here is a Win32 binary compiled with MS Visual C++ 2010 Express.

Tell me if there is any problem running this binary, I may omitted something in the archive.
=> Unzip using 7zip
Attachments
win32_binary_is_r21382.7z
IS binary updated with r21382 trunk
(2.64 MiB) Downloaded 135 times
User avatar
MagicBuzz
Tycoon
Tycoon
Posts: 1354
Joined: 15 Feb 2003 17:32
Location: Vergezac, France

Re: Infrastructure sharing 2.1.1

Post by MagicBuzz »

Here is a small refresh of the patch and binary.

There is not any code change, just some fixes in the patch file (forgot one file, some useless changes in the VC++ 10 project file, etc.)
Attachments
is_r21439.patch
(66.09 KiB) Downloaded 133 times
win32_binary_is_r21439.7z
(2.65 MiB) Downloaded 216 times
User avatar
hitanykeytocontinue
Engineer
Engineer
Posts: 5
Joined: 02 Mar 2010 21:52
Location: Berlin

Re: Infrastructure sharing 2.1.1

Post by hitanykeytocontinue »

Hey, I haven't been on the forum for ages, so I missed probably the best patch ever, which is this one. Problem is, that I have no idea how to compile it and BuildOTTD seems not to work. I get both error messages, that are stated on the wiki page.
Could someone please compile the newest version of the Infrastructure patch with OpenTTD 1.0.5 64 bit or 32 bit? That would be awesome!
Thanks in advance.

EDIT:
I forgot to say that I meant for Windows 7....
Image
Eddi
Tycoon
Tycoon
Posts: 8272
Joined: 17 Jan 2007 00:14

Re: Infrastructure sharing 2.1.1

Post by Eddi »

what's wrong with the binaries in the first post?
User avatar
hitanykeytocontinue
Engineer
Engineer
Posts: 5
Joined: 02 Mar 2010 21:52
Location: Berlin

Re: Infrastructure sharing 2.1.1

Post by hitanykeytocontinue »

Eddi wrote:what's wrong with the binaries in the first post?
The game opens and then crashs immidiately. Same thing with the Win x86 version.

Here is what the error message says:

*** OpenTTD Crash Report ***

Crash at: Fri Mar 25 12:31:05 2011

Crash reason:
Exception: C0000005
Location: 000000013FA4D580
Message: <none>

OpenTTD version:
Version: IS2.1.1 (0)
NewGRF ver: 100048eb
Bits: 64
Endian: little
Dedicated: no
Build date: Dec 30 2009 20:57:27

Registers:
RAX: 00000000FFFFFFFF RBX: 000000000028E960 RCX: 000000000028E960 RDX: 0000000000000000
RSI: FFFFFFFFFFFFFFFF RDI: 0000000000000000 RBP: 0000000000000000 RSP: 000000000028E8B0
R8: 000000000028EC26 R9: 00000000000001B6 R10: 00000000C0000034 R11: 000000000000FFFF
R12: 0000000000000001 R13: 0000000000000001 R14: 0000000000000000 R15: 000000013FA00000
RIP: 000000013FA4D580 EFLAGS: 00010297

Bytes at instruction pointer:
8A 02 84 C0 74 0D 88 03 48 FF C3 48 FF C2 49 3B D8 75 ED C6 03 00 49 3B

Stack trace:
00000040 000D0000 00000000 00000000 00000000 00000000 00000200 00000000
00000007 00000000 3FA19122 00000001 00000006 00000000 FFFFFFFF FFFFFFFF
3FDF9D08 00000001 00438EF0 00000000 3FDF9C48 00000001 00000000 00000000
00620072 00000000 01D62FC0 00000000 30000030 00000000 0000008D 00000000
00000000 00000000 00000000 00000000 00000801 00000000 01CD0000 00000000
01D59FC0 00000000 FFFFFFFE FFFFFFFF 00430000 00000000 0028EA48 00000000
77328201 00000000 0000000A 00000000 00000801 00000000 773282A0 00000000
00430000 00000000 00000000 00000000 00000008 00000000 77248006 00000000
01D596F0 00000000 00430000 00000000 77328200 00000000 0000098D 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00430158 00000000 00430000 00000000 77264A0C 00000000
6578656F 63732E63 00300072 00000000 00000000 00000000 0000098D 00000000
00000000 00000000 00000000 00000000 00000000 00000000 0000008B 00000000
00000000 00000000 00000A00 00000001 01D61700 00000000 01D61710 00000000
00000000 00000000 00000030 00000000 00000000 00000000 018C0000 00020000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00430158 00000000 00000000 00000000 00000000 00000000 01D61700 00000000
00000000 00000000 01D61710 00000000 00000000 00000000 00000000 00000000
00000000 0000010C 0000008B 00000000 00000000 00000000 00000000 00000000
00000101 00000000 00000000 00000000 00000000 00000000 000003FF 00000000
000003FF 00000000 0000008B 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 01D11C80 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

Operating system:
Name: Windows
Release: 6.1.7600 ()
MSVC: Yes

Configuration:
Blitter: 8bpp-optimized
Graphics set: OpenGFX
Language: german.lng
Music driver: win32
Music set: NoMusic
Sound driver: win32
Sound set: NoSound
Video driver: win32

AI Configuration:

Libraries:
FreeType: 2.3.11
ICU: 4.2.1
PNG: 1.2.40

Module information:
D:\OpenTTD\openttd.exe handle: 000000013FA00000 size: 5125120 crc: 9C6AAE54 date: 2009-12-30 20:02:06
C:\Windows\SYSTEM32\ntdll.dll handle: 0000000077210000 size: 1739176 crc: 08AFD0C3 date: 2010-10-27 05:16:01
C:\Windows\system32\kernel32.dll handle: 0000000076C90000 size: 1162240 crc: 822946F0 date: 2009-07-14 01:41:13
C:\Windows\system32\KERNELBASE.dll handle: 000007FEFD8A0000 size: 421376 crc: 68F689E4 date: 2009-07-14 01:41:13
C:\Windows\system32\WINMM.dll handle: 000007FEF8CA0000 size: 217600 crc: 7BC1529F date: 2009-07-14 01:41:56
C:\Windows\system32\msvcrt.dll handle: 000007FEFF480000 size: 634880 crc: 7F3E716F date: 2009-07-14 01:41:32
C:\Windows\system32\USER32.dll handle: 0000000077110000 size: 1008640 crc: 95FA0345 date: 2009-07-14 01:41:56
C:\Windows\system32\GDI32.dll handle: 000007FEFDB40000 size: 404480 crc: 0F1BAE69 date: 2009-07-14 01:40:56
C:\Windows\system32\LPK.dll handle: 000007FEFDBB0000 size: 41984 crc: 350AF03B date: 2009-07-14 01:41:19
C:\Windows\system32\USP10.dll handle: 000007FEFDCA0000 size: 801280 crc: 32EFA120 date: 2009-07-14 01:41:56
C:\Windows\system32\WS2_32.dll handle: 000007FEFDD70000 size: 296448 crc: B9553AFD date: 2009-07-14 01:41:58
C:\Windows\system32\RPCRT4.dll handle: 000007FEFDDC0000 size: 1221632 crc: D5B6358C date: 2009-07-14 01:41:53
C:\Windows\system32\NSI.dll handle: 000007FEFDF10000 size: 13824 crc: 53B46F6C date: 2009-07-14 01:41:53
C:\Windows\system32\ADVAPI32.dll handle: 000007FEFDBC0000 size: 877056 crc: FA615A20 date: 2009-07-14 01:40:01
C:\Windows\SYSTEM32\sechost.dll handle: 000007FEFEF90000 size: 113664 crc: 978CFAE5 date: 2009-07-14 01:41:53
C:\Windows\system32\SHELL32.dll handle: 000007FEFE130000 size: 14162944 crc: 38C0D5D7 date: 2010-07-27 14:59:11
C:\Windows\system32\SHLWAPI.dll handle: 000007FEFF400000 size: 449536 crc: 0BFDF102 date: 2009-07-14 01:41:54
C:\Windows\system32\IMM32.DLL handle: 000007FEFEF60000 size: 167424 crc: 41B2805A date: 2009-07-14 01:41:09
C:\Windows\system32\MSCTF.dll handle: 000007FEFF2F0000 size: 1067008 crc: 798DDDA0 date: 2009-07-14 01:41:28
C:\Windows\system32\SHFolder.dll handle: 000007FEF5670000 size: 10240 crc: 08A48DE3 date: 2009-07-14 01:41:54
C:\Windows\system32\ole32.dll handle: 000007FEFDF20000 size: 2085376 crc: 4764DDC2 date: 2010-06-29 05:39:12
C:\Windows\system32\MMDevAPI.DLL handle: 000007FEFC4B0000 size: 284160 crc: CDF2EF81 date: 2009-07-14 01:41:26
C:\Windows\system32\PROPSYS.dll handle: 000007FEFC380000 size: 1212416 crc: 98D01BC9 date: 2009-07-14 01:41:53
C:\Windows\system32\OLEAUT32.dll handle: 000007FEFEFB0000 size: 861184 crc: 112732BA date: 2010-04-07 07:37:39
C:\Windows\system32\wdmaud.drv handle: 000007FEF8910000 size: 217088 crc: AB6BC545 date: 2009-07-14 01:38:50
C:\Windows\system32\ksuser.dll handle: 0000000073480000 size: 5120 crc: AA2071D9 date: 2009-07-14 01:41:13
C:\Windows\system32\AVRT.dll handle: 000007FEFC370000 size: 18432 crc: 5CE53CB7 date: 2009-07-14 01:40:05
C:\Windows\system32\SETUPAPI.dll handle: 000007FEFF090000 size: 1899520 crc: 91ED5D15 date: 2009-07-14 01:41:54
C:\Windows\system32\CFGMGR32.dll handle: 000007FEFD930000 size: 207360 crc: 369326FC date: 2009-07-14 01:40:15
C:\Windows\system32\DEVOBJ.dll handle: 000007FEFD910000 size: 93184 crc: A7541AE2 date: 2009-07-14 01:40:28
C:\Windows\system32\AUDIOSES.DLL handle: 000007FEF8770000 size: 296448 crc: 07CA71DE date: 2009-07-14 01:40:04
C:\Windows\system32\msacm32.drv handle: 000007FEF8760000 size: 25600 crc: 2B579A05 date: 2009-07-14 01:38:50
C:\Windows\system32\MSACM32.dll handle: 000007FEF8740000 size: 83456 crc: 3D67538B date: 2009-07-14 01:41:27
C:\Windows\system32\midimap.dll handle: 000007FEF8730000 size: 20480 crc: CB902A13 date: 2009-07-14 01:41:23
C:\Windows\system32\CRYPTBASE.dll handle: 000007FEFD5B0000 size: 44032 crc: F547C16E date: 2009-07-14 01:40:24
C:\Windows\system32\CLBCatQ.DLL handle: 000007FEFDAA0000 size: 607744 crc: 939E35C9 date: 2009-07-14 01:40:15
C:\Windows\system32\uxtheme.dll handle: 000007FEFBDB0000 size: 332288 crc: B0A13DF9 date: 2009-07-14 01:41:56
C:\Windows\system32\dwmapi.dll handle: 000007FEFB9D0000 size: 82432 crc: A459F360 date: 2009-07-14 01:40:34
C:\Windows\system32\mswsock.dll handle: 000007FEFCEF0000 size: 320000 crc: EA387916 date: 2009-07-14 01:41:34
C:\Windows\System32\wshtcpip.dll handle: 000007FEFC870000 size: 13312 crc: 5D1E2C55 date: 2009-07-14 01:41:58
C:\Windows\system32\psapi.dll handle: 00000000773E0000 size: 9216 crc: 84B5E9BA date: 2009-07-14 01:41:53

---- gamelog start ----
---- gamelog end ----

*** End of OpenTTD Crash Report ***
Image
oberhümer
Tycoon
Tycoon
Posts: 1283
Joined: 23 Oct 2009 19:35
Location: Here and there, sometime or another

Re: Infrastructure sharing 2.1.1

Post by oberhümer »

How about the one right above your post? (You need 7-Zip though.)
--- Licenses: GNU LGPL, version 2 or newer, code and graphics. CC-By-SA, graphics, alternatively. If you're using any, I'd like to hear about it --- Call them "track types" ---
--- Mostly inactive developer for: NuTracks - Central European Train Set --- Running/compiling for: Linux (x86) - Android - Windows (32/64 bit) ---

--- Need a file packer? 7-Zip --- BOINC - use your computing power to benefit science --- Block trackers, not ads --- Unix in dispersible pellets, the formula for the future. ---
User avatar
hitanykeytocontinue
Engineer
Engineer
Posts: 5
Joined: 02 Mar 2010 21:52
Location: Berlin

Re: Infrastructure sharing 2.1.1

Post by hitanykeytocontinue »

Yeah, after trying the first one, I tried the one above and it seems to work, but I get an error message, that some sprites are missing.
How can I solve that problem?

Btw: Thanks for the quick responses. The support for this game is just awesome!
Image
Eddi
Tycoon
Tycoon
Posts: 8272
Joined: 17 Jan 2007 00:14

Re: Infrastructure sharing 2.1.1

Post by Eddi »

"missing sprites" usually come from outdated OpenGFX. in that case, simply go to online content download, and update the base set.

it's usually nothing critical, missing sprites will show up as "?" or "i" symbols in places where they don't belong
User avatar
hitanykeytocontinue
Engineer
Engineer
Posts: 5
Joined: 02 Mar 2010 21:52
Location: Berlin

Re: Infrastructure sharing 2.1.1

Post by hitanykeytocontinue »

That easy? Awesome! Thanks. Now I am happy :)
Image
User avatar
Expresso
Tycoon
Tycoon
Posts: 1760
Joined: 09 Aug 2004 00:14
Location: Gouda, the Netherlands

Re: Infrastructure sharing 2.1.1

Post by Expresso »

Just had an idea to get around the greever problem (or, at least, it helps a lot).

First, players should not be allowed to manipulate their in any way when they are on rails owned by another player. This could be enabled or disabled by a patch setting.

Second, a player could mark infrastructure which s/he wishes to share (special flag, placed per tile). The flagged tiles cannot be changed anymore unless the flag is removed.

Tiles which are next to eachother are assigned to the same group of flagged tiles, this group of tiles could then be manipulated to allow entry to trains of other players.

Now, if the owner of a given group of tiles wishes to edit a marked peace of track, the tilegroup first makes sure all opponent trains are gone, and then the tilegroup is unlocked, allowing editing.

This also allows for some other nice things... for example different feas for different track segments.

Minor negative is that a need might arise to add 2 bytes per tile.

Just my 2 cents. Hope it's considered helpful.

Btw: typing this on my mobile phone.
acabin
Engineer
Engineer
Posts: 27
Joined: 05 Mar 2009 18:40

Re: Infrastructure sharing 2.1.1

Post by acabin »

patch against 22375
Attachments
is2-22375.diff
(41.78 KiB) Downloaded 87 times
I speak Chinglish...
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Infrastructure sharing 2.1.1

Post by planetmaker »

That won't compile. Even more so, if tried with MSVC.
acabin
Engineer
Engineer
Posts: 27
Joined: 05 Mar 2009 18:40

Re: Infrastructure sharing 2.1.1

Post by acabin »

eh..........
I forgot fix the vs100 project file, and I can comple it with MinGW and vs90.

It should work now.
Attachments
is2-22375-new.diff
(42.71 KiB) Downloaded 117 times
I speak Chinglish...
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Infrastructure sharing 2.1.1

Post by planetmaker »

acabin wrote:eh..........
I forgot fix the vs100 project file, and I can comple it with MinGW and vs90.

It should work now.
Nothing I looked at was fixed:

* VS80 file has remainder of failed merge
* you didn't use svn add
acabin
Engineer
Engineer
Posts: 27
Joined: 05 Mar 2009 18:40

Re: Infrastructure sharing 2.1.1

Post by acabin »

yes, I used svn diff but not svn add............ :(
I'm sorry.
Attachments
is2-22375-new.diff
(60.08 KiB) Downloaded 150 times
I speak Chinglish...
User avatar
Level Crossing
Tycoon
Tycoon
Posts: 1187
Joined: 07 Feb 2011 22:04
Location: East Coast, United States

Re: Infrastructure sharing 2.1.1

Post by Level Crossing »

Sorry for the bump. :oops:

Suggestion: Make an option for allowing/disallowing stopping trains on your tracks.

I don't know if this is feasible, so forgive me if it has already been discussed.
Like my avatar? See my screenshot thread
BabyBear
Engineer
Engineer
Posts: 7
Joined: 26 Mar 2007 19:04
Location: Belgium

Re: Infrastructure sharing 2.1.1

Post by BabyBear »

Hi all,

I really like the idea of this option. This way I got create my own multiplayer game in which I can create my WEMOVE transports company which contains out of 3 parts:
WEMOVE Infra (All infrastructure going from tracks, roads to stations)
WEMOVE Cargo (All trains, boats, trucks and planes transporting any kind of cargo except passengers)
WEMOVE People (All trains, boats, trucks and planes transporting passengers)

Now the issue I have is that I also use the FIRS industry set which is only compatible with later versions of Openttd. Does anyone know (or anyone want to create) a compiled version of this Infrastructure sharing patch for which I can also use FIRS? I use Mac OS to play openTTD, so windows compiled versions don't work for me.

Thanks in advance for your help
CTG - Casual, the gamer
welshdragon
Tycoon
Tycoon
Posts: 2148
Joined: 27 Jul 2007 15:45
Location: Sunny Wales, Boyo!
Contact:

Re: Infrastructure sharing 2.1.1

Post by welshdragon »

BabyBear wrote:Hi all,

I really like the idea of this option. This way I got create my own multiplayer game in which I can create my WEMOVE transports company which contains out of 3 parts:
WEMOVE Infra (All infrastructure going from tracks, roads to stations)
WEMOVE Cargo (All trains, boats, trucks and planes transporting any kind of cargo except passengers)
WEMOVE People (All trains, boats, trucks and planes transporting passengers)

Now the issue I have is that I also use the FIRS industry set which is only compatible with later versions of Openttd. Does anyone know (or anyone want to create) a compiled version of this Infrastructure sharing patch for which I can also use FIRS? I use Mac OS to play openTTD, so windows compiled versions don't work for me.

Thanks in advance for your help
Ha. ha. ha. No.
Chill's PatchPack is compiled to a later version, use WINE and try that
Semi-Retired TT-Forums Member.
These days I'm:
[list][*]A Local Transport Representative for Bus Users Cymru
[*]Social Media Advisxer for Bus Users Cymru
[*]Volunteer and Fundraiser for Guide Dogs[/list]
flickr | twitter | YouTube | Facebook | Steam

I used to be an idiot called tycoonmarkj.
BabyBear
Engineer
Engineer
Posts: 7
Joined: 26 Mar 2007 19:04
Location: Belgium

Re: Infrastructure sharing 2.1.1

Post by BabyBear »

acabin wrote:yes, I used svn diff but not svn add............ :(
I'm sorry.
Thanks for the file. It took me over a week to understand and apply this patch using macports and on first sight it seems I got it working.
The game started, and I was able to change the IS specific settings.
Will have a trial game on this within the coming days. Need to make sure I done all my work by the end of the day before I leave for a 2 week vacation.
CTG - Casual, the gamer
BabyBear
Engineer
Engineer
Posts: 7
Joined: 26 Mar 2007 19:04
Location: Belgium

Re: Infrastructure sharing 2.1.1

Post by BabyBear »

Worked great, especially with the mac feature spaces (Virtual desktops).
Started the game 3 times and joined the same game with each of them, once for each company. Just switch between spaces to go to the other companies :D

I do have a few remarks though:
- The infrastructure sharing costs don't increase over time (inflation is not taken into account)
- Label for the boat cost indicate road vehicles instead of boats.
- Default values for road vehicle costs and boat/airplane cost could be better set (Currently I use 10 for road vehicles and 150 for boats per day, don't have airplanes yet)
CTG - Casual, the gamer
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 24 guests