Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
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 (NnamueN, 1 invisible), 1,489 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Lite-c Digits Bug #249109
01/31/09 15:22
01/31/09 15:22
Joined: Dec 2008
Posts: 106
Germany, Berlin
A
Argon Offline OP
Member
Argon  Offline OP
Member
A

Joined: Dec 2008
Posts: 106
Germany, Berlin
Hi,

Ich bin im 2. Workshop von Lite-c und hab da einen ungewöhnlichen Bug ^^
Und zwar sieht bei mir die Schrift so aus:
http://www.abload.de/image.php?img=hmmyxs8.png

Script:
////////////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>

var a = 0;
var b = 0;
var c = 0;

/////////////////////////////////////////////////////////////////////
PANEL* panDisplay =
{
digits(35, 10, "a = %0.f", *, 1, a);
digits(35, 19, "b = %0.f", *, 1, b);
digits(35, 28, "c = %0.f", *, 1, c);
flags = VISIBLE;
}

/////////////////////////////////////////////////////////////////////
function main()
{
video_mode = 7; // erstelle ein Programmfenster von 800x600 Pixels
screen_color.blue = 150; // und mache den Hintergrund dunkelblau
while (1)
{
c = a + b;
wait (1);
}
}










Hi,

I got a little problem with the Lite-c workshop 2 ^^.
There is a bug on the Script.?
The text style was buggy lol.

Links at the top. ^^


Greets

Re: Lite-c Digits Bug [Re: Argon] #249110
01/31/09 15:24
01/31/09 15:24
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
Your image looks perfectly normal after you have messed with your 3D settings, it's just antialiasing. The manual is your friend:

"Global antialiasing settings in the 3D card settings menu can make panels and bitmap fonts look blurry, depending on the 3D hardware and driver version. Use d3d_antialias for scene antialiasing."

Set your 3D card antialias setting back to application controlled and everything will be fine.

Re: Lite-c Digits Bug [Re: Spirit] #249131
01/31/09 16:42
01/31/09 16:42
Joined: Dec 2008
Posts: 106
Germany, Berlin
A
Argon Offline OP
Member
Argon  Offline OP
Member
A

Joined: Dec 2008
Posts: 106
Germany, Berlin
Haha, i got a Ati Radeon HD3870x2.
I have the Catalyst Center.
But there i can't turn Anti Aliasing off.
I only can set from 2x to 16x and Box or other filters.
Or Temopary Anti aliasing.
But i think the normal anti aliasing is all the time on ^^

Any other ways? ;D

Re: Lite-c Digits Bug [Re: Argon] #249135
01/31/09 16:50
01/31/09 16:50
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
I found the same thing, if you use the "standard" unspecified font.
Set the font to anything else, say "Arial#8" and all should clear up.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Lite-c Digits Bug [Re: EvilSOB] #249140
01/31/09 17:05
01/31/09 17:05
Joined: Dec 2008
Posts: 106
Germany, Berlin
A
Argon Offline OP
Member
Argon  Offline OP
Member
A

Joined: Dec 2008
Posts: 106
Germany, Berlin
Where i can set the font? laugh
i don't find it at the Script.

Re: Lite-c Digits Bug [Re: Argon] #249142
01/31/09 17:17
01/31/09 17:17
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Code:
FONT* arial = "Arial#8";

Put this in the code.

And replace PANEL* panDisplay with this:
Code:
PANEL* panDisplay =
{
	digits(35, 10, "a = %0.f", arial, 1, a);
	digits(35, 19, "b = %0.f", arial, 1, b);
	digits(35, 28, "c = %0.f", arial, 1, c);
	flags = VISIBLE;
}


Re: Lite-c Digits Bug [Re: Cowabanga] #249147
01/31/09 17:28
01/31/09 17:28
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
or even
Code:
digits(35, 10, "a = %0.f", "Arial#8", 1, a);
but Cowabunga's is tidier.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Lite-c Digits Bug [Re: EvilSOB] #249149
01/31/09 17:35
01/31/09 17:35
Joined: Dec 2008
Posts: 106
Germany, Berlin
A
Argon Offline OP
Member
Argon  Offline OP
Member
A

Joined: Dec 2008
Posts: 106
Germany, Berlin
Thanks EvilSOB your's is working.
Cowabanga i get an Error message if i go your way ^^

But thanks mates,
not it looks fine =)

Greets smile


Last edited by Argon; 01/31/09 17:35.
Re: Lite-c Digits Bug [Re: EvilSOB] #249150
01/31/09 17:39
01/31/09 17:39
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Originally Posted By: EvilSOB
but Cowabunga's is tidier.

Mine is better for beginners.

@Argon: What kind of problems?

BTW, My nickname is Cowabanga. Not Cowabunga

Re: Lite-c Digits Bug [Re: Cowabanga] #249155
01/31/09 17:45
01/31/09 17:45
Joined: Dec 2008
Posts: 106
Germany, Berlin
A
Argon Offline OP
Member
Argon  Offline OP
Member
A

Joined: Dec 2008
Posts: 106
Germany, Berlin
When i do your way, he say:
"Error in 'Main' line 13: 'digits' undeclared identifier"

The way from EvilSOB works fine for me.

Hmm but the problem is solved now ^^


Greets laugh

Page 1 of 2 1 2

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