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.

Program Announcements / "Extends" DarkBASIC Professional to another level...

Author
Message
Freddix
AGK Developer
22
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 27th Jun 2006 11:06 Edited at: 27th Jun 2006 11:13
Yes
Settings for clouds density allow clouds to entirely disappear or be really dense (using % for smooth transition)
Mist density make sky become grey. so, it's hide the sun and moon under the clouds. It's an effect I've added to use when you add some rain or snow... (use % for smooth transitions too )

All we have to decide is what to do with the time that is given to us.
Pulsar Coder
21
Years of Service
User Offline
Joined: 3rd Jan 2004
Location:
Posted: 27th Jun 2006 20:27
Any way to make the borders of the sun and moon to fade out with Extends commands? These borders are quite detailed right now ...

~Pulsar Coder
Freddix
AGK Developer
22
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 27th Jun 2006 21:00
with the command :
= RTS Get Loaded Object( ID )
you can access the number of the objects used for the skysystem. The HELP say which ID is which object in the sky.
Using this command, you can modify the object attributes easily
But don't delete them or you'll get an error message !!!

All we have to decide is what to do with the time that is given to us.
Pulsar Coder
21
Years of Service
User Offline
Joined: 3rd Jan 2004
Location:
Posted: 27th Jun 2006 21:13
ok ...

~Pulsar Coder
Xo TwOfAcE oX
18
Years of Service
User Offline
Joined: 27th Jun 2006
Location:
Posted: 28th Jun 2006 03:49
looks great!
Cash Curtis II
20
Years of Service
User Offline
Joined: 8th Apr 2005
Location: Corpus Christi Texas
Posted: 28th Jun 2006 19:31
Hey, I've got a question. I can't make the RTS example go any faster than 60 fps. It says 'Sync rate 0', but it hangs out at 59-63 FPS. I've slowed down the clouds, disables the text, etc, but no luck. Is the RTS system itself locking the framerate?


Come see the WIP!
Freddix
AGK Developer
22
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 28th Jun 2006 19:58
changes from Exclusive fullscreen to windowed, or other mode.
Fullscreen Exclusive is sensitive to your monitor refresh rate so it's generally 60.

All we have to decide is what to do with the time that is given to us.
Cash Curtis II
20
Years of Service
User Offline
Joined: 8th Apr 2005
Location: Corpus Christi Texas
Posted: 28th Jun 2006 21:59 Edited at: 28th Jun 2006 22:00
Aha! You're so right. I'm not used to running anything in fullscreen exclusive mode. That was the problem.

Question number two. I didn't see any pictures, so I'm not sure if anyone has asked about this...



My sun looks very strange in each example. The sun media is a white circle with a black background. It appears that you're ghosting the sun plain. So, if I change the color, I still see clouds behind it.

It seems like we should be able to use a PNG with an alpha channel rather than a ghosted plain. It seems like it would look better. Nothing could show through the center of the sun, but light could fade around the edges.

If I'm wrong, please correct me. It's just what I've seen.

It's a great pack, a LOT of functionality. Great work!


Come see the WIP!

Attachments

Login to view attachments
Freddix
AGK Developer
22
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 28th Jun 2006 22:26
non in fact it's a problem with the clouds.
more the clouds are dense, more the sun appear dark... it's apparently a problem linked to alpha transparency. That's why I've added the command to set could density so user can, with its own texture set the best value to have clouds and bright sun.
I'm already trying to find a solution to make the sun always appear white.
I'll make try with alphaed PNG image to see if I can get better results.

All we have to decide is what to do with the time that is given to us.
JulesD
20
Years of Service
User Offline
Joined: 7th Feb 2005
Location:
Posted: 29th Jun 2006 10:18
Where's the update?
Steve Fash
22
Years of Service
User Offline
Joined: 31st Dec 2002
Location: Doncaster, UK
Posted: 30th Jun 2006 13:41
Has anyone got any demos of some extends commands or videos that they can show us ?
It does look like a great plugin, but it would be nice to see it in action b4 buying it..


For game/demo music for YOUR PC productions visit:-www.futuredevelopments.org.uk
Freddix
AGK Developer
22
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 30th Jun 2006 14:08
@Steve : I Actually prepare some demo to show what eXtends can do.
@JulesD : Not yet out.

All we have to decide is what to do with the time that is given to us.
Steve Fash
22
Years of Service
User Offline
Joined: 31st Dec 2002
Location: Doncaster, UK
Posted: 30th Jun 2006 15:12
Quote: "@Steve : I Actually prepare some demo to show what eXtends can do."

Look forward to seeing it mate

For game/demo music for YOUR PC productions visit:-www.futuredevelopments.org.uk
UDun
19
Years of Service
User Offline
Joined: 28th Dec 2005
Location: France
Posted: 3rd Jul 2006 21:50
First of all, good work Freddix. There are some very interesting functions. I have just some questions. I didn't find any answers in the forum or in your future updates.

1/ XFont Setup Font BitmapFontFile$, BitmapFontNumber, Size, Firstchar, Flag
What is the Flag parameter ?

2/ When we are using the chat system, only bitmap fonts seem to be displayed. Plus, when I am not using bitmap fonts, we only have capitale letters in the chat box. I experimented this in the following example :



3/ As XGUI GET WINDOW XPOS/YPos functions exist, XGUI GET WINDOW HEIGHT/WIDTH can be useful when we strech a window for example.

4/ I don't understand the behaviour with the function "useless". We
initialize the plugin according to the DLL dependancies. But why do we need this :

Without this piece of code, the plugin crashes. Plus, this function is not called by the program. So I don't understand this logic.

Thanks.

Coding is dangerous for health ...
Freddix
AGK Developer
22
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 3rd Jul 2006 23:08 Edited at: 3rd Jul 2006 23:08
hi.

1 / the flag parameter define if font is case sensitive.
if flag is 0 then font is only uppercase. if flag is 1 then your can print using lower/upper case but be sure that your bitmap font contain both uppercase and lowercase A-Z a-z characters. or it will not work correctly.

2 / Yes, chat system is only upercase. If many people ask for both uppercase/lowercase, I can try to add it for a future update.

3 / Added to the "To do list" for a future upgrade.

4 / In fact these commands aren't really useless. It's for cimpiler includes purposes. It force compiler to inludes DarkBASIC Professional DLLs needed by eXtends commands used. You may take a look at DLL Dependencies in the HTML help that give each eXtends DLL dependency.

All we have to decide is what to do with the time that is given to us.
Medieval Coder
19
Years of Service
User Offline
Joined: 31st Dec 2005
Location:
Posted: 4th Jul 2006 00:01
Quote: "If many people ask for both uppercase/lowercase, I can try to add it for a future update."

That could be useful, so if you can add it that would be awesome!

UDun
19
Years of Service
User Offline
Joined: 28th Dec 2005
Location: France
Posted: 4th Jul 2006 00:06
Thanks for your answer Freddix.

About the second point, I think it can be interesting to write lowercase letters. But does the chat system only work with bitmap fonts ? Because, in the example above, I tried with a normal dbp font, I deleted all the XFont commands, but nothing appears in the dialog gadget.

Coding is dangerous for health ...
Habatar
20
Years of Service
User Offline
Joined: 9th Aug 2004
Location: Madrid (Spain)
Posted: 4th Jul 2006 01:07 Edited at: 4th Jul 2006 01:20
Freddix, I send you an email whit a other way to force the compiler to include the needed DLL, whitou the useless function.

Please take a look.

EDIT: I send to dbpro_plugins@xqua.....

Freddix
AGK Developer
22
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 4th Jul 2006 10:37
@UDun : it may work with standard DarkBASIC Professional fonts. I'll check for that problem.

@Habatar : yes, I will use your idea for a future upgrade. Thanks.

All we have to decide is what to do with the time that is given to us.
UDun
19
Years of Service
User Offline
Joined: 28th Dec 2005
Location: France
Posted: 4th Jul 2006 10:40 Edited at: 4th Jul 2006 12:17
Ok, I'll wait for your answer. Thanks.

Edit :
Another question : can we use the XGui-Chat system in a 3D environment ? I used the XGuiChat-System demo and I added, to try, a sphere. The window seems to be behind the backdrop, I think it's the problem with hidden sprites. Is there a solution ?

Coding is dangerous for health ...
Freddix
AGK Developer
22
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 4th Jul 2006 12:54
@UDun : can you send me your test at [email protected] so I'll check. Comment your test with what you think that it may be (instead of what it actually is )

All we have to decide is what to do with the time that is given to us.
Pulsar Coder
21
Years of Service
User Offline
Joined: 3rd Jan 2004
Location:
Posted: 4th Jul 2006 17:11
@Freddix: is the update available?

~Pulsar Coder
UDun
19
Years of Service
User Offline
Joined: 28th Dec 2005
Location: France
Posted: 4th Jul 2006 17:48
Freddix, finally, I succeeded in using the XGui system with 3D objects. I just forgot some commands but now it works. I sent you an email about the font problem with the chat system. I commented the code in french, it's more clear.

Thanks

Coding is dangerous for health ...
BULLSHOCK 2
Retired Moderator
19
Years of Service
User Offline
Joined: 14th Jun 2005
Location: Shocking Bulls
Posted: 4th Jul 2006 18:44
one question before I buy.

In the xgui, can you change the pattern and/or color scheme of the windows and stuff?

i noticed there was a "SKIN" in the commands, does it come with a skin maker? or is it easy to make a skin?


http://www.seqoiagames.com/seqoiacorp/
Freddix
AGK Developer
22
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 4th Jul 2006 20:47
@Pulsar : go to your orders page and download extends again. You'll download the file : Extends_v1_1.zip

@Udun : it may be nice to give your experience about incorporating 3D with XGui so, if someone else encounter the same problem, he'll have the solution

@Bullshock2 : in fact XGUI use Skinned windows composed of small tiles. You can change the entire XGui Windows Skin. All help are given to help you create your own SKIN to use with XGui windows

All we have to decide is what to do with the time that is given to us.
UDun
19
Years of Service
User Offline
Joined: 28th Dec 2005
Location: France
Posted: 4th Jul 2006 23:49
Yes, of course, it's a good idea.

This following example shows a small 3D environment (a soldier on a floor) with a XGui window used to display the dialog (a bitmap font). Here is the code but if you want to compile it, download the attachment.



This little piece of code shows how it's easy to use XGui windows (plus the chat system) in both 2D and 3D environment.

Coding is dangerous for health ...

Attachments

Login to view attachments
sadsack
21
Years of Service
User Offline
Joined: 27th Nov 2003
Location: here
Posted: 6th Jul 2006 04:02
I can't get any of the code to run. see veiw
I tryed to run this easy code here and this is what I get.

Attachments

Login to view attachments
sadsack
21
Years of Service
User Offline
Joined: 27th Nov 2003
Location: here
Posted: 6th Jul 2006 04:08 Edited at: 6th Jul 2006 04:09
Sorry

Attachments

Login to view attachments
Habatar
20
Years of Service
User Offline
Joined: 9th Aug 2004
Location: Madrid (Spain)
Posted: 6th Jul 2006 06:33 Edited at: 6th Jul 2006 06:34
sadsack, in v1.1 by a petition of some users, the four parameter of XGUI CREATE WINDOW have been dissappear.

In your code, change it to:


Ok, by a error the help is not updated. But dont worry, belive me.

trogdor
22
Years of Service
User Offline
Joined: 15th Apr 2003
Location: Portsmouth, VA, USA
Posted: 22nd Jul 2006 20:16 Edited at: 23rd Jul 2006 14:49
@UDun, thanks for the demo, I was looking for something like that. The code worked as you provided, but when I inserted it into my code. I get a

Quote: "Runtime Error 301 - Sprite number must be greater than zero at line 359"


line 359 is XGUI UPDATE in the main do loop.

on top of the 3d environment I'm also using 4 sprites with DRAW SPRITES LAST in my code for a mini map, and a compass.

when I commented out my sprites calls just to see what gonna happen. I got

Quote: "Runtime Error 501 - image number illegal at line 359"

same XGUI UPDATE

any ideas on how to get xgui and sprites to work in the 3d environment? do I need to load all my images and sprites through extends so both sprites and xgui could run on same app??
Freddix
AGK Developer
22
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 23rd Jul 2006 21:18
XGui use eXtends sprites so, if you use srpties with default DarkBASIC Professional instead of the one from eXtends, you may experience that kind of problem.

when you use sprites with eXtends I recommend use something like that :



All we have to decide is what to do with the time that is given to us.
trogdor
22
Years of Service
User Offline
Joined: 15th Apr 2003
Location: Portsmouth, VA, USA
Posted: 23rd Jul 2006 23:21
Sounds good, I expected as much. but when/where do I use your if ThisSprite <> 0 ? I have regular sprites and a xgui.

Do I call it right when I create the regular sprites or do I loop through my regular sprites in the main loop before xgui update command?

Or is it easier to use "SPR Sprite( X, Y, Image )" on all my sprite?


can you PLEEEEEEASE show me using UDun's demo?

Thank you
Duffer
22
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 26th Jul 2006 15:23
@ Freddix - how is latest version coming along? eta?

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Freddix
AGK Developer
22
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 26th Jul 2006 17:13
@Trogdor : I recommend you to work using this way when using eXtends :

1 / Create all constants sprite before the main loop using SPR Sprite( X, Y, IMAGE)
2 / Refresh/Changes all constants sprites in the main loop using Sprite SPR, X, Y, IMAGE
3 / Create/Refresh all non constant sprites in the main loop using the small piece of code I've given upper.

@Duffer : during august 2006

All we have to decide is what to do with the time that is given to us.
trogdor
22
Years of Service
User Offline
Joined: 15th Apr 2003
Location: Portsmouth, VA, USA
Posted: 26th Jul 2006 19:01
thanks Freddix I'll do that
Duffer
22
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 27th Jul 2006 09:02
@ Freddix - excellent...

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Steve J
19
Years of Service
User Offline
Joined: 22nd Apr 2006
Location: Vancouver, Washington
Posted: 4th Aug 2006 01:41 Edited at: 4th Aug 2006 02:31
I am trying to use xgui in a 3d enviroment.

I used this code:




I have a update before the sync, but whenever I try to run it, it gives me an illegal image at the line number of the update. I am using the built in dbp image function for a different thing. Is that the issue? Attached is my custom skin...

edit: I upgraded to 1.1, and now it is saying sprite does not exist, not image

Go to http://www.milkpaton.com/ for Awesomeness
Need php coding? Need your design to be coded? I need GFX. Contact @ [email protected]

Attachments

Login to view attachments
Freddix
AGK Developer
22
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 4th Aug 2006 11:54
it's possible.
ensure that your dbp image function does not load image with the few 20 or 30 firsts images cos eXtends will use them for the XGui.
Try to shift your image loading functino that does not use eXtends by 20 or 30. (same for sprites if you use dbp build in commands.)
If you don't include source code (or send it to me via mail), I can't help more

All we have to decide is what to do with the time that is given to us.
Steve J
19
Years of Service
User Offline
Joined: 22nd Apr 2006
Location: Vancouver, Washington
Posted: 4th Aug 2006 12:30
I will try that

Go to http://www.milkpaton.com/ for Awesomeness
http://phoenixophelia.com
Need your design to be coded? Contact @ [email protected]
MatriX
21
Years of Service
User Offline
Joined: 19th Oct 2003
Location: Deer Park, New York
Posted: 24th Aug 2006 04:34
Should the keyword.ini file now contain the correct HTML links to the help commands? It's kind of frustrating that I can't use the normal help system with it. I thought the 1.1 update said that it fixes the DBProExtends.Ini problem although I just purchased it and they all say [NO HELP].

Thank you TGC for creating such amazing products!

Success does not come with meeting the minimum requirements.
Duffer
22
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 24th Aug 2006 15:23
@ Freddix - how is v.1.2 coming along?

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Medieval Coder
19
Years of Service
User Offline
Joined: 31st Dec 2005
Location:
Posted: 24th Aug 2006 16:09
duffer, you never give you do you?

Hes still got 8 more days including today!

Duffer
22
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 24th Aug 2006 18:45
@ MC, fair comment - should have re-read the thread.

8 days - or even double that - is fantastic.

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Freddix
AGK Developer
22
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 25th Aug 2006 01:03
@Matrix: Ok I'll try to fix that for U1.2
@Duffer: not yet ready I get late cos I am actually in the "papers" to create my own company (setup in progress :p). I'll try to release it as soon as possible. I have some fixes up but some important one are not yet ready.

All we have to decide is what to do with the time that is given to us.
Duffer
22
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 25th Aug 2006 02:00
@Freddix,

No worries. I'm suitably chastised already by MC and as he points out, even on a very strict timetable interpretation of this forum, you are by no means late. Have every faith in you,

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Duffer
22
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 8th Sep 2006 15:08
@ Freddix,

NO expectations of anything but... howzit going?

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 8th Sep 2006 15:43 Edited at: 8th Sep 2006 15:43
yea i was also wondering this.
i would very much like to be able to scale the skybox.

Quote: "a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm..."

lol

Freddix
AGK Developer
22
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 8th Sep 2006 20:15
@Duffer: it's going fine.
I actually encounter issues with PNG support for RTSky system and XGUI giving weird graphics results
if I don't manage to fix all issues with PNG support, I'll release 1.2 with the next newsletter (or before) with the warn that there may occur some issues with PNG.

I've also added some new commands in the plugin like the capability to add halo to lights, make static, flames, pulse, flashs lights effects.

It will be in 1.2

@Lukas.w: command to control zoom is now added it will be released with 1.2 too

All we have to decide is what to do with the time that is given to us.
Duffer
22
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 8th Sep 2006 21:36
@ Freddix - excellent... any weather effects? how about halo around sun?

what are the 'static' and 'pulse' - particles? static on objects? (crackle of lightning>?) - sounds great

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Freddix
AGK Developer
22
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 9th Sep 2006 11:04
@Duffer: weather effects: not yet.
Sun halo: available using PNG transparency
Static, flame, pulse and flashs, are effect aplied on the lights (on VLight) not on object nor particles.

All we have to decide is what to do with the time that is given to us.

Login to post a reply

Server time is: 2025-05-25 17:25:39
Your offset time is: 2025-05-25 17:25:39