[OTTD] American Trains Pack - ATP (Looking for Help Coding)

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
BarbarianKabbage
Engineer
Engineer
Posts: 34
Joined: 30 Dec 2015 17:16

[OTTD] American Trains Pack - ATP (Looking for Help Coding)

Post by BarbarianKabbage »

Hello. I am BarbarianKabbage, a person who aspires to make a train set of American trains.

The paint schemes I am trying working on currently is: Union Pacific and BNSF and Amtrak stuff

if anybody would like to help code, I could use the help because I don't know the first thing about coding for OpenTTD.

Graphics will be posted here for you guys to keep track of.

License: GPL v2

Current Helpers (Thanks to you guys who help me! I wouldn't have been able to make it this far without you!)
Growl
Sylf

THE LINK BELOW IS THE LINK TO THE TRACKER
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Amtrak:
Surfliner Coaches - Complete
Image
Superliner Coach 1 - Complete
Image

Fails:
Image
That was my attempt at making a Union Pacific GP38 and it failed miserably. :cry:

Locomotive Set (ATM)
Image
Image
These were donated to my by ISA (Thanks mate!)

Image
ES44AC/DC Reskin to BNSF Heritage II Paint Scheme
Last edited by BarbarianKabbage on 05 Jul 2016 19:53, edited 15 times in total.
User avatar
Leanden
Tycoon
Tycoon
Posts: 2613
Joined: 19 Mar 2009 19:25
Location: Kent

Re: [OTTD] American Trains Pack - Amtrak (Looking for Help)

Post by Leanden »

Always nice to see new faces on the scene.

If you are tempted at all to learn coding, a good place to start would be here: https://www.tt-wiki.net/wiki/NMLTutorial
Image
User avatar
wallyweb
Tycoon
Tycoon
Posts: 6102
Joined: 27 Nov 2004 15:05
Location: Canada

Re: [OTTD] American Trains Pack - Amtrak (Looking for Help)

Post by wallyweb »

Leanden wrote:Always nice to see new faces on the scene.
/me echoes
If you are tempted at all to learn coding, a good place to start would be here: https://www.tt-wiki.net/wiki/NMLTutorial
Another option is m4nfo by Michael Blunck whose DBSet has been a rail set standard in the TTDPatch/OpenTTD platforms almost from their inception. The details are here: http://www.ttdpatch.de/grfspecs/m4nfoManual/index.html
User avatar
ISA
Tycoon
Tycoon
Posts: 3384
Joined: 17 Oct 2005 20:56
Location: Estonia

Re: [OTTD] American Trains Pack - Amtrak (Looking for Help)

Post by ISA »

wallyweb wrote:
Leanden wrote:Always nice to see new faces on the scene.
/me echoes
faint echos was heard. I repeat it forward 8)

As for all the Northern America stuff... It has be awfully quiet other side of the Atlantic and it would be nice if somebody would pick up something. I do not know is there some work done "back stage"... but for the ATP I would start collecting all the sprites (and chat about possible copyright issues) what has already been drawn. There has been a lot of stuff done back in the days. Update and add new sprites afterwards...
User avatar
Leanden
Tycoon
Tycoon
Posts: 2613
Joined: 19 Mar 2009 19:25
Location: Kent

Re: [OTTD] American Trains Pack - ATP (Looking for Help Coding)

Post by Leanden »

Instead of continuously editing the first post its best to reply to your own thread or people wont see your updates. :)
Image
User avatar
Sylf
President
President
Posts: 957
Joined: 23 Nov 2010 21:25
Location: ::1

Re: [OTTD] American Trains Pack - ATP (Looking for Help Coding)

Post by Sylf »

ey... can I offer my help on the coding part?
I've only coded an industry set so far, but I think I can learn about coding vehicles too.
And I can handle request for DevZone, compile farm etc, while still keeping you as the project owner.
I'm not the fastest coder, but I probably won't bail on you.
User avatar
BarbarianKabbage
Engineer
Engineer
Posts: 34
Joined: 30 Dec 2015 17:16

Re: [OTTD] American Trains Pack - ATP (Looking for Help Coding)

Post by BarbarianKabbage »

Well, I just sent my application to make a project on DevZone. I'll keep watch for any reply. :D

And Sylf thanks for offering to help code! :bow:
User avatar
The Growl
Transport Coordinator
Transport Coordinator
Posts: 342
Joined: 30 May 2016 23:55
Location: London

Re: [OTTD] American Trains Pack - ATP (Looking for Help Coding)

Post by The Growl »

Your trains are very good for a first try! Don't let yourself get down, with some editing, they'd look like the real thing, scale in mind of course.
Image
User avatar
ISA
Tycoon
Tycoon
Posts: 3384
Joined: 17 Oct 2005 20:56
Location: Estonia

Re: [OTTD] American Trains Pack - ATP (Looking for Help Coding)

Post by ISA »

BarbarianKabbage wrote:Fails:
Try more. everything comes in time! 8)


And for the set... Feel free to use them. They just have sit on my USB drive few years now...
Attachments
untitled.PNG
untitled.PNG (5.29 KiB) Viewed 4468 times
untitled1.PNG
untitled1.PNG (58.58 KiB) Viewed 4467 times
User avatar
BarbarianKabbage
Engineer
Engineer
Posts: 34
Joined: 30 Dec 2015 17:16

Re: [OTTD] American Trains Pack - ATP (Looking for Help Coding)

Post by BarbarianKabbage »

ISA wrote:
BarbarianKabbage wrote:Fails:
Try more. everything comes in time! 8)


And for the set... Feel free to use them. They just have sit on my USB drive few years now...
When I saw this my jaw dropped all the way through the earth to China.

I can't thank you enough! :bow:
User avatar
BarbarianKabbage
Engineer
Engineer
Posts: 34
Joined: 30 Dec 2015 17:16

Re: [OTTD] American Trains Pack - ATP (Looking for Help Coding)

Post by BarbarianKabbage »

@Sylf the DevZone project got put up :D
User avatar
BarbarianKabbage
Engineer
Engineer
Posts: 34
Joined: 30 Dec 2015 17:16

Re: [OTTD] American Trains Pack - ATP (Looking for Help Coding)

Post by BarbarianKabbage »

Coding Error:

Code: Select all

spriteset(spriteset_flatbed_truck_1_goods_empty, "gfx/es44ac.png") {
    //left_x, upper_y, width, height, offset_x, offset_y
    [ 0,      0,        8,    26,      -4,      -13]
    [ 9,      0,       22,    21,     -11,      -11]
    [ 32,     0,       32,    13,     -16,       -7]
    [ 65,     0,       22,    21,     -11,      -11]
    [ 88,     0,        8,    26,      -4,      -13]
    [ 97,     0,       22,    21,     -11,      -11]
    [ 120,    0,       32,    13,     -16,       -7]
    [ 153,    0,       22,    21,     -11,      -11]
}

spriteset(spriteset_flatbed_truck_1_goods_full, "gfx/es44ac.png") {
    //left_x, upper_y, width, height, offset_x, offset_y
    [ 0,      0,        8,    26,      -4,      -13]
    [ 9,      0,       22,    21,     -11,      -11]
    [ 32,     0,       32,    13,     -16,       -7]
    [ 65,     0,       22,    21,     -11,      -11]
    [ 88,     0,        8,    26,      -4,      -13]
    [ 97,     0,       22,    21,     -11,      -11]
    [ 120,    0,       32,    13,     -16,       -7]
    [ 153,    0,       22,    21,     -11,      -11]
}
That is my spritesheet code for this: Image

But when I try to compile, I get this error:
D:\grfs\mygrf>nmlc -c --grf mygrf.grf mygrf.nml
←[Knmlc ERROR: Image file "gfx/es44ac.png": 8bpp image does not have a palette
Included from: "mygrf.nml", line 13

The .png is called es44ac fyi
User avatar
Sylf
President
President
Posts: 957
Joined: 23 Nov 2010 21:25
Location: ::1

Re: [OTTD] American Trains Pack - ATP (Looking for Help Coding)

Post by Sylf »

The error message is the hint: the png image needs to be using one of these palettes: https://newgrf-specs.tt-wiki.net/wiki/P ... s#Palettes
DOS palette is generally recommended, as it contains more colors. Don't be fooled by the name "DOS" palette.
The palette files for Photoshop, Gimp, and Paint Shop Pro are available: http://dev.openttdcoop.org/documents/1
User avatar
BarbarianKabbage
Engineer
Engineer
Posts: 34
Joined: 30 Dec 2015 17:16

Re: [OTTD] American Trains Pack - ATP (Looking for Help Coding)

Post by BarbarianKabbage »

That makes no sense because PixelTool uses the palettes.
User avatar
Leanden
Tycoon
Tycoon
Posts: 2613
Joined: 19 Mar 2009 19:25
Location: Kent

Re: [OTTD] American Trains Pack - ATP (Looking for Help Coding)

Post by Leanden »

BarbarianKabbage wrote:That makes no sense because PixelTool uses the palettes.
Just because you only used colours from the pallette, doesnt mean the image is palletized. You need an image editor and the pallette files and then apply the pallette by indexing the image.
Image
User avatar
BarbarianKabbage
Engineer
Engineer
Posts: 34
Joined: 30 Dec 2015 17:16

Re: [OTTD] American Trains Pack - ATP (Looking for Help Coding)

Post by BarbarianKabbage »

Leanden wrote:
BarbarianKabbage wrote:That makes no sense because PixelTool uses the palettes.
Just because you only used colours from the pallette, doesnt mean the image is palletized. You need an image editor and the pallette files and then apply the pallette by indexing the image.
Index? I've never heard of that before.
User avatar
Leanden
Tycoon
Tycoon
Posts: 2613
Joined: 19 Mar 2009 19:25
Location: Kent

Re: [OTTD] American Trains Pack - ATP (Looking for Help Coding)

Post by Leanden »

Image
Image
User avatar
BarbarianKabbage
Engineer
Engineer
Posts: 34
Joined: 30 Dec 2015 17:16

Re: [OTTD] American Trains Pack - ATP (Looking for Help Coding)

Post by BarbarianKabbage »

I did that... it still didn't work.
User avatar
Sylf
President
President
Posts: 957
Joined: 23 Nov 2010 21:25
Location: ::1

Re: [OTTD] American Trains Pack - ATP (Looking for Help Coding)

Post by Sylf »

BarbarianKabbage wrote:I did that... it still didn't work.
Can you post the indexed image? Or better yet, you can start committing sprites to the repo. (repo help)
User avatar
BarbarianKabbage
Engineer
Engineer
Posts: 34
Joined: 30 Dec 2015 17:16

Re: [OTTD] American Trains Pack - ATP (Looking for Help Coding)

Post by BarbarianKabbage »

Sylf wrote:
BarbarianKabbage wrote:I did that... it still didn't work.
Can you post the indexed image? Or better yet, you can start committing sprites to the repo. (repo help)
Attachments
This is the image I'm using as a placeholder that I indexed with GIMP and the OpenTTD Windows Palette.
This is the image I'm using as a placeholder that I indexed with GIMP and the OpenTTD Windows Palette.
es44ac.png (759 Bytes) Viewed 4216 times
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 30 guests