19 January 2020, 22:24 | #41 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 1,894
|
Me again. I have used new bat file and I don't get any errors but BB doesn't run?
One thing that I wonder is are you expecting BB to be in a particular path? The WinUaeArexx command seems to use the path as set for the project but I don't see how it knows where the Blitz basic program file is stored. Also, is the name of the BB program file supposed to be Blitzbasic2? Mine is just called Blitz2. |
19 January 2020, 22:29 | #42 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 1,894
|
https://drive.google.com/file/d/1JkS...ew?usp=sharing
The Dopus screen shows the file structure of my programming disk (DH1). Blitz basic is stored in the Blitz2 folder. Maybe this will help? Nearly there... Last edited by Havie; 19 January 2020 at 22:38. |
20 January 2020, 08:13 | #43 | ||
Registered User
Join Date: Oct 2008
Location: Finland
Posts: 643
|
Quote:
Quote:
Code:
IF EXISTS('System:Programs/Blitz2/Blitz2') THEN DO ADDRESS COMMAND 'Run >NIL: System:Programs/Blitz2/Blitz2' Code:
IF EXISTS('Blitz2:Blitz2') THEN DO ADDRESS COMMAND 'Run >NIL: Blitz2:Blitz2' Last edited by MickGyver; 20 January 2020 at 09:19. |
||
20 January 2020, 09:21 | #44 |
Registered User
Join Date: Oct 2008
Location: Finland
Posts: 643
|
Version 0.5
I uploaded a new version with these improvements:
http://gamephase.net/files/linked/AtomBB2.zip |
20 January 2020, 20:43 | #45 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 1,894
|
Hello again - good news, Blitz now runs!!!
I have two final problems: 1. Nag box doesn't disappear (I have Nagaway copied into c: ) 2. I get a file can't load error. I can see light at the end of the tunnel... |
25 January 2020, 17:37 | #46 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 1,894
|
I have had a bit more of a fiddle.
So program compiles fine (have tested it by manually loading into Blitz). Winuae runs and Blitz Basic starts. Nag box does not disappear and I get error in Blitz saying unable to load program. I have checked Firewall settings and gone through mountlist, arexx file and user-startup and all looks ok. Any other suggestions - it seems so close... |
25 January 2020, 19:18 | #47 | |
Registered User
Join Date: Oct 2008
Location: Finland
Posts: 643
|
Quote:
|
|
26 January 2020, 18:36 | #48 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 1,894
|
Had a long chat with Mick yesterday and made a lot of progress. The main issue was that I had confused the Windows folder with the Amiga virtual folder - I thought they were two separate folders but should just be one!
Atom went a big bonkers (probably because I messed up the config file) so have started from the beginning today. I have one problem left and everything else works! When I press F5, it opens a command window and shows the correct folder but does not run run.bat. If I manually type run.bat then everything works fine including the nag box going away and compiling and running of the program. I have copied the config file and changed [username] and even copied Micks one form here but to no avail. So...just need to sort out the running of run.bat and I'm there! One last bit of help please Mick. |
26 January 2020, 18:37 | #49 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 1,894
|
Config file (before you ask).
Code:
"atom-shell-commands": commands: [ { name: "BB2: Show Help" command: "C:\\Users\\Havie\\.atom\\packages\\language-blitzbasic2\\tools\\BB2Doc.exe" arguments: [ "{CurWord}" ] options: keymap: "f1" } { name: "BB2: Compile and Run" command: "cmd" arguments: [ "/C" "start" "{FileDir}\\run.bat" ] options: cwd: "{FileDir}" keymap: "f5" } { name: "BB2: Create Compile and Run Script" command: "robocopy" arguments: [ "C:\\Users\\Havie\\.atom\\packages\\language-blitzbasic2\\tools" "{FileDir}" "run.bat" "/XC" "/XN" "/XO" ] options: cwd: "{FileDir}" keymap: "ctrl-f5" } ] |
26 January 2020, 18:59 | #50 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 1,894
|
Don't know what I did but now it works except I get the following error:
'Error input redirection is not supported, exiting the process immediately.' |
27 January 2020, 21:34 | #51 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 1,894
|
I have finally got it working. Thanks to Mick for giving up his time to help me. We left it that I had to type run.bat manually and everything would run but after a bit more trial and error tonight I have discovered that to make it work completely I needed to add and additional {FileDir} command. Why I don't know but it works!!!
Now back to some programming. I have one game just about done but I want to check it and then release it. Code:
name: "run.bat" command: "cmd" arguments: [ "/C" "start" "{FileDir}" "{FileDir}\\run.bat" ] options: cwd: "{FileDir}" keymap: "f5" |
27 January 2020, 21:59 | #52 | |
Registered User
Join Date: Oct 2008
Location: Finland
Posts: 643
|
Quote:
|
|
27 January 2020, 22:27 | #53 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 1,894
|
Now - the really last thing is to get the symbols list working. Could you post your symbols-list.regex.coffee file so I can compare to mine. Here's mine:
# TO TEST REGEX |
27 January 2020, 22:29 | #54 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 1,894
|
Okay - when I load the file into Atom, the Blitz Basic bit has the same indent as the rest of the language regex files so the fact it doesn't when I have copied it here makes me think there is something wrong...
|
27 January 2020, 22:35 | #55 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 1,894
|
Had a slight fiddle with the indents and yesssssss - all works fine!
Thanks Mick! |
27 January 2020, 22:45 | #56 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 1,894
|
For information, you can make labels in two ways in Blitz; either with a . or a : i.e.
.loop or loop: Only the colon version of the labels are being picked up by Atom in the symbols list. Would it be possible to pick up the other way too? Not sure if there is an difference - maybe I just need to use : instead of . ? |
28 January 2020, 11:04 | #57 | |
Registered User
Join Date: Oct 2008
Location: Finland
Posts: 643
|
Quote:
|
|
28 January 2020, 17:17 | #58 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 1,894
|
Great - thanks.
|
28 January 2020, 20:32 | #59 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 1,894
|
I have discovered another slight issue. If the program your are compiling is too large then Blitz asks you either to increase memory by 150% or Make Smallest code. Unfortunately, if this box pops up then the compiling process freezes and you need to reset Winuae.
The solution I have found is to open the file manually in Blitz and go to the compiler options and click the 3rd button down - Make Smallest Code. Then save the file. Now when you compile from Atom it loads with this additional setting which gets over the memory issue. If there is a better solution then please let me know. Unfortunately, I can't find anyway to make this a permanent change without loading the program, changing the setting and then saving it. This is because in SuperTed there is no option to globally save the settings. Hope this all makes sense? |
28 January 2020, 20:57 | #60 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 1,894
|
Sorry - me again. I converted all my labels from . to : so they show up in the side bar but I have found another bug. If the label ends with a number then it's not picked and displayed at the side so:
Loop: - is fine Loop1: - is not Loopy - is fine Loopy1 - is not Obviously, knowing this you just have to make sure all your labels only contain letters. Sorry! |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Text/coding Editor | Torqual | support.Apps | 19 | 08 September 2022 22:28 |
BB2 User Defined Language for Notepad++ | MickGyver | Coders. Blitz Basic | 105 | 21 February 2020 21:13 |
Looking for FizEd text editor | apsteinmetz | request.Apps | 2 | 12 April 2019 22:12 |
new text editor | flipper | Coders. Tutorials | 8 | 17 December 2007 10:57 |
Text editor for A500 | oldpx | request.Apps | 12 | 19 December 2002 02:02 |
|
|