Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - venex

Pages: [1]
1
I'm hesitant to upgrade in case it messes it all up again.
You don't need to upgrade your current QB64 installation, you can unpack QB64 v1.5 to a separate folder and run it from there. Technically, you can have as many different QB64 versions as you want, without breaking any of them.

It says you're a QB64 dev, I imagine it would be easy enough for you to try 4 lines of code in your QB64.
Have you bought QB64 or paid for support to make such demands?

BTW. I checked the code and it still fails to compile on QB v1.5 with exactly the same error as in QB v1.4 and QB v1.3.

2
QB64 Discussion / Re: RAM Disk for temp/work files
« on: January 22, 2021, 04:48:03 am »
Honestly, modern SSD drives can hold more writes than you think. A 10-year old Intel X25-M was guaranteed to handle writing 20GB of data per day for 5 years. Technology has improved a lot since then. I bet your disk will be trashed much more quickly by a browser cache while you're reading this forum, than by coding with QB64 :)

3
QB64 Discussion / Re: Newbie question about 8-bit screen in new QB64
« on: January 21, 2021, 12:58:55 pm »
Thank you very much guys for your help!

I read the materials you linked and also had a quick look at the QB64 source code of internal/c/parts/video/image/src.c and I think I understand a little bit better now how it works.

@Petr your code rocks! I changed my initial program from:
Code: QB64: [Select]
  1. i = _LOADIMAGE("sample.png")
  2.  

into:
Code: QB64: [Select]
  1. i = LOADIMAGE256("sample.png")
  2.  

and now everything works like a charm :) Thank you!

4
QB64 Discussion / Re: Newbie question about 8-bit screen in new QB64
« on: January 20, 2021, 06:04:43 pm »
Thanks for the tutorial link. However, the problem I have is not with drawing, but with loading images. One example of a game which has this problem is Barbarian 1987 from http://barbarian.1987.free.fr/download/download.htm written in QB64 SDL. You can compile it with QB64 v1.4, but it will crash at runtime, because it has problems loading 8-bit image assets. This does not happen when the game is compiled with QB64 SDL. I would like to know if it’s a bug with _PUTIMAGE or maybe something else.

5
QB64 Discussion / Newbie question about 8-bit screen in new QB64
« on: January 20, 2021, 04:50:38 pm »
I have a simple program, which works fine with QB64 SDL in Windows 10:
Code: QB64: [Select]
  1. i = _LOADIMAGE("sample.png")
  2.  

The sample.png is an 8-bit 320x200 image.

The code compiles with the latest QB64 without errors, but when I try to run the executable I'm getting the following runtime error:
Quote
Line: 3 (in main module)
Illegal function call
Continue?

The same thing happens when the first line of the program is
Code: QB64: [Select]
  1. SCREEN _NEWIMAGE(320, 200, 256)
  2.  

but when I change it to
Code: QB64: [Select]
  1. SCREEN _NEWIMAGE(320, 200, 32)
  2.  

it works and displays the image.

Problem is that many tutorials, examples and games I found online use SCREEN 13 and other 8-bit modes. How can I run them with the latest QB64? Many times simply changing to 32-bit mode does not help, because a program manipulates the color palette with _COPYPALETTE, or uses LOCATE to display text, which also seems not to work in 32-bit screen modes.

6
QB64 Discussion / Re: QB64 IDE issue on Mac Retina display
« on: January 19, 2021, 04:05:37 am »
Hi, I checked the development build on my old Macbook Pro with High Sierra 10.13.6 and the newer one with Catalina 10.15.7. I tried running the compiled binary and then rebuilding with setup_macosx.command. On High Sierra recompilation was necessary, because the qb64 binary didn't work out of the box, as it was apparently built on a later system. In both cases recompilation went smoothly and after that qb64 launched just fine. Anyway, in all cases I tested with the development build, on both Macbooks, the screen now looks correct. Thanks!

7
QB64 Discussion / Re: QB64 IDE issue on Mac Retina display
« on: January 18, 2021, 04:36:59 pm »
I had the very same problem and I resolved it by modifying the source code and recompiling QB64. I attached the patch to this post. Put it in the qb64 folder, open the terminal, go to that folder and run the following commands:
Code: [Select]
patch -p0 < retina_patch.txt
./setup_osx.command
You must have Xcode command line tools installed for recompilation to work.

Pages: [1]