Posts: 806
Threads: 135
Joined: Apr 2009
Reputation:
5
Sicne I appear to have more fun building libraries and writing documentation than writing games to completion (don't ask me why. I have no idea. I keep meaning to finish a big project, and then time gets to me) - I'd probably stick to library functions. But being able to glue those in, and then fix/update them as things go - and have them as a guaranteed base for other functions would be quite useful.
Posts: 282
Threads: 48
Joined: Feb 2011
Reputation:
0
the latest version has been released, but what has to be done to allow it to be used in boriels basic?
Posts: 1,838
Threads: 56
Joined: Aug 2019
Reputation:
25
I was reading just that. Einar visits this forum, and maintains a library port for ZX BASIC (see demos attached within the zip). ;-)
Posts: 282
Threads: 48
Joined: Feb 2011
Reputation:
0
how d'you make pictures and load them in
also when i compile the example i get..
01:01:49 -> bifrost.bas:92: warning: FUNCTION 'BIFROSTfindAttr' declared as FASTCALL with 2 parameters. Compilation failed
01:01:51 -> FAIL: Compiler cannot write output file in directory (Protected Or does Not exist?)
when using BorIDE with Windows Vista
Also when I compile this with the command line
it says 'I FOR without NEXT' on the speccy
it says I have to use this loader
' 10 CLEAR 32767
' 20 LOAD "bifrostdem"CODE
' 30 LOAD "TILES"CODE
' 40 LOAD "BIFROST*"CODE
' 50 RANDOMIZE USR 32768
how do I do this automatically with the emulator?
Posts: 282
Threads: 48
Joined: Feb 2011
Reputation:
0
I tried moving my project to different places and got the same error, I will try starting it in admin mode next
I didnt set the start of my code, is that the problem?
(does BorIDE allow people to use different loaders?)
Posts: 282
Threads: 48
Joined: Feb 2011
Reputation:
0
i havent had access to my boriel PC yet, please download the bifrost engine here:
<!-- m --><a class="postlink" href="ftp://ftp.worldofspectrum.org/pub/sinclair/games-extras/BIFROSTENGINEV1.2_BorielZXBasicInterface.zip">ftp://ftp.worldofspectrum.org/pub/sincl ... erface.zip</a><!-- m -->
then just try to compile the bifrostdem.bas
Posts: 282
Threads: 48
Joined: Feb 2011
Reputation:
0
OK I ran BorIDE in admin mode on windows vista
then it gets a little further:
14:56:07 -> Compilation starts(60 Lines)
14:56:07 -> Source C:\Dropbox\specprojs\bifrost\bifrostdem saved
14:56:07 -> C:\Program Files\Boriel Tm\ZX Basic Compiler\zxb.exe "C:\Dropbox\specprojs\bifrost\temp.bor" -S 24576 -o "output.bin" --heap-size=1000
14:56:10 -> Exit code: 0
14:56:10 -> bifrost.bas:92: warning: FUNCTION 'BIFROSTfindAttr' declared as FASTCALL with 2 parameters. Compilation successfull
14:56:10 -> FAIL: Compiler cannot write output file in directory (Protected Or does Not exist?)
14:56:10 -> Compilation time: 2542ms
"C:\Dropbox\specprojs\wars\EmuZWin26\EmuZWin.exe" "output.tzx"
how do i set the output file?
I saw something on the right that says 'output' so I chose TZX
I right-clicked on the folder and it said it was 'read-only' I tried to change it back which it does.
Then when I right-click on the folder again it says 'read-only' again!
On the microsoft website they even have a command-line thing which doesnt work either:
'attrib -r c:\specprojs'
I think you have to insert some code into BorIDE to make it ask for full admin control when it starts.
When compiling from the command line I tried adding these 2 lines to replace the loader
10 CLEAR 32767
15 RANDOMIZE 32768
or
10 CLEAR 32767
15 RANDOMIZE USR 32768
but it complains about randomize
Posts: 615
Threads: 49
Joined: Feb 2009
Reputation:
2
Please use at moment TAP for output. TZX does not write Files in this version yet.
Edit: TZX will be added in the next release.