Lonewolf
August 1st, 2023, 00:55
I am investigating why when some 3ML created tables are opened this error message appears in log.
[ERROR] Script execution error: [string "CoreRPG:campaign/scripts/table_main.lua"]:168: createWindow: Unable to create window
Note the table still works as intented.
Here is 3ML to create the error:
--------------------------------------------
### Cave Encounters
@@hiderollresults::#1
@@output::story
@@resultscols::#2
@@tablerows.*.fromrange::#1
@@tablerows._.results.*.result::A shallow, empty cave, unoccupied and available as convenient shelter.
@@tablerows._.torange::#2
@@tablerows.*.fromrange::#6
@@tablerows._.results.*.result::Deeper tunnels. The cavern goes far beyond the entrance. Roll again on the chart below if the group decides to delve farther.
@@tablerows._.results.*.result::[Cave Encounters 2]
@@tablerows.*.fromrange::#5
@@tablerows._.results.*.result::A shallow, occupied lair. As above, but the creatures are home and aren’t happy to be disturbed.
@@tablerows.*.fromrange::#3
@@tablerows._.results.*.result::A shallow, unoccupied lair. Scattered remains show a local creature sometimes rests here. Check the animals and monsters for the appropriate domain for an idea of what it could be.
@@tablerows._.torange::#4
--------------------------------------------
### Cave Encounters 2
@@hiderollresults::#1
@@output::story
@@resultscols::#1
@@tablerows.*.fromrange::#1
@@tablerows._.results.*.result::Maze. The characters are lost in dark and winding corridors for 1d6 hours. Make a new Survival roll to try again.
@@tablerows.*.fromrange::#2
@@tablerows._.results.*.result::Abandoned refuge. There is evidence (items, cave paintings, statues) that someone was here before, but they are long gone now. Draw a Forces card to see who the former occupants were.
@@tablerows._.torange::#3
@@tablerows.*.fromrange::#4
@@tablerows._.results.*.result::Occupied refuge. As above, but the residents are home and waiting to ambush any unwelcome intruders.
@@tablerows.*.fromrange::#5
@@tablerows._.results.*.result::Treasure. Long ago someone hid a magic item, martial manual, or 2d6 x 1,000 silver down in the darkness!
@@tablerows.*.fromrange::#6
@@tablerows._.results.*.result::Haven. The tunnel system leads to a hidden and mystical space. See Hidden Havens
Table 1 is rolled and the result out goes in a new story window. There is a 1 in 6 chance that the second table will be rolled on. This adds to the story window.
The only problem is looking at table one will produce the error. The table will function but just the act of looking at the table produces an error. Why?
[ERROR] Script execution error: [string "CoreRPG:campaign/scripts/table_main.lua"]:168: createWindow: Unable to create window
Note the table still works as intented.
Here is 3ML to create the error:
--------------------------------------------
### Cave Encounters
@@hiderollresults::#1
@@output::story
@@resultscols::#2
@@tablerows.*.fromrange::#1
@@tablerows._.results.*.result::A shallow, empty cave, unoccupied and available as convenient shelter.
@@tablerows._.torange::#2
@@tablerows.*.fromrange::#6
@@tablerows._.results.*.result::Deeper tunnels. The cavern goes far beyond the entrance. Roll again on the chart below if the group decides to delve farther.
@@tablerows._.results.*.result::[Cave Encounters 2]
@@tablerows.*.fromrange::#5
@@tablerows._.results.*.result::A shallow, occupied lair. As above, but the creatures are home and aren’t happy to be disturbed.
@@tablerows.*.fromrange::#3
@@tablerows._.results.*.result::A shallow, unoccupied lair. Scattered remains show a local creature sometimes rests here. Check the animals and monsters for the appropriate domain for an idea of what it could be.
@@tablerows._.torange::#4
--------------------------------------------
### Cave Encounters 2
@@hiderollresults::#1
@@output::story
@@resultscols::#1
@@tablerows.*.fromrange::#1
@@tablerows._.results.*.result::Maze. The characters are lost in dark and winding corridors for 1d6 hours. Make a new Survival roll to try again.
@@tablerows.*.fromrange::#2
@@tablerows._.results.*.result::Abandoned refuge. There is evidence (items, cave paintings, statues) that someone was here before, but they are long gone now. Draw a Forces card to see who the former occupants were.
@@tablerows._.torange::#3
@@tablerows.*.fromrange::#4
@@tablerows._.results.*.result::Occupied refuge. As above, but the residents are home and waiting to ambush any unwelcome intruders.
@@tablerows.*.fromrange::#5
@@tablerows._.results.*.result::Treasure. Long ago someone hid a magic item, martial manual, or 2d6 x 1,000 silver down in the darkness!
@@tablerows.*.fromrange::#6
@@tablerows._.results.*.result::Haven. The tunnel system leads to a hidden and mystical space. See Hidden Havens
Table 1 is rolled and the result out goes in a new story window. There is a 1 in 6 chance that the second table will be rolled on. This adds to the story window.
The only problem is looking at table one will produce the error. The table will function but just the act of looking at the table produces an error. Why?