[0.17.47]Error when using script.on_nth_tick(nil, nil)
Posted: Sun Jun 09, 2019 8:41 am
by Choumiko
To reproduce:
According to the documentation passing nil as the first argument should unregister all handlers, but it errors instead with "First argument must be a number or table".
Passing it an empty table does nothing, so currently it's impossible to unset all handlers at once.
Code: Select all
/c script.on_nth_tick(nil, nil)
Passing it an empty table does nothing, so currently it's impossible to unset all handlers at once.
current-log
Code: Select all
0.000 2019-06-09 10:39:04; Factorio 0.17.47 (build 45537, linux64, alpha)
0.033 Operating system: Linux (Ubuntu 18.04)
0.033 Program arguments: "./factorio"
0.033 Read data path: /home/choumiko/factorio/data
0.033 Write data path: /home/choumiko/factorio [18459/195884MB]
0.033 Binaries path: /home/choumiko/factorio/bin
0.037 System info: [CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz, 8 cores, RAM: 15990 MB]
0.037 Environment: DISPLAY=:1 WAYLAND_DISPLAY=<unset> DESKTOP_SESSION=ubuntu XDG_SESSION_DESKTOP=ubuntu XDG_CURRENT_DESKTOP=ubuntu:GNOME
0.037 Display options: [FullScreen: 0] [VSync: 0] [UIScale: custom (100.0%)] [Native DPI: 1] [Screen: 0] [Special: 00] [Lang: en]
0.178 Available displays: 2
0.178 [0]: PLX2783H 27" - {[1920,0], 1920x1080, SDL_PIXELFORMAT_RGB888, 60Hz}
0.178 [1]: SMBX2450 24" - {[0,0], 1920x1080, SDL_PIXELFORMAT_RGB888, 60Hz}
0.278 Initialised OpenGL:[0] GeForce GTX 1070/PCIe/SSE2; driver: 3.3.0 NVIDIA 390.116
0.278 [Extensions] s3tc:yes; KHR_debug:yes; ARB_clear_texture:yes, ARB_copy_image:yes
0.278 [Version] 3.3
0.294 Graphics settings preset: very-high
0.294 Dedicated video memory size 8192 MB
0.294 Graphics options: [Graphics quality: high] [Video memory usage: all] [Light scale: 100%] [DXT: high-quality]
0.294 [Max load threads: 32] [Max texture size: 0] [Tex.Stream.: 0] [Rotation quality: normal] [Color: 32bit]
0.388 Info ModManager.cpp:247: Found duplicate mod Bio_Industries, using folder version (0.17.25).
0.476 Loading mod settings ModuleInserter 4.0.5 (settings.lua)
0.476 Loading mod settings SmartTrains 4.0.4 (settings.lua)
0.477 Loading mod settings AutoTrash 4.1.1 (settings.lua)
0.477 Loading mod settings FARL 3.1.10 (settings.lua)
0.478 Loading mod core 0.0.0 (data.lua)
0.552 Loading mod base 0.17.47 (data.lua)
0.699 Loading mod ModuleInserter 4.0.5 (data.lua)
0.775 Loading mod SmartTrains 4.0.4 (data.lua)
0.852 Loading mod TheFatController 4.0.11 (data.lua)
0.929 Loading mod AutoTrash 4.1.1 (data.lua)
1.004 Loading mod FARL 3.1.10 (data.lua)
1.084 Loading mod base 0.17.47 (data-updates.lua)
1.159 Loading mod FARL 3.1.10 (data-updates.lua)
1.238 Loading mod FARL 3.1.10 (data-final-fixes.lua)
1.324 Checksum for core: 240630728
1.324 Checksum of base: 3852333060
1.324 Checksum of ModuleInserter: 1135162482
1.324 Checksum of SmartTrains: 896694329
1.324 Checksum of TheFatController: 2369697511
1.324 Checksum of AutoTrash: 1785486429
1.324 Checksum of FARL: 2813802960
1.470 Loading sounds...
1.484 Info PlayerData.cpp:67: Local player-data.json available, timestamp 1560069542
1.484 Info PlayerData.cpp:74: Cloud player-data.json unavailable
1.565 Initial atlas bitmap size is 16384
1.585 Created atlas bitmap 16384x16380 [none]
1.588 Created atlas bitmap 16384x11084 [none]
1.588 Created atlas bitmap 8192x3872 [decal]
1.589 Created atlas bitmap 16384x4288 [low-object]
1.589 Created atlas bitmap 8192x3664 [mipmap, linear-minification, linear-magnification, linear-mip-level]
1.590 Created atlas bitmap 16384x6880 [terrain, mipmap, linear-minification, linear-mip-level]
1.590 Created atlas bitmap 4096x1600 [smoke, mipmap, linear-minification, linear-magnification]
1.590 Created atlas bitmap 4096x1712 [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level]
1.590 Created atlas bitmap 2048x192 [icon-background, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, ]
1.590 Created atlas bitmap 8192x1496 [alpha-mask]
1.592 Created atlas bitmap 16384x12632 [shadow, linear-magnification, alpha-mask]
1.593 Created atlas bitmap 8192x2352 [shadow, mipmap, linear-magnification, alpha-mask]
2.216 Atlases loaded from disk cache.
2.223 Texture processor created (2048). GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
2.224 Parallel Sprite Loader initialized (threads: 0)
2.257 Sprites loaded
2.282 Generated mipmaps (4) for atlas [3] of size 16384x4288
2.292 Generated mipmaps (3) for atlas [4] of size 8192x3664
2.315 Generated mipmaps (3) for atlas [5] of size 16384x6880
2.318 Generated mipmaps (3) for atlas [6] of size 4096x1600
2.326 Generated mipmaps (4) for atlas [7] of size 4096x1712
2.329 Generated mipmaps (3) for atlas [11] of size 8192x2352
2.329 Custom mipmaps uploaded.
2.331 Custom inputs active: 10
2.376 Factorio initialised
2.376 Info HttpSharedState.cpp:54: Downloading https://updater.factorio.com/updater/get-available-versions?username=Choumiko&token=<private>&apiVersion=2
3.214 0 packages available to download (experimental updates enabled).