having problems with a newGRF

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

Post Reply
ashaw
Engineer
Engineer
Posts: 16
Joined: 07 Aug 2008 11:53

having problems with a newGRF

Post 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.
LordAzamath
Tycoon
Tycoon
Posts: 1656
Joined: 08 Jun 2007 08:00

Re: having problems with a newGRF

Post 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
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.
ashaw
Engineer
Engineer
Posts: 16
Joined: 07 Aug 2008 11:53

Re: having problems with a newGRF

Post 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.
maquinista
Tycoon
Tycoon
Posts: 1829
Joined: 10 Jul 2006 00:43
Location: Spain

Re: having problems with a newGRF

Post 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
Sorry if my english is too poor, I want learn it, but it isn't too easy.[/list][/size]
User avatar
DJ Nekkid
Tycoon
Tycoon
Posts: 2141
Joined: 30 Nov 2006 20:33

Re: having problems with a newGRF

Post 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?
Member of the
ImageImage
Mchl
Director
Director
Posts: 611
Joined: 05 Jan 2007 15:50
Location: Poland
Contact:

Re: having problems with a newGRF

Post 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.
User avatar
DJ Nekkid
Tycoon
Tycoon
Posts: 2141
Joined: 30 Nov 2006 20:33

Re: having problems with a newGRF

Post by DJ Nekkid »

action0 prop 19 = 08, i.e. diesel
Member of the
ImageImage
Mchl
Director
Director
Posts: 611
Joined: 05 Jan 2007 15:50
Location: Poland
Contact:

Re: having problems with a newGRF

Post by Mchl »

;)

But it's supposed to act as electron in a logic circuit :)
User avatar
DJ Nekkid
Tycoon
Tycoon
Posts: 2141
Joined: 30 Nov 2006 20:33

Re: having problems with a newGRF

Post 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
Member of the
ImageImage
ashaw
Engineer
Engineer
Posts: 16
Joined: 07 Aug 2008 11:53

Re: having problems with a newGRF

Post by ashaw »

no it does not it accelerates at about 100km/s tried it.
User avatar
XeryusTC
Tycoon
Tycoon
Posts: 15415
Joined: 02 May 2005 11:05
Skype: XeryusTC
Location: localhost

Re: having problems with a newGRF

Post 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 ;)
Don't panic - My YouTube channel - Follow me on twitter (@XeryusTC) - Play Tribes: Ascend - Tired of Dropbox? Try SpiderOak (use this link and we both get 1GB extra space)
Image
OpenTTD: manual #openttdcoop: blog | wiki | public server | NewGRF pack | DevZone
Image Image Image Image Image Image Image
ashaw
Engineer
Engineer
Posts: 16
Joined: 07 Aug 2008 11:53

Re: having problems with a newGRF

Post by ashaw »

yes but the information goes really fast
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 4 guests