Loading

Paste #pu3qrnwrg

  1. Index: src/newgrf_text.cpp
  2. ===================================================================
  3. --- src/newgrf_text.cpp (revision 27702)
  4. +++ src/newgrf_text.cpp (working copy)
  5. @@ -527,6 +527,7 @@

Paste #pyey7yzjx

  1. diff -r 5ec05bde6098 nml/grfstrings.py
  2. --- a/nml/grfstrings.py Sun Oct 16 19:30:32 2016 +0200
  3. +++ b/nml/grfstrings.py Thu Dec 22 21:09:30 2016 +0100
  4. @@ -207,6 +207,7 @@
  5.  'CARGO_LONG':     {'unicode': r'\UE09A\1B', 'ascii': r'\9A\1B', 'size': 2 * 2},

Paste #pjqfcilc7

  1. CmdConvertRoad
  2.  
  3. upgrade subtype when adding roadbits only if compatible
  4.  
  5. script api

Paste #p8m1zbm2i

  1. types
  2.   OFFR  off-road               (only vehicletype?)
  3.   ROAD  normal road            (tracktype and vehicletype)
  4.   HAUL  heavy hauling road     (tracktype and vehicletype)

Paste #psrnlzd4d

  1. types
  2.   normal rail            (tracktype and vehicletype)
  3.   elrail                 (tracktype and vehicletype)
  4.   3rdrail                (tracktype and vehicletype)
  5.   elrail OR 3rdrail      (only vehicletype)

Paste #pvr6tv039

  1. Index: src/engine.cpp
  2. ===================================================================
  3. --- src/engine.cpp  (revision 27699)
  4. +++ src/engine.cpp  (working copy)
  5. @@ -48,11 +48,6 @@

Paste #py8cldchv

  1. CmdConvertRoad
  2.  
  3. upgrade subtype when adding roadbits only if compatible
  4.  
  5. drawing of catenary continuation

Problem with nml

  1. F:\_Mes Documents\_DL\____OpenTTD\ogfx-trains-6016-source>nmlc ogfx-trains.nml
  2. Encoding 1/18086: src/gfx/rendered/bulk_grain/32bpp/0008_in2x.png_src/gfx/render
  3. Encoding 778/18086: src/gfx/rendered/mono_bulk_grain/32bpp/0006_in2x.png_src/gfx
  4. Encoding 1166/18086: src/gfx/rendered/bulk_iron_ore/32bpp/0007_in2x.png_src/gfx/
  5. Encoding 1655/18086: src/gfx/rendered/mono_flatbed_nocc/32bpp/0006_in4x.png_src/

Paste #pxrq9reag

  1. diff --git a/nml/global_constants.py b/nml/global_constants.py
  2. index 964455b..9107665 100644
  3. --- a/nml/global_constants.py
  4. +++ b/nml/global_constants.py
  5. @@ -1216,6 +1216,8 @@ const_list = [

Paste #p0wjbgi2l

  1. /*
  2.  * This file is aimed to provide an example on how to code a vehicle in NML
  3.  * In this case a road vehicle is coded, other vehicle types work in a similar fashion.
  4.  * To keep the code readable, not every property or variable is documented in
  5.  * detail, refer to the vehicle-specific reference in the documentation.

Paste #pbauyxjnc

  1. Index: src/newgrf_text.cpp
  2. ===================================================================
  3. --- src/newgrf_text.cpp (revision 27688)
  4. +++ src/newgrf_text.cpp (working copy)
  5. @@ -815,13 +815,15 @@

Paste #pzwsfd4w1

  1. NewGRF: 0x37c9810 cargo:19 amount:3
  2. NewGRF: 0x37c9810 cargo:14 amount:8
  3. NewGRF: 0x37c9810 cargo:19 amount:3
  4. NewGRF: 0x37c9810 cargo:15 amount:8

Paste #piwlouxms

  1. [STORE_TEMP(string(STR_EXTRA_METAL_FOUNDRY) | string(STR_EXTRA_TEXT_SECONDARY_CARGO_SUBSTR_TWO_INPUTS) << 16, 256),STORE_TEMP(string(STR_EXTRA_TEXT_SECONDARY_CARGO_SUBSTR_DETAIL) | GOOD << 16, 257), STORE_TEMP(6 | STEL << 16, 258), STORE_TEMP(8 | string(STR_EXTRA_TEXT_SECONDARY_CARGO_SUBSTR_DETAIL) << 16, 259), STORE_TEMP(GOOD | 2 << 16, 260), STORE_TEMP(RFPR | 8 << 16, 261)]

Paste #pqtj3a8d2

  1. #!/usr/bin/env python
  2.  
  3. import re, sys
  4.  
  5. PAT_STR = re.compile("(STR_[^ ]*) *:(.*)")

Paste #posoqdnuc

  1. Before  for (; i < lengthof(_railtypes);          i++) _railtypes[i] = RailtypeInfo(); // zero-init
  2. -       [4] {base_sprites={...} gui_sprites={...} cursor={...} ...} RailtypeInfo
  3. +       base_sprites    {track_y=0 track_ns=0 ground=0 ...} RailtypeInfo::<unnamed-type-base_sprites>
  4. +       gui_sprites {build_ns_rail=0 build_x_rail=0 build_ew_rail=0 ...}    RailtypeInfo::<unnamed-type-gui_sprites>
  5. +       cursor  {rail_ns=0 rail_swne=0 rail_ew=0 ...}   RailtypeInfo::<unnamed-type-cursor>