Loading

Paste #pynizppqk

  1. Regions?
  2.  
  3. As an example, FIRS Steeltown would have
  4.  
  5. - coal

Paste #pwvjchy87

  1. local noise = AIAirport.GetNoiseLevelIncrease(tile, type);
  2. local allowed_noise = AITown.GetAllowedNoise(AIAirport.GetNearestTown(tile, type));
  3. local old_result = (noise != -1 && allowed_noise != -1 && noise <= allowed_noise);
  4. assert(old_result == AIAirport.IsNoiseLevelIncreaseAllowed(tile, type));

Paste #pvklpnahq

  1.  
  2. * andythenorth_ hat die Verbindung getrennt (Remote host closed the connection).
  3. <Alberth> they do make your life complicated with precise placement, or would that also happen with say, default industries ?
  4. <planetmaker> basically what alberth said: a too complex industry newgrf is not well suitable for interaction with anything outside it
  5. <_dp_> btw, all cb gamescripts currently sum all cargo delivered to a town regardless of specific industry first and only then make decisions

Paste #p0j4ujpqq

  1. // script_airport.hpp
  2.     /**
  3.      * Checks whether the noise that will be added to the nearest town if an airport would be
  4.      *  built at this tile is allowed.
  5.      * @param tile The tile to check.

Paste #pyujgn54c

  1. /* static */ bool ScriptAirport::IsNoiseLevelAllowed(TileIndex tile, AirportType type)
  2. {
  3.     extern Town *AirportGetNearestTown(const AirportSpec *as, const TileIterator &it, uint &mindist);
  4.     extern uint8 GetAirportNoiseLevelForDistance(const AirportSpec *as, uint distance);

Paste #pow6gd4ao

  1. switch (FEAT_OBJECTS, SELF, object_decide_tilepos, relative_coord(relative_x,relative_y)) {
  2.     relative_coord(0,0): graphics_object_tile_00;
  3.     relative_coord(1,0): graphics_object_tile_10;
  4. }

Attempt

  1. $ ./make.bat
  2.  
  3. C:\TTDTools\GRFs\Useful Sources\nutracks-c56a33a23225>gcc -C -E -I. -nostdinc -x c-header -o src/nutracks.nml src/nutracks.pnml
  4.  
  5. C:\TTDTools\GRFs\Useful Sources\nutracks-c56a33a23225>nmlc src/nutracks.nml

Error

  1. $ ./make.bat
  2.  
  3. C:\TTDTools\GRFs\Useful Sources\nutracks-c56a33a23225>gcc -C -E -nostdinc -x c-header -o nutracks.nml nutracks.pnml
  4. gcc: error: nutracks.pnml: No such file or directory
  5. gcc: warning: '-x c-header' after last input file has no effect

Paste #pqbylmyxq

  1.     for (local type = 0; type < 9999; type++) {
  2.         if (AIAirport.IsValidAirportType(type)) {
  3.             local w = AIAirport.GetAirportWidth(type);
  4.             local h = AIAirport.GetAirportHeight(type);
  5.             local r = AIAirport.GetAirportCoverageRadius(type);

Paste #pzgax6cjj

  1.         local alltiles = AIMap.GetMapSize();
  2.         for (local type = 0; type <= 8; type++) {
  3.             for (local tile = 0; tile < alltiles; tile++) {
  4.                 AIAirport.GetNearestTown(tile, type);
  5.             }

Paste #pexnsnx62

  1.   GNU nano 2.9.7                                                                              C:/Users/Ricardo/.gitconfig
  2.  
  3. [user]
  4.         name = Samu
  5.         email = dj_samu@hotmail.com

Paste #pfy8hd19r

  1. [alias]
  2.     rb = "!f() { git fetch upstream && git rebase upstream/master; }; f"
  3.     pr = "!f() { git fetch -fu ${2:-$(git remote | grep ^upstream || echo origin)} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f"
  4.     pr-clean = "!git for-each-ref refs/heads/pr/* --format='%(refname)' | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done"

Paste #pumazxsaf

  1.     AirportTileTableIterator it(as->table[0], tile);
  2.     for (TileIndex cur_tile = it; cur_tile != INVALID_TILE; cur_tile = ++it) {
  3.         if (!::IsValidTile(cur_tile)) return INVALID_TOWN;
  4.     }

Paste #pizf1oyp4

  1.         local alltiles = AIMap.GetMapSize();
  2.         for (local tile = 0; tile < alltiles; tile++) {
  3.             AIAirport.GetNearestTown(AIBase.RandRange(alltiles), AIAirport.AT_INTERCON);
  4.         }

Paste #piojqoyk3

  1.         local alltiles = AIMap.GetMapSize();
  2.         for (local tile = 0; tile < alltiles; tile++) {
  3.             AIAirport.GetNearestTown(tile, AIAirport.AT_INTERCON);
  4.         }
  5.         AIController.Break("Iterated all tiles");