Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Thu Oct 19, 2017 2:54 pm

All times are UTC




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sat Aug 14, 2004 11:30 pm 
Offline
Engineer
Engineer
User avatar

Joined: Sun Jul 11, 2004 4:25 pm
Posts: 64
Location: The Netherlands - Grunn
I want to add something totaly new (eg a spaceport/ a looping/whatever) and i don't want to sacrifice any existing thing so i need an extra GRF file with my stuff in it.

I did some research on the grf stuff, i know how to use them in the code (i can program :) ) but i keep having a hard time getting my grf file right

1)
I start with the image below and a correct before NFO file
Image
(click it for pcx version)

2)
encode it using the grf encoder.

3)
I decode it again if thing went correct. I end up with something like this:
Image
after_test.nfo

What is going wrong here, i don't know. Please help :)

_________________
Programmeren is makkelijker als je denkt - Dutch pun
Image


Top
   
 Post subject:
PostPosted: Sun Aug 15, 2004 12:43 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Wed Oct 02, 2002 6:57 pm
Posts: 5552
Location: Ithaca, New York
Your PCX file must have an even X dimension. Odd won't work.


Top
   
 Post subject:
PostPosted: Sun Aug 15, 2004 11:32 am 
Offline
Engineer
Engineer
User avatar

Joined: Sun Jul 11, 2004 4:25 pm
Posts: 64
Location: The Netherlands - Grunn
Thanks! I' try that! Was that somewhere in de docs or specs?

--edit
hmm it's even: 800px

_________________
Programmeren is makkelijker als je denkt - Dutch pun

Image


Top
   
 Post subject:
PostPosted: Sun Aug 15, 2004 12:56 pm 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Sat Aug 16, 2003 12:55 pm
Posts: 768
Location: Bonn, Germany
Why don't you just add them to openttd.grf? Or you could rename openttd.grf to mygraphics.grf and remove all the graphics you don't want from that file.

_________________
"There's a readme that comes with the source. I suggest you read it."
- Korenn


Top
   
 Post subject:
PostPosted: Sun Aug 15, 2004 1:49 pm 
Offline
Engineer
Engineer
User avatar

Joined: Sun Jul 11, 2004 4:25 pm
Posts: 64
Location: The Netherlands - Grunn
i think i'll do something like that. Making a new one is quite hard.

_________________
Programmeren is makkelijker als je denkt - Dutch pun

Image


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2017 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2017.
Hosted by Zernebok Hosting.