Patch: Found a town

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

TheJosh
Engineer
Engineer
Posts: 75
Joined: 17 Apr 2007 12:19
Contact:

Post by TheJosh »

Released another version, Networking should be alright now. I need to be told of any desyncs. See the first post
TheJosh
Engineer
Engineer
Posts: 75
Joined: 17 Apr 2007 12:19
Contact:

Post by TheJosh »

I have just released another version, hopefully the last.

This version bumps your savegame

you will need to remove the old versions to to this patch

See the first post.
User avatar
nicfer
Director
Director
Posts: 529
Joined: 03 May 2005 20:50
Location: Somewhere in a country called Argentina

Post by nicfer »

I have some ideas:

1. Do an option to create 'ghost towns' (only label of the town generated).

2. Create an option for random town placement like industries

3. Maybe the ghost towns can be built only and/or randomly in locations where there is too traffic[1], or maybe a city splits into two with less size than the old one, or two cities become a larger one. Or maybe a city splits in 'towns': the city size is the sum of the city's towns, or even why not two or more towns near each other become cities?

[1] This will be of utility in situations like the screenshot ones :).
Attachments
Great Trendingham Transport, 3 Ago 1948.png
Great Trendingham Transport, 3 Ago 1948.png (72.47 KiB) Viewed 1161 times
Sorry for my english I am argentinian
TTO don't crashes in Windows XP; XP crashes TTO

Formerly known as UnderBuilder.

MyMiniCity
TheJosh
Engineer
Engineer
Posts: 75
Joined: 17 Apr 2007 12:19
Contact:

Post by TheJosh »

Good ideas.

With the screenshot of #1, are you wanting a town to be placed in the middle if the roads? Or are those roads a 'ghost town'?
TheJosh
Engineer
Engineer
Posts: 75
Joined: 17 Apr 2007 12:19
Contact:

Post by TheJosh »

Released another version.

Also discovered if you build a number of roads, and found a town inside them it still works, but you now own the roads (and can delete them, put stations on them, etc)

Dont forget to remove the old patch, and svn update
TheJosh
Engineer
Engineer
Posts: 75
Joined: 17 Apr 2007 12:19
Contact:

Post by TheJosh »

new version, see first post
TheJosh
Engineer
Engineer
Posts: 75
Joined: 17 Apr 2007 12:19
Contact:

Post by TheJosh »

Patch updated. See first post
TheJosh
Engineer
Engineer
Posts: 75
Joined: 17 Apr 2007 12:19
Contact:

Post by TheJosh »

Another Version. Updated to r9886. see first post.
User avatar
PouncingAnt
Transport Coordinator
Transport Coordinator
Posts: 357
Joined: 09 Nov 2004 22:33

Post by PouncingAnt »

It looks like you've done a lot of work on this!

I've supported the idea of founding towns since I first heard the suggestion, its good to see a patch for it.

Anyway, I'll be checking this out soon!

Edit: Well I would do, but I get some crazy compile errors:

Code: Select all

can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: settings.cpp
|===================================================================
|--- settings.cpp	(revision 9886)
|+++ settings.cpp	(working copy)
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 17
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: lang/english.txt
|===================================================================
|--- lang/english.txt	(revision 9886)
|+++ lang/english.txt	(working copy)
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 37
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: settings_gui.cpp
|===================================================================
|--- settings_gui.cpp	(revision 9886)
|+++ settings_gui.cpp	(working copy)
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 49
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: town.h
|===================================================================
|--- town.h	(revision 9886)
|+++ town.h	(working copy)
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 61
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: saveload.cpp
|===================================================================
|--- saveload.cpp	(revision 9886)
|+++ saveload.cpp	(working copy)
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 74
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: town_cmd.cpp
|===================================================================
|--- town_cmd.cpp	(revision 9886)
|+++ town_cmd.cpp	(working copy)
--------------------------
No file to patch.  Skipping patch.
5 out of 5 hunks ignored
can't find file to patch at input line 176
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: command.cpp
|===================================================================
|--- command.cpp	(revision 9886)
|+++ command.cpp	(working copy)
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 204
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: variables.h
|===================================================================
|--- variables.h	(revision 9886)
|+++ variables.h	(working copy)
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 216
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: command.h
|===================================================================
|--- command.h	(revision 9886)
|+++ command.h	(working copy)
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 236
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: main_gui.cpp
|===================================================================
|--- main_gui.cpp	(revision 9886)
|+++ main_gui.cpp	(working copy)
--------------------------
No file to patch.  Skipping patch.
8 out of 8 hunks ignored
NB: the below challenges are still open for submission, so feel free to perform necromancy on them!
Try the PouncingAnt National Monopoly Challenge
Or even better, the PouncingAnt National Monopoly Challenge 2
Or better still, the PouncingAnt National Monopoly Challenge 3
Or, the PouncingAnt National Monopoly Challenge 4

Or try my scenario instead!

-(A lazy) OpenTTD Japanese Translator-
-(A lazy) PNGcodec user-
"You get what you pay for, so pay attention!"

Patches:
Company Station Stats
User avatar
glx
OpenTTD Developer
OpenTTD Developer
Posts: 622
Joined: 02 Dec 2005 15:43
Location: Drancy(93) - France
Contact:

Post by glx »

@PouncingAnt: that's normal (patch is not properly made)

@TheJosh: make the diff from root not from src
User avatar
PouncingAnt
Transport Coordinator
Transport Coordinator
Posts: 357
Joined: 09 Nov 2004 22:33

Post by PouncingAnt »

That's normal? But I didnt see an option to found towns anywhere.. I assumed something went wrong with the compiling!?
NB: the below challenges are still open for submission, so feel free to perform necromancy on them!
Try the PouncingAnt National Monopoly Challenge
Or even better, the PouncingAnt National Monopoly Challenge 2
Or better still, the PouncingAnt National Monopoly Challenge 3
Or, the PouncingAnt National Monopoly Challenge 4

Or try my scenario instead!

-(A lazy) OpenTTD Japanese Translator-
-(A lazy) PNGcodec user-
"You get what you pay for, so pay attention!"

Patches:
Company Station Stats
User avatar
glx
OpenTTD Developer
OpenTTD Developer
Posts: 622
Joined: 02 Dec 2005 15:43
Location: Drancy(93) - France
Contact:

Post by glx »

Something went wrong when patching (ie the patch didn't applied at all) because the patch is made from src instead root and BuildOTTD doesn't know that.
TheJosh
Engineer
Engineer
Posts: 75
Joined: 17 Apr 2007 12:19
Contact:

Post by TheJosh »

just fixed
TheJosh
Engineer
Engineer
Posts: 75
Joined: 17 Apr 2007 12:19
Contact:

Post by TheJosh »

Updated to latest (again)
User avatar
Octopussy
Engineer
Engineer
Posts: 122
Joined: 01 May 2006 21:57

Post by Octopussy »

It would be interesting in funding a town to begin by building only a town hall or a municipal building, then the new new town grow up automatically around it.

It would be nice also there were a municipal building in each town (under the town panel) and when you click on it it would automatically open the town menu. There is the same system in Sim City and Civilization games I think.
ThePenguin
Engineer
Engineer
Posts: 40
Joined: 15 May 2007 16:49

Post by ThePenguin »

When you fund this town does it allow you to anything you want in it even if you aren't helping the town by transporting? or does it act like any other town?
TheJosh
Engineer
Engineer
Posts: 75
Joined: 17 Apr 2007 12:19
Contact:

Post by TheJosh »

it act like any other town
TheJosh
Engineer
Engineer
Posts: 75
Joined: 17 Apr 2007 12:19
Contact:

Post by TheJosh »

Yet another update. sorry about the delays.

I am starting to get sick of this patch. does anyone want it or should it be abandoned?
xmart2k
Engineer
Engineer
Posts: 91
Joined: 04 May 2006 07:36
Contact:

Post by xmart2k »

i realy like it
User avatar
Lachris
Engineer
Engineer
Posts: 125
Joined: 01 May 2006 22:30
Location: Denmark

Post by Lachris »

I like it too 8) hope it gets into trunk
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 23 guests