@Simeo @dave1707 - OK guys this is going to seem a bit weird. The recent bombing occurred after an update which I added whilst playing with 3D. This morning I was getting erratic bombing with other projects even bombing to starting Codea which suggested retained configuration in memory is issue. Random running projects after Codea reset was inconsistent with one project that always bombed. I since found if I run two projects before the bomber that the bomber works. So could you try this with a project that you find always bombs.
Load the two projects below then run the first, run the second and then run your bomber.
First:
-- Craft Template
displayMode(OVERLAY)
function setup()
parameter.integer("x",-180,180,0)
parameter.integer("y",-180,180)
parameter.integer("z",-180,180,0)
-- Create a new craft scene
scene = craft.scene()
-- Move the main camera position
scene.camera.position = vec3( 0, 0.04, -0.4)
CameraSettings = scene.camera:get(craft.camera)
CameraX = 0
CameraY = 0
CameraZ = 0
FieldOfView = 60
Ortho = false
OrthoSize = 5
-- Set camera rotation + position viewing center of the scene
scene.camera.eulerAngles = vec3(CameraY, CameraX, CameraZ)
scene.camera.position = -scene.camera.forward * 5
-- Adjust the scene lighting
scene.sun.rotation = quat.eulerAngles( 45, 150, 0)
scene.ambientColor = color(181, 98, 98, 255)
-- Get sky material and alter sky and horizon colors
local skyMaterial = scene.sky.material
skyMaterial.sky = color(32, 36, 193, 255)
skyMaterial.horizon = color(92, 29, 214, 255)
-- Create a new entity
e = scene:entity()
e.scale = vec3(1,1,1) / 20
end
function update(dt)
-- Rotate the entity
e.eulerAngles = vec3(x,y,z)
if CurrentTouch.state == MOVING then
CameraX = CameraX - CurrentTouch.deltaX * 0.25
CameraY = CameraY - CurrentTouch.deltaY * 0.25
end
CameraSettings.fieldOfView = FieldOfView
CameraSettings.ortho = Ortho
CameraSettings.orthoSize = OrthoSize
-- Set camera rotation + position viewing center of the scene
scene.camera.eulerAngles = vec3(CameraY, CameraX, 0)
scene.camera.position = -scene.camera.forward * 5
-- Update the scene (physics, transforms etc)
scene:update(dt)
end
function draw()
update(DeltaTime)
scene:draw()
end
Second:
function setup()
--
spr1= readImage(assets.documents.project.tile19)
spr2 = readImage(assets.documents.project.tile18)
spr3 = readImage(assets.documents.project.tile20)
end
function draw()
-- This sets a dark background color
background(40, 40, 50)
spriteMode(CENTER)
sprite(spr1,192,720)
sprite(spr2,576,720)
sprite("Documents:any",192,640)
sprite(spr3,576,648)
end
On the second one you’ll have to set up a project with 3 sprites in but don’t change the line which says ‘Documents:any’ in.
I know this feels a bit weird but hopefully you’ll be able to reproduce this and it may give Simeon an idea why the error is occurring.