wesnoth.random errors in 1.15.13
Moderator: Forum Moderators
Forum rules
Before reporting issues in this section, you must read the following topic:
Before reporting issues in this section, you must read the following topic:
-
- Posts: 1175
- Joined: August 26th, 2018, 11:46 pm
- Location: A country place, far outside the Wire
wesnoth.random errors in 1.15.13
In 1.15.13, go to debug->inspect->lua console and run
$ wesnoth.random(2)
Lua Error:
When executing, Lua runtime error: [string "return wesnoth.random(2)"]:1: attempt to call a nil value (field 'random')
stack traceback:
[string "return wesnoth.random(2)"]:1: in main chunk
In 1.14.15 and 1.15.12, it returns 1 or 2.
The Battle for Wesnoth version 1.15.13 x86_64
Running on Microsoft Windows 10 1803 (10.0.17134) x86_64
Distribution channel: SourceForge
Game paths
==========
Data dir: C:\Program Files\Battle for Wesnoth 1.15.13
User config dir: C:\Users\USER\Documents\My Games\Wesnoth1.15
User data dir: C:\Users\USER\Documents\My Games\Wesnoth1.15
Saves dir: C:\Users\USER\Documents\My Games\Wesnoth1.15\saves
Add-ons dir: C:\Users\USER\Documents\My Games\Wesnoth1.15\data\add-ons
Cache dir: C:\Users\USER\Documents\My Games\Wesnoth1.15\cache
Libraries
Boost: 1.74
Lua: 5.4.2
OpenSSL/libcrypto: 1.1.1i (runtime 1.1.1i)
Cairo: 1.17.4 (runtime 1.17.4)
Pango: 1.48.0 (runtime 1.48.0)
SDL: 2.0.12 (runtime 2.0.12)
SDL_image: 2.0.5 (runtime 2.0.5)
SDL_mixer: 2.0.4 (runtime 2.0.4)
Features
========
Lua console completion: yes
Win32 notifications back end: yes
Current video settings
======================
SDL video drivers: [windows] dummy
Window size: 1920x1017
Screen refresh rate: 59
Screen dots per inch: 96.000000x96.000000
Screen dpi scale factor: 1.000000x1.000000
Current audio settings
======================
SDL audio drivers: [wasapi] directsound
Number of channels: 2
Output rate: 44100 Hz
Sample format: signed 16 bit little-endian
Sample size: 4096 bytes
Installed add-ons
=================
Legend_of_the_Invincibles_beta: 3.2.6.136.g520f696
$ wesnoth.random(2)
Lua Error:
When executing, Lua runtime error: [string "return wesnoth.random(2)"]:1: attempt to call a nil value (field 'random')
stack traceback:
[string "return wesnoth.random(2)"]:1: in main chunk
In 1.14.15 and 1.15.12, it returns 1 or 2.
The Battle for Wesnoth version 1.15.13 x86_64
Running on Microsoft Windows 10 1803 (10.0.17134) x86_64
Distribution channel: SourceForge
Game paths
==========
Data dir: C:\Program Files\Battle for Wesnoth 1.15.13
User config dir: C:\Users\USER\Documents\My Games\Wesnoth1.15
User data dir: C:\Users\USER\Documents\My Games\Wesnoth1.15
Saves dir: C:\Users\USER\Documents\My Games\Wesnoth1.15\saves
Add-ons dir: C:\Users\USER\Documents\My Games\Wesnoth1.15\data\add-ons
Cache dir: C:\Users\USER\Documents\My Games\Wesnoth1.15\cache
Libraries
Boost: 1.74
Lua: 5.4.2
OpenSSL/libcrypto: 1.1.1i (runtime 1.1.1i)
Cairo: 1.17.4 (runtime 1.17.4)
Pango: 1.48.0 (runtime 1.48.0)
SDL: 2.0.12 (runtime 2.0.12)
SDL_image: 2.0.5 (runtime 2.0.5)
SDL_mixer: 2.0.4 (runtime 2.0.4)
Features
========
Lua console completion: yes
Win32 notifications back end: yes
Current video settings
======================
SDL video drivers: [windows] dummy
Window size: 1920x1017
Screen refresh rate: 59
Screen dots per inch: 96.000000x96.000000
Screen dpi scale factor: 1.000000x1.000000
Current audio settings
======================
SDL audio drivers: [wasapi] directsound
Number of channels: 2
Output rate: 44100 Hz
Sample format: signed 16 bit little-endian
Sample size: 4096 bytes
Installed add-ons
=================
Legend_of_the_Invincibles_beta: 3.2.6.136.g520f696
- Attachments
-
- wesnoth-20210604-160653-2628.log
- (542 Bytes) Downloaded 89 times
- Pentarctagon
- Project Manager
- Posts: 5564
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: wesnoth.random errors in 1.15.13
It's a known issue with 1.15.13.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
-
- Posts: 1175
- Joined: August 26th, 2018, 11:46 pm
- Location: A country place, far outside the Wire
Re: wesnoth.random errors in 1.15.13
Thanks and sorry for the dupe. I tried to do a search first, but I have never been able to convince the search engine that I actually do know what I want to search for (like wesnoth.random, which is NOT wesnoth (to be ignored) and random (to match all kinds of stuff I'm not looking for)).