18 July 2019, 09:25 | #201 |
Phone Homer
Join Date: Jun 2006
Location: 5150
Posts: 5,773
|
Thanks ill check out REDShapez
|
10 September 2019, 03:02 | #202 |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,332
|
RedShapeZ is quite useful. You can use it to grab sprites automatically if you've laid out your shapes in a (visible) grid.
|
10 September 2019, 17:00 | #203 |
Registered User
Join Date: May 2017
Location: Dublin Ireland
Posts: 46
|
software failure
New to Blizbasic, and playing about with some of the code on the ultimateblitzbasiccd e.g. triplanes.bb2 in Examples/tedsdemos folder
However, when compile and run, they run fine but when I exit the relevant demo, it always results in "program failed (error #87000004) Wait for disk activity to finish. Suspend or Reboot. Tried some of the other examples same result. Also Tried 'compile and run' and 'create executable...' Using winuae 4.2.1, BB2.1 + A1200 configuration + blizzard 030, os 3.1 running in a window. Maybe has to be an absolute vanilla A1200 to run correctly perhaps ? |
10 September 2019, 19:03 | #204 | |
Registered User
Join Date: Oct 2008
Location: Finland
Posts: 643
|
Quote:
|
|
10 September 2019, 23:11 | #205 |
Registered User
Join Date: May 2017
Location: Dublin Ireland
Posts: 46
|
Thanks, copied the installer from:
http://aminet.net/package/dev/basic/ubbinstall to the ultimate bb cd and ran that. 2 assigns - blitzlibs and blitz2. No errors or issue running compiling or installing. But will try a re-install using that other link just in case. edit: am pretty sure it's due to something on my uae config unfortunately as I get the same result when try to run any of the 'pre compiled' BB executables on the ultimate cd e.g. blitz2_pddisk2\worm\ Thanks Last edited by activist; 10 September 2019 at 23:23. |
26 September 2019, 15:36 | #206 |
Registered User
Join Date: May 2017
Location: Dublin Ireland
Posts: 46
|
another noob question with winuae with rtg enabled.
When run a blitz game demo from workbench sometimes the native screen the blitz game runs on is hidden. I can hear game sounds, but no video. stays on the workbench screen but is frozen until the blitz demo in the background or native screen ends. Have set both native and rtg as 'windowed' in winuae display options. Is there a way of switching from rtg to native if doesn't happen automatically. Or do I have to configure something in picasso96 prefs in workbench for this. Doesnt happen for every blitz game/demo. Just some. thank you. |
30 September 2019, 02:47 | #207 |
Registered User
Join Date: Mar 2018
Location: Austria
Posts: 617
|
In AB2 when printing output to cli (not opening any windows or screens) - I just get a cli in full width, but only with 4 lines. Anyway to create a bigger cli window for standard output?
|
11 October 2019, 17:12 | #208 |
Registered User
Join Date: Mar 2018
Location: Austria
Posts: 617
|
I have a problem with ReadFile and Inkey$ when the Debugger is running. It normally works fine, but with active debugger it says "No currently used object!"
Code:
if readFile(0,"filename") fileInput 0 y=asc(inkey$) <- error or bla=cvq(inkey$(4)) <- same closeFile 0 (Blitzbasic 2.42. Without debugger this never happens. With debugger always.) |
13 October 2019, 17:29 | #209 | |||
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,335
|
Quote:
Quote:
Quote:
|
|||
14 October 2019, 02:10 | #210 | |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,332
|
Quote:
|
|
17 October 2019, 15:15 | #211 | |
Registered User
Join Date: Mar 2018
Location: Austria
Posts: 617
|
Quote:
Another question: when drawing 2d on a bitmap with line, boxF and all that I don't have to care about clipping, right? I deliberately drew out of the bitmaps bounds and it didn't crash, but maybe that doesn't prove anything if there's enough free ram around the bitmap |
|
17 October 2019, 15:39 | #212 |
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,335
|
Hmmm, normally the drawing commands *aren't* clipped, and will trigger the debugger when they draw out of bounds. They will silently overwrite neighbouring memory without the debugger, which could also be another area of the same bitmap causing graphical glitches, or damaging code or data. So I would make sure that there's no way your code can draw outside the bitmap.
|
05 November 2019, 15:23 | #213 |
Registered User
Join Date: Mar 2018
Location: Austria
Posts: 617
|
First I was surprised that you have to take care about clipping, but then again.. not lol.
Thx for all your help daedalus! Is it ok if I ask more? I'm in the process of learning Blitz, but lack of namespace and complete documentation and all those language additions make it a little jungle to wrestle through Is there a function to return the filename of a path+name or do I have to build one from "Instr" and co? Is scroll and blockscroll the same? The reference mentions scroll in the chapter about 2d drawing. Code examples seem to use blockscroll more often. I didn't find info about it. And is there a way to get an overview about the language additions and/or libraries that came later? |
05 November 2019, 16:07 | #214 | ||||
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,335
|
Quote:
There is a clipped blit command you can use, but it's much slower than normal blits because every blit needs to be checked to make sure it's not beyond the boundaries of the bitmap. It's much quicker to just ensure your code can never produce a blitting location outside the bitmap. Quote:
Code:
Function.s dos_FilePart {filename.s} fptr.l = FilePart_(&filename.s) If fptr filepart.s = Peek.s(fptr) Else filepath.s = "" End If Function Return filepart.s End Function Quote:
As an aside, the Block command is the equivalent fast-with-alignment-restrictions counterpart of the Blit command. Quote:
|
||||
05 November 2019, 18:14 | #215 | |
Warhasneverbeensomuchfun
Join Date: Jun 2001
Location: Rio de Janeiro / Brazil
Age: 41
Posts: 3,450
|
Quote:
It's really funny having to code around the bugs of the compiler/debugger of the IDE you are using..... |
|
05 November 2019, 18:24 | #216 | |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
I used banks, and processed the data directly using peek, peek$ and poke etc..
Quote:
|
|
16 November 2019, 05:26 | #217 |
Registered User
Join Date: Mar 2018
Location: Austria
Posts: 617
|
Thanks Bippy.
When I use a coplist display instead of a slice I can't seem to change the current used colors with the "RGB c, r,g,b" command. Is this correct? Would I have to change a palette object and use DisplayPalette coplist,palette to make it active (copy it to the display palette)? Is there a way to directly change sprite colors with some other command? Thanks in advance for your help guys! |
16 November 2019, 16:22 | #218 |
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,335
|
There's no command to set the colours on a Coplist display directly as such, no. Modifying a palette object and then applying that to the display is one way to do it, or you can poke the values required directly into the colour registers for maximum efficiency.
|
20 November 2019, 08:26 | #219 |
Registered User
Join Date: Oct 2019
Location: Spain
Posts: 23
|
Mixing Blitz code with assembly
Hi to all
I have read in the Blitz programmer guide the possibility of using most of the commands directly for assembler using TokeJsr and passing the various parameters in the CPU registers. I have done various tests and the results are OK. But this system don't work with the DisplayLibrary's commands. I followed the basic guideline ( first parameter->D0, second->D1, or A0.. if a address, etc..) with no result. Is there any way to use these commands from assembly or some document that talks about how to do it ? I hope there is some way to do this Thank you very much in advance... |
20 November 2019, 14:38 | #220 | |
Registered User
Join Date: Mar 2018
Location: Austria
Posts: 617
|
Quote:
- move #color, $register (like $dff180), did not work. it just blinks at the top of the screen, but looks like its overwritten immediately (by the copperlist I guess). Just feedback, thx for the help. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[blitz basic] How much amiga-blitz friendly is this? | saimon69 | Coders. Blitz Basic | 105 | 21 April 2022 19:45 |
Blitz Basic (1) | Retro1234 | Coders. Blitz Basic | 9 | 18 February 2016 17:54 |
Blitz basic 2 Help | Havie | Coders. Blitz Basic | 30 | 08 September 2013 09:15 |
Blitz Basic 2 anyone? | jobro | request.Apps | 12 | 28 November 2005 18:15 |
Blitz Basic 2 | LaundroMat | Retrogaming General Discussion | 5 | 24 July 2001 08:10 |
|
|