sandspiel
sandspiel copied to clipboard
Black Screen when starting it up.
So I'm on google, and I start-up sandspiel and it's just a black screen. How can I fix this? I don't get any error message what so ever.
I've tried resetting many times.
oh jeeze - has it worked in the past for you? when you're say you're on google, do you mean you're using chrome?
thank you for reporting the issue, I want to try to fix this if I can.
MaxBittker, I use it on a different computer at my mom's office, it works fine there. This computer can't run it. And a lot of experiments on google, they don't work. But it used to work. now it doesn't. Flash and Java are installed.
oh jeeze - has it worked in the past for you? when you're say you're on google, do you mean you're using chrome?
It has.
Hi, i was trying to get the project to start as well, also getting a black screen.
This is the error i get in the console from js:
Error importing
index.js: RuntimeError: "unreachable executed"
This is my first time working with rust, but i added this Panic hook into the tick function as such:
console_error_panic_hook::set_once();
After doing so, i received this error:
panicked at 'attempt to subtract with overflow', src\lib.rs:395:12
So i looked up what changed there in your commits and found this: old:
fn update_cell(cell: Cell, api: SandApi) {
if cell.clock as i32 - api.universe.generation as i32 == 1 {
return;
}
cell.update(api);
}
new:
fn update_cell(cell: Cell, api: SandApi) {
if cell.clock - api.universe.generation == 1 {
return;
}
cell.update(api);
}
After changing it back i got the project working. I'm guessing that cell.clock and api.universe.generation are two different types so a cast might be neccesary? For me it's working now. I tested it with Firefox 69.0.2 (64-bits) and Chrome 77.0.3865.90 (Official build) (64-bits)
thanks for investigating this @Garrut! This might fix the workflow and make it more resilient - I'll follow up when i have more time!