Eyecandy (rev9790)

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

Frostregen
Transport Coordinator
Transport Coordinator
Posts: 340
Joined: 06 Feb 2006 23:58

Eyecandy (rev9790)

Post by Frostregen »

Ok here it is, the first eyecandy testversion.

Idea: Wolf01
Coding: Wolf01 & Frostregen

Please make some comments and report bugs/glitches into this thread.

You also may suggest new eyecandy for the default list.
This may be any ottd internal sprite. (=no newgrf stuff)

Features:
-up to 32 different categories
-up to 64 tiles in size (8x8, 16x4, 1x64 etc..)
-up to 1024 different eyecandy objects
-up to 256 animation phases
-player color supported
-drag&drop buy land (singleplayer only)
-foundations (even less restrictive than stations)
-custom ground sprite (only flat tiles) or 4 types of grass->bare for slopes

TODO:
-add PROPER newgrf (+newobjects) support (needed for custom eyecandy graphics)

if you use the win32 package: download a current nightly and extract the .rar into it.

Have fun :)
Attachments
eyecandy.png
eyecandy.png (57.76 KiB) Viewed 30010 times
EYE_9790.rar
(1.54 MiB) Downloaded 1140 times
eyecandy_rev9790.diff
source patchfile
(49.82 KiB) Downloaded 775 times
Last edited by Frostregen on 05 May 2007 12:03, edited 4 times in total.
MeusH
Tycoon
Tycoon
Posts: 4349
Joined: 25 Oct 2004 15:39
Location: Mississauga

Post by MeusH »

Very nice job. However, I would suggest separating eye-candy object from actually usable objects.
Hence I think that houses, churches, depots shouldn't be on the lists. However blimps, windsocks, transmitters etc. are really nice
User avatar
Born Acorn
Tycoon
Tycoon
Posts: 7595
Joined: 10 Dec 2002 20:36
Skype: bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn »

It would be really cool if this could support newobjects when it is completed. :p
Image
User avatar
Maedhros
OpenTTD Developer
OpenTTD Developer
Posts: 603
Joined: 30 Mar 2006 18:24
Location: Durham, UK

Post by Maedhros »

SetupEyeCandy() is pretty horrible - why not put that in a table in table/eyecandy.h or somewhere like that?
No-one's more important than the earthworm.
Frostregen
Transport Coordinator
Transport Coordinator
Posts: 340
Joined: 06 Feb 2006 23:58

Post by Frostregen »

We will need our own newgrf format(which is the next thing to be done),
as our capabilities differ from the newobjects quite a bit. (animation, custom-groundsprites, offsets etc...)

But it should be no problem to load both formats in the end.

@Maedhros:
This is just a test-list, nothing final. but you are right ;)
User avatar
Athorium
Traffic Manager
Traffic Manager
Posts: 218
Joined: 28 Mar 2006 10:19
Location: España

Post by Athorium »

Cool!!! I download and test it. When I tested it I say something :p
¡I'm Spanish!
Sorry if my english is bad. I know that I have some grammar errors.
SORRY
User avatar
Digitalfox
Chief Executive
Chief Executive
Posts: 708
Joined: 28 Oct 2004 04:42
Location: Catch the Fox if you can... Almost 20 years and counting!

Post by Digitalfox »

Pretty cool!!! :o :D

I love it.. Keep the good idea..
User avatar
SAC
Tycoon
Tycoon
Posts: 1519
Joined: 03 Jun 2004 16:35
Location: Gothenburg, Sweden

Post by SAC »

This is nice! Really nice! :P This game certainly needs eye-candy, whether it's in the shape of a building or a park or other structures, and it will definately add to the realism itself! :P
Simuscape - Chose Your Destination;
Simuscape | Visual Studio | INFRA Diary

INFRA Downloads - Chose Your Destination;
Simuscape | INFRA - A World of its own
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

I think this is compatible with newobjects (http://wiki.ttdpatch.net/tiki-index.php ... on0Objects). Mind you, the feature is unfinished, and supporting more actions never hurts.

Although I would suggest contacting eis_os himself about it to tell him what other features you think should go in there. TTDPatch is still the de-facto standard for newgrf. Having incompatible formats is definitely bad.
TrueLight: "Did you bother to read any of the replies, or you just pressed 'Reply' and started typing?"
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
User avatar
Saibot
Chairman
Chairman
Posts: 829
Joined: 19 Feb 2006 15:42
Location: Sweden

Post by Saibot »

I really like this patch (or what to call it). :)
User avatar
RiTi
Transport Coordinator
Transport Coordinator
Posts: 374
Joined: 23 Jun 2006 10:24

Post by RiTi »

A very nice job, it works great. :D

One suggestion. The tile on which some of the eyecandies are build is brown, green/brown or grey (the radar). If you use temperate climate the tiles are green. It would be nice that the tiles of the land you own are not brown but more a color near green (dark green?) and when build near blue water, dark blue for instance.
Keep life simple...
User avatar
Wolf01
Tycoon
Tycoon
Posts: 2016
Joined: 24 Apr 2004 10:43
Location: Venezia - Italia
Contact:

Post by Wolf01 »

you can set in the flags to show the terrain or to use it from the grf, now is hardcoded but you will be able to set it in the newgrf
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

Frostregen wrote:as our capabilities differ from the newobjects quite a bit. (animation, custom-groundsprites, offsets etc...)
Darkvater tells the truth. The standard 1/2/3 system already supports all of the above, assuming that newobjects will use the house/industry tile standard action 2 format, and not the vehicle standard action 2 format. (And I can't imagine Oskar using the vehicle format.)
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
athanasios
Tycoon
Tycoon
Posts: 3138
Joined: 23 Jun 2005 00:09
Contact:

Post by athanasios »

Good idea but...
Existing houses as eyecandy will be confusing, if they do not generate-accept passengers etc. Other objects are OK. I hope to see it soon in the trunk.
You mentioned no new grf support. Well eyecandies should be newgrfs: Rocks (land and sea), antennas, ruins of houses, abandoned old vehicles, fake rails with old locos and wagons (since cannot be real ones), 1x1 pools water reservoirs or small lakes, shipwrecks...
http://members.fortunecity.com/gamesart
"If no one is a fool I am also a fool." -The TTD maniac.


I prefer to be contacted through PMs. Thanks.
User avatar
belugas
OpenTTD Developer
OpenTTD Developer
Posts: 1507
Joined: 05 Apr 2005 01:48
Location: Deep down the deepest blue
Contact:

Post by belugas »

I can easily imagine building a town in scenario editor and using such a tool to place... For houses... of course... or more...
If you are not ready to work a bit for your ideas, it means they don't count much for you.
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

athanasios wrote:Existing houses as eyecandy will be confusing
True, but where did you get the idea that using TTD houses as eyecandy objects was even under discussion?
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
athanasios
Tycoon
Tycoon
Posts: 3138
Joined: 23 Jun 2005 00:09
Contact:

Post by athanasios »

From what I show in the sample image in beginning of post and the drop down list reads houses. Doesn't matter if they are TTD houses or newgrf houses, it is the same. If I made you understand something different I am sorry. I was not referring to your post.
http://members.fortunecity.com/gamesart
"If no one is a fool I am also a fool." -The TTD maniac.


I prefer to be contacted through PMs. Thanks.
User avatar
Wolf01
Tycoon
Tycoon
Posts: 2016
Joined: 24 Apr 2004 10:43
Location: Venezia - Italia
Contact:

Post by Wolf01 »

athanasios wrote:Good idea but...
Existing houses as eyecandy will be confusing, if they do not generate-accept passengers etc. Other objects are OK. I hope to see it soon in the trunk.
You mentioned no new grf support. Well eyecandies should be newgrfs: Rocks (land and sea), antennas, ruins of houses, abandoned old vehicles, fake rails with old locos and wagons (since cannot be real ones), 1x1 pools water reservoirs or small lakes, shipwrecks...
newgrf support: we are working on it

houses: they are eyecandy, to make villages on mountains, to block the city growth instead using the little sign on bare ground and so on
Frostregen
Transport Coordinator
Transport Coordinator
Posts: 340
Joined: 06 Feb 2006 23:58

Post by Frostregen »

News:

-NewGrf support implemented
-added build-cost multiplier
-GUI shows build costs.

If you want to make a grf, there is some info attached.
Please take into account that the newgrf-specs may change,
when ttdpatch releases its newobjects.

The source needs some cleanup, and will be updated in some days.

EDIT:
updated newgrf_eyecandy.txt
Attachments
Grendborough Bay Transport, 6th Feb 1950.png
Grendborough Bay Transport, 6th Feb 1950.png (61.5 KiB) Viewed 30509 times
newgrf_eyecandy.txt
v2
(4.41 KiB) Downloaded 486 times
Last edited by Frostregen on 08 Jan 2007 05:31, edited 1 time in total.
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

Code: Select all

Action 1: Here the sprites are loaded. The next Action0 will automatically use those sprites.
NAK!
Actions 0 and 1 are connected through action 2/3 chains, with the connector being the IDs in Actions 0 and 3. They are never connected any other way.

Code: Select all

Action 4
As above. Action 4 is connected to Actions 0 and 3 because the ID is the same, not for any other reason.

Code: Select all

If the highest bit of eyecandyID is set, it will be a name for the last Category an action0 used.
And if the high bit is clear? What happens then?

Also, how do I set the bounding box for the sprite(s), and how to I use desert, snow, or water for my ground-sprite?
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
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: Google Adsense [Bot] and 59 guests