Loading

Paste #p5i1k9yzd

  1. Python 3.5.2 (default, Sep 14 2016, 11:28:32)
  2. [GCC 6.2.1 20160901 (Red Hat 6.2.1-1)] on linux
  3. Type "help", "copyright", "credits" or "license" for more information.
  4. >>> s = "\u2717"
  5. >>> print(ord(s))
  6. 10007

Paste #pyhxujcqj

  1. diff --git a/nml/parser.py b/nml/parser.py
  2. index 8d28382..d23764b 100644
  3. --- a/nml/parser.py
  4. +++ b/nml/parser.py
  5. @@ -441,8 +441,12 @@ class NMLParser(object):

Paste #ppnnfttvy

  1. *** simple CB GS configuration ***
  2.  
  3. [game_scripts]
  4. "Simpleton's City Builder" = cityPopLimit=1,claimpop=300,dec0=100,dec1=100,dec10=2,dec2=100,dec5=5,dyngrowth=4,gamelength=24,goal=5000,goalprogress=1,morelogs=0,pop0=500,pop1=300,pop2=1000,req1=50,req10=10,req5=120,startpause=1,storage=4,townarea=0,xMapgen=1

Paste #phdne9rqy

  1. /**
  2.  * Find the nearest hangar to v
  3.  * INVALID_STATION is returned, if the company does not have any suitable
  4.  * airports (like helipads only)
  5.  * @param v vehicle looking for a hangar

Paste #pdrpkkwh6

  1. consist.add_unit(capacity = 40,
  2.                 vehicle_length = 7,
  3.                 cargo_length = 4,
  4.                 repeat = 4)

Paste #puwuelocc

  1. [difficulty]
  2. max_no_competitors = 2
  3.  
  4. [ai]
  5. ai_in_multiplayer = true

Paste #p13ckykxj

  1. /**
  2.  * Find the nearest hangar to v
  3.  * INVALID_STATION is returned, if the company does not have any suitable
  4.  * airports (like helipads only)
  5.  * @param v vehicle looking for a hangar

Paste #ppnpg6zfn

  1. switch(FEAT_INDUSTRYTILES, SELF, ${industry.id}_730, ((nearby_tile_height(0,0) - snowline_height) + 1)) {
  2.     0..7: ${industry.id}_661;
  3.     8..15: ${industry.id}_683;
  4.     16..23: ${industry.id}_705;
  5.     24..127: ${industry.id}_727;

cargo graphics

  1. //  ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
  2. //  CARGO GRAPHICS
  3. //  ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
  4.     switch (FEAT_TRAINS, SELF, switch_RAILBUS_DIESEL_NG_DOODLEBUG_cargo_selection, cargo_classes){
  5.         bitmask(CC_PASSENGERS): spriteset_RAILBUS_DIESEL_NG_DOODLEBUG_pass;
  6.                     spriteset_RAILBUS_DIES

Paste #pxrhye6g6

  1. NotRoadTypes(road-and-tram-types)$ git merge ottd/master
  2. Auto-merging src/vehicle.cpp
  3. Auto-merging src/town_cmd.cpp
  4. Auto-merging src/station_cmd.cpp
  5. Auto-merging src/smallmap_gui.cpp

EdsgerAI info (no compile

  1. class EdsgerAI extends AIInfo
  2. {
  3.     function GetAuthor()      { return "Gustavo6046"; }
  4.     function GetName()        { return "Edsger Bus"; }
  5.     function GetDescription() { return "An AI that uses Edsger W. Dijkstra's algorithm a lot: https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm"; }

Paste #pmtjm5zum

  1.     /* Check whether this industry provides its own station */
  2.     bool oil_rig = false;
  3.     TILE_AREA_LOOP(tile_cur, ind->location) {
  4.         if (IsTileType(tile_cur, MP_INDUSTRY) && GetIndustryGfx(tile_cur) == GFX_OILRIG_1) {
  5.             TileIndex other = tile_cur + TileDiffXY(0, -1);

palette-v9

  1. import math
  2. import time
  3. import datetime
  4. import os
  5. from os import remove

help me turn this into a

  1.     do {
  2.         if (_networking && num_companies + num_to_start >= _settings_client.network.max_companies) break;
  3.         if (num_ais + num_to_start >= (uint)_settings_game.difficulty.max_no_competitors) break;
  4.     } while (_settings_game.difficulty.max_no_competitors - ++num_to_start > 0 && AI::GetStartNextTime(num_to_start) == 0);

Paste #p9mgcx8mj

  1. already decided?
  2. - no self-hosted stuff
  3. - source code in git, workflow via pull-requests with inline comments
  4. - options were: github, gitlab, bitbucket
  5. - bitbucket has already been ruled out, it does not focus on public projects