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
2 registered members (AndrewAMD, Ayumi), 1,395 guests, and 4 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
Panel digits not redrawing (OMG I'm a noob again!) #147678
08/13/07 15:53
08/13/07 15:53
Joined: Apr 2005
Posts: 67
InnerSpace
dudeBot Offline OP
Junior Member
dudeBot  Offline OP
Junior Member

Joined: Apr 2005
Posts: 67
InnerSpace
So, I making the move to liteC, and I cant
seem to accomplish what should be a simple task.

As I'm sure most of you do, I use panels with digits for debugging,
but the panel display appears to be drawing the back buffer to
the current screen buffer. I thought setting the REFRESH flag
in the panel would take care of that, but it doesn't.

Here the script in case I've missed something.

Code:
  
FONT* gFont= "ackfont.pcx";

int testVar = 0;

PANEL* outputPanel =
{
layer = 1;

digits(10,10,3,gFont,1,testVar);

flags = REFRESH | VISIBLE;
}





In a while(1){ wait(1); } loop
I am incrementing testVar by 1.


I just love startin all over

Re: Panel digits not redrawing (OMG I'm a noob aga [Re: dudeBot] #147679
08/13/07 16:19
08/13/07 16:19
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
I haven't understood what you write about the back buffer and also have never heard about a REFRESH flag, but using panels is described in detail in the tutorial in the second and third lesson.

Re: Panel digits not redrawing (OMG I'm a noob aga [Re: Tobias] #147680
08/13/07 16:31
08/13/07 16:31
Joined: Apr 2005
Posts: 67
InnerSpace
dudeBot Offline OP
Junior Member
dudeBot  Offline OP
Junior Member

Joined: Apr 2005
Posts: 67
InnerSpace
Thanks for the reply.

I have and use the manual and the lite-c workshop but didn't
find anything that addressed this issue.

I did however figure it out, so I won't go into detail
about double buffering, and maybe the "refresh" flag is something
that I made up, but I have used it as a setting in the flags = ...
for panels w/o errors so I dunno.

Anywho...

To get ramped up, I was just doing some test scripting, but I
was doing it without loading a level. So just to see what would
happen, I loaded an empty .wmb, and now the front buffer clears
out before drawing the back buffer, like it should. Hurray



Re: Panel digits not redrawing (OMG I'm a noob aga [Re: dudeBot] #147681
08/13/07 17:23
08/13/07 17:23
Joined: Apr 2005
Posts: 67
InnerSpace
dudeBot Offline OP
Junior Member
dudeBot  Offline OP
Junior Member

Joined: Apr 2005
Posts: 67
InnerSpace
OK, so I retract my "I did however figure it out" statement
as well as my yellow and green happy faces.

It did work in windowed mode, but if I set the script for fullscreen,
the value doesn't even get updated at all. I'm starting to miss C-Scipt

Re: Panel digits not redrawing (OMG I'm a noob aga [Re: dudeBot] #147682
08/13/07 17:46
08/13/07 17:46
Joined: Apr 2005
Posts: 67
InnerSpace
dudeBot Offline OP
Junior Member
dudeBot  Offline OP
Junior Member

Joined: Apr 2005
Posts: 67
InnerSpace
Here's some new info that may help shed some light on this problem.
It really just makes me more confused , but maybe it will help
someone with more liteC experience to diagnose the issue.

Like I said I'm just tinkering around with the script to get a
handle on it, so I just added script to create a new view, switch to it,
and then rotate the view around the center of a block in my level.
Out of curiosity, I changed the variable to be displayed in my panel
to diplay the pan of the view I created. It worked in both fullscreen
and windowed mode. So that's cool, but it still leaves me wondering
the other variable wasn't displayed as being incremented in fullscreen
mode, but was in windowed.

Thanks in advance for any help with this.

Re: Panel digits not redrawing (OMG I'm a noob aga [Re: dudeBot] #147683
08/13/07 22:57
08/13/07 22:57
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

Have a look at my post : Integers

to solve my problem
I'm working with var now and not with int.

Ottawa.

Re: Panel digits not redrawing (OMG I'm a noob aga [Re: Ottawa] #147684
08/14/07 15:20
08/14/07 15:20
Joined: Apr 2005
Posts: 67
InnerSpace
dudeBot Offline OP
Junior Member
dudeBot  Offline OP
Junior Member

Joined: Apr 2005
Posts: 67
InnerSpace
Thanks.

Your right, changing the data type from int to var now displays
the digits being updated in both windowed and full screen mode.

What's still freakin me out a little bit , is why the
the window mode would effect the display. I know that the variable
set as an int is incrementing, because I used its value as a condition
in a for loop, but it just aint displaying as being incremented in the
panel when I'm in fullscreen.

Anyway, thanks again for pointing me to your post.

Re: Panel digits not redrawing (OMG I'm a noob aga [Re: dudeBot] #147685
08/15/07 18:40
08/15/07 18:40
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi dudeBot!

I'm using VAR until I finish my migration and then
I'm going to start making changes to the integers
and see the reults.

Ottawa ... happy to help


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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