require "lua/fclib" local smokeTest = require("smoketest") local MAX_POINTS_PER_PLAYFIELD = 20 -- set the random seed used by math.random() so we generate the same random sequences from one fast test to another seed = 123456 local seed_arg = fc_get_cmdline_arg( "smoketest_seed" ) if not fc_empty( seed_arg ) then seed = tonumber( seed_arg ) end print( "Smoketest seed: " .. seed ) math.randomseed( seed ) -- stay at each teleport spot for a little while to let assets finish streaming in, and mobs to attack smokeTest.TeleportDelay = 3 smokeTest.Playfields = fc_shuffle( { 1200, 3200, 4200, 5200, 6200 } ) smokeTest.PlayfieldPointsFilter = function( playfield_id, points ) if #points > MAX_POINTS_PER_PLAYFIELD then fc_shuffle( points ) new_points = {} for i=1,MAX_POINTS_PER_PLAYFIELD do table.insert( new_points, points[i] ) end points = new_points end return points end smokeTest.CollectPerformanceMetrics = false smokeTest.Run()