Rusty tracks

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

User avatar
Korenn
Tycoon
Tycoon
Posts: 1735
Joined: 26 Mar 2004 01:27
Location: Netherlands
Contact:

Post by Korenn »

ask the devs... I have no idea how to add completely new sprites with a grf...
User avatar
bociusz
Traffic Manager
Traffic Manager
Posts: 131
Joined: 24 Jul 2004 11:04
Location: Hungary
Contact:

Post by bociusz »

Maybe it had slided some pixels, when I cutted it out from the original grf. So I'm not sure that the left (X) and top (Y) coordinates are right! You can check it out with paint :-/
BobXP
Tycoon
Tycoon
Posts: 2720
Joined: 04 May 2003 11:00
Location: Torquay, England
Contact:

Post by BobXP »

Could someone please tell me what the three extra buttons on the railway constrution toolbar are for? :\
<!-- End Of Post !-->
Image
User avatar
Dribbel
Engineer
Engineer
Posts: 64
Joined: 11 Jul 2004 16:25
Location: The Netherlands - Grunn

Post by Dribbel »

Programmeren is makkelijker als je denkt - Dutch pun
[url=callto://zoekdribbel]Image[/url]
User avatar
Dribbel
Engineer
Engineer
Posts: 64
Joined: 11 Jul 2004 16:25
Location: The Netherlands - Grunn

Post by Dribbel »

@ bociusz: Hmm you're right, when i decode it again, it all f*ck*d up.

Look at the images in the PNG files and in the original PCX file: There is some data lost in the process (look at the grass) Also when converting those png files to pcx again, there is some color shifting.
Attachments
rusty_wrong.PNG
rusty_wrong.PNG (36.4 KiB) Viewed 1679 times
Programmeren is makkelijker als je denkt - Dutch pun
[url=callto://zoekdribbel]Image[/url]
User avatar
bociusz
Traffic Manager
Traffic Manager
Posts: 131
Joined: 24 Jul 2004 11:04
Location: Hungary
Contact:

Post by bociusz »

Mmm... that's a very bad news! :evil:
What will we do?
User avatar
Dribbel
Engineer
Engineer
Posts: 64
Joined: 11 Jul 2004 16:25
Location: The Netherlands - Grunn

Post by Dribbel »

Find some one who teaches me how to make correct GRF files
in the mean while: you could fix the graphics and post them in pcx format
Programmeren is makkelijker als je denkt - Dutch pun
[url=callto://zoekdribbel]Image[/url]
User avatar
norfolksouthern37
Transport Coordinator
Transport Coordinator
Posts: 279
Joined: 04 Jun 2004 17:43

Post by norfolksouthern37 »

it appears that the file was accidentally converted to a 16 color pallete, i noticed that when i looked at the graphics too.
if you need any help let me know.
User avatar
Dribbel
Engineer
Engineer
Posts: 64
Joined: 11 Jul 2004 16:25
Location: The Netherlands - Grunn

Post by Dribbel »

I had a hard time with the images, but i've done it!!!!1

I've an _*alpha*_ version here
- tracks degrade and get used.
(initial degrading starts after 4 aproxxs months, other stats i've haven't tuned yet)

Things to do:
- beter images!!
- junctions
- tracks in stations/depot
- tracks on bridges, requires new bridge graphics
- rail/road crossings
- other climates


WARNING: Make Backups of save games and other important files!! it is based on the nightly builds, may be unstable!

Attached is the new grf file to use. Copy the grf file to your data folder
Replace your current openTTD exe by this one: ttd.exe.

WARNING: Make Backups of save games!!, it is based on the nightly builds, may be unstable!

Let me know what you think of it!!
Attachments
used.grf
(129.28 KiB) Downloaded 381 times
Programmeren is makkelijker als je denkt - Dutch pun
[url=callto://zoekdribbel]Image[/url]
User avatar
mdhowe
Route Supervisor
Route Supervisor
Posts: 446
Joined: 09 Jul 2004 07:12
Location: Hobart, Australia

Post by mdhowe »

Dribbel wrote:I had a hard time with the images, but i've done it!!!!1
Attached is the new grf file to use. Copy the grf file to your data folder
Sounds great!!

Is there any chance of getting a patch for this so us Linux users can try it out?
"Set fashion, not follow. Spit vitriol, not swallow" - Marilyn Manson
User avatar
Dribbel
Engineer
Engineer
Posts: 64
Joined: 11 Jul 2004 16:25
Location: The Netherlands - Grunn

Post by Dribbel »

the patch. beware! very buggy/ugly code
Attachments
UsedTracksV1.diff
(10.95 KiB) Downloaded 258 times
Programmeren is makkelijker als je denkt - Dutch pun
[url=callto://zoekdribbel]Image[/url]
User avatar
bociusz
Traffic Manager
Traffic Manager
Posts: 131
Joined: 24 Jul 2004 11:04
Location: Hungary
Contact:

Post by bociusz »

Re all!

:: THANKS DRIBBEL FOR YOUR WORK! ::

I can't check it out, because it's always saids that I've got different language packs (I checked out with every nightly build from 08.15 to 08.19 but it don't want to work :? )

Yep, there are many problems with the graphics, but what are you mean at "better graphics" ? The colors are bad?
User avatar
Dribbel
Engineer
Engineer
Posts: 64
Joined: 11 Jul 2004 16:25
Location: The Netherlands - Grunn

Post by Dribbel »

Look at the attached file in this post: http://www.tt-forums.net/viewtopic.php?p=186750#186750 The grass is not as green as it used to be (in the original version)

As far as the language packs: Did you run strgen?
Programmeren is makkelijker als je denkt - Dutch pun
[url=callto://zoekdribbel]Image[/url]
User avatar
bociusz
Traffic Manager
Traffic Manager
Posts: 131
Joined: 24 Jul 2004 11:04
Location: Hungary
Contact:

Post by bociusz »

Dribbel: I posted a PM!
User avatar
Colonel32
President
President
Posts: 951
Joined: 25 Apr 2004 18:41
Location: Prague, Czech rep.
Contact:

Post by Colonel32 »

Off topic:
How about rustiest (never used) tracks in local autority's area reducing your reputation it the city?
Image
User avatar
vondel
Engineer
Engineer
Posts: 21
Joined: 30 Jul 2004 01:06

Post by vondel »

I think we should leave implications of rusted tracks waiting till the tracks are rusting in our openttd-games ;)

Instead of dropping rating, the counsil might force you to remove the tracks, and return the land to them (would be nice to get rid of AI-roads)
User avatar
mdhowe
Route Supervisor
Route Supervisor
Posts: 446
Joined: 09 Jul 2004 07:12
Location: Hobart, Australia

Post by mdhowe »

I have been testing out the patch for a while and I think that its too hard to get tracks back to their newest/cleanest state, my tracks are always rusty. Also I noticed a bit of an anomaly with the speed that different tiles rust, look at the scrrenshot I attached. Otherwise, this is a really cool patch.
Attachments
rusty.sav
(123.8 KiB) Downloaded 210 times
rusty.png
rusty.png (16.48 KiB) Viewed 5614 times
"Set fashion, not follow. Spit vitriol, not swallow" - Marilyn Manson
User avatar
bociusz
Traffic Manager
Traffic Manager
Posts: 131
Joined: 24 Jul 2004 11:04
Location: Hungary
Contact:

Post by bociusz »

We could raise the time limits for rusting, if that's your problem
User avatar
lucaspiller
Tycoon
Tycoon
Posts: 1228
Joined: 18 Apr 2004 20:27

Post by lucaspiller »

It seems to take too little time to go from super rusty to rusty (just one train going over changes it, I think it should be a few more). It then seems to take too long to go from rusty to normal.
No longer active here, but you can still reach me via email: luca[at]stackednotion[dot]com
User avatar
Dribbel
Engineer
Engineer
Posts: 64
Joined: 11 Jul 2004 16:25
Location: The Netherlands - Grunn

Post by Dribbel »

The time limits do need some adjusting, i just choose some values, never tested it much.

Describing the time in months is hard (or does someone knows how many tileloops there go in a month?)

The usage count is per vehicle, that means that longer trains (with more vehicles) have a greater effect on the rails.

The strange rusting (mdhowe) is an effect of the internals of the game. The tiles aren't inspected in a row (or line), but with gaps in between (the effect is clearly visable at farm fields, or with large buldozed areas). It takes some iteration around to make to convert all tiles.

(don not expect much progress in the upcoming days /week. Real life is calling with exams and parties)
Programmeren is makkelijker als je denkt - Dutch pun
[url=callto://zoekdribbel]Image[/url]
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: Baidu [Spider] and 19 guests