The following warnings occurred:
Warning [2] Undefined array key "attachments" - Line: 20 - File: portal.php(680) : eval()'d code PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/portal.php(680) : eval()'d code 20 errorHandler->error_callback
/portal.php 680 eval
Warning [2] Undefined array key "attachments" - Line: 20 - File: portal.php(680) : eval()'d code PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/portal.php(680) : eval()'d code 20 errorHandler->error_callback
/portal.php 680 eval
Warning [2] Undefined array key "attachments" - Line: 20 - File: portal.php(680) : eval()'d code PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/portal.php(680) : eval()'d code 20 errorHandler->error_callback
/portal.php 680 eval
Warning [2] Undefined array key "attachments" - Line: 20 - File: portal.php(680) : eval()'d code PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/portal.php(680) : eval()'d code 20 errorHandler->error_callback
/portal.php 680 eval
Warning [2] Undefined array key "attachments" - Line: 20 - File: portal.php(680) : eval()'d code PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/portal.php(680) : eval()'d code 20 errorHandler->error_callback
/portal.php 680 eval
Warning [2] Undefined array key "attachments" - Line: 20 - File: portal.php(680) : eval()'d code PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/portal.php(680) : eval()'d code 20 errorHandler->error_callback
/portal.php 680 eval
Warning [2] Undefined array key "attachments" - Line: 20 - File: portal.php(680) : eval()'d code PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/portal.php(680) : eval()'d code 20 errorHandler->error_callback
/portal.php 680 eval




Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 276
» Latest member: Ollibony
» Forum threads: 1,087
» Forum posts: 6,490

Full Statistics

Online Users
There are currently 68 online users.
» 0 Member(s) | 67 Guest(s)
Bing

Latest Threads
GuSprites
Forum: Help & Support
Last Post: zedex82
2026-06-19, 06:39 PM
» Replies: 2
» Views: 140
New video Couse / Nuevo c...
Forum: News
Last Post: Duefectu
2026-04-29, 11:02 PM
» Replies: 0
» Views: 2,552
location of heap manageme...
Forum: Help & Support
Last Post: boriel
2026-03-07, 12:13 AM
» Replies: 1
» Views: 590
non-paged supervisor code...
Forum: Help & Support
Last Post: sdo303
2026-02-20, 06:38 PM
» Replies: 8
» Views: 1,522
How to open fuse as an ex...
Forum: How-To & Tutorials
Last Post: Duefectu
2026-02-09, 01:52 PM
» Replies: 3
» Views: 1,556
Old zxbasic game errors
Forum: Help & Support
Last Post: boriel
2025-11-09, 11:52 AM
» Replies: 7
» Views: 2,301
Error: Undefined GLOBAL l...
Forum: Help & Support
Last Post: ardentcrest
2025-11-04, 05:46 PM
» Replies: 3
» Views: 1,223
A Fast(er) Plot Routine f...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-30, 03:16 PM
» Replies: 2
» Views: 1,326
Hall of Fame - Include fo...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-28, 03:48 PM
» Replies: 0
» Views: 714
[SOLVED] Array layout bug...
Forum: Bug Reports
Last Post: Zoran
2025-10-25, 05:48 PM
» Replies: 2
» Views: 1,349

 
Sad Just Installed ZXBasicStudio but cannot debug
Posted by: ChewBakker - 2025-01-28, 06:20 PM - Forum: Help & Support - Replies (8)

Hi, I am new to the forum, but not to the ZX Spectrum :-)

I have installed the latest version of ZXBasicStudio and ZXBasic compiler onto my PC.

I have created a very simple program than runs from within ZXBasicStudio.

However, when I try and Debug it creates some new files in the project folder:

Main.buildtemp.bas
Main.buildtemp.bin
Main.buildtemp.ir
MEMORY_MAP


but I get the following error mesage:

Exception: Could not find file 'D:\BorielDev\Projects\HelloWorld\Main.buildtemp.ic' at

.
.
.

Screenshot below...

If anyone could point me to where I am going wrong it would be highly appreciated.




John




.jpg   ZXBasicIssue.jpg (Size: 261.7 KB / Downloads: 637)

Print this item

  Question on file extension
Posted by: zedex82 - 2025-01-18, 11:11 PM - Forum: Help & Support - Replies (2)

I am working my way through the book 'Boriel Basic for Beginners'. It is a very good book and well written. I have convinced my friend to buy a copy too.

On page 166 in the example the first command is '#INCLUDE "ship.gdu.bas". When I exported the UDG's as per the instructions on page 165 it creates a file 'ship.gdu.zxbas'

I was wondering why it did not export with the extension '.bas'. I understand I just need to change the extension in the code and it loads in fine, I just want to understand why. It may be something I have done wrong.

ZeDeX82

Print this item

  Colors only shown... sometimes?
Posted by: baltasarq - 2025-01-07, 02:21 PM - Forum: Bug Reports - Replies (3)

Hi,

I'm using print64.bas, and the code I'm using to show a command menu is as follows:

Code:
const COLOR_BLACK            as ubyte = 0 const COLOR_BLUE              as ubyte = 1 const COLOR_RED              as ubyte = 2 const COLOR_MAGENTA          as ubyte = 3 const COLOR_GREEN            as ubyte = 4 const COLOR_CYAN              as ubyte = 5 const COLOR_YELLOW            as ubyte = 6 const COLOR_WHITE            as ubyte = 7 sub cursor_to(row as ubyte, col as ubyte)     printat64( row, col ) end sub sub cprint(s as string)     print64( s ) end sub sub lf()     cprint( CR ) end sub sub set_colors(i as ubyte, p as ubyte)     paper( p )     ink( i ) end sub sub set_default_colors()     set_colors( COLOR_WHITE, COLOR_BLACK ) end sub sub set_highlighted_colors()     set_colors( COLOR_CYAN, COLOR_BLACK ) end sub sub set_action_colors()     set_colors( COLOR_YELLOW, COLOR_BLACK ) end sub sub print_word_marked_initial(word as string)     set_action_colors()     cprint( word( 0 ) )     set_default_colors()     cprint( word( 1 to ) ) end sub sub print_cmds() ' Print basic options cursor_to( SCR_FIRST_LINE_CMDS, 0 ) print_word_marked_initial( "Inv " ) print_word_marked_initial( "Mira alrededor " ) cprint( "E" ): print_word_marked_initial( "xamina... " ) print_word_marked_initial( "Norte " ) print_word_marked_initial( "Sur " ) print_word_marked_initial( "Este " ) print_word_marked_initial( "Oeste " ) print_word_marked_initial( "Arriba " ) cprint( "A" )         print_word_marked_initial( "bajo" )         lf() ' Print object manipulation options print_word_marked_initial( "Coge... " ) print_word_marked_initial( "Deja... " ) cprint( "Em" ): print_word_marked_initial( "puja... " ) print_word_marked_initial( "Tira de... " ) print_word_marked_initial( "Rompe... " ) end sub

Well, the code should be straightforward. I also know it should work because I ported it from C, the same source code I used wtith z88dk. Unfortunately, it does not work, or it does not always work... (check the image).

What could be wrong?

-- Baltasar



Attached Files
.png   speccy_reveni_cmds.png (Size: 4.33 KB / Downloads: 569)
Print this item

  Play on a bank ($c000) in spectrum128 and then copy to $4000
Posted by: funkheld - 2025-01-05, 03:06 PM - Forum: How-To & Tutorials - Replies (4)

Hello, good day.

How can you play on the $c000 area if you have the Specrum128 mode? You can assign the banks to $c000.

thanks.
greetings

Print this item

  strange behaviour of raise to power
Posted by: jjluke65 - 2025-01-05, 01:53 PM - Forum: Bug Reports - Replies (2)

In this code:

DIM x1, x2 AS float
x1 = -3
x2 = x1^2
PRINT x2


if x1 = 3 (or any positive number) the correct result (9) is printed.
If x1 = -3  I get no result in the output (nothing is printed on the screen) and no message is shown.
I've tried to define x1 and x2 as integer, with the same problem.
I'm using 1.17.3 version with ZX Basic Studio, but I also tried with Visual Studio Code and Fuse (same result).
I'm doing something wrong or it's a bug?
Thanks

Print this item

  pascalated boriel zx basic for the spectrum (*solved*)
Posted by: funkheld - 2024-12-31, 10:13 AM - Forum: Bug Reports - Replies (10)

Hello, good day.
will the tap program be faster with this new Pascal or is it just an optical design for the eye?

https://arcalusitana.org/MuseuZX/Pascalated_ZXBASIC/

Thanks.
greeting

Print this item

  Compiler gives strange error message (solved)
Posted by: baltasarq - 2024-12-29, 11:31 PM - Forum: Bug Reports - Replies (4)

After doing some more changes to my project, zxbc started to complain about "Can't convert non-numeric value to string at compile time", check it out:

Code:
reveni.bas:46: error: Can't convert non-numeric value to string at compile time reveni.bas:44: error: Can't convert non-numeric value to string at compile time
The second error is signaling a line that... is empty! The first error refers to the following source:
Code:
clrscr()
I think this means that the compiler gets somehow confused about something. I'm attaching the project.
Thanks,
-- Baltasar



Attached Files
.zip   reveni.zip (Size: 12.2 KB / Downloads: 536)
Print this item

  Puzzles
Posted by: zarsoft - 2024-12-29, 01:17 PM - Forum: Gallery - No Replies

To read the launch announcement, click HERE.
[Image: Puzzles%20(2024)%20%5BZarsoft%5D.png]
To play online, click HERE.

Print this item

  Compiler crash (solved)
Posted by: baltasarq - 2024-12-15, 09:54 PM - Forum: Bug Reports - Replies (3)

I've run into a crash while compiling my project:

Code:
$ python ~/bin/zxbasic/zxbc.py --tap --BASIC --autorun reveni.bas /home/baltasarq/bin/zxbasic/src/lib/arch/zx48k/stdlib/keys.bas:50: warning: [W150] Parameter 'scancode' is never used /home/baltasarq/bin/zxbasic/src/lib/arch/zx48k/stdlib/print64.bas:20: warning: [W150] Parameter 'characters' is never used cmd.bas:41: warning: [W150] Parameter 'cmd' is never used io.bas:222: warning: [W100] Using default implicit type 'float' for 'current_loc' /home/baltasarq/bin/zxbasic/src/lib/arch/zx48k/stdlib/keys.bas:51: warning: [W190] Function 'MultiKeys' should return a value /home/baltasarq/bin/zxbasic/src/lib/arch/zx48k/stdlib/keys.bas:72: warning: [W190] Function 'GetKeyScanCode' should return a value objs.bas:88: warning: [W170] Function 'get_objs_in' is never called and has been ignored /home/baltasarq/bin/zxbasic/src/lib/arch/zx48k/stdlib/keys.bas:50: warning: [W170] Function 'MultiKeys' is never called and has been ignored /home/baltasarq/bin/zxbasic/src/lib/arch/zx48k/stdlib/keys.bas:71: warning: [W170] Function 'GetKeyScanCode' is never called and has been ignored /home/baltasarq/bin/zxbasic/src/lib/arch/zx48k/stdlib/string.bas:29: warning: [W170] Function 'mid' is never called and has been ignored /home/baltasarq/bin/zxbasic/src/lib/arch/zx48k/stdlib/string.bas:40: warning: [W170] Function 'left' is never called and has been ignored /home/baltasarq/bin/zxbasic/src/lib/arch/zx48k/stdlib/string.bas:51: warning: [W170] Function 'right' is never called and has been ignored /home/baltasarq/bin/zxbasic/src/lib/arch/zx48k/stdlib/string.bas:98: warning: [W170] Function 'strpos' is never called and has been ignored /home/baltasarq/bin/zxbasic/src/lib/arch/zx48k/stdlib/string.bas:124: warning: [W170] Function 'ucase2' is never called and has been ignored /home/baltasarq/bin/zxbasic/src/lib/arch/zx48k/stdlib/string.bas:174: warning: [W170] Function 'ucase' is never called and has been ignored /home/baltasarq/bin/zxbasic/src/lib/arch/zx48k/stdlib/string.bas:249: warning: [W170] Function 'ltrim' is never called and has been ignored /home/baltasarq/bin/zxbasic/src/lib/arch/zx48k/stdlib/string.bas:275: warning: [W170] Function 'rtrim' is never called and has been ignored /home/baltasarq/bin/zxbasic/src/lib/arch/zx48k/stdlib/string.bas:304: warning: [W170] Function 'trim' is never called and has been ignored util.bas:47: warning: [W170] Function 'testMultiplyStr' is never called and has been ignored util.bas:57: warning: [W170] Function 'testFormatStr' is never called and has been ignored Traceback (most recent call last):   File "/home/baltasarq/bin/zxbasic/zxbc.py", line 12, in <module>     sys.exit(zxbc.main())  # Exit             ^^^^^^^^^^^   File "/home/baltasarq/bin/zxbasic/src/zxbc/zxbc.py", line 110, in main     optimizer.visit(zxbparser.ast)   File "/home/baltasarq/bin/zxbasic/src/api/optimize.py", line 199, in visit     return super().visit(node)           ^^^^^^^^^^^^^^^^^^^   File "/home/baltasarq/bin/zxbasic/src/api/optimize.py", line 56, in visit     return super().visit(ToVisit(node))           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/home/baltasarq/bin/zxbasic/src/ast/ast.py", line 42, in visit     stack.append(last.send(last_result))                 ^^^^^^^^^^^^^^^^^^^^^^   File "/home/baltasarq/bin/zxbasic/src/api/optimize.py", line 423, in visit_FOR     if from_ > to_ and step_ > 0:       ^^^^^^^^^^^ TypeError: '>' not supported between instances of 'SymbolID' and 'SymbolID'

-- Baltasar



Attached Files
.zip   reveni.zip (Size: 11.6 KB / Downloads: 575)
Print this item

  Better parameters mismatch function (solved)
Posted by: baltasarq - 2024-12-13, 10:29 PM - Forum: Bug Reports - Replies (4)

I was compiling my program when the compiler claimed (correctly) that there was an error in my code:

Code:
util.bas:105: error: Function 'FormatStr' takes 3 parameters, not 1
This message was correct, but instead of signaling the file name and the line where the error was present, it was showing the line number and the file name of where the function was defined!
It also messes with the line number, which corresponds to where the error happened, not where the function was defined. In my case, the error happened at line number 105 of player.bas, calling function FormatStr() defined in line number 39 of util.bas.
I think it would be better to expose both pieces of information, maybe this way:
Code:
player.bas: 105: error: Function 'FormatStr' takes 3 parameters, not 1 util.bas:39: error: Function 'FormatStr' defined here.
Well, something like that.

Print this item