Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, Baklazhan, Ayumi, Hanky27), 1,387 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
bmap_lock #354325
01/17/11 18:37
01/17/11 18:37
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline OP
Senior Expert
Superku  Offline OP
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
I cannot seem to get bmap_lock() to work properly, it always returns 8888 (on 24bit bitmaps). I've tried it with pre-defined and with dynamically created bitmaps and I've used bmap_to_format() directly in front of it.

I'm using 8.10.1, would be nice if anyone could make a test on that issue!


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: bmap_lock [Re: Superku] #354326
01/17/11 18:49
01/17/11 18:49
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
The following demo works with A8.02.0.
I don't have A8 installed yet.
Maybe, it serves as a testing ground.
http://www.puppenheim.org/snowing2.zip

Re: bmap_lock [Re: Pappenheimer] #354327
01/17/11 18:57
01/17/11 18:57
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline OP
Senior Expert
Superku  Offline OP
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Thanks Pappenheimer, but your code (bmap_lock) returns 8888, too. (Btw. the second "=" in if(format == 8888) is missing in your code.)
I want to have a different format than 8888, in particular 888.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: bmap_lock [Re: Superku] #354330
01/17/11 19:45
01/17/11 19:45
Joined: Apr 2010
Posts: 172
W
wdlmaster Offline
Member
wdlmaster  Offline
Member
W

Joined: Apr 2010
Posts: 172
Yes, i can confirm this (using A7). It returns (and has always returned) 8888 - no matter what format the bitmap is.

a month ago, Caermundh came to the same conclusion:
Originally Posted By: Caermundh
I tested using 8888 and 24 bit bmaps, then 8888 and 32 bit bmaps. After that, i tried 888 and 24 & 32 bit bmaps. the only time anything worked was when i used 8888 and my bmaps were 32 bit.

I actually ended up dropping the bmap_createblack() call and using 2 bmaps instead. (BMAP* bmp1 and BMAP* bmp2). As stated, wdlmasters code worked perfectly once I saved the bmaps as 32 bit in Photoshop - pixel_to_bmap() also worked fine as well.

Once I saved the bitmaps in photoshop as 24 bit( as well as changing the code to use 888 format), pixel_to_bmap() simply wouldnt write pixels to the bitmap - as well as wdlmasters code.

Curiously, the format returned by bmap_lock was 8888 - period. Whether I was locking a 24 bit bmap or a 32 bit bmap - it returned 8888 like it thought it was dealing with 32-bit. At the time, I didnt pay any attention because the manual had stated that formats are automatically "upconverted" depending on the video card. Maybe bmap_lock() is the culprit?


Re: bmap_lock [Re: wdlmaster] #354333
01/17/11 19:48
01/17/11 19:48
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline OP
Senior Expert
Superku  Offline OP
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Ok thanks, I will make a bug report then.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: bmap_lock [Re: Superku] #354340
01/17/11 20:30
01/17/11 20:30
Joined: Jun 2010
Posts: 29
N
Nomi Offline
Newbie
Nomi  Offline
Newbie
N

Joined: Jun 2010
Posts: 29
hi leute hätte mall ne frage wie kann man ein panel verschieben

wen ich es mit pan_create erstellt habe?

mit pan_setpos gehts ürgend wie net.

mfg Nomi

Re: bmap_lock [Re: Nomi] #354345
01/17/11 20:57
01/17/11 20:57
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline OP
Senior Expert
Superku  Offline OP
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Was soll dein Post bitte in diesem Topic?!


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1