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
ashaw
Engineer
Posts: 16 Joined: 07 Aug 2008 11:53
Post
by ashaw » 10 Aug 2008 07:04
The following is what i am having problems with,
Code: Select all
// Automatically generated by GRFCODEC. Do not modify!
// (Info version 7)
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
0 * 4 00 00 00 00
1 * 8 08 06 "AS" 01 01 00 00
2 * 53 00 00 01 01 FF 08 B1 00 \w1920/01/01 02 00 03 FF 04 FF 05 00 06 07 07 05 08 01 09 00 80 0B 20 4E 0D 01 0E 36 4C 00 00 13 00 16 01 17 01 18 01 19 08 1F FF 20 01 27 01
3 * 13 04 00 01 01 FF 08 B1 4c 6f 67 69 63 00
4 * 4 01 00 01 08
5 data\sprites/new.pcx 18 8 01 18 8 -3 -10
6 data\sprites/new.pcx 34 8 09 14 20 -14 -6
7 data\sprites/new.pcx 66 8 01 12 28 -14 -6
8 data\sprites/new.pcx 114 8 09 16 20 -4 -8
9 data\sprites/new.pcx 146 8 01 18 8 -3 -10
10 data\sprites/new.pcx 162 8 09 16 20 -14 -7
11 data\sprites/new.pcx 194 8 01 12 28 -14 -6
12 data\sprites/new.pcx 242 8 09 14 20 -4 -6
13 * 9 02 00 00 01 01 00 00 00 00
14 * 9 03 00 01 FF 08 B1 00 00 00
please help as i am new to this.
ps. yes this train is ment to go fast!!!
also do you know if this train could be made not able to carry any cargo.
LordAzamath
Tycoon
Posts: 1656 Joined: 08 Jun 2007 08:00
Post
by LordAzamath » 10 Aug 2008 07:21
What does it do? What doesn't it do? What is it meant to be done?
btw, a friendly pointer, document your code, much more easily to find bugs
PS: And I stopped the propaganda to support Dave Worley since he got a nice new red hat now. [/color]
I know I have a BBCode error in my signature but I really cba to fix it.
maquinista
Tycoon
Posts: 1829 Joined: 10 Jul 2006 00:43
Location: Spain
Post
by maquinista » 10 Aug 2008 09:13
NFO is easier if You don't write the code in a single line and You make comments:
Code: Select all
46 * 4 01 00 02 08
// Closed doors - Puertas cerradas
47 feve\coche2BB.pcx 0 0 01 24 8 -3 -12
48 feve\coche2BB.pcx 16 0 09 17 22 -14 -9
49 feve\coche2BB.pcx 48 0 01 12 32 -16 -8
50 feve\coche2BB.pcx 96 0 09 17 22 -6 -9
51 feve\coche2BB.pcx 128 0 01 24 8 -3 -12
52 feve\coche2BB.pcx 144 0 09 17 22 -14 -9
53 feve\coche2BB.pcx 176 0 01 12 32 -16 -8
54 feve\coche2BB.pcx 224 0 09 17 22 -6 -9
// Open doors - Puertas abiertas
55 feve\coche2BB.pcx 0 25 01 24 8 -3 -12
56 feve\coche2BB.pcx 16 25 09 17 22 -14 -9
57 feve\coche2BB.pcx 48 25 01 12 32 -16 -8
58 feve\coche2BB.pcx 96 25 09 17 22 -6 -9
59 feve\coche2BB.pcx 128 25 01 24 8 -3 -12
60 feve\coche2BB.pcx 144 25 09 17 22 -14 -9
61 feve\coche2BB.pcx 176 25 01 12 32 -16 -8
62 feve\coche2BB.pcx 224 25 09 17 22 -6 -9
63 * 9 02 00
00 // cargo-id
01 // num-loadtypes
01 // num-loadingtypes
00 00 // Closed doors - Puertas cerradas
01 00 // Open doors - Puertas abiertas
64 * 7 03
00 // Trains
01 // n-id
1B // Asociated ID - ID asociada
00 // Number of cargo type definitions that follow
00 // cargo-type and cid
00 // def-cid
65 * 50 00 00 15 01 1B // Passenger Carriage monorail
12 FD
00 \w1-1-1966 // introdate
02 01 // reliability
03 \b50 // vehicle life
04 \b60 // class life
0D 04 // running cost
17 12 // purchase cost
19 1D // engine type
09 00 00 // speed
16 14 // weight
0B 00 00 // power
1F 00 // Tractive effort
1E 00 // callbacks
21 00 // shortened
05 01 // rail type
06 0F // climate
13 00 // doublehead
14 3A // capacity
15 00 // cargo
08 00 // AI passenger
18 20 // AI rank
Sorry if my english is too poor, I want learn it, but it isn't too easy.
[/list][/size]
DJ Nekkid
Tycoon
Posts: 2141 Joined: 30 Nov 2006 20:33
Post
by DJ Nekkid » 10 Aug 2008 14:59
-1 * 53 00 00 <number-of-props> 01 <id> 08 B1 00 \w1920-01-01 02 00 03 FF 04 FF 05 00 06 07 07 05 08 01 09 \w<speed> 0B \w<power> 0D 01 0E \dx364C 13 00 16 \b<weight-in-tons> 17 01 18 01 19 08 1F FF 20 00 27 01
add a 14 00 15 00 to that and it will have no cargo. But seriously, a diesel that can go 32000 kmh?
Member of the
Mchl
Director
Posts: 611 Joined: 05 Jan 2007 15:50
Location: Poland
Contact:
Post
by Mchl » 10 Aug 2008 17:26
It's electron, not a diesel...
Anyways, I think I remember a grf that did have a Vmax set to 32000 or so, but in game speed was capped much below that.
DJ Nekkid
Tycoon
Posts: 2141 Joined: 30 Nov 2006 20:33
Post
by DJ Nekkid » 10 Aug 2008 20:24
action0 prop 19 = 08, i.e. diesel
Member of the
Mchl
Director
Posts: 611 Joined: 05 Jan 2007 15:50
Location: Poland
Contact:
Post
by Mchl » 10 Aug 2008 20:28
But it's supposed to act as electron in a logic circuit
DJ Nekkid
Tycoon
Posts: 2141 Joined: 30 Nov 2006 20:33
Post
by DJ Nekkid » 11 Aug 2008 00:26
then give it 1 tonn weigt, max power, and let it be maglev, and it will be as fast as you want, and it will accelerate in an instant
Member of the
ashaw
Engineer
Posts: 16 Joined: 07 Aug 2008 11:53
Post
by ashaw » 11 Aug 2008 06:40
no it does not it accelerates at about 100km/s tried it.
XeryusTC
Tycoon
Posts: 15415 Joined: 02 May 2005 11:05
Skype: XeryusTC
Location: localhost
Post
by XeryusTC » 11 Aug 2008 10:08
DJ Nekkid wrote: But seriously, a diesel that can go 32000 kmh?
Mchl wrote: But it's supposed to act as electron in a logic circuit
An electron only travels 0.5m/hour you know
ashaw
Engineer
Posts: 16 Joined: 07 Aug 2008 11:53
Post
by ashaw » 11 Aug 2008 10:33
yes but the information goes really fast
Users browsing this forum: No registered users and 11 guests