Search found 16 matches

by Toris
Sun Aug 17, 2003 5:53 pm
Forum: Coding Questions
Topic: Extracting, and Creating Zip Archives
Replies: 2
Views: 1201

Extracting, and Creating Zip Archives

Hi,

I've searched the forum for information about extracting and creating zip archives from within PureBasic, but I was only able to come accross information about rars.

So, I was wondering if anyone had any information about how to do this. There will only be 1 file per archive.

What I wish to ...
by Toris
Sat Aug 09, 2003 11:00 am
Forum: Coding Questions
Topic: Refreshing a sprite window
Replies: 2
Views: 1115

Well, it's probably not the best way of doing it, but I've created a seperate thread that refreshes the window 10 times a second. If anyone knows of a better way of doing this, I'd love to hear it :)
by Toris
Fri Aug 08, 2003 5:01 pm
Forum: Announcement
Topic: Webcam game, like Eye Toy Camera of PSX2
Replies: 24
Views: 14984

Yep, that's done it :)

I can now see the webcam output, and the motion detection, but the game part, appeared once, in the bottom right corner of the window, but seems to have disappeared now :?

Looking good :)
by Toris
Fri Aug 08, 2003 2:36 pm
Forum: Announcement
Topic: Webcam game, like Eye Toy Camera of PSX2
Replies: 24
Views: 14984

Nope, unfortunately it still crashes.

I open it up, select my webcam, about half a second passes, and the window turns into a large (about 800x600?) window, then it crashes. "iCamGame has generated errors, and will be closed by windows"

Still, good luck :)
by Toris
Fri Aug 08, 2003 12:38 pm
Forum: Coding Questions
Topic: Refreshing a sprite window
Replies: 2
Views: 1115

Refreshing a sprite window

Hi,

I've got a window, that is a sprite screen, which I need to redraw every time part of it is overdrawn.
Currently, when a window goes over the top of this sprite window, it is not re-drawn. I need to redraw the window whenever a part of it is overwritten.
I have tried #PB_Event_Repaint, but this ...
by Toris
Fri Aug 08, 2003 12:05 pm
Forum: Announcement
Topic: Webcam game, like Eye Toy Camera of PSX2
Replies: 24
Views: 14984

Yep, the same happens for me (crashes once I've selected my webcam), I hope you fix this bug though, it sounds interesting...

I was once going to do something along the lines of this, when I found out about all the security motion detection software you can use your webcam for, but never got round ...
by Toris
Fri Aug 01, 2003 4:52 pm
Forum: Coding Questions
Topic: Drawing a sprite onto a window
Replies: 9
Views: 2581

I was using v3.62, but I've just downloaded the update, and upgraded to v3.72.

I've tried your source code, and it works exactly how I want it to.

I shall take a look through it, and try and understand the alterations you have made.

Many thanks!
by Toris
Fri Aug 01, 2003 10:32 am
Forum: Coding Questions
Topic: Drawing a sprite onto a window
Replies: 9
Views: 2581

Hello again, here is the whole of my source file, the files testlvl and testback, are 320x240 bitmaps, but they will range from any size from 320x240 to 640x480.

Thanks...


;- Window Constants
;
#GlooPWindow = 0
#PreviewWindow = 1

;- Gadget Constants
;
#MainTabPanel = 0
#TopImagePanel = 1 ...
by Toris
Thu Jul 31, 2003 10:35 pm
Forum: Coding Questions
Topic: Drawing a sprite onto a window
Replies: 9
Views: 2581

Thanks for your help :)

Still not working though, I turned off the debugger, and the program crashed.

I added a check:

If EventGadgetID() = #LoadImagesButton
LoadImage(#LevelImage, GetGadgetText(#LevelImageFilename))
UseWindow(#PreviewWindow)
UseImage(#LevelImage)
ResizeWindow(ImageWidth ...
by Toris
Thu Jul 31, 2003 9:50 pm
Forum: Coding Questions
Topic: Drawing a sprite onto a window
Replies: 9
Views: 2581

Is that not what OpenWindowedScreen does?
Do you *have* to open a full-screen screen?
by Toris
Thu Jul 31, 2003 8:42 pm
Forum: Coding Questions
Topic: Drawing a sprite onto a window
Replies: 9
Views: 2581

Drawing a sprite onto a window

Hi,

I'm currently trying to work out how to load a sprite, resize a window to the size of it, create a screen the size of the window, then draw the sprite.
The code I am using to do this, is:


LoadImage(#LevelImage, GetGadgetText(#LevelImageFilename))
UseWindow(#PreviewWindow)
UseImage ...
by Toris
Mon May 05, 2003 10:23 pm
Forum: Coding Questions
Topic: Bitshifting or Dividing on an array?
Replies: 5
Views: 1962

Thank you all for your help.
It's now working perfectly :)
by Toris
Mon May 05, 2003 10:12 pm
Forum: Coding Questions
Topic: Bitshifting or Dividing on an array?
Replies: 5
Views: 1962

Thankyou for the *brilliant* reply!
Now, I have changed the array to a long, which now makes it work perfectly when I manually assign the number.
However, when I load the number into the array using ReadByte(), it obviously does something odd... as it retains the problem, so even if I read a byte ...
by Toris
Mon May 05, 2003 9:30 pm
Forum: Coding Questions
Topic: Bitshifting or Dividing on an array?
Replies: 5
Views: 1962

Bitshifting or Dividing on an array?

Hi,
I seem to be having another problem
I have declared an array:
Dim StorageArray.b(320,240,3)
And I add a value to it:
StorageArray(1,1,1) = 255
Now, when I try and divide or bitshift that value, and write it to a file, I still end up with 0xFF (255):
WriteByte(StorageArray(1,1,1)>>3)
and ...
by Toris
Mon May 05, 2003 7:19 pm
Forum: Coding Questions
Topic: Writing numbers to a file
Replies: 2
Views: 1252

That works perfectly!
Thanks! :D