Updated extra-large-maps patch, version 12 (for r23992)

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
CommanderZ
Tycoon
Tycoon
Posts: 1872
Joined: 07 Apr 2008 18:29
Location: Czech Republic
Contact:

Re: Updated extra-large-maps patch, version 11 (for r19000)

Post by CommanderZ »

I assume the reason for the crash is it a 32 bit and not 64
You are most likely correct. Applications in 32-bit Windows have 2 GB memory limit. This can expand the limit to 3 GB, but no further. The only other options are either playing smaller maps, or getting a 64 bit version of OTTD (trunk is no problem, but you will most likely have to compile the patched version yourself).
wozzar
Transport Coordinator
Transport Coordinator
Posts: 328
Joined: 27 Dec 2002 09:25

Re: Updated extra-large-maps patch, version 11 (for r19000)

Post by wozzar »

CommanderZ wrote:
I assume the reason for the crash is it a 32 bit and not 64
You are most likely correct. Applications in 32-bit Windows have 2 GB memory limit. This can expand the limit to 3 GB, but no further. The only other options are either playing smaller maps, or getting a 64 bit version of OTTD (trunk is no problem, but you will most likely have to compile the patched version yourself).
Thanks for that. I don't know how to compile it. I did request a 64 bit map though some weeks ago.
User avatar
Bilbo
Tycoon
Tycoon
Posts: 1710
Joined: 06 Jun 2007 21:07
Location: Czech Republic

Re: Updated extra-large-maps patch, version 11 (for r19000)

Post by Bilbo »

wozzar wrote:Hey Bilbo are you able to make the large maps for WIN 7 64 bit please. I take it i cant use the win 32 maps.
Sorry, but I don't have windows currently installed on my computer, so I can't make any windows binaries.

I can try installing mingw32 as crosscompiler, but last time I tried it, it doesn't end up very well and it produces only win32 binaries anyway.

Is there some linux crosscompiler (or windows compiler that works under WINE) that is able to compile win64 binaries from OpenTTD source?
If you need something, do it yourself or it will be never done.

My patches: Extra large maps (1048576 high, 1048576 wide) (FS#1059), Vehicle + Town + Industry console commands (FS#1060), few minor patches (FS#2820, FS#1521, FS#2837, FS#2843), AI debugging facility

Other: Very large ships NewGRF, Bilbo's multiplayer patch pack v5 (for OpenTTD 0.7.3)
User avatar
Bilbo
Tycoon
Tycoon
Posts: 1710
Joined: 06 Jun 2007 21:07
Location: Czech Republic

Re: Updated extra-large-maps patch, version 11 (for r19000)

Post by Bilbo »

CARST wrote:Bilbo could you update the patch to the newest revision 19400+ please?
I've updated the patch to r19615, get updated version in the first post of this thread.
If you need something, do it yourself or it will be never done.

My patches: Extra large maps (1048576 high, 1048576 wide) (FS#1059), Vehicle + Town + Industry console commands (FS#1060), few minor patches (FS#2820, FS#1521, FS#2837, FS#2843), AI debugging facility

Other: Very large ships NewGRF, Bilbo's multiplayer patch pack v5 (for OpenTTD 0.7.3)
Cadde
Transport Coordinator
Transport Coordinator
Posts: 290
Joined: 07 Oct 2004 12:51

Re: Updated extra-large-maps patch, version 11 (for r19615)

Post by Cadde »

So, has anyone considered or even tried to make OTTD run on more than one core?
Now, i know maps larger than 8k is quite huge and would take so long to fill with stuff that it would be practically impossible to do so within the timeframe of one game. (Unless daylength patch is used on a stupid high value) but if OTTD would use all cores of modern PC's and network would allow for (one can dream) some 256 players or more on a really powerful machine (like a blade server) we could possibly see our very first MMO type OTTD game.

My dream is a map with the 1mx1m map size and LOTS of players. It would be the end of all sanity as hundreds of people are connecting up networks all over.
Bring cargodist into the mix and you would see passengers going across that map in thousands of steps. :)

Either way, keep up the good work! :bow:
User avatar
Bilbo
Tycoon
Tycoon
Posts: 1710
Joined: 06 Jun 2007 21:07
Location: Czech Republic

Re: Updated extra-large-maps patch, version 11 (for r19615)

Post by Bilbo »

Multiplayer game with many people? .... I think there were some experimental patch that added support for 255 players and some other modifications. Get lot of people and you fill up any map pretty fast.
Look at http://wiki.openttd.org/WWOTTDGD for details.
My dream is a map with the 1mx1m map size and LOTS of players.
You need approx. 10 bytes per tile, double the amount when loading or saving. 1m x 1m map = ~ 20 terabytes of RAM needed. According to moore's law, you can expect computers with necessary RAM size to be common somewhere around 2030. But you'll hit probably CPU speed limits sooner than limits of RAM size, with current CPU's 4k x 4k is reasonable maximum (tile loop is major CPU eater at these or larger sizes)
If you need something, do it yourself or it will be never done.

My patches: Extra large maps (1048576 high, 1048576 wide) (FS#1059), Vehicle + Town + Industry console commands (FS#1060), few minor patches (FS#2820, FS#1521, FS#2837, FS#2843), AI debugging facility

Other: Very large ships NewGRF, Bilbo's multiplayer patch pack v5 (for OpenTTD 0.7.3)
Darkhorse
Engineer
Engineer
Posts: 3
Joined: 15 Apr 2010 02:27

Re: Updated extra-large-maps patch, version 11 (for r19615)

Post by Darkhorse »

Hello,

Bilbo I am new to this great game and would like to use your extra large maps patch but do not know how to make it work. Could you walk me through the installation of it please?

Thank you
User avatar
Bilbo
Tycoon
Tycoon
Posts: 1710
Joined: 06 Jun 2007 21:07
Location: Czech Republic

Re: Updated extra-large-maps patch, version 11 (for r19615)

Post by Bilbo »

Darkhorse wrote:Could you walk me through the installation of it please?
Well, what system are you using? (Windows? Linux? Instructions for these differ a bit ....) Do you have a compiler and subversion client installed?

The installation is quite simple - you get the sources, apply the patch, compile and then install binaries - if you have the right tools already installed.
If you need something, do it yourself or it will be never done.

My patches: Extra large maps (1048576 high, 1048576 wide) (FS#1059), Vehicle + Town + Industry console commands (FS#1060), few minor patches (FS#2820, FS#1521, FS#2837, FS#2843), AI debugging facility

Other: Very large ships NewGRF, Bilbo's multiplayer patch pack v5 (for OpenTTD 0.7.3)
User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2369
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: Updated extra-large-maps patch, version 11 (for r19615)

Post by Lord Aro »

Darkhorse wrote: Could you walk me through the installation of it please?
See here: http://wiki.openttd.org/compiling
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
SSA0587
Engineer
Engineer
Posts: 1
Joined: 18 Apr 2010 20:31

Re: Updated extra-large-maps patch, version 11 (for r19615)

Post by SSA0587 »

Please pardon my inquiry, but why hasn't this been included in the official release (or even the nightly)? Great work Bilbo!
User avatar
Bilbo
Tycoon
Tycoon
Posts: 1710
Joined: 06 Jun 2007 21:07
Location: Czech Republic

Re: Updated extra-large-maps patch, version 11 (for r19615)

Post by Bilbo »

I don't know - decision whether something is included in trunk or not is up to devs. Some time ago they requested some minor modifications, I created patch with these modifications and since that time it is quite quiet - well, one part of the patch (faster checking of train collisions, that also does not have problems with map size > 2048) got to trunk, but the rest not.

There is task in flyspray for this patch - http://bugs.openttd.org/task/1059

Last message from devs is from 2007, since then there are only occasional updated versions from me.
If you need something, do it yourself or it will be never done.

My patches: Extra large maps (1048576 high, 1048576 wide) (FS#1059), Vehicle + Town + Industry console commands (FS#1060), few minor patches (FS#2820, FS#1521, FS#2837, FS#2843), AI debugging facility

Other: Very large ships NewGRF, Bilbo's multiplayer patch pack v5 (for OpenTTD 0.7.3)
User avatar
ChillCore
Tycoon
Tycoon
Posts: 2822
Joined: 04 Oct 2008 23:05
Location: Lost in spaces

Re: Updated extra-large-maps patch, version 11 (for r19615)

Post by ChillCore »

Have you tried presenting it without changing total mapsize, making it a longer mapside patch?
Maximum would be 64 * 32786 over 2048 * 2048 to 32786 * 64.
With the long distance collision check allready in trunk this should be possible without increasing system load to much.
Then to increase the mapsize, when better computers become available, it would only be two parameters to retune.
Just an idea. ;)
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.

Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
User avatar
Bilbo
Tycoon
Tycoon
Posts: 1710
Joined: 06 Jun 2007 21:07
Location: Czech Republic

Re: Updated extra-large-maps patch, version 11 (for r19615)

Post by Bilbo »

That is exactly what the version posted on flyspray does - and it is even more limited, than what you suggest, the longer size of the map can be at most 8192 and maximal number of tiles remain the same (2048 * 2048), so you can have for example 8192 * 512. Basically it is the same version as here with these two constants changed to more "reasonable" values.
If you need something, do it yourself or it will be never done.

My patches: Extra large maps (1048576 high, 1048576 wide) (FS#1059), Vehicle + Town + Industry console commands (FS#1060), few minor patches (FS#2820, FS#1521, FS#2837, FS#2843), AI debugging facility

Other: Very large ships NewGRF, Bilbo's multiplayer patch pack v5 (for OpenTTD 0.7.3)
User avatar
ChillCore
Tycoon
Tycoon
Posts: 2822
Joined: 04 Oct 2008 23:05
Location: Lost in spaces

Re: Updated extra-large-maps patch, version 11 (for r19615)

Post by ChillCore »

The last time I read the flyspray entry, which has been a while ago, I thought it was 8192 * 8192, my bad.
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.

Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
Stuffi
Engineer
Engineer
Posts: 4
Joined: 11 Mar 2010 17:08

Re: Updated extra-large-maps patch, version 11 (for r19615)

Post by Stuffi »

hey everyone!

I had a little problem while compilling openttd (r19615) with the extra large map patch (r19615) in x64 with MSVC++.

Here the error message:

4> .. \ src \ genworld_gui.cpp (336): error C2664: 'Show Error Message': can not convert parameter 3 from 'int' to 'Warning Level' not possible
4> Conversion to enumeration requires an explicit cast (static_cast operator or a cast or function in the C format)

I hope that someone could help me.

Stuffi
Stuffi
Engineer
Engineer
Posts: 4
Joined: 11 Mar 2010 17:08

Re: Updated extra-large-maps patch, version 11 (for r19615)

Post by Stuffi »

i now compiled an older version of openttd (r19009) with the patch(r19009). Compilling runs without any error only some warnings.

But now the game crashes...i don't know why...here you'll find the crash log.

http://pastebin.com/MRtHqGCA

I hope that someone, have an idea to solve the problem...

Stuffi
User avatar
ChillCore
Tycoon
Tycoon
Posts: 2822
Joined: 04 Oct 2008 23:05
Location: Lost in spaces

Re: Updated extra-large-maps patch, version 11 (for r19615)

Post by ChillCore »

Stuffi wrote: 4> .. \ src \ genworld_gui.cpp (336): error C2664: 'Show Error Message': can not convert parameter 3 from 'int' to 'Warning Level' not possible
4> Conversion to enumeration requires an explicit cast (static_cast operator or a cast or function in the C format)
There was a codechange in trunk some time ago.
Change this line:

Code: Select all

ShowErrorMessage(STR_MAPGEN_TOO_MANY_TILES_MESSAGE, INVALID_STRING_ID, 0, 0);
to this:

Code: Select all

ShowErrorMessage(STR_MAPGEN_TOO_MANY_TILES_MESSAGE, INVALID_STRING_ID, WL_ERROR);
and it should work.

Or you could revert your code and apply attached bumped patch. ;)
Attachments
map-1M-r20738.diff
(12.51 KiB) Downloaded 169 times
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.

Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
Stuffi
Engineer
Engineer
Posts: 4
Joined: 11 Mar 2010 17:08

Re: Updated extra-large-maps patch, version 11 (for r19615)

Post by Stuffi »

nice!!! :bow: big thanks!!!

i love you :P 8)

thanks a lot!!

Stuffi
Wasila
Tycoon
Tycoon
Posts: 1498
Joined: 15 Mar 2008 07:02

Re: Updated extra-large-maps patch, version 11 (for r19615)

Post by Wasila »

I compiled Chillcore's patch with r20773, however the game crashed upon opening CARSTS World Scenario in the scenario editor.
Attachments
OpenTTD Crash.zip
(14.63 KiB) Downloaded 146 times
Wasila
Tycoon
Tycoon
Posts: 1498
Joined: 15 Mar 2008 07:02

Re: Updated extra-large-maps patch, version 11 (for r19615)

Post by Wasila »

And upon playing the scenario and using trams:
Attachments
OpenTTD Crash 2.zip
(192.87 KiB) Downloaded 143 times
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 41 guests