How to: Semi-automatic real world scenario generation

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

User avatar
aDe
Engineer
Engineer
Posts: 66
Joined: 07 Jan 2003 15:59
Skype: ade.se
Location: SE
Contact:

Re: How to: Semi-automatic real world scenario generation

Post by aDe »

The patch appears to be working fine with 1.4.0-RC1 and 4096x4096 maps! Here's an updated build for win32
Last edited by planetmaker on 29 Mar 2014 21:35, edited 2 times in total.
Reason: Please post the full bundle which is required to run OpenTTD. The exe is not enough, it also needs lang files, API files, and importantly, mind the license, include the COPYING information. You would also need to at indicate which patch or source used
Wahazar
Tycoon
Tycoon
Posts: 1451
Joined: 18 Jan 2014 18:10

Re: How to: Semi-automatic real world scenario generation

Post by Wahazar »

Trying to compile import_towns_v4.patch with trunc, but:
console_cmds.cpp:1990:51: error: 'SAFEGUARD_DO_NOT_USE_THIS_METHOD' was not declared in this scope
char *sign_text = (char*)malloc(strlen(buf)+8);
Excluding safeguards.h solved problem, but maybe there are more elegant solutions?
Formerly known as: McZapkie
Projects: Reproducible Map Generation patch, NewGRFs: Manpower industries, PolTrams, Polroad, 600mm narrow gauge, wired, ECS industry extension, V4 CEE train set, HotHut.
Another favorite games: freeciv longturn, OHOL/2HOL.
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4763
Joined: 09 Sep 2007 05:03
Location: home

Re: How to: Semi-automatic real world scenario generation

Post by Alberth »

Don't use malloc ? See also r26479
changeset: 21380:49812123c062
user: rubidium
date: Mon Apr 21 18:31:06 2014 +0000
summary: (svn r26479) -Codechange: use MallocT instead of malloc
User avatar
Leanden
Tycoon
Tycoon
Posts: 2613
Joined: 19 Mar 2009 19:25
Location: Kent

Re: How to: Semi-automatic real world scenario generation

Post by Leanden »

Does anyone have the latest compiled bundle for this? (Windows)
Image
Wahazar
Tycoon
Tycoon
Posts: 1451
Joined: 18 Jan 2014 18:10

Re: How to: Semi-automatic real world scenario generation

Post by Wahazar »

Leanden wrote:Does anyone have the latest compiled bundle for this? (Windows)
I developed this modification and now it is possible to import not only towns, but many other landmarks.
Examples, source code and 1.4.1 windows exe was published here:
http://www.tt-forums.net/viewtopic.php?f=29&t=70846 post 2 and 3.
Formerly known as: McZapkie
Projects: Reproducible Map Generation patch, NewGRFs: Manpower industries, PolTrams, Polroad, 600mm narrow gauge, wired, ECS industry extension, V4 CEE train set, HotHut.
Another favorite games: freeciv longturn, OHOL/2HOL.
skummel
Engineer
Engineer
Posts: 73
Joined: 18 May 2002 19:03
Location: Randers - Denmark

Re: How to: Semi-automatic real world scenario generation

Post by skummel »

Does this works with import of cities in the JGR patch pack ? or only in the version in the first post ?
How can the same S*** happens to the same guy ----- twice

John McClane
moki
Traffic Manager
Traffic Manager
Posts: 131
Joined: 06 Jul 2007 08:48
Location: Wismar, Germany

Re: How to: Semi-automatic real world scenario generation

Post by moki »

Holy moly, his is no thread necromancy, this is archeology :wink:

I didn't even know there was a version of import towns patch in JGR's patch pack, so I have no idea if it's still the same. You can still use the old patch and method and open the map in JGR's pack, though.

There's also the slightly less outdated and more powerful patch from McZapkie here and a lovely tool that generates city lists without all the manual filtering, sorting and converting of tables. You might want to try that one instead, because my old method was interesting for the time, but is really complicated and inefficient. You may have to do some research for yourself, though, because I didn't really continue the work from 5 years ago and have no idea how everything moved on.
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: No registered users and 15 guests