Loading
  1. D:\OpenTTD_repositories\PART\NML>Combine-and-Compile.py
  2. PART-test.nml not found!!!
  3. Success! NML combined.
  4.  
  5. D:\OpenTTD_repositories\PART\NML>C:\NML\nmlc -c --default-lang=english.lng --grf=PART.grf PART.nml
  1. import os
  2. from subprocess import Popen
  3.  
  4. main_nml = open('PART.nml', 'r')
  1.  
  2. switch(FEAT_TRAINS, SELF, maglevhopper_layer0_01, ([STORE_TEMP(COLOUR_RED, 0x100) , cargo_type_in_veh]))
  3. {
  4.     IORE:    return spritegroup_maglevhopper_wagon_layer;
  5.     default: return spritegroup_maglevhopper_wagon_layer;

asdf

  1. switch (FEAT_TRAINS,SELF, maglevhopper_layer1_grey, [
  2.   STORE_TEMP(PALETTE_GREY, 0x100), cargo_type
  3. ]){
  4.   STEL: return spritegroup_SLUGhopper_steel;
  5.   default: return spritegroup_SLUGhopper_wtf;

asdf

  1. switch (FEAT_TRAINS,SELF, maglevhopper_layer1_grey, [
  2.   STORE_TEMP(PALETTE_GREY, 0x100)
  3. ]){
  4.   return spritegroup_maglevhopper_cargo_layer;
  5. }

cargoes

  1. switch (FEAT_TRAINS, SELF, SLUGhopper_wagon_switch, cargo_type_in_veh) {
  2.     URAN: spritegroup_SLUGhopper_uranium;
  3.  
  4.     DIAT: spritegroup_SLUGhopper_sugar;

asdf

  1. switch (FEAT_TRAINS,SELF, maglevhopper_switch, [
  2.   STORE_TEMP((getbits(extra_callback_info1, 8, 8) < 4 ? CB_FLAG_MORE_SPRITES  : 0) + PALETTE_USE_DEFAULT, 0x100),
  3.   getbits(extra_callback_info1, 8, 8)
  4.   ]){
  5.   0: spritegroup_maglevhopper_wagon_layer;

gcc8 warnings

  1. [SRC] DEP CHECK (all files)
  2. [SRC] Compiling 3rdparty/md5/md5.cpp
  3. [SRC] Compiling 3rdparty/squirrel/sqstdlib/sqstdaux.cpp
  4. [SRC] Compiling 3rdparty/squirrel/sqstdlib/sqstdmath.cpp
  5. [SRC] Compiling 3rdparty/squirrel/squirrel/sqapi.cpp

wotwot

  1.  
  2. item(FEAT_TRAINS, item_capacity_part, 153){
  3.   property{
  4.     sprite_id:            SPRITE_ID_NEW_TRAIN;
  5.     name:                 string(STR_capacity_part_name);

code from frosch (2016)

  1.     item(booster_wagon ...)
  2.     {
  3.     }
  4.      
  5.     // return power, as computed in TEMP(0)

Paste #ps1z4ivqt

  1.             /* If it's a road turn possibly build a house in a corner.
  2.              * Use intersection with straight road as an indicator
  3.              * that we randomed corner house position.
  4.              * A turn (and we check for that later) always has only
  5.              * one common bit with a straight road so it has the same

Paste #p5y4w0vuj

  1.         spriteset(${vehicle.id}_ss_doors_closed_livery_1_${cargo_variant_num}_${flipped}, "${global_constants.graphics_path}${consist.id}.png") {
  2.           spriteset_template_${vehicle.symmetry_type}_${'reversed' if flipped == 'flipped' else 'unreversed'}_${vehicle.id}_${flipped}(10 + ${cargo_variant_num * 120})
  3.         }
  4.         spriteset(${vehicle.id}_ss_doors_open_livery_1_${cargo_variant_num}_${flipped}, "${global_constants.graphics_path}${consist.id}.png") {
  5.           spriteset_template_${vehicle.symmetry_type}_${'reversed' if flipped == 'flipped' else 'unreversed'}_${vehicle.id}_${flipped}(10 + ${cargo_variant_num * 120} + 30)

Paste #pycvqzxce

  1. switch (FEAT_TRAINS, SELF, unicorn_resting_cost2, [
  2.   var[0xB4, 0, 0xFFFF]
  3. ]) {
  4.   0:       return 100; // cost when waiting for no reason
  5.   1..30:   return 50; // cost when driving very slow/accelerating/beaking

Paste #p6nxtyus2

  1. switch (FEAT_TRAINS, SELF, unicorn_resting_cost2, [
  2.   var[0xB4, 0, 0xFFFF]
  3. ]) {
  4.   0:       return 100; // cost when waiting for no reason
  5.   1..30:   return 50; // cost when driving very slow/accelerating/beaking

Paste #pdm944pkd

  1.                 speeds = {'RAIL': {'freight': [35, 35, 45, 60, 75, 90],
  2.                                    'fast_freight': [45, 60, 75, 90, 90, 90],
  3.                                    'pax_mail': [45, 60, 75, 90, 110, 125]},