Page 1 of 1
having problems with a newGRF
Posted: 10 Aug 2008 07:04
by ashaw
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.
Re: having problems with a newGRF
Posted: 10 Aug 2008 07:21
by LordAzamath
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
Re: having problems with a newGRF
Posted: 10 Aug 2008 07:40
by ashaw
it is ment to be a single locomotive that goes really fast.
the locomotive is cheap
the locomotive should have next to no use carrying loads ie carrying cargo or passengers
it is ment to be used fo logik ala
http://www.tt-forums.net/viewtopic.php?p=707009#p707009.
Re: having problems with a newGRF
Posted: 10 Aug 2008 09:13
by maquinista
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
Re: having problems with a newGRF
Posted: 10 Aug 2008 14:59
by DJ Nekkid
-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?
Re: having problems with a newGRF
Posted: 10 Aug 2008 17:26
by Mchl
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.
Re: having problems with a newGRF
Posted: 10 Aug 2008 20:24
by DJ Nekkid
action0 prop 19 = 08, i.e. diesel
Re: having problems with a newGRF
Posted: 10 Aug 2008 20:28
by Mchl
But it's supposed to act as electron in a logic circuit

Re: having problems with a newGRF
Posted: 11 Aug 2008 00:26
by DJ Nekkid
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
Re: having problems with a newGRF
Posted: 11 Aug 2008 06:40
by ashaw
no it does not it accelerates at about 100km/s tried it.
Re: having problems with a newGRF
Posted: 11 Aug 2008 10:08
by XeryusTC
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

Re: having problems with a newGRF
Posted: 11 Aug 2008 10:33
by ashaw
yes but the information goes really fast