Loading

Paste #p1qdevgdt

  1. >>> g = pydot.graph_from_dot_file('test.dot')
  2. Traceback (most recent call last):
  3.   File "<stdin>", line 1, in <module>
  4.   File "/usr/lib/python3/dist-packages/pydot.py", line 235, in graph_from_dot_file
  5.     return graph_from_dot_data(data)
  1.  
  2. replace BRIDGES_tubular_pylon_01(2565)                                                  { template_BRIDGES_cantliever_pylons_x1_8bpp    (-27,-55,30,7,"gfx/BRIDGES_0000_8bpp.png") }
  3. alternative_sprites(BRIDGES_tubular_pylon_01, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP)       { template_BRIDGES_cantliever_pylons_x1         (-27,-55,30,7,"gfx/BRIDGES_0000.png","gfx/BRIDGES_mask_8bpp.png") }
  4. alternative_sprites(BRIDGES_tubular_pylon_01, ZOOM_LEVEL_IN_4X, BIT_DEPTH_32BPP)        { template_BRIDGES_cantliever_pylons_x4         (-108,-220,30,7,"gfx/BRIDGES_0000.png","gfx/BRIDGES_mask_8bpp.png") }
  5.  
  6. replace BRIDGES_tubular_pylon_02(2566)                                                  { template_BRIDGES_cantliever_pylons_x1_8bpp    (-27,-55,31,7,"gfx/BRIDGES_0000_8bpp.png") }

Paste #pvetrqwje

  1. Index: src/strings.cpp
  2. ===================================================================
  3. --- src/strings.cpp (revision 23944)
  4. +++ src/strings.cpp (revision 23945)
  5. @@ -683,6 +683,25 @@

Paste #pes8pzyp7

  1. 19:23 < juzza1> strings.cpp line 748 begins the conversion from kmhish->display, it then calls the ToDisplay (line 647) of the unit, with the input value multiplied by 10, and only after the ToDisplay function is done, is the value divided by 16. In nmlc, the value is divided right after multiplication by 10. Am I reading this right? So ottd_display_speed in nmlc should be changed to divide by 16 after other calculations
  2. 19:23 < juzza1> I am referring to this strings.cpp http://git.openttd.org/?p=trunk.git;a=blob;f=src/strings.cpp;h=d2ce762b70cf5a4d47967baaace620ee066a2f1c;hb=HEAD
  3. 19:23 < juzza1> ottd_display_speed is at line 257 in http://git.openttd.org/?p=trunk.git;a

Paste #pvwkotkc8

  1. def ottd_display_speed(value, divisor, unit):
  2.     return int(value.value / divisor) * 10 // 16 * unit.ottd_mul >> unit.ottd_shift
  3.  
  4. ->

Paste #pckmrij1j

  1. return int(value.value / divisor) * 10 // 16 * unit.ottd_mul >> unit.ottd_shift
  2.  
  3. to
  4.  
  5. return int(value.value / divisor * 10 / 16 * unit.ottd_mul) >> unit.ottd_shift

Paste #pvb2dqbxg

  1. base A
  2. translation A: up-to-date
  3.  
  4. change base

Paste #pn0vpa58b

  1. local states = {
  2.   -- Initial state, sets up the plant to full health, then drops to normal state.
  3.   "start": {
  4.     { entry = setup_full_health,   -- Also needs registering?!
  5.       initial = true,

Paste #pr4cbcj0n

  1. Lua 5.3.0  Copyright (C) 1994-2015 Lua.org, PUC-Rio
  2. > x = nil
  3. > x == nil
  4. true
  5. > x == x

Paste #pwdhyn6mg

  1. Base language 1 (ancient): Foo {STRING}
  2. Base language 2 (old): Foo
  3. Base language 3 (current): Foo {STRING}
  4.  
  5. Translation 1 (ancient): Bar {STRING}

Paste #pszeomuz6

  1. diff --git a/CorsixTH/Lua/world.lua b/CorsixTH/Lua/world.lua
  2. index 99c6df1..e789060 100644
  3. --- a/CorsixTH/Lua/world.lua
  4. +++ b/CorsixTH/Lua/world.lua
  5. @@ -2109,11 +2109,14 @@ function World:objectPlaced(entity, id)

Paste #pvwjalgqd

  1. diff --git a/CorsixTH/Lua/world.lua b/CorsixTH/Lua/world.lua
  2. index 99c6df1..e789060 100644
  3. --- a/CorsixTH/Lua/world.lua
  4. +++ b/CorsixTH/Lua/world.lua
  5. @@ -2109,11 +2109,14 @@ function World:objectPlaced(entity, id)

Paste #pwzuepjb9

  1. function World:destroyEntity(entity)
  2.   for i, e in ipairs(self.entities) do
  3.     if e == entity then
  4.       table.remove(self.entities, i)
  5.       break

Paste #pi7t1u5xo

  1. diff --git a/CorsixTH/Lua/world.lua b/CorsixTH/Lua/world.lua
  2. index 507be42..99c6df1 100644
  3. --- a/CorsixTH/Lua/world.lua
  4. +++ b/CorsixTH/Lua/world.lua
  5. @@ -1636,10 +1636,9 @@ in a room.

Paste #pfcms3rt4

  1. function Door:checkForDeadlock()
  2.   -- In an ideal world, deadlocks should not occur, as they indicate errors in
  3.   -- some logic elsewhere. From a practical point of view, we should check for
  4.   -- deadlocks from time to time and attempt to fix them.
  5.   if self.queue and self.reserved_for then