Posts: 394
Threads: 15
Likes Received:
123 in 106 posts
Likes Given: 199
Joined: Sep 2023
Reputation:
6
(translated by Google translator)
I was writing code for my "AI Snake". I completed the Snake's manual movement module and tested how it works.
Everything was normal.
Then I began to write a module for analyzing the current situation. In my code, the analysis of the situation does not in any way affect the calculation of the position of the figures on the playing field. But, at this moment I updated SB-Prime from the program.
After the SB-Prime update, quite a lot of text disappeared in the menu lines that appear when you right-click on the text field. The title text of the "Debug" tab has also disappeared. Then I downloaded the SB-Prime archive from the site using a browser, and launched SB-Prime from the archive. But the text in SB-Prime was still missing. And I continued writing code, ignoring the lack of text in the menu.
I thought these were temporary minor problems that would be fixed quickly. But then errors appeared in the work of my “Snake”.
Every time I changed the direction of the Snake's movement, its head began to occupy the wrong position relative to the rest of the body.
I checked the code, but the code has not changed.
I started using the old version of SB-Prime again, but the problem with the position of the Snake's head did not disappear.
Then I turned to the forum for help.
If I have to write and test a separate code example, then I will do it.
But first, I probably should install the SB-Prime update correctly.
I'm right?
Posts: 316
Threads: 36
Likes Received:
108 in 85 posts
Likes Given: 214
Joined: Dec 2023
Reputation:
7
Could you share code with error
ZS
Posts: 451
Threads: 34
Likes Received:
359 in 246 posts
Likes Given: 178
Joined: Aug 2023
Reputation:
17
05-15-2024, 11:59 AM
(This post was last modified: 05-15-2024, 12:46 PM by litdev.)
AB, There is an issue with translation when I update SB-Prime. I will try to fix now. I have no idea why it happed, but Scout I think saw it before - not all window text gets converted properly, some seem to randomly be missed?
EDIT
Looks like it was something to do with trying to do the language translations in parralel, but I'm not really sure.
Anyway I uploaded a version with this hopefully fixed.
Posts: 451
Threads: 34
Likes Received:
359 in 246 posts
Likes Given: 178
Joined: Aug 2023
Reputation:
17
05-15-2024, 07:35 PM
(This post was last modified: 05-15-2024, 08:13 PM by litdev.)
The compare options were there as a button using the split screen in the version before I introduced the docking stuff. It shows the differences between 2 documents.
Open the 2 documents, and usually I put them side-by-side. Then in first document use the context menu to set first file to compare, then in the other document use the context menu to set the second file to compare. You should then see the differences in the files highlighted in red in the first and green in second.
I sometimes open the unedited version of the same program to check changes I have made before saving.
EDIT
Just fixed a bug where SB-Prime could crash if a document window is closed while it is doing a difference.