Page 1 of 4
Citybuilder Goals
Posted: 14 Jul 2009 03:07
by Akoz2
Hey
Here is a beta of my current city building project. I'm posting here on request of various people asking for the source.
Please note that the code is quite full of ugly hacks and unoptimized code, and there are still minor bugs yet to be fixed.
Current main features:
- Claiming of cities with exclusive build rights in that city to the company.
- Conditional city growth depending on a storage of food, water, goods and diamonds to the specific city. The city's consumption and needs increases with its population size.
- Privately owned secondary industries (Food processing plant, factory and oil refinery).
- City population goal with server restart when reached.
- Various information commands.
Currently working with 0.7.1 and requires English(uk) language set in order to run successfully.
The patch should be applied for the server only, and the server should remain compatible with all 0.7.1 clients.
Make sure you apply citybuilder.cpp and citybuilder.h to source.list before compiling
Thanks to Rasco from speedy on showing me his company value code to base this on, to Xi and Ex' for the great citybuilding concept that inspired this, and ofc everyone in #openttd.
Re: Citybuilder Goals
Posted: 14 Jul 2009 12:15
by hempa
Hmm, this looks very interesting. Could we have some screenies perhaps? That is, if there are any GUI changes
I'm going to give it a try when I can get my compiler up and running again.
Cheers
Re: Citybuilder Goals
Posted: 14 Jul 2009 13:41
by petert
Hempa, when you do, could you post a compiled version
Thanks

Re: Citybuilder Goals
Posted: 14 Jul 2009 13:59
by hempa
If I can manage to compile it for win32, I will. I do my patch testing on my Linux box though so.. We'll see if I can get a win32 binary done, but I'm going to be out of town until next week and unable to use my windows box.
Cheers
Re: Citybuilder Goals
Posted: 14 Jul 2009 14:14
by petert
Ok, thanks

Re: Citybuilder Goals
Posted: 14 Jul 2009 14:19
by hempa
Otherwise, you can follow the instructions on
here,
here, and
here and compile a binary yourself

There's a helpful post in the sticky list for how to apply patches too.
Re: Citybuilder Goals
Posted: 14 Jul 2009 15:07
by petert
I've been having problems compiling.
Re: Citybuilder Goals
Posted: 14 Jul 2009 15:30
by Akoz
Hmm, this looks very interesting. Could we have some screenies perhaps? That is, if there are any GUI changes
There is no GUI, although if anyone would want to help me make a grf addon that could display the extra city information that would be lovely.
Currently everything goes with text commands. See attached screenshots.
Re: Citybuilder Goals
Posted: 15 Jul 2009 00:06
by petert
The patch does not work. I have compiled and tested it, no such commands like "!city" or "!help" work. I even set the language to English (UK). Nothing. Here is the compiled version (0.7.1)
Peter
Edit: Included COPYING file.
Re: Citybuilder Goals
Posted: 15 Jul 2009 14:13
by Ammler
Hmm, you work with 0.7 branch, so this is a server side only patch? Like the patches from the various Goal servers?
If not, I would highly recommend to make it with trunk.
Anyway, nice idea.
Greets
Ammler
Re: Citybuilder Goals
Posted: 15 Jul 2009 17:39
by petert
What I was saying, is that after compiling and opening a server, none of the commands worked. (Yes, I switched to English UK)
Re: Citybuilder Goals
Posted: 16 Jul 2009 16:36
by Akoz
Ammler wrote:Hmm, you work with 0.7 branch, so this is a server side only patch? Like the patches from the various Goal servers?
If not, I would highly recommend to make it with trunk.
Anyway, nice idea.
Greets
Ammler
Yes it's a server side patch for 0.7.1 that keeps the server compatible for 0.7.1 clients.
If you want to test it out as a client just join any of the public servers with my name in them.
Re: Citybuilder Goals
Posted: 17 Jul 2009 17:20
by Neuralize
Awesome. I've played on the servers with city building and it is great. I'd love for someone to post a binary of this so I could host a city building server for me and my friends. Finally a patch that has definable multiplayer goals! I don't know why the climate around this community is so adverse to making the game competitive and fun. I really love opentdd, I just don't see the point in playing it when there are no hard coded goals which always leave the winner disputed. Keep working on this, it's the reason I play openttd.
Re: Citybuilder Goals
Posted: 17 Jul 2009 18:50
by petert
Neuralize wrote:Awesome. I've played on the servers with city building and it is great. I'd love for someone to post a binary of this so I could host a city building server for me and my friends. Finally a patch that has definable multiplayer goals! I don't know why the climate around this community is so adverse to making the game competitive and fun. I really love opentdd, I just don't see the point in playing it when there are no hard coded goals which always leave the winner disputed. Keep working on this, it's the reason I play openttd.
Unfortunately, this patch doesn't work after a compile. So, unless Akoz posts a binary, we're stuck.

Re: Citybuilder Goals
Posted: 17 Jul 2009 21:58
by DaleStan
And if the posted binary works, we should be very suspicious of Akoz's compliance with the GPL.
Re: Citybuilder Goals
Posted: 17 Jul 2009 22:11
by petert
Hmm? He can't post a binary?
Re: Citybuilder Goals
Posted: 17 Jul 2009 22:17
by Yexo
Fact 1:
petert wrote: this patch doesn't work after a compile
Fact 2:
You have to provide either the sources or a written offer to provide them when you distribute a binary program under GPL.
Fictional fact 3:
. So, unless Akoz posts a binary, we're stuck.

I assume here you ment a working binary, otherwise it would be useless.
Combining these facts will lead you to the following conclusion: Either Akoz builds will have to change his patch before compiling or he has already done some changes and can post a binary. In the first case you're asking not only for a binary, but for him to fix the patch as well. In the second case (which DaleStan assumed), he doesn't abide the GPL (unless he posts his sources again, but then it's no longer juts a binary).
Re: Citybuilder Goals
Posted: 17 Jul 2009 23:44
by petert
True, I meant a working binary. Preferably the one he uses to run the servers. If so, then he should post the sources.
Re: Citybuilder Goals
Posted: 18 Jul 2009 01:15
by Akoz
Yexo wrote:Fact 1:
petert wrote: this patch doesn't work after a compile
Are you sure you're not confusing fact with fiction now? O_o
Petert: You are the only one I have heard of having trouble with the patch. Several others have gotten it to work with no issues whatsoever. Please let me know what the issue is and I will see if I can help. Most likely the issue is with your patching procedure. You can find help on how to successfully apply a patch in the links posted by hempa above.
Re: Citybuilder Goals
Posted: 18 Jul 2009 08:54
by Yexo
Akoz wrote:Are you sure you're not confusing fact with fiction now? O_o
I took whatever petert said as true to explain him DaleStans post. Since I haven't tried the patch myself I have no idea whether it works or not, but I assume that you wouldn't have posted it if it didn't work.