my first new sprites

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

User avatar
bobingabout
Tycoon
Tycoon
Posts: 1850
Joined: 21 May 2005 15:10
Location: Hull, England

my first new sprites

Post by bobingabout »

these are what i've been working on over the past couple of days.

they are meant to be passenger carages for different trains(engines).

i already know its possable to make different engines use different sprites for passenger carages, but not sure how to code it yet. but anyway, this is what i was aiming at.

note, no new 1 for the TIM yet.


I'd like opinions and coding hints please.
Attachments
temperate depot.gif
temperate depot.gif (7.36 KiB) Viewed 5103 times
newcoaches.GIF
newcoaches.GIF (4.05 KiB) Viewed 5103 times
JPG SUX!!! USE PNG!!!
There are times when JPG is useful, TTD screenshots is not one of them. Please use PNG instead.

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

Post by Korenn »

it's a nice idea. it will be difficult to code though, but not impossible.
User avatar
bobingabout
Tycoon
Tycoon
Posts: 1850
Joined: 21 May 2005 15:10
Location: Hull, England

Post by bobingabout »

i guessed that much, glad you like the idea.
JPG SUX!!! USE PNG!!!
There are times when JPG is useful, TTD screenshots is not one of them. Please use PNG instead.

[/url]
Alltaken
Tycoon
Tycoon
Posts: 1285
Joined: 03 Dec 2003 06:24
Location: Christchurch, New Zealand
Contact:

Post by Alltaken »

yeah vehicle specific GFX are a very nice feature i think.

Alltaken
User avatar
Dextro
Chief Executive
Chief Executive
Posts: 701
Joined: 12 Jan 2005 21:56
Location: Lisboa, Portugal
Contact:

Post by Dextro »

Alltaken wrote:yeah vehicle specific GFX are a very nice feature i think.

Alltaken
look at the dbset, even the original (not xl)... it already has them :)
Uncle Dex Says: Follow the KISS Principle!
User avatar
bobingabout
Tycoon
Tycoon
Posts: 1850
Joined: 21 May 2005 15:10
Location: Hull, England

Post by bobingabout »

dbset?
JPG SUX!!! USE PNG!!!
There are times when JPG is useful, TTD screenshots is not one of them. Please use PNG instead.

[/url]
User avatar
Villem
Tycoon
Tycoon
Posts: 3310
Joined: 28 Aug 2003 09:38

Post by Villem »

Korenn wrote:it's a nice idea. it will be difficult to code though, but not impossible.
Its useless to hardcode in something when you can use the newgrf support when its finished.
User avatar
Korenn
Tycoon
Tycoon
Posts: 1735
Joined: 26 Mar 2004 01:27
Location: Netherlands
Contact:

Post by Korenn »

I _was_ talking about grf coding...

don't make assumptions.
User avatar
Villem
Tycoon
Tycoon
Posts: 3310
Joined: 28 Aug 2003 09:38

Post by Villem »

those _'s don't make your point any better.
and you could define what you were meaning, all you said was "hard to code" wich can mean anything, especially since the impression i got livery overrides were not hard.
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: my first new sprites

Post by DaleStan »

Akala is right. Livery overrides are easy to code in NFO.
bobingabout wrote:I'd like opinions and coding hints please.
Coding hints:
Read the TTDPatch wiki, especially the Action1, 2 and 3 pages: http://wiki.ttdpatch.net/tiki-index.php ... nsDetailed
You'll also need to read about Action 8.

If you aren't planning to redraw the engines, the easy (but wrong) solution (using livery-override action 3s) requires that you include the sprites for the engines anyway. This is the correct solution if you do redraw the engines.
If you aren't planning to redraw the engines, the good (but tedious) solution is to have a type 82 variational action 2 on variable C6 for each wagon you replace. This is a waste of effort if you are redrawing the engines.
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
Hackykid
Traffic Manager
Traffic Manager
Posts: 157
Joined: 22 Nov 2004 16:04
Location: Eindhoven de Gekste!!! (ongeveer ;P)
Contact:

Post by Hackykid »

Akalamanaia wrote:
Korenn wrote:it's a nice idea. it will be difficult to code though, but not impossible.
Its useless to hardcode in something when you can use the newgrf support when its finished.
heh, current newgrf stuff can already handle livery overrides...
DopeFish Lives!!!
User avatar
Born Acorn
Tycoon
Tycoon
Posts: 7596
Joined: 10 Dec 2002 20:36
Skype: bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn »

but not livery re-fits.
*hint* *hint* :wink:
Image
User avatar
bobingabout
Tycoon
Tycoon
Posts: 1850
Joined: 21 May 2005 15:10
Location: Hull, England

Post by bobingabout »

read my first post, i seen a livery overide that works in openttd, thats where i got the idea.

oh, and if its easy to code, mind giving me a hand? i'm completly new to this, and, numbers just frag my brain... i can do complex calculations, but can't do simple numercy...
JPG SUX!!! USE PNG!!!
There are times when JPG is useful, TTD screenshots is not one of them. Please use PNG instead.

[/url]
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

Did you read the wiki? Go read it, and try to decipher some of the simpler GRF files (try Pikkabird's UK renewal set) and then come back here and ask about the parts you don't understand. Sprite 0 is poorly documented; it is a dword that contains the number of sprites that follow.
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
Born Acorn
Tycoon
Tycoon
Posts: 7596
Joined: 10 Dec 2002 20:36
Skype: bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn »

bobingabout wrote:read my first post, i seen a livery overide that works in openttd, thats where i got the idea.

oh, and if its easy to code, mind giving me a hand? i'm completly new to this, and, numbers just frag my brain... i can do complex calculations, but can't do simple numercy...
I know, I have some livery override trains, but now it uses Livery refit where you change the livery through the re-fit page.
Image
User avatar
bobingabout
Tycoon
Tycoon
Posts: 1850
Joined: 21 May 2005 15:10
Location: Hull, England

Post by bobingabout »

I've been reading through the tutorials on the Wiki, although they are incomplete.

(this would be easier with completed tutorials...also would be easier if there was a list of what OTTD suported, or just as good, doesn't suport.)

EDIT: If i'm reading this right, i have to set the trains graphics before i can set a wagon overide graphics... which would mean including all the engine graphics i want to create an overide for in my GRF... is there any way to avoid having to do this, or am i on the right track here?
JPG SUX!!! USE PNG!!!
There are times when JPG is useful, TTD screenshots is not one of them. Please use PNG instead.

[/url]
User avatar
Killer 11
Tycoon
Tycoon
Posts: 2463
Joined: 06 Jan 2004 18:38
Location: Kaunas, Lithuania
Contact:

Post by Killer 11 »

I think that you just have to code the grf so it overides trains with specific ID's so you don't have to include the engines in the grf.
But i too don't know grf coding so this may be wrong :roll:
User avatar
bobingabout
Tycoon
Tycoon
Posts: 1850
Joined: 21 May 2005 15:10
Location: Hull, England

Post by bobingabout »

acording to the tutorial, the overide action 3 must directly follow the trains graphics assignment action 3. so to set an overide, you need to change a train graphic.

someone tell me, there is a way to create new engines without overiding an old 1 right? the first tutorial tells you its not possable to add new trains, yet later in the guide it referances dynamic train numbering...

theres just so much of the tutorial missing, its hard to understand.

EDIT: looking at something someone else has done, yes, you do need to include original train graphics if you are going to do an overide for a truck is uses.

also, although i'm not entirely sure how yet, yes, i do beleave you can add new vehicles.
JPG SUX!!! USE PNG!!!
There are times when JPG is useful, TTD screenshots is not one of them. Please use PNG instead.

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

Post by Korenn »

bobingabout wrote:acording to the tutorial, the overide action 3 must directly follow the trains graphics assignment action 3. so to set an overide, you need to change a train graphic.

someone tell me, there is a way to create new engines without overiding an old 1 right? the first tutorial tells you its not possable to add new trains, yet later in the guide it referances dynamic train numbering...

theres just so much of the tutorial missing, its hard to understand.

EDIT: looking at something someone else has done, yes, you do need to include original train graphics if you are going to do an overide for a truck is uses.

also, although i'm not entirely sure how yet, yes, i do beleave you can add new vehicles.
no you can't.
User avatar
bobingabout
Tycoon
Tycoon
Posts: 1850
Joined: 21 May 2005 15:10
Location: Hull, England

Post by bobingabout »

no i can't what? you quoted the entire post and didn't specify which thing i can't do...

i tried to create a new passenger coach, and ended up with a new engine with strange values, but thats because i wasn't setting all the engine properties. anyway to tell it its a carrage not an engine?

i supose i'll have to have a go at livery overiding the engines then.
JPG SUX!!! USE PNG!!!
There are times when JPG is useful, TTD screenshots is not one of them. Please use PNG instead.

[/url]
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 25 guests