Latest Uploads
Sample Bio ... ph Fractal


Biomorph Fractals




Rpg items


Duck Invaders


Smaller Scar?


Forum Home

stream error

Posted : Monday, 24 January 2011, 11:56 | Permalink

With this code


I get a "stream does not exist" error.

Posted : Monday, 24 January 2011, 12:07 | Permalink

WW Entries : 8
I haven't tried running the code, but could it be that 'A_FILE' on the last line should be 'A_FILE$'?

A mushroom a day keeps the doctor away...

Keep It Simple, Shroom!
Posted : Monday, 24 January 2011, 12:30 | Permalink

I think Jay mentioned that once it's defined as a string then the dollar sign may be optional.

I'll try it though since that was the syntax method I used mostly during school.

** Nope. The software does the same even with the dollar sign.

** When using FILETYPE(...), is the value returned 1,0,-1?
I'm getting conflicting documentation.

Posted : Monday, 24 January 2011, 12:32 | Permalink

WW Entries : 9
To be honest it almost impossible to read formatted like that (are the semi-colons Blitz comments?).

What is the code actually meant to do?

Posted : Monday, 24 January 2011, 12:46 | Permalink

Here's the edited code for better reading.

The code reads from two files adds the contents and then writes the information back to a file.

Posted : Monday, 24 January 2011, 13:59 | Permalink


Seeking back to start on end-of-file should work exactly as you intended:

stream test 2011-01-24

I see only '2' other thingies that are 'missing' in the code that you posted.
First, the handler for the "." and ".." folder items (which you catch using a filetype check).
Secondly, the check for non-existing files (which is not caught using the same filetype check).

folder entry test 2011-01-24

I have not previously encountered Blitz bugs with file streams (only network streams ^^), so I'm quite sure the problem can be easily traced in your code.
Perhaps if you post some more code, it'll become clearer what's causing the problem.
Perhaps dealing with how handles are closed (and opened), and how files are created, written to, or perhaps deleted, while possibly still being in a loop.

The above 2 programs show various file and folder handling mechanisms that I did not see in your code which I hope you find beneficial

shroom_monk: One of the things I love most about Blitz is that after initial declaration of a variable (e.g. A_FILE$), Blitz no longer demands a identifier's type specification
Similarly: Dim MyArray.MyStruct( .. ) and Global Integer% where % is Blitz's default, which can be omitted entirely
Homepage :
Posted : Monday, 24 January 2011, 14:01 | Permalink

WW Entries : 8
Teasy One of the things I love most about Blitz is that after initial declaration of a variable (e.g. A_FILE$), Blitz no longer demands a identifier's type specification

That's not a good thing! That just encourages sloppy coding!

A mushroom a day keeps the doctor away...

Keep It Simple, Shroom!
Posted : Monday, 24 January 2011, 14:07 | Permalink

|edit| *LoL*
A lot of new replies while I was typing! |edit|

DNA: Do you close the 2nd file (F2) somewhere else in the code?
I don't see it being closed in this code (CloseFile).
I also do not see the folder being closed (CloseDir).


shroom_monk: I come from an overly Strict background
Homepage :
Posted : Monday, 24 January 2011, 19:46 | Permalink

Here's the entire source for the routine.


Posted : Tuesday, 25 January 2011, 10:45 | Permalink

These functions you posted are good Teasy. Are there any for font smoothing in B2D?

Posted : Sunday, 30 January 2011, 11:55 | Permalink

yes, there are many, dna
my favorite is my 'textoutline' function, which is kinda slow, but u have full freedom of color choice every frame etc.
and it works the same as Blitz's Text function, with some added parameters for colors.

i've posted my rendering library here:
which contains that function.

i'll demonstrate its usage in this program:
textoutline demo - the truth is in here

i also created a 'cache text' function
which wraps this in a memory inefficient (^^) system
to maximize the speed.

instead, i recommend the 'lazypro lib' featurette:
the cachedraw library

which works like this:
the rendering happens in a localized way
and completely independently so.
and the cache is only updated
if your specified parameters change.


a real font smoothing function
is for example my 'font shaper live'
also featured in my game called terra colony.

originally written in 2003,
and suited especially
for making fixed-width fonts look great!

this code includes demonstration:
Font Shaper Live

and finally, something really fancy (yet simple),
a dynamic font bitmapper (on the fly)
which takes any fixed or variable width font
and scales and colorizes it to your liking
with 'lazylib' style interface.

code includes demonstration:

Homepage :
Posted : Monday, 31 January 2011, 09:54 | Permalink

Are some of these written in BMax?
I get a memory access violation

** I got most of these to run except for the vari font lib which still gives me a memory access violation.

These work but all have jaggies much worse than the normal B2D loadfont at any size.

The problem I was having entailed having jaggies only around the edge.

Posted : Tuesday, 01 February 2011, 12:44 | Permalink

nope, none for blitzmax.
do u get the error with debug mode turned on?
if so, where does the error occur?
Homepage :
Posted : Wednesday, 02 March 2011, 19:57 | Permalink

I got the font to display but it is not pretty like your terra colony.
Perhaps something I'm not setting?

-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 569|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Latest Posts
Rhythm Heaven Megamix
Jayenkai Sun 16:45
Nintendo Switch
rockford Sun 13:35
Red Dwarf XI and XII
Jayenkai Sun 13:03
Spinal's Search for Tech
Jayenkai Sun 10:52
Mouse select text
Afr0 Sun 07:54
Kuron Sat 19:03
Crash and Burn
Kuron Sat 18:25
therevillsgames Sat 18:14
Gilberts Egggg
Afr0 Sat 17:30
An uncanny resemblance.
Kuron Sat 16:21

Latest Items
Link : Character generators! :D
Afr0 Sun 07:58
Woot : Getting Noticed... for Gameboy Dev!
Afr0 Sat 17:17
Blog : Spilling my Noodles
Jayenkai Sat 13:15
Dev-Diary : 1st Ever Wed Workshop Progress
zzoom Thu 23:12
Showcase : Biomorph Fractals
Andy_A Wed 12:43
Snippet : Fisheye Lens Effect
Jayenkai Wed 11:50
Snippet : 2D Balls
Jayenkai Wed 06:22
Showcase : Mining Map AI Demo
Stealth Tue 19:41
Showcase : Biotic Limit - Games For Better (2 Days) Edition
rychan Mon 12:27
Dev-Diary : Intellivision Controller Adapter
spinal Sun 11:33
Snippet : Contour Map from Data
HoboBen Fri 18:14
Snippet : FPS Control (WASD+Mouse)
Pakz Wed 22:30
Article : Concurrency in C#
Afr0 Sun 12:28
News : Newsletter #281
HoboBen Fri 04:18
News : Newsletter #280
Jayenkai Sat 05:10

Who's Online
Sun, at 17:47
Sun, at 17:32
Sun, at 17:23
Sun, at 16:07
Sun, at 15:54
Sun, at 15:49
Sun, at 15:16
Sun, at 14:58
Sun, at 14:18
Sun, at 14:17
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.