Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / EXE problems

Author
Message
Zotoaster
20
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 13th Aug 2005 16:10
Im having trouble when I export my games as EXEs, I don't know if this happens to others, but if I have text showing up, it writes it in its normal size, and then at the size i set it too, and it comes up with two of the same string, just different sizes, can anyone help with this?

"Well if she dies it'll teach her not to do it again..." - Me
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 14th Aug 2005 04:27
That's happening because you are trying to print lines of text in different sizes on the screen right?

I think it was intended that you can change the size of text, but all the text on the screen has to be in the chosen size.

Try putting a Sync after each use of the Set Text Size statement.

TDK_Man
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 14th Aug 2005 10:12
I don't know. I think it's like this


first, the size is set to 16. The first time, hello is 16 in size. But then, you change it to 32: hello2 will be 32 in size.
Then it restarts the loop, but the size is still 32. And you're not clearing the screen -> 1 small "hello" and 1 bigger "hello".

This is what I think. I could be wrong because I didn't see your code.

Immunity and Annihalation makes Immunihalation...
Zotoaster
20
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 14th Aug 2005 13:08
well i cant be sure which one of you is right, so ill try both things

thanks

"Well if she dies it'll teach her not to do it again..." - Me
Zotoaster
20
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 14th Aug 2005 21:20
but wait, why would this only happen in the EXE?

"Well if she dies it'll teach her not to do it again..." - Me
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 16th Aug 2005 03:12 Edited at: 16th Aug 2005 15:58
My theory (and it's only a theory) is that it's timing problems in DBC.

When running interpreted it's a tad slower. Compiled, that little extra speed means some things don't happen correctly.

I've had what I think are related problems with Get and Paste Image.

If they are tightly packed together in a tight loop grabbing an image, writing to the screen and then pasting the image you just got, in the exe, the operation takes too long and the paste line is missed.

If you add a Wait 1 after the Get Image, it flickers in the interpreted version, but is OK in the exe.

I think a similar thing is happening when you are using Sync and changing text sizes on the same screen.

An extra Sync often slows things down enough to correct the problem and sometimes I've had to use two Syncs.

Just a suggestion and may well be bs...

TDK_Man

Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 16th Aug 2005 10:01
I see there's a 3D background with your game, so my suggestion wasn't right. (X-Ball demo). I saw your problem, and I have to say it's very weird because the DBC editor doesn't do this.

You can only try...

Immunity and Annihalation makes Immunihalation...
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 17th Aug 2005 23:17
TDK could be right (the issue's generally called a 'race condition'), or it might simply be that whatever mini-interpreter that exists on compiled EXEs handles certain things differently than how the interpreter internal to DBC handles things.

[Insert extremely witty comment here] :: Add me to MSN if you like, but don't expect any big favours [unless you like VB6]. ... IDK!!
Zotoaster
20
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 17th Aug 2005 23:34
hmm, well it doesn't matter, im going to checge it soon enough anyway to textures plains, and they will look like holograms , heheheheh


blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 17th Aug 2005 23:56
Ooh, neat.

Do me a favour, and save the textures as JPEGs or PNGs, would'ja? That way, there may be a chance the download size will be small enough for me to bother to download your game...

[Insert extremely witty comment here] :: Add me to MSN if you like, but don't expect any big favours [unless you like VB6]. ... IDK!!

Login to post a reply

Server time is: 2025-05-22 04:01:40
Your offset time is: 2025-05-22 04:01:40