OpenTTD mod: far into the future...

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

Moderator: OpenTTD Developers

Does this mod sound like something you'd play?

Poll ended at 07 Aug 2006 17:57

Yes, start developing it!
56
68%
Hmm, need more info.
9
11%
BOORRRINGG! Count me out...
17
21%
 
Total votes: 82

User avatar
Kolijn Wolfaardt
Engineer
Engineer
Posts: 41
Joined: 01 Jun 2006 14:13
Location: Somewhere

Re: OpenTTD mod: far into the future...

Post by Kolijn Wolfaardt »

Hey.
I've drawn (but not coded) this nuclear power plant. How does it look? It could porpably get Uranium from some kind of mine, replacing the coal and Powerstation-setup. I don't know excatly how this will fit into sprites, but I'll work with it.

Also, a problem. Is there any way in wich you can modiefy sprites in the trg1r file with a normal grf file? In other words: can you change the toyland sprites that are only in that file. For the terrain I simple replace the default grass terrain, but I don't know how to replace the sprites that only appear in the specified toyland grf. Can anyone help?
Attachments
Nuclear2.gif
Nuclear2.gif (21.31 KiB) Viewed 5867 times
ImageImage
ImageImage
Image

Toyland isn't a climate, its a mistake.
This message was transmitted on 100% recycled electrons

Don't pm, rather e-mail me.
New terrain graphics
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: OpenTTD mod: far into the future...

Post by FooBar »

Kolijn Wolfaardt wrote:Is there any way in wich you can modiefy sprites in the trg1r file with a normal grf file?
Yes, Action A can do that. Read through the Action A Spec as that will probably answer the rest of your question, too.
blitzkrieg
Engineer
Engineer
Posts: 105
Joined: 30 Jun 2006 04:22

Re: OpenTTD mod: far into the future...

Post by blitzkrieg »

Kolijn Wolfaardt wrote:Hey.
I've drawn (but not coded) this nuclear power plant. How does it look? It could porpably get Uranium from some kind of mine, replacing the coal and Powerstation-setup. I don't know excatly how this will fit into sprites, but I'll work with it.

Also, a problem. Is there any way in wich you can modiefy sprites in the trg1r file with a normal grf file? In other words: can you change the toyland sprites that are only in that file. For the terrain I simple replace the default grass terrain, but I don't know how to replace the sprites that only appear in the specified toyland grf. Can anyone help?
A little criticism...
I have seen a nuclear plant. The Reactor (Round thing) is atleast 12-15 floors high whereas the control room (Accompanying building) are a few floors high, mostly 4-5 floors. Also the stack (smoke emmiiting thing) are near the reactors not far away.
So my suggestions are
1. Interchange place of the Control room & stack.
2. make control room multifloored.
3. the reactor could be a little taller if u keep the size of control room same.
Quite a good grf but needs some more tweaking......
User avatar
Kolijn Wolfaardt
Engineer
Engineer
Posts: 41
Joined: 01 Jun 2006 14:13
Location: Somewhere

Re: OpenTTD mod: far into the future...

Post by Kolijn Wolfaardt »

@ FooBar: Hey, thanks, it's working! :)

@blitzkrieg: I'll see what I can do. The sprites for each seperate 'thing' (building, tower, etc..) in the grf are seperate, so It could happen that things end up at weird positions

In general, I have a problem with the factories. In total, there are 11 factories in the toyland climate, set up like this:
Plastic fountains -->
Battery Farms --> Toy factory --> Toy Shop
------------------------------------------------------------------
Candyfloss forest -->
Sugar mine --> Sweet factory
Tofee quarry -->
------------------------------------------------------------------
Bubble generator -->
Cola wells --> Fizzy drink factory

2 problems: Where should I place the reactor? Obviously it should only receive something, so It could propably replace the Fizzy drinks factory. But then what would the other thing be?

The other problem is actually a question: Can you change the factories to be in different climates? Action 0 changes the attributes, but you cannot change the climate. If you can, how, and what is the maximum ammount of factories a climate can have?
ImageImage
ImageImage
Image

Toyland isn't a climate, its a mistake.
This message was transmitted on 100% recycled electrons

Don't pm, rather e-mail me.
New terrain graphics
User avatar
flake
Engineer
Engineer
Posts: 66
Joined: 28 Apr 2004 10:07
Location: Salzburg
Contact:

Re: OpenTTD mod: far into the future...

Post by flake »

classic example
Image
little more advanced example
Image
:)
*<(:-}
User avatar
Kolijn Wolfaardt
Engineer
Engineer
Posts: 41
Joined: 01 Jun 2006 14:13
Location: Somewhere

Re: OpenTTD mod: far into the future...

Post by Kolijn Wolfaardt »

Okay, I put the reactor in, replacing the fizzy drinks factory. Unfortunately the factory is only 4 tiles. ( instead of the 6 I used) So I had to squeeze things a bit. There is still a problem that when you scroll over It it semi-dissapears, but I'll fix it. I'll also work on the building, which looks bad, IMHO.
nuclear Reactor.png
nuclear Reactor.png (30.8 KiB) Viewed 5638 times
I need help with renaming the industry I got as far as this:

Code: Select all

3 * 0 00 0A 01 01 21 1F Nuclear Reactor 
but it won't work. Could somebody help, please :)
ImageImage
ImageImage
Image

Toyland isn't a climate, its a mistake.
This message was transmitted on 100% recycled electrons

Don't pm, rather e-mail me.
New terrain graphics
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: OpenTTD mod: far into the future...

Post by DaleStan »

Just like in every other language ever invented, strings need to be quoted. Completely unlike any other language ever invented (except assembly), they also need to be explicitly null-terminated.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
blitzkrieg
Engineer
Engineer
Posts: 105
Joined: 30 Jun 2006 04:22

Re: OpenTTD mod: far into the future...

Post by blitzkrieg »

Kolijn Wolfaardt wrote:Okay, I put the reactor in, replacing the fizzy drinks factory. Unfortunately the factory is only 4 tiles. ( instead of the 6 I used) So I had to squeeze things a bit. There is still a problem that when you scroll over It it semi-dissapears, but I'll fix it. I'll also work on the building, which looks bad, IMHO.
nuclear Reactor.png
I need help with renaming the industry I got as far as this:

Code: Select all

3 * 0 00 0A 01 01 21 1F Nuclear Reactor 
but it won't work. Could somebody help, please :)
Looks much better than before!!! Make the building multi-storied.
User avatar
Kolijn Wolfaardt
Engineer
Engineer
Posts: 41
Joined: 01 Jun 2006 14:13
Location: Somewhere

Re: OpenTTD mod: far into the future...

Post by Kolijn Wolfaardt »

Hmm. I tried everything you said, Dalestan, but it still doesn't work.

Code: Select all

    3 * 22  00 0A 01 01 21 1F "Nuclear Reactor" 00
3 : spritenum 3
22 : 22 bytes
00 : Action 0
0A : concerning industries
01 : replace one set
01 : of one
21 : Starting at the fizzy drinks factory
1F : replacing the name property
"Nuclear Reactor": the new name
00 : close string

Am I missing something here? I don't know, I've never tried renaming stuff before.

@ Blitzkrieg: Thanks, I'll do that. The buiding will propably become two stories, but will stay that size, in keeping with the scale used in the game.

Is anyone else possibly also working on this project? I just wondered if I'm the only one :D
ImageImage
ImageImage
Image

Toyland isn't a climate, its a mistake.
This message was transmitted on 100% recycled electrons

Don't pm, rather e-mail me.
New terrain graphics
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: OpenTTD mod: far into the future...

Post by DaleStan »

Kolijn Wolfaardt wrote:00 : Action 0
1F : replacing the name property
Look at the size of that property again. And what it contains. "TextID" != "string".
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
LordAzamath
Tycoon
Tycoon
Posts: 1656
Joined: 08 Jun 2007 08:00

Re: OpenTTD mod: far into the future...

Post by LordAzamath »

Hmm...I looked at specs and... Shouldn't you define the new name with action 04? I tried to do that when I made my first grfs for WWOTTDGD. The new names worked in Patch, but not in Open ("tested" by PikkaBird)...
Action 00 should be for changing properties of objects..Naming would be done with 04. Feature 0A

Code: Select all

...or houses
0A for industries
0B for carg...
But someone should confirm this..I'm still pretty much noob in nfo-code ;)

Lord
PS: And I stopped the propaganda to support Dave Worley since he got a nice new red hat now.[/color]
I know I have a BBCode error in my signature but I really cba to fix it.
User avatar
Kolijn Wolfaardt
Engineer
Engineer
Posts: 41
Joined: 01 Jun 2006 14:13
Location: Somewhere

Re: OpenTTD mod: far into the future...

Post by Kolijn Wolfaardt »

Like this?

Code: Select all

    2 * 25	 04 0A 7F 01 23 48 "Nuclear Powerplant" 00
It compiles into a grf file, but does nothing.

I changed the building of the powerplant. It looks better now ( I think so)
Attachments
nuclear Reactor.png
nuclear Reactor.png (14.05 KiB) Viewed 5329 times
ImageImage
ImageImage
Image

Toyland isn't a climate, its a mistake.
This message was transmitted on 100% recycled electrons

Don't pm, rather e-mail me.
New terrain graphics
blitzkrieg
Engineer
Engineer
Posts: 105
Joined: 30 Jun 2006 04:22

Re: OpenTTD mod: far into the future...

Post by blitzkrieg »

Kolijn Wolfaardt wrote:Like this?

Code: Select all

    2 * 25	 04 0A 7F 01 23 48 "Nuclear Powerplant" 00
It compiles into a grf file, but does nothing.

I changed the building of the powerplant. It looks better now ( I think so)
You are right!!! :) :) . It now looks like a nuclear plant!!! Keep up the Good work :wink: !!!
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: OpenTTD mod: far into the future...

Post by DaleStan »

Kolijn Wolfaardt wrote:Like this?

Code: Select all

    2 * 25	 04 0A 7F 01 23 48 "Nuclear Powerplant" 00
It compiles into a grf file, but does nothing.
Does it work in TTDPatch? If so, it's a bug in either OpenTTD or in its documentation, not in your code.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
User avatar
Kolijn Wolfaardt
Engineer
Engineer
Posts: 41
Joined: 01 Jun 2006 14:13
Location: Somewhere

Re: OpenTTD mod: far into the future...

Post by Kolijn Wolfaardt »

Nope, It doesn't work there either.

I'll continue with something else for the time being. :)
ImageImage
ImageImage
Image

Toyland isn't a climate, its a mistake.
This message was transmitted on 100% recycled electrons

Don't pm, rather e-mail me.
New terrain graphics
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: OpenTTD mod: far into the future...

Post by DaleStan »

Interesting. I'd've guessed that it would work. What are the industry's props 08 and 1F set to?
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: OpenTTD mod: far into the future...

Post by planetmaker »

Kolijn Wolfaardt wrote:Like this?

Code: Select all

    2 * 25	 04 0A 7F 01 23 48 "Nuclear Powerplant" 00
It compiles into a grf file, but does nothing.

I changed the building of the powerplant. It looks better now ( I think so)
Looks pretty cool.
But to me it doesn't look like a nuclear power plant - a nuclear power plant would need IMO one half-sphere dome that protects the reactor itself and at least one cooling tower which might have water steam above it.

To me it rather looks like a bio power plant (one that converts bio mass into heat and thus electical energy). On the other hand this would also make the choice of the deliveries easier: just haul mais or bamboo or alike to it :)
Ar4i
Traffic Manager
Traffic Manager
Posts: 153
Joined: 24 Jul 2006 10:40

Re: OpenTTD mod: far into the future...

Post by Ar4i »

Nuclear power plants:
1. Need water to operate, because they use nuclear power to heat water and produce steam which is used to power up steam turbines
2. Need a huge stack not like the one you've put, they don't actually produce black dirty smoke instead they just disperse the steam already used to power up the turbines, so there should be white "smoke"

So making a nuclear plant would require a lot different model and it should reside near water if you want it to be realistic.
User avatar
Metruck1
Engineer
Engineer
Posts: 28
Joined: 15 Mar 2008 14:36

Re: OpenTTD mod: far into the future...

Post by Metruck1 »

Yes, and nuclear plants tend to produce a TON of waste, unless it is a fusion reactor, and even then there is some waste, so i would put in in place of the Toy chain like this

Urainum mine-->
Boron or some other controller mine--> Plant--> Nuclear dump.

But that is just how I would do it, ok.

Metruck1
User avatar
mrMann
Tycoon
Tycoon
Posts: 2793
Joined: 27 Oct 2006 20:38
Location: A house.
Contact:

Re: OpenTTD mod: far into the future...

Post by mrMann »

Metruck1 wrote:Yes, and nuclear plants tend to produce a TON of waste, unless it is a fusion reactor, and even then there is some waste, so i would put in in place of the Toy chain like this

Urainum mine-->
Boron or some other controller mine--> Plant--> Nuclear dump.

But that is just how I would do it, ok.

Metruck1
Wow, a huge bump! Please don't bump topics that are over a month old!
Hmm, what should I put here...
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: No registered users and 21 guests