Loading
#openttdcoop - Paste
Archives
Trending
Docs
Login
ABAP
ActionScript
ActionScript 3
Ada
AIMMS3
ALGOL 68
Apache configuration
AppleScript
Apt sources
ARM ASSEMBLER
ASM
ASP
asymptote
Autoconf
Autohotkey
AutoIt
AviSynth
awk
BASCOM AVR
Bash
Basic4GL
BibTeX
BlitzBasic
bnf
Boo
Brainfuck
C
C#
C (LoadRunner)
C (Mac)
C (WinAPI)
C++
C++ (Qt)
C++ (WinAPI)
CAD DCL
CAD Lisp
CFDG
ChaiScript
Chapel
CIL
Clojure
CMake
COBOL
CoffeeScript
ColdFusion
CSS
Cuesheet
D
Dart
DCL
DCPU-16 Assembly
DCS
Delphi
Diff
DIV
DOS
dot
E
ECMAScript
Eiffel
eMail (mbox)
EPC
Erlang
Euphoria
EZT
F#
Falcon
FO (abas-ERP)
Formula One
Fortran
FreeBasic
FreeSWITCH
GADV 4CS
GAMBAS
GDB
genero
Genie
glSlang
GML
GNU/Octave
GNU Gettext
GNU make
Gnuplot
Go
Groovy
GwBasic
Haskell
Haxe
HicEst
HQ9+
HTML
HTML5
Icon
INI
Inno
INTERCAL
Io
ISPF Panel
J
Java
Java(TM) 2 Platform Standard Edition 5.0
Javascript
JCL
jQuery
KiXtart
KLone C
KLone C++
LaTeX
LDIF
Liberty BASIC
Lisp
LLVM Intermediate Representation
Locomotive Basic
Logtalk
LOLcode
Lotus Notes @Formulas
LotusScript
LScript
LSL2
Lua
MagikSF
MapBasic
Matlab M
Microchip Assembler
Microsoft Registry
mIRC Scripting
MMIX
Modula-2
Modula-3
MOS 6502 (6510) ACME Cross Assembler format
MOS 6502 (6510) Kick Assembler format
MOS 6502 (6510) TASM/64TASS 1.46 Assembler format
Motorola 68000 - HiSoft Devpac ST 2 Assembler format
Motorola 68000 Assembler
MXML
MySQL
Nagios
NetRexx
newlisp
nginx
Nimrod
NML NewGRF Meta Language
NSIS
Oberon-2
Objeck Programming Language
Objective-C
OCaml
OCaml (brief)
ooRexx
OpenBSD Packet Filter
OpenOffice.org Basic
Oracle 8 SQL
Oracle 11 SQL
Oxygene
OZ
ParaSail
PARI/GP
Pascal
PCRE
per
Perl
Perl 6
PHP
PHP (brief)
PIC16
Pike
Pixel Bender 1.0
PL/I
PL/SQL
PostgreSQL
PostScript
POVRAY
PowerBuilder
PowerShell
ProFTPd configuration
Progress
Prolog
PROPERTIES
ProvideX
Puppet
PureBasic
Python
Python for S60
q/kdb+
QBasic/QuickBASIC
QML
R / S+
Racket
Rails
RBScript
REBOL
rexx
robots.txt
RPM Specification File
Ruby
Rust
SAS
Scala
Scheme
SciLab
SCL
sdlBasic
Smalltalk
Smarty
SPARK
SPARQL
SQL
Squirrel Script
Squirrel Script with OpenTTD AI/GS
StandardML
StoneScript
SystemVerilog
T-SQL
TCL
Tera Term Macro
Text
thinBasic
TypoScript
Unicon (Unified Extended Dialect of Icon)
Uno Idl
Unreal Script
UPC
Urbi
Vala
vb.net
VBScript
Vedit macro language
Verilog
VHDL
Vim Script
Visual Basic
Visual Fox Pro
Visual Prolog
Whitespace
Whois (RPSL format)
Winbatch
X++
XBasic
XML
Xorg configuration
YAML
ZiLOG Z80 Assembler
ZXBasic
def make_offset_list(offset_list,n, template): add_offsets = template for o in add_offsets: offset_list.append(o) offset_list = [] standard_6_index_list = [ [ n, n+1, n+2],#1 [ n+1, n+2, n+3],#2 [ n+2, n+3, n+3],#3-- [ n+3, n+3, n+2],#4-- [ n+4, n+3, n+2],#5 [ n+5, n+4, n+3]# 6 ] standard_8_index_list = [ [ n, n+1, n+2],#1 [ n+1, n+2, n+3],#2 [ n+2, n+3, n+4],#3 [ n+3, n+4, n+4],#4-- [ n+4, n+4, n+3],#5-- [ n+5, n+4, n+3],#6 [ n+6, n+5, n+4],#7 [ n+7, n+6, n+5]# 8 ] standard_10_index_list = [ [ n, n+1, n+2],#1 [ n+1, n+2, n+3],#2 [ n+2, n+3, n+4],#3 [ n+3, n+4, n+5],#4 [ n+4, n+5, n+5],#5-- [ n+5, n+5, n+4],#6-- [ n+6, n+5, n+4],#7 [ n+7, n+6, n+5],#8 [ n+8, n+7, n+6],#9 [ n+9, n+8, n+7]#10 ] make_offset_list(offset_list,0,#TRANSPARENCY [ [n,n,n] ]) make_offset_list(offset_list,1,#GRAYSCALE [ [ n, n+1, n+2],#1 [ n+1, n+2, n+3],#2 [ n+2, n+3, n+4],#3 [ n+3, n+4, n+5],#4 [ n+4, n+5, n+6],#5 [ n+5, n+6, n+7],#6 [ n+6, n+7, n+8],#7 [ n+7, n+8, n+8],#8-- [ n+8, n+8, n+7],#9-- [ n+9, n+8, n+7],#10 [n+10, n+9, n+8],#11 [n+11, n+10, n+9],#12 [n+12, n+11, n+10],#13 [n+13, n+12, n+11],#14 [n+14, n+13, n+12],#15 [n+15, n+14, n+13]# 16 ]) #METAL make_offset_list(offset_list,16, standard_8_index_list) #LIME_GREEN make_offset_list(offset_list,24, standard_8_index_list) #BEIGE make_offset_list(offset_list,32, standard_8_index_list) #DARK_PINK make_offset_list(offset_list,40, standard_10_index_list) #YELLOW make_offset_list(offset_list,50, [ [ n, 189, 188],#1 [ n+1, n+0, 188],#2 [ n+2, n+1, n+0]# 3 ]) #DARK_BEIGE make_offset_list(offset_list,53,#DARK_BEIGE [ [ n, n+1, n+2],#1 [ n+1, n+2, n+3],#2 [ n+2, n+3, n+3],#3-- [ n+3, n+3, n+4],#4-- [ n+4, n+3, n+3],#5-- [ n+5, n+4, n+3],#6 [ n+6, n+5, n+4]# 7 ]) #YELLOW make_offset_list(offset_list,60, standard_10_index_list) #BROWN_1 make_offset_list(offset_list,70, standard_10_index_list) #CC2 make_offset_list(offset_list,80, standard_8_index_list) #DARK_GREEN make_offset_list(offset_list,88, standard_8_index_list) #PALE_GREEN make_offset_list(offset_list,96, standard_8_index_list) #BROWN_2 make_offset_list(offset_list,104, standard_8_index_list) #BROWN_3 make_offset_list(offset_list,112, standard_10_index_list) #BROWN_4 make_offset_list(offset_list,122, standard_6_index_list) #MAUVE make_offset_list(offset_list,128, standard_8_index_list) #PURPLE make_offset_list(offset_list,136, standard_8_index_list) #BLUE make_offset_list(offset_list,144, standard_10_index_list) #LIGHT_BLUE make_offset_list(offset_list,154, standard_8_index_list) #PINK make_offset_list(offset_list,162, standard_8_index_list) #LIGHT_PURPLE make_offset_list(offset_list,170, standard_8_index_list) #RED make_offset_list(offset_list,178, [ [ n, n+1, n+2],#1 [ n+1, n+2, n+3],#2 [ n+2, n+3, n+4],#3 [ n+3, n+4, n+5],#4 [ n+4, n+5, n+6],#5 [ n+5, n+6, n+7],#6 [ n+6, n+7, n+7],#7-- [ n+7, n+6, n+6],#8-- [ n+8, n+7, n+6],#9 [ n+9, n+8, n+7],#10 [n+10, n+9, n+8],#11 [n+11, n+10, n+9],#12 [n+12, n+11, n+10],#13 [n+13, n+12, n+11]#14 ]) #ORANGE make_offset_list(offset_list,192, [ [ n, 64, 63],#1 [ n+1, n+0, 64],#2 [ n+2, n+1, n+0],#3 [ n+3, n+2, n+1],#4 [ n+4, n+3, n+2],#5 [ n+5, n+4, n+3]#6 ]) #CC1 make_offset_list(offset_list,198, standard_8_index_list) #GREEN make_offset_list(offset_list,206, [ [ n, 93, 92],#1 [ n+1, n+0, 93],#2 [ n+2, n+1, n+0],#3 [ n+3, n+2, n+1]# 4 ]) #CYAN make_offset_list(offset_list,210, [ [ n, n+1, n+2],#1 [n+1, n+2, n+2],#2 [n+2, n+3, n+3],#3 [n+3, n+2, n+2],#4 [n+4, n+3, n+2]# 5 ]) #CYAN & ACT make_offset_list(offset_list,215, [ [n+0,n+0,n+0],#1 - index 215 [n+1,n+1,n+1],#2 - index 216 [n+2,n+2,n+2],#3 - index 217 [n+3,n+3,n+3],#4 - index 218 [n+4,n+4,n+4],#5 - index 219 [n+5,n+5,n+5],#6 - index 220 [n+6,n+6,n+6],#7 - index 221 [n+7,n+7,n+7],#8 - index 222 [n+8,n+8,n+8],#9 - index 223 [n+9,n+9,n+9],#10 - index 224 [n+10,n+10,n+10],#11 - index 225 [n+11,n+11,n+11],#12 - index 226 [n+12,n+12,n+12],#13 - index 227 [n+13,n+13,n+13],#14 - index 228 [n+14,n+14,n+14],#15 - index 229 [n+15,n+15,n+15],#16 - index 230 [n+16,n+16,n+16],#17 - index 231 [n+17,n+17,n+17],#18 - index 232 [n+18,n+18,n+18],#19 - index 233 [n+19,n+19,n+19],#20 - index 234 [n+20,n+20,n+20],#21 - index 235 [n+21,n+21,n+21],#22 - index 236 [n+22,n+22,n+22],#23 - index 237 [n+23,n+23,n+23],#24 - index 238 [n+24,n+24,n+24],#25 - index 239 [n+25,n+25,n+25],#26 - index 240 [n+26,n+26,n+26],#27 - index 241 [n+27,n+27,n+27],#28 - index 242 [n+28,n+28,n+28],#29 - index 243 [n+29,n+29,n+29],#30 - index 244 [n+30,n+30,n+30],#31 - index 245 [n+31,n+31,n+31],#32 - index 246 [n+32,n+32,n+32],#33 - index 247 [n+33,n+33,n+33],#34 - index 248 [n+34,n+34,n+34],#35 - index 249 [n+35,n+35,n+35],#36 - index 250 [n+36,n+36,n+36],#37 - index 251 [n+37,n+37,n+37],#38 - index 252 [n+38,n+38,n+38],#39 - index 253 [n+39,n+39,n+39],#40 - index 254 [n+40,n+40,n+40] #41 - index 255 ]) print('Offset list: ' + str(offset_list))
Mark as private
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
forever