Scratch save interrupted ошибка

  • Discussion Forums
  • » Bugs and Glitches
  • » Scratch Desktop 3.18.1 does not save local sb3 files, save failed, save interrupted
grigorym

New to Scratch

4 posts

Scratch Desktop 3.18.1 does not save local sb3 files, save failed, save interrupted

Scratch Desktop, NO SERVER, no downloading and uploading, just a local project saved locally. I mean, not saved locally at all! Shows a message: “Save filed: <filename> save interrupted”. A days work lost, kid very dissappointed.

My browser / operating system: Windows 7, Firefox 82.0, Flash 32.0 (release 0)

Burgher1679

Scratcher

1000+ posts

Scratch Desktop 3.18.1 does not save local sb3 files, save failed, save interrupted

windowz 7 is not fully compatible with scratch 3.18.1 so try updating to windowz 100000000000


© 2020 — 2021 M-INDUSTRIES

Miao::#0000ff//Miao
grigorym

New to Scratch

4 posts

Scratch Desktop 3.18.1 does not save local sb3 files, save failed, save interrupted

windowz 7 is not fully compatible with scratch 3.18.1 so try updating to windowz 100000000000

You mean Scratch is not fully compatible with Windows 7? Why does it now warn me while it installs, that it is not going to work? Which version then will?

D-ScratchNinja

Scratcher

1000+ posts

Scratch Desktop 3.18.1 does not save local sb3 files, save failed, save interrupted

You may still be able to use older version like 2.0 or 1.4. Scratch Desktop 3 doesn’t work the best on Windows 7 and below, but should work on Windows 10.


D-ScratchNinja
— The following is my signature, which always shows up below my posts. —

Do your Cloud variable view counters keep jumping back down? Learn how to fix it here.

Help us appeal to those who are color-blind by adding a project to this studio.

OS: Windows 10 / Browser: Microsoft Edge / Time zone: PST/PDT

What would you like better? “Support!” or feedback? I’d pick the latter.

How have the current limits of studios been? Good? Not great? What do you think they should be? Take my new poll if you want to share your opinions!

Like to record your game and watch others’ replays? Try Replay Multiplayer!

I have a poll for studio users! You can pick and submit your preferences here.

I have a game jam! We’re making time attack-themed games!

grigorym

New to Scratch

4 posts

Scratch Desktop 3.18.1 does not save local sb3 files, save failed, save interrupted

D-ScratchNinja wrote:

You may still be able to use older version like 2.0 or 1.4. Scratch Desktop 3 doesn’t work the best on Windows 7 and below, but should work on Windows 10.

Thanks, i’ll try 2.0. It’d be great though if version 3 would warn users on installation of any incompatibility. Not to mention why on earth would it require Win10 for anything just as simple as saving a file!

Abigblueworld

Scratcher

500+ posts

Scratch Desktop 3.18.1 does not save local sb3 files, save failed, save interrupted

grigorym wrote:

Scratch Desktop, NO SERVER, no downloading and uploading, just a local project saved locally. I mean, not saved locally at all! Shows a message: “Save filed: <filename> save interrupted”. A days work lost, kid very dissappointed.

My browser / operating system: Windows 7, Firefox 82.0, Flash 32.0 (release 0)

windows 7? OHH I see why! Your on a not so supported os! Many of the new users are on Windows 8-10, Windows 7 shut down THIS YEAR! so maybe that’s why!


, Abigblueworld! :D
Girl,_ Gamer,_scratcher,_ BALDI/Uglydolls FAN,_ Former GD player and Roblox player!
GD: GDABIGBLUEWORLD
ROBLOX: GDABIGBLUEWORLD and Hitormissgonnamissya
ABIGBLUEWORLD 2019-2020 all stuff free to scratch. :)
SCRATCH ON!

grigorym

New to Scratch

4 posts

Scratch Desktop 3.18.1 does not save local sb3 files, save failed, save interrupted

A very professional approach, I see.

Abigblueworld

Scratcher

500+ posts

Scratch Desktop 3.18.1 does not save local sb3 files, save failed, save interrupted

grigorym wrote:

A very professional approach, I see.

Who are you talking to? Me?


, Abigblueworld! :D
Girl,_ Gamer,_scratcher,_ BALDI/Uglydolls FAN,_ Former GD player and Roblox player!
GD: GDABIGBLUEWORLD
ROBLOX: GDABIGBLUEWORLD and Hitormissgonnamissya
ABIGBLUEWORLD 2019-2020 all stuff free to scratch. :)
SCRATCH ON!

TheSmartGuy1234

Scratcher

500+ posts

Scratch Desktop 3.18.1 does not save local sb3 files, save failed, save interrupted

grigorym wrote:

D-ScratchNinja wrote:

You may still be able to use older version like 2.0 or 1.4. Scratch Desktop 3 doesn’t work the best on Windows 7 and below, but should work on Windows 10.

Thanks, i’ll try 2.0. It’d be great though if version 3 would warn users on installation of any incompatibility. Not to mention why on earth would it require Win10 for anything just as simple as saving a file!

I dunno. Ask microsoft


Last Edited by an idiot called TheSmartGuy1234 (February 31st 9999BC 25:61:61)kaj (Tomorrow 00:00:02)


now when kumquats eat my siggy they’re eating stuff without credit.
Credit to Rick Astley for the kumquat protection

and epic meme

INTERNET GIVING LINK

My EXTREMELY funny animation!
My cool new game!
My very cool platformer!

What is this? ╫

I AM THE PERSON WHO FIGURED OUT THE REASONS OF THE THUMBNAIL AND PFP BUG!
and lost the link

what

Game controller
|||||||^|||||||
|<|||a|||>|
|||||||v|||||||

Za_Chary wrote:

(https://scratch.mit.edu/discuss/topic/364706/?page=1#post-3639387‌)

-gr

Scratcher

1000+ posts

Scratch Desktop 3.18.1 does not save local sb3 files, save failed, save interrupted

TheSmartGuy1234 wrote:

grigorym wrote:

Burgher1679 wrote:

windowz 7 is not fully compatible with scratch 3.18.1 so try updating to windowz 100000000000

You mean Scratch is not fully compatible with Windows 7? Why does it now warn me while it installs, that it is not going to work? Which version then will?

Windows 10

Please don’t Necropost.

  • Discussion Forums
  • » Bugs and Glitches
  • » Scratch Desktop 3.18.1 does not save local sb3 files, save failed, save interrupted
  • Discussion Forums
  • » Questions about Scratch
  • » can»t save my scratch offline editor
Witenbeh0516

Scratcher

2 posts

can»t save my scratch offline editor

why i use scratch 3.0 offline editor to save my project , but show me “save failed ” then said save interrupted


Last edited by Witenbeh0516 (Oct. 25, 2021 01:29:50)

Stag_

Scratcher

100+ posts

can»t save my scratch offline editor

I don’t use an offline editor, not too sure, but how heavy is the file? Try downloading the .sb3 file, that’s all I can suggest. The file may not save cuz it’s too heavy or you don’t have space on your computer…

Witenbeh0516

Scratcher

2 posts

can»t save my scratch offline editor

But i just do a simple project ,then i try to uninstall then download again still face the same problem.

  • Discussion Forums
  • » Questions about Scratch
  • » can»t save my scratch offline editor

Распространённые причины того, почему вы не можете сохранить проект


Печать

Изменено: Пт, 16 Июл, 2021 at 1:05 AM


If you’re experiencing trouble saving projects, here are some suggestions on how to fix it. 

Size of Sound or Image: If a sound or image is larger than Scratch’s maximum file size (10MB), then the project won’t save. If you cut the sound into smaller pieces using the sound editor, then it should save.

To cut a sound into smaller pieces, try this:

1) Click the Sounds tab and pick the music or sound file that’s long.

2) Select a section of the sound, starting from the beginning. 

3) Click the «Copy to New» button. (If it doesn’t create a new sound, the piece is too large, so select a smaller region.) 

4) Select the next section of the sound. Click «Copy to New» again. 

5) Repeat the process until the whole sound is broken into pieces.  

You can now play the sounds one after the other. Click the Code tab. Snap together «play sound until done» blocks to play each of the sounds in a row.

Project File Size: Another thing that can cause a project to not save is if it is a particularly large project with lots of sprites and code.  Scratch stores information about the project in a file called project.json which has its own file size limit of 5MB. If you have a file with many sprites and lots of code, try using fewer sprites or fewer blocks.

Internet Connection: A project may not save if you lose internet connectivity while trying to save. 

Signed Out: Another thing that frequently causes people to be unable to save is if their account gets signed out.  This can happen if an account is signed in to more than one computer or if more than one account is signed in on the same computer.  It usually happens when someone is working both at home and at school, if more than one person is sharing an account (which we don’t recommend), or if two people are working on the same computer. 

To prevent getting signed out, don’t share Scratch accounts with others and only sign into one computer and account at a time. Also, make sure to sign out when you’re done using Scratch on a school, library, or other shared computer.


Была ли эта статья полезной?
Да

Нет

Отправить отзыв

К сожалению, мы не смогли помочь вам в разрешении проблемы. Ваш отзыв позволит нам улучшить эту статью.

Статьи по теме

    In the Scratch 3.0 online editor, the Project could not save prompt appears when a project failed to save to the website. Next to the prompt, there are two buttons. Try again will attempt to save the project again, and Download will download the project to the computer as an sb3 file.

    The Project could not save alert

    Causes

    Possible causes for the appearance of this prompt may include:

    • The user’s account has been logged out.
    • The device is no longer connected to the internet.
    • The project’s file size is too large.

    Troubleshooting

    When one of these alerts appears, try the following steps in order, and attempt to save the project after each step.

    1. Check that you are connected to the internet.
    2. Open a new tab and check that you are signed into the right account. If not, sign in.
    3. Make sure you don’t have any costumes or sounds that may be over 10MB in size.
    4. Delete any unnecessary blocks, variables, lists, costumes, sprites, costumes and sounds.
    5. Check if you have any excessively long variables, lists, comments, costume names, sound names, sprite names, variable names, list names, custom block names or backdrop names. If there are any, make them shorter.

    If the project still does not save, there may be too much code. Try downloading the project and editing it with the offline editor.

    Cookies help us deliver our services. By using our services, you agree to our use of cookies.

    Содержание:

    1. Как сохранить проект Скретч на диск из оффлайн-редактора?
    2. Как загрузить из файла проект в Скретч?
    3. Как сохранить проект Скретч на диск из онлайн-редактора?
    4. Как загрузить из файла проект в онлайн-редактор Скретч?

    Как вы уже знаете в Скретч можно создавать самые разные виды проектов, начиная с простой анимации и заканчивая очень сложными и полноценными программами. Однако постоянно создавать одно и тоже не очень хорошо. Желательно свои труды постоянно сохранять в надежном месте в виде файлов. Поэтому в этом пособии мы научимся сохранять ваши будущие проекты на Скретч.

    Примечание.

    Под оффлайн-редактором Скретч нужно понимать программу, установленную на вашем персональном компьютере.

    Под онлайн-редактором Скретч понимают сайт, в котором можно при доступе в интернет сразу в браузере без загрузки программ создавать свои проекты и делиться ими.

    Как сохранить проект Скретч на диск из оффлайн-редактора?

    Что мы уже имеем? Я заранее создал небольшой проект, в котором спрайтом можно управлять с помощью клавиш. Давайте его сохраним на диске компьютера.

    Для этого выбираем команду меню ФайлСохранить как. Здесь выбираем папку и пишем название вашего нового файла. Стоит отметить, что все проекты сохраняются с расширением .sb2. В прошлой версии Скретч 1.4 проекты сохранялись с расширением .sb.

    Этот файл можно копировать, загружать на другой компьютер. Но учтите, что для запуска потребуется установка Скретч на тот компьютер, на который вы хотите установить программу.

    Чтобы сохранить ранее сохраненный проект, например, при изменении кода или сценария вы должны выбрать пункт Сохранить или получится новый файл, которому нужно дать новое название.

    Как загрузить из файла проект в Скретч?

    Для загрузки уже готового проекта в Скретч необходимо зайти в меню Файл и выбрать команду Открыть. В этом диалоговом окне необходимо выбрать на диске тот файл, который вам нужен.

    Как сохранить проект Скретч на диск из онлайн-редактора?

    Думать о сохранение файлов, находясь в онлайн-среде не нужно — проекты сохраняются автоматически, однако если вы хотите перенести проект в виде файла и сохранить его к себе на диск нужно выбрать команду. Здесь практически всё тоже самое, что и с оффлайн-редактором Файл → Скачать на свой компьютер.


    как сохранить файл скретч
    как сохранить файл скретч

    Как загрузить из файла проект в онлайн-редактор Скретч?

    Для загрузки файла уже готового проекта в Скретч необходимо зайти в меню Файл и выбрать команду Загрузить с компьютера. В этом диалоговом окне необходимо выбрать на диске тот файл, который вам нужен.

    Существует еще один способ загрузки проекта сразу из оффлайн-редактора в онлайн-проекты. Для этого нужно открыть проект Скретч в оффлайн и выбрать команду ФайлОпубликовать на сайте

    как сохранить файл скретч

    После успешной загрузки должно появиться вот такое окно.

    как сохранить файл скретч

    В этом окне нужно ввести свой логин и пароль от Скретч, чтобы пройти аутентификацию.

    В новом уроке я подробнее расскажу вам про онлайн-версию Scratch и про том, как можно делиться своими проектами в ней с другими его участниками. На этом всё! Удачного освоения этой увлекательной среды.

    Что такое Scratch?

    Форум РадиоКот :: Просмотр темы — Вопросы по С/С++ (СИ)


    Автор:  BCluster [ Вт янв 17, 2012 09:43:33 ]
    Заголовок сообщения:  Re: Вопросы по С/С++ (СИ)

    Мастер Ломастер писал(а):

    такая запись — довольно редкий частный случай для последовательных констант, а, например, для упомянутого мною случая с кодами кнопок последовательность кодов вовсе не обязательна и скорее всего нерациональна.

    Кому-то частный случай, а у мя практически все константы последовательные.

    Цитата:

    а вот чем хорош мой подход. допустим, я объявил тип

    Не спорю, может оказаться удобым. Может мне еще не подворачивалась задача.


    Автор:  ibiza11 [ Вт янв 17, 2012 09:46:52 ]
    Заголовок сообщения:  Re: Вопросы по С/С++ (СИ)

    че вы тут развели на 3 страницы??? письками не с кем помериться больше??? вопрос был про ПОЛЬЗОВАТЕЛЬСКИЕ ТИПЫ ДАННЫХ. ВСЕ УЖЕ ОТВЕЧЕНО!!!


    Автор:  BerZerK-ku [ Вт янв 17, 2012 09:50:43 ]
    Заголовок сообщения:  Re: Вопросы по С/С++ (СИ)

    Вроде идет разговор о дефайнах и перечислениях. Где вам «письки» померещились? тут не канал ТНТ :)))


    Автор:  Pika4u [ Вт янв 17, 2012 15:20:28 ]
    Заголовок сообщения:  Re: Вопросы по С/С++ (СИ)

    Вопрос такой: если я напишу так

    Код:

    oldState = __save_interrupt();//сохраняем регистр SREG
    __disable_interrupt();             //запрещаем прерывания
    считывание глобальной переменной итд 
    __restore_interrupt(oldState);//восстанавливаем SREG

    , то если скажем во время выполнения этого куска кода возникнет прерывание, например, совпадение счетного регистра с регистром сравнения, то после выполнения этого куска МК перейдет к возникшему прерыванию?


    Автор:  BerZerK-ku [ Вт янв 17, 2012 15:31:44 ]
    Заголовок сообщения:  Re: Вопросы по С/С++ (СИ)

    если на момент __save_interrupt() был установлен флаг разрешения, то после __restore_interrupt() пойдет обработка прерывания.


    Автор:  Pika4u [ Вт янв 17, 2012 15:33:22 ]
    Заголовок сообщения:  Re: Вопросы по С/С++ (СИ)

    А как его установить?


    Автор:  BerZerK-ku [ Вт янв 17, 2012 15:40:23 ]
    Заголовок сообщения:  Re: Вопросы по С/С++ (СИ)

    _SEI(), __enable_interrupt(). Странный вопрос для человека использующего предыдущие функции )


    Автор:  Pika4u [ Вт янв 17, 2012 15:42:12 ]
    Заголовок сообщения:  Re: Вопросы по С/С++ (СИ)

    __enable_interrupt() ещё в самом начале установлен)))) Спасибо))


    Автор:  kreygen [ Вт янв 17, 2012 19:10:21 ]
    Заголовок сообщения:  Re: Вопросы по С/С++ (СИ)

    Народ, помогите, буду очень благодарен.
    Вопрос нубский.
    Нужно заставить работать ЦАП на микроконтроллере. Контроллер STM32F100RB, на плате stm32vldiscovery
    Вот написал я код:

    DAC_InitTypeDef DAC_InitStructure;
    DAC_InitStructure.DAC_Trigger = DAC_Trigger_None;
    DAC_InitStructure.DAC_WaveGeneration = DAC_WaveGeneration_None;
    DAC_Init(DAC_Channel_2, &DAC_InitStructure);

    DAC_Cmd(DAC_Channel_2, ENABLE);
    DAC_SetChannel2Data(DAC_Align_12b_R, 0x0AA);

    По идеи последняя команда должна менять напряжение, которое выдаёт ЦАП. Но ноль эмоций. Пробовал разные варианты из примеров — не пашет. Спаял всё верно, если просто выдать 1 на ногу, то светодиод горит.


    Автор:  Аlex [ Вт янв 17, 2012 19:19:25 ]
    Заголовок сообщения:  Re: Вопросы по С/С++ (СИ)

    kreygen писал(а):

    Вот написал я код:

    DAC_InitTypeDef DAC_InitStructure;
    DAC_InitStructure.DAC_Trigger = DAC_Trigger_None;
    DAC_InitStructure.DAC_WaveGeneration = DAC_WaveGeneration_None;
    DAC_Init(DAC_Channel_2, &DAC_InitStructure);

    DAC_Cmd(DAC_Channel_2, ENABLE);
    DAC_SetChannel2Data(DAC_Align_12b_R, 0x0AA);

    Первый раз вижу такой маленький исходник. Даже main нет, не говоря уж об основном цикле.


    Автор:  kreygen [ Вт янв 17, 2012 19:24:33 ]
    Заголовок сообщения:  Re: Вопросы по С/С++ (СИ)

    Цитата:

    Первый раз вижу такой маленький исходник. Даже main нет, не говоря уж об основном цикле.

    Я его не приводил полностью. Смысл? Вся работа с DAC здесь, функция вызывается в main.


    Автор:  Аlex [ Вт янв 17, 2012 19:27:43 ]
    Заголовок сообщения:  Re: Вопросы по С/С++ (СИ)

    kreygen писал(а):

    Смысл?

    Т.е. Вы считаете здесь телепаты собрались ? Тогда Вы не туда попали.
    Хотя… может и найдётся какой-нибудь экстрасенс и угадает.


    Автор:  kreygen [ Вт янв 17, 2012 19:29:18 ]
    Заголовок сообщения:  Re: Вопросы по С/С++ (СИ)

    Снимаю вопрос, разобрался.
    Просто сделал не через структуры, а побитово. Заработало.
    Спасибо за внимание


    Автор:  evil0o [ Чт янв 19, 2012 13:55:02 ]
    Заголовок сообщения:  Re: Вопросы по С/С++ (СИ)

    подскажите как сделать опрос портов ввода всех сразу atmega 8. цель в том что есть 5 кнопок и от того какая кнопка будет нажата первой будет зависеть следующие действие. заранее спасибо за помощь.


    Автор:  Мастер Ломастер [ Чт янв 19, 2012 14:00:40 ]
    Заголовок сообщения:  Re: Вопросы по С/С++ (СИ)

    evil0o писал(а):

    подскажите как сделать опрос портов ввода всех сразу atmega 8. цель в том что есть 5 кнопок и от того какая кнопка будет нажата первой будет зависеть следующие действие. заранее спасибо за помощь.

    всех портов сразу никак — их 4 штуки, а за один раз можно работать только с одинм портом

    правда, что-то мне подсказывает, вы имели ввиду всех пинов одного порта (в одном порту 8 пинов) — то это дело другое, и делается это очень просто: PINB содержит состояние сразу всех 8-и своих пинов. просто считываете в переменную значение PINB в нужный момент и затем анализируете.


    Автор:  evil0o [ Чт янв 19, 2012 14:08:34 ]
    Заголовок сообщения:  Re: Вопросы по С/С++ (СИ)

    спасибо хотя бы стало понятнее.


    Автор:  Pika4u [ Пт янв 20, 2012 10:20:05 ]
    Заголовок сообщения:  Re: Вопросы по С/С++ (СИ)

    Теперь у меня возникла ещё проблема-в ниже перечисленном коде, если сделать задержку(не которая опрос кнопок, а между управлением состояния портов) меньше 170000 тактов(частота тактирования МК составляет 4 МГц), то появляется баг — если, например, в верхнем ряду зажжен 1 светодиод, а в нижнем-2, то иногда на секунду-две погасает то верхний(1) светодиод, то нижний (2). И так при любой комбинации, кроме верхний-1, нижний-1. Вот код:

    Код:

    #include <intrinsics.h>
    #include <iotiny2313.h>
    volatile unsigned long second=0;
    volatile unsigned char hours=0,fiveminute=0,takt=0;
    __flash unsigned char timeb[12]={1,2,4,8,16,32,64,128,0,0,0,0};
    __flash unsigned char timed[12]={0,0,0,0,0,0,0,0,1,2,4,16};
    unsigned char old;
    int main( void )
    {
      __enable_interrupt();
    DDRB=255;
    DDRD|=((1<<0)|(1<<1)|(1<<2)|(1<<4));
    DDRD=(~((1<<6)|(1<<3)|(1<<5)));
    DDRA=3;
    TIMSK|=(1<<OCIE0A);
    TCCR0B|=(1<<2);
    TCCR0B&=(~(1<<1)|(1<<0));
    OCR0A=125;
    while(1)
    {
    old= __save_interrupt();
    __disable_interrupt(); 
    if(PIND_Bit6==0)
    {
    __delay_cycles(20000);
    if(PIND_Bit6==0)
    fiveminute++;
    }
    if(PIND_Bit5==0)
    {
    __delay_cycles(20000);
    if(PIND_Bit5==0)
    hours++;
    }
    PORTA_Bit1=1;
    PORTA_Bit0=0;
    PORTB=timeb[fiveminute];
    PORTD=timed[fiveminute];
    __restore_interrupt(old);
    __delay_cycles(170000);
    old= __save_interrupt();
    __disable_interrupt(); 
    PORTA_Bit0=1;
    PORTB=0;
    PORTD=0;
    __restore_interrupt(old);
    __delay_cycles(170000);
    old= __save_interrupt();
    __disable_interrupt();
    PORTA_Bit1=0;
    PORTD=timed[hours];
    PORTB=timeb[hours];
    __restore_interrupt(old);
    __delay_cycles(170000);
    old= __save_interrupt();
    __disable_interrupt();
    PORTA_Bit1=1;
    PORTB=0;
    PORTD=0;
    __restore_interrupt(old);
    __delay_cycles(170000);
    }
    }
    #pragma vector=TIMER0_COMPA_vect
    __interrupt void TimerCompA(void)
    {
    TCNT0=0;
    takt++;
    if(takt==125)
    {
    takt=0;
    second++;
    }
    if(second==300)
    {
    second=0;
    fiveminute++;
    }
    if(fiveminute==12)
    {
    fiveminute=0;
    hours++;
    }
    if(hours==12)
    {
    hours=0;
    fiveminute=0;
    }
    }

    Схема в приложении.

    Вложения:


    avrka.PNG [117.7 KiB]

    Скачиваний: 315

    Автор:  Pika4u [ Пт янв 20, 2012 15:49:35 ]
    Заголовок сообщения:  Re: Вопросы по С/С++ (СИ)

    Ну так поможет кто-нибудь?)


    Автор:  BerZerK-ku [ Пт янв 20, 2012 16:14:13 ]
    Заголовок сообщения:  Re: Вопросы по С/С++ (СИ)

    Суровый код. Для начала могу сказать только то , что __restore_interrupt и __save_interrupt тут лишние. У них несколько иное предназначение )
    old = …; можно выкинуть. __restore_…; заменить на __enable_interrupt();

    У вас случаем нет проекта для протеуса? Лень рисовать, чтобы понять что горит, а что нет :)))
    Туплю, картину не посмотрел, выложите проект плз.


    Автор:  vitalik_1984 [ Пт янв 20, 2012 16:28:19 ]
    Заголовок сообщения:  Re: Вопросы по С/С++ (СИ)

    Pika4u писал(а):

    Теперь у меня возникла ещё проблема-в ниже перечисленном коде, если сделать задержку(не которая опрос кнопок, а между управлением состояния портов) меньше 170000 тактов(частота тактирования МК составляет 4 МГц), то появляется баг — если, например, в верхнем ряду зажжен 1 светодиод, а в нижнем-2, то иногда на секунду-две погасает то верхний(1) светодиод, то нижний (2). И так при любой комбинации, кроме верхний-1, нижний-1.

    А как по вашему мнению должно быть? мы же не знаем какая логика задумана в вашем мозге :)

    Pika4u писал(а):

    while(1)
    {
    old= __save_interrupt();|
    __disable_interrupt(); |
    if(PIND_Bit6==0) |
    { |
    __delay_cycles(20000); |
    if(PIND_Bit6==0) |Я бы заменил эту часть на switch
    fiveminute++; |
    } |
    if(PIND_Bit5==0) |
    { |
    __delay_cycles(20000);|
    if(PIND_Bit5==0) |
    hours++; |
    }
    PORTA_Bit1=1;
    PORTA_Bit0=0;
    PORTB=timeb[fiveminute];
    PORTD=timed[fiveminute];
    __restore_interrupt(old);
    __delay_cycles(170000);
    old= __save_interrupt();
    __disable_interrupt();
    PORTA_Bit0=1;
    PORTB=0;
    PORTD=0;
    __restore_interrupt(old);
    __delay_cycles(170000);
    old= __save_interrupt();
    __disable_interrupt();
    PORTA_Bit1=0;
    PORTD=timed[hours];
    PORTB=timeb[hours];
    __restore_interrupt(old);
    __delay_cycles(170000);
    old= __save_interrupt();
    __disable_interrupt();
    PORTA_Bit1=1;
    PORTB=0;
    PORTD=0;
    __restore_interrupt(old);
    __delay_cycles(170000);
    }
    }

    old= __save_interrupt();|
    __disable_interrupt(); |
    in_pins=~(pind$BUTTONS_MASK);
    switch(in_pins){
    case:(1<<Bit6){ваши действия;break;}
    case:(1<<Bit5){ваши действия;break;}
    default :break;
    }

    Правка
    или так:
    old= __save_interrupt();|
    __disable_interrupt(); |
    in_pins=get_pins();
    switch(in_pins){
    case:(1<<Bit6){ваши действия;break;}
    case:(1<<Bit5){ваши действия;break;}
    default :break;
    }
    int get_pins(void){
    old_pins=~(pind&BUTTONS_MASK);
    __delay_cycles(20000);
    if (old_pins==(~(pind&BUTTONS_MASK))){
    return old_pins;
    break;
    }
    else return 0;}


    Страница 62 из 373 Часовой пояс: UTC + 3 часа
    Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
    http://www.phpbb.com/

    Мой проект больше не сохраняется в Scratch 3.0. Я попытался обновить и зайти в Мои материалы, но это не помогло.

    В проекте нет больших файлов, но есть большие блоки кода.

    Чтобы попытаться это исправить, я переместил спрайты в рюкзак, чтобы скопировать в новый проект. Однако один из спрайтов не удалось скопировать.

    1 ответ

    По-видимому, была повреждена строка кода. Удаление и повторное создание строки (без изменений) устранило проблему.

    Рюкзак помог найти, где была проблема. Я удалил различные части кода в спрайте, который не удалось скопировать, а затем попытался скопировать его снова. Этот процесс в конечном итоге привел к единственной строке кода, вызывающей проблему.


    0

    Jim K
    16 Июл 2021 в 21:21


    Go to scratch


    r/scratch

    The unofficial Scratch community on Reddit.

    Scratch is the world’s largest coding community for children and a coding language with a simple visual interface that allows young people to create digital stories, games, and animations. Scratch is designed, developed, and moderated by the Scratch Foundation, a nonprofit organization. -Scratch Wiki




    Members





    Online



    HALP!


    Question

    New user to Scratch, just learning how to use it. I’m trying to save my first test project from the offline editor and keep getting a «save interrupted» notification. I can’t figure out what I’m doing wrong. I’ve tried to save to my desktop and an empty folder but neither have been successful. Please help

    Archived post. New comments cannot be posted and votes cannot be cast.



    Распространённые причины того, почему вы не можете сохранить проект


    Печать

    Изменено: Пт, 16 Июл, 2021 на 1:05 AM


    If you’re experiencing trouble saving projects, here are some suggestions on how to fix it. 

    Size of Sound or Image: If a sound or image is larger than Scratch’s maximum file size (10MB), then the project won’t save. If you cut the sound into smaller pieces using the sound editor, then it should save.

    To cut a sound into smaller pieces, try this:

    1) Click the Sounds tab and pick the music or sound file that’s long.

    2) Select a section of the sound, starting from the beginning. 

    3) Click the «Copy to New» button. (If it doesn’t create a new sound, the piece is too large, so select a smaller region.) 

    4) Select the next section of the sound. Click «Copy to New» again. 

    5) Repeat the process until the whole sound is broken into pieces.  

    You can now play the sounds one after the other. Click the Code tab. Snap together «play sound until done» blocks to play each of the sounds in a row.

    Project File Size: Another thing that can cause a project to not save is if it is a particularly large project with lots of sprites and code.  Scratch stores information about the project in a file called project.json which has its own file size limit of 5MB. If you have a file with many sprites and lots of code, try using fewer sprites or fewer blocks.

    Internet Connection: A project may not save if you lose internet connectivity while trying to save. 

    Signed Out: Another thing that frequently causes people to be unable to save is if their account gets signed out.  This can happen if an account is signed in to more than one computer or if more than one account is signed in on the same computer.  It usually happens when someone is working both at home and at school, if more than one person is sharing an account (which we don’t recommend), or if two people are working on the same computer. 

    To prevent getting signed out, don’t share Scratch accounts with others and only sign into one computer and account at a time. Also, make sure to sign out when you’re done using Scratch on a school, library, or other shared computer.


    Была ли эта статья полезной?
    Да

    Нет

    Отправить отзыв

    К сожалению, мы не смогли помочь вам в разрешении проблемы. Ваш отзыв позволит нам улучшить эту статью.

    Статьи по теме

      In the Scratch 3.0 online editor, the Project could not save prompt appears when a project failed to save to the website. Next to the prompt, there are two buttons. Try again will attempt to save the project again, and Download will download the project to the computer as an sb3 file.

      The Project could not save alert

      Causes

      Possible causes for the appearance of this prompt may include:

      • The user’s account has been logged out.
      • The device is no longer connected to the internet.
      • The project’s file size is too large.

      Troubleshooting

      When one of these alerts appears, try the following steps in order, and attempt to save the project after each step.

      1. Check that you are connected to the internet.
      2. Open a new tab and check that you are signed into the right account. If not, sign in.
      3. Make sure you don’t have any costumes or sounds that may be over 10MB in size.
      4. Delete any unnecessary blocks, variables, lists, costumes, sprites, costumes and sounds.
      5. Check if you have any excessively long variables, lists, comments, costume names, sound names, sprite names, variable names, list names, custom block names or backdrop names. If there are any, make them shorter.

      If the project still does not save, there may be too much code. Try downloading the project and editing it with the offline editor.

      Cookies help us deliver our services. By using our services, you agree to our use of cookies.

      Expected Behavior

      If you choose a different drive to save to, such as a second hard drive or a usb drive, it should save successfully.

      Actual Behavior

      If you choose anything other than a location on the c:\ drive it will fail to save and throw an error.

      Can'tExportThumbDrive

      Steps to Reproduce

      On Windows, connect to a usb thumb drive or external hard drive
      Create or open a project
      Choose File > Save to your computer
      In the file browser that opens up, navigate to the usb drive and try to save it.
      Note: an error appears (see screenshot above) that says

      Save failed:
      D:[file name].sb3
      EPERM: operation not permitted, mkdir ‘D:’

      Operating System and Browser

      Windows 10. Can not reproduce on Mac.

      Понравилась статья? Поделить с друзьями:
    • Scania ошибка 135
    • Scary01 ошибка активации
    • Scrap mechanic ошибка при установке
    • Scandisk ошибка 50
    • Scarlett пароварка ошибка e4