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 / How do use have DB communicate to another program by using data files? <DBC or Pro>

Author
Message
Robot
21
Years of Service
User Offline
Joined: 27th May 2004
Location:
Posted: 9th Oct 2006 22:14
I think there is a flag at the end of the load image command in DBPro to stop it loading an image as a texture. Try something like

Not entirely sure since I only have DBC.
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 10th Oct 2006 03:20
GFS,

This worked for me:



Also, I looked at the docs you sent me. Very Impressive! If you keep working this hard on your project, you will definately have a great end product!

I did another physics demo... uses mostly real physics, but then I just add some "extra stuff" that's not real physics.

http://forum.thegamecreators.com/?m=forum_view&t=90648&b=6

Enjoy your day.
Gamers for sale
19
Years of Service
User Offline
Joined: 19th Nov 2005
Location: Some where beneath the elements
Posted: 10th Oct 2006 03:38 Edited at: 10th Oct 2006 03:42
@Robot - I got it to work thanks! I just started Dark Basic Pro a few months ago, so I didn't even know that parameter was there!

@Latch - Thanks! I have more documentation that I will send you soon. A few documents about the controls, buttons, collisions, parenting, snapping, and basic keyboard controls. I will also have a list of basic problems that I have to figure out how solve that I will get to in the later in my project after I am done with the GUI layout. I also will have a screen shot that I will post of the GUI interface when I am done.

Also when I tried your Physics example I didn't see the object at all. Where did it go? I tried having the camera moved at different places and follow the object but I still couldn't find it.



I also update my sig when I have time, so you should see several different ones as the project progresses!
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 10th Oct 2006 03:49
Did you run it in DBC or DBPro?

The only thing I can think of is if DBPro needs a particular camera to be set?

It runs fine on mine and you're the first one so far that says they don't see anything. The one from the code snippets forum is a cube that tubles around and pops up into the air.

I don't know hat the problem could be. Are you sure you copied and pasted the whole code snippet?

Enjoy your day.
Gamers for sale
19
Years of Service
User Offline
Joined: 19th Nov 2005
Location: Some where beneath the elements
Posted: 10th Oct 2006 14:43 Edited at: 11th Oct 2006 23:24
DB Pro I will try to see if it's the camera or if there is something I didn't copy from the snippet. I also have dark basic so I will test it with that first.


How do you apply an equation to a matrix? I don't even know where to start.

Example:

X = Y + Z
(These are cord.'s)
Gamers for sale
19
Years of Service
User Offline
Joined: 19th Nov 2005
Location: Some where beneath the elements
Posted: 12th Oct 2006 23:59 Edited at: 13th Oct 2006 00:01
Can you use Windows API to make drop down menu's intigrated into dark basic???

Would anyone know what functions to call using Windows API???

How to be successful in a forum:
F-o-r-u-m - f - First solve your own problem, o - test the Outcome, r - retry to solve, u - Underline code with the problem, m - ask the Members to help you.
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 13th Oct 2006 03:28
There are a whole series of MATRIX commands. For raising or lowering points on a matrix, you would use:

SET MATRIX HEIGHT Matrix Number, X, Z, Height

If you are trying to create a matrix with your own code, the process would be:

1. Have 5 basic variables that will store Matrix Number, x width, y width, number of across cells, number of down cells

2. Make a grid where each vertex along x would be positioned [x width/number of across cells] and each vertex along y would be [y width/number of down cells]

3. Then, for each square, you have to calculate 2 triangles which make of the face for each square. In calculating the triangles, you have to select the vertices in the proper order and asign them to a face index. The face index determines how the face normals are calculated. Are the normals projected out or in?

4. Calculate the normals based on the face indices.

5. Calculate the UV texture coordinates

6. Make all this data into an Object

I don't know if this is what you meant by applying an equation to a matrix.

About Menus:

There's an excellent menu maker for DB at this link:

http://cordierfr.free.fr/html/index_english.html

In fact, there are a whole series of very useful applications including windowing fuctions, 3d map editor, rain effects... there's some real nice code here. Definately worth checking out.

Enjoy your day.
Gamers for sale
19
Years of Service
User Offline
Joined: 19th Nov 2005
Location: Some where beneath the elements
Posted: 13th Oct 2006 05:45
I am trying to make something like this...

http://www.houseof3d.com/pete/applets/graph/index.html

Then do something like you were going to do 'piece together matrixs. (terrain edior) Each matrix you could use has a predefined equation.

How to be successful in a forum:
F-o-r-u-m - f - First solve your own problem, o - test the Outcome, r - retry to solve, u - Underline code with the problem, m - ask the Members to help you.
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 13th Oct 2006 11:42
Very often, cartesian coordinates are given in terms of Y (or really f(x) pronounced function of x). Since you asked how to graph X=Y+Z , I used a little bit of algebra to set it in terms of Y. Y=X-Z. This will be the same graph as X=Y+Z. It's easier in terms of Y because matrices in DB are defined by X and Z values. The original equation of a DB matrix might be something like:

Y=(X-X)+(Z-Z)

If you want to graph all of those equations listed on the website, you should review your algebra. If you can't get algebra down, you're in an uphill struggle when it comes to a physics engine.

Here's the matrix graphed with X=Y+Z



Enjoy your day.
Gamers for sale
19
Years of Service
User Offline
Joined: 19th Nov 2005
Location: Some where beneath the elements
Posted: 13th Oct 2006 14:45 Edited at: 13th Oct 2006 14:46
I know algebra just want to know how to apply it to a matrix.

How to be successful in a forum:
F-o-r-u-m - f - First solve your own problem, o - test the Outcome, r - retry to solve, u - Underline code with the problem, m - ask the Members to help you.
Gamers for sale
19
Years of Service
User Offline
Joined: 19th Nov 2005
Location: Some where beneath the elements
Posted: 14th Oct 2006 22:44
How do you use the text or box command so it appears on top of a image?

How to be successful in a forum:
F-o-r-u-m - f - First solve your own problem, o - test the Outcome, r - retry to solve, u - Underline code with the problem, m - ask the Members to help you.
Gamers for sale
19
Years of Service
User Offline
Joined: 19th Nov 2005
Location: Some where beneath the elements
Posted: 17th Oct 2006 04:02
@Latch - I am having a problem with this windows API function I made. It has full documentation included so you know where I am getting this from. I was just confused how to set it up and get it to work. This function could be used in any basic application.

Hopefully you could also learn from this too!

How to be successful in a forum:
F-o-r-u-m - f - First solve your own problem, o - test the Outcome, r - retry to solve, u - Underline code with the problem, m - ask the Members to help you.
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 17th Oct 2006 11:23
what's the function?

Enjoy your day.
Gamers for sale
19
Years of Service
User Offline
Joined: 19th Nov 2005
Location: Some where beneath the elements
Posted: 17th Oct 2006 14:31
It creates a window using windows API. There should be docuementation about how it works. You may have to make it in to a function and have it return each varible. Then you just call the function using
This will call the function that is set up and it will make a window depending what is entered. I didn't make the function because I didn't know how to set it up.

How to be successful in a forum:
F-o-r-u-m - f - First solve your own problem, o - test the Outcome, r - retry to solve, u - Underline code with the problem, m - ask the Members to help you.
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 17th Oct 2006 18:06
Quote: "There should be docuementation about how it works."


I don't know what you are referring to.


Check out this example from the forums on how to use the window API with DB:

http://forum.thegamecreators.com/?m=forum_view&t=46659&b=10

text on image:



Enjoy your day.
Gamers for sale
19
Years of Service
User Offline
Joined: 19th Nov 2005
Location: Some where beneath the elements
Posted: 18th Oct 2006 00:42 Edited at: 18th Oct 2006 03:34
A window is just a place to put elements in like buttons, text boxes, and radio buttons...ect. Visual basic uses windows and creates them but I want it intigrated in Dark Basic Pro.

The link to the thread helpped alot thanks!!!

How to be successful in a forum:
F-o-r-u-m - f - First solve your own problem, o - test the Outcome, r - retry to solve, u - Underline code with the problem, m - ask the Members to help you.
Gamers for sale
19
Years of Service
User Offline
Joined: 19th Nov 2005
Location: Some where beneath the elements
Posted: 20th Oct 2006 02:22 Edited at: 20th Oct 2006 04:26
I have a program I am making called Dark GUI which will be included in the Dark World pack. This just uses simple ideas like loading a button and getting the dimentions of the image for the clickable region.

What will be included in the program:

Buttons:
-circles(custom image)
-rectangle
-custom(image)
-borders

Windows template GUI:
-check box
-radio button
-slidding bar

Non event driven elements: (for visual purposes not to run event)
-lines
-boxes
-text
-images

Windows API
-windows sound event
-windows messages

Dark Windows:
This is just a dark basic pro program that shows how to make a child window for the main program. (Like tool dragable menu)


Any more ideas, suggestions, comments, or questions???






@Latch I am running into a small problem. How do figure mouse regions inside a custom button that could be any shape or size? Is there an approach to doing this?

How to be successful in a forum:
F-o-r-u-m - f - First solve your own problem, o - test the Outcome, r - retry to solve, u - Underline code with the problem, m - ask the Members to help you.
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 20th Oct 2006 21:33
Mouse and Buttons:

My approach would be to first find out several pieces of info.

1. What are the Screen Dimensions?
2. If working inside a Window, what are the window dimensions
3. What are the button dimensions?
4. What is the button position inside the window or on the screen?
5. What is the mouse position?

If you can answer these questions at any given moment, you can always find out where the mouse is inside a button or a window and determine if it is in bounds or out of bounds based on size or limits.

For DarkBasic a simple method is to set buttons, windows, text boxes, and other gadgets to specific colors that are different from your window background. Then use the POINT(X,Y) command to return the color under the mouse pointer at coordinates X,Y . If it's a specific color, then you know it is within the bounds of a specific gadget (button, box, etc).

Enjoy your day.
Gamers for sale
19
Years of Service
User Offline
Joined: 19th Nov 2005
Location: Some where beneath the elements
Posted: 21st Oct 2006 02:31 Edited at: 21st Oct 2006 02:32
Thanks!

How to be successful in a forum:
F-o-r-u-m - f - First solve your own problem, o - test the Outcome, r - retry to solve, u - Underline code with the problem, m - ask the Members to help you.
Gamers for sale
19
Years of Service
User Offline
Joined: 19th Nov 2005
Location: Some where beneath the elements
Posted: 3rd Nov 2006 19:23
It has been a while since I have posted because of school. I have figure most of everything that is going to be needed to finish my project and I will soon have a small demo deminstrating the GUI that I will be using.

Updates:

I will use Visual Basic 2005 to create the windows like properties. I will have a demo of the visual basic Set up of the properties window.

I will have a new program that will be fitted to the properties window made will DB Pro that will display a individual view of the object will buttons to rotate the object. This will be handy to see what the object looks like after apply a texture to it or something without having to find the object to see the result.

I will use the basic framework from the original project to construct this one. I will use the basic method of writing to a file that is created in the temporary files will values use to have both programs communicate.

How to be successful in a forum:
F-o-r-u-m - f - First solve your own problem, o - test the Outcome, r - retry to solve, u - Underline code with the problem, m - ask the Members to help you.
Gamers for sale
19
Years of Service
User Offline
Joined: 19th Nov 2005
Location: Some where beneath the elements
Posted: 14th Nov 2006 01:54
For some reason I can't read the value that Visual Basic 2005 express edition writes to the file. I am using Dark Basic Pro to read the value.

To get this to work you would have to make a text box called textbox.
when you click on a button it would do this:

Usage:


Code:


First off is there a better way to write to a file then write all text. Also when I
run this it writes an integer to a file but I can't access it in Dark Basic Pro. Is there
a problem with how I have this code structured or am I not use the right commands.

Here is the code in Dark Basic Pro. I am sure it will work in Dark Basic Classic too.

Here is the code:



How to be successful in a forum:
F-o-r-u-m - f - First solve your own problem, o - test the Outcome, r - retry to solve, u - Underline code with the problem, m - ask the Members to help you.
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 14th Nov 2006 03:43
If you are reading back values as bytes, those are numbers up to 255. If you want those numbers to be displayed as letters, you have to convert them to the character equivalent of the ascii value.

A = ascii 65

so if we take 65 and print chr$(65) we get A.

You can print them directly or store them in a string, or if you want to get fancy, you can store them all in a memblock for use later and then read them back in rapid sucession.

Anyway, you can modify the do loop in your code like this

do
read byte 1,number

print chr$(number)

wait key
loop

Enjoy your day.
Gamers for sale
19
Years of Service
User Offline
Joined: 19th Nov 2005
Location: Some where beneath the elements
Posted: 16th Nov 2006 00:57 Edited at: 16th Nov 2006 01:00
@ Latch. I got it to work thanks!

I will realese a demo of the functionallity in Dark World. There might be two versions, a public realese and an advanced version that I will impliment into a project that I will turn into at state.

I will also realese an advanced version that will include all source code templates for the project.

The public version will only return data values of positions and angles and have a program to convert the data to commands.

Its set up to have very easy framework so creating a program to deal will the data it spits out a you will be farly easy. It doesn't come with source code so you would have to make a program to use the data values to include Dark Basic programming in with the main data program.

@Latch this project is amazing and I am making great progress. I will send some more documentation soon!

edit: It will most likely be done by next month but I can't make promises!

How to be successful in a forum:
F-o-r-u-m - f - First solve your own problem, o - test the Outcome, r - retry to solve, u - Underline code with the problem, m - ask the Members to help you.
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 18th Nov 2006 01:27
Sound good. Keep up the good work.

Enjoy your day.
Gamers for sale
19
Years of Service
User Offline
Joined: 19th Nov 2005
Location: Some where beneath the elements
Posted: 13th Dec 2006 23:09 Edited at: 13th Dec 2006 23:11
For some reason Dark Basic pro crashes when I load this 3ds file, but when I run it in dark basic it loads fine. I have an attachment of the object and executablessource in db and dbpro.

How to be successful in a forum:
F-o-r-u-m - f - First solve your own problem, o - test the Outcome, r - retry to solve, u - Underline code with the problem, m - ask the Members to help you.
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 14th Dec 2006 17:41
Hello,

You may want to try converting the 3ds file to DirectX. Check out the last post in this thread.

Conv3ds.exe

I tested out converting it, and it worked though the download is absent of materials (textures).

Enjoy your day.
Gamers for sale
19
Years of Service
User Offline
Joined: 19th Nov 2005
Location: Some where beneath the elements
Posted: 29th Dec 2006 01:17 Edited at: 29th Dec 2006 02:50
Check out dark world at: http://forum.thegamecreators.com/?m=forum_view&t=96546&b=8

@latch - Thanks for all your help latch!

This program will be a game engine that will be updated with plugins and patches as it goes along.

How to be successful in a forum:
F-o-r-u-m - f - First solve your own problem, o - test the Outcome, r - retry to solve, u - Underline code with the problem, m - ask the Members to help you.
Gamers for sale
19
Years of Service
User Offline
Joined: 19th Nov 2005
Location: Some where beneath the elements
Posted: 1st Jan 2007 03:04
I am tring to communicate to Visual Basic with Dark Basic Pro. I have used several methods and can't figure which one will work.

Here are the several methods:

- The Data Command

- Write to memory

Is ther a better way to do this or a way to do this writing to memory or using data commands.

Your signature has been erased by a mod because it's larger than 600x120
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 2nd Jan 2007 04:31 Edited at: 2nd Jan 2007 21:15
Several years ago I used to write VBA scripts for microsoft access in a company i worked for to be able to share info between different apps. There was a method of actually re-writing the content of VBA programs (the lines of code themselves). The goal at the time was to be able to change database info and properties dynamically for different databases without having to write specific code for each app - the script itself would test the conditions and "rewrite" itself (or insert code).

I can't for the life of me remember how it was done but do remember that the method exists. It may be specific to VBA for Access but then again you may be able to apply the method also.

I think it was object.InsertLines and object.DeleteLines to actually modify an existing module or class module. You would have to create or get the object that you want to modify (the module itself) and apply the appropriate editing. I don't even know if these commands still exist. But it might be a starting place.

In theory, you could then modify your VB code directly from DBPro by using CreateObject or GetObject (I think)... If I have some time I may try to do what I'm talking about in DBC...

Enjoy your day.
Gamers for sale
19
Years of Service
User Offline
Joined: 19th Nov 2005
Location: Some where beneath the elements
Posted: 2nd Jan 2007 22:51
Dark World Application Communication


If this works it would help out alot! I was working on more simpler ways to do this like writing to memory a mode # and the data values.(max of 5)

This information would be used in both applications.

If you can get an example working I would try it, but that level of programming is above me.

Is it possible to modify DBPro code directly from VB?

I have one theory of how this would work but I don't know Visual Basic enough to find a command or even begin too.

If you could do exactly what the data, and read commands to..writing directly to the Dark Basic Program then all you would have to do is send a stream of values that would effect the Dark Basic Application.

This would also help in my other project I am working on that would use something like this. How it works is it is a dll file that stores all the commands in DB Pro and the addresses where to find them. You would use DB Pro to create code for a running version of the program. What this would do is execute the commands that are entered in a dark world command prompt.


Wave Example


The wave example uses this equation and is applied to the matrix height: e^-x * sin(x) this uses the exponential growth equation with the sin function for the shape.

My problem with the wave example is getting it to work like a wave.

I just have it applied to one spot on the matrix with out it affecting the rest. All I have is the one point jumping up with no ripple effect. I was trying to do this but all I get is a error about the coordance not existing and it has been hard to fix it.


Dark World


I have the first beta done. It works well it just uses file handling instead of using memory.

I was going to use memory commands but if the other idea you had works I will try to get it to work.

GFS

Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 5th Jan 2007 05:58
Hi GFS,

The method I was talking about looks like it would be more cumbersome to your project than a help. As I started messing around, I had to create a run-time Access application that handled the data and wrote it to the clipboard, or to a file. Since you have gotten as far as you have, it might be a step backwards to pursue what I was suggesting, though it still may be a possibility with pure VB as opposed to VBA.

It sounds like you have some great ideas. I particularly like the dll idea, that can give you a lot of flexibility, and if one upgrades or changes versions of Dark World, you could just supply a new dll with updated functionality.

THE WAVE

The thing about a wave is that it changes over time. If you want to achieve an undulation (wave motion) you have to change the amplitude (height of the wave) bit by bit. There has to be a loop where the general equation for the wave is applied and the angle goes from 0 to 360 by some step factor. I have to go right now, but I may have time to be more clear another day.

Enjoy your day.
Gamers for sale
19
Years of Service
User Offline
Joined: 19th Nov 2005
Location: Some where beneath the elements
Posted: 7th Jan 2007 01:08 Edited at: 7th Jan 2007 21:08
I won't mind taking a look at it if you have an example. It would give me a good idea of all the ways that this can be setup.

I also have another question. In Dark Basic and Visual Basic how can you send info aross a memory stream. I tried it and it ended up lagging my computer greatly, so I didn't want to mess with it again.

Here's a link to a tutorial about how to get a db application into a vb application. I can't figure it out. All of this is purly coding using win32 and visual basic code. Very much beyond me, so I was wondering if you could take a lot at it and find out how to get the dark basic app in to the visual basic app. I can't find out how it just puts the dark basic app in there. The rest of the tutorial just explains communication between the two apps.

http://forum.thegamecreators.com/?m=forum_view&t=68687&b=1

Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 10th Jan 2007 12:41 Edited at: 10th Jan 2007 12:44
Check your email...

As far as the memory stream, I think it would just be easier to transfer info using the clipboard. If you paste a string from your VB app to the clipboard, then read it from the clipboard in the DBP app, I think it would be quicker with less headaches.

The DBPro Inside:

From what I can tell, and I haven't used VB for a while and I have never used .NET, there is a coordination going on between the VB app and the DBpro app that is being exchanged through memory pointers. At the addresses of the memory pointers, information such as the mouse position, the screen size, whether or not information has been sent at all - are stored as strings.

There are functions in the DBpro app that read the strings and detokenize them to find specific pieces of information so that it can update itself accordingly.

I'm not familiar enough with DBpro to know whether or not you can assign it as a child window to another application. This is what it looks like is what is being done when the author mentions:

Quote: "DBProInside.ini
To make the DBPro program look for the VB App to attach to, you will need to create an .ini file of the same name as the exe. This will need to contain the App title. (Main Form text property) and child window text (The group box text property) In out example these are:
[EXTERNAL]
Main Window = DBPro Inside
Child Window = ShowHere"


The author is creating a GroupBox (a panel if you will) in the form that is meant to house the DBpro app. This is what puts the app "inside" the VB. I think the ini file tells the DBpro app that it is a child process to the form.

- from what I can tell, position and window size is sent from the form to the DBpro app, the DBpro app then resizes and positions itself to be within the bounds that are established by the VB form. Since all of this information is based on a timing mechanism, the two apps are constantly coordinated to give the appearance of the DBpro app running inside the VB form. The DBpro app is launched by the VB form, then the timing starts. If the VB app stops responding, then the DBpro app assumes it has shut down so it shuts itself down.

I could be way off base, but at first glance that's what it looks like to me. You might want to contact the author of the tutorial to get the real nuts and bolts of it.

Enjoy your day.
Gamers for sale
19
Years of Service
User Offline
Joined: 19th Nov 2005
Location: Some where beneath the elements
Posted: 13th Jan 2007 02:44
The last thing I need to get done for my project is figuring out how to use the command line to execute commands while the DB pro app is running. Is this possible? Is it a hard concept? I am look at each aspect and figuring what is best and what will work better.

Gamers for sale
19
Years of Service
User Offline
Joined: 19th Nov 2005
Location: Some where beneath the elements
Posted: 14th Jan 2007 03:55
How do you use file mapping in visual basic?

Gamers for sale
19
Years of Service
User Offline
Joined: 19th Nov 2005
Location: Some where beneath the elements
Posted: 16th Feb 2007 03:12 Edited at: 16th Feb 2007 03:13
Is it possible to take any amount of .x objects that are loaded in Dark Basic Pro. and convert it to one?

Could you use add limb then some how save it as one whole object?

Also can you do this without using a modeling program?

Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 16th Feb 2007 08:24
A month ago or so I sent to your email the corrections for the wave code you were asking about. Did you get them?

You should try your hand at the DBC challenges. It forces one to complete programming projects with a minimum of resources. It's very good practice.

Quote: "Is it possible to take any amount of .x objects that are loaded in Dark Basic Pro. and convert it to one?

Could you use add limb then some how save it as one whole object?

Also can you do this without using a modeling program?"


In DBC (then most probably in DBPro) yes, yes and yes. I do this all the time. With DBC, the only problem is the texturing. Once you combine the meshes (limbs and such) it becomes a single mesh and the limbs are no longer limbs. You have to retexture the object but if limbs were individually textured, you are out of luck unless you can create an "unwrapping" of the mesh in DBPro and then apply the approriate textures. That is how to avoid using an outside modeling program.

here is an example of creating an L shaped object out of 7 cubes. In the end, it's all one object. I don't account for texturing in this example:




You'll also have to watch polygon count. The more objects you add, the higher the count.

Enjoy your day.
Gamers for sale
19
Years of Service
User Offline
Joined: 19th Nov 2005
Location: Some where beneath the elements
Posted: 16th Feb 2007 19:27
Yes I did get them. I also would like to ask for how you did it, because there is still that delayed drawing in that example.

I am wondering if anyone figured away to texture combined objects. I was thinking of connecting a whole world and storing each objects verticies count so when they are combined I can some how texture from verticie # to verticie #.

Is this possible, or can this only be done in a modeling program?

Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 17th Feb 2007 01:06 Edited at: 17th Feb 2007 01:17
What about adding the objects to the static world and saving that?

You can use MAKE STATIC OBJECT and a host of other static commands. In the end you can use SAVE STATIC OBJECTS and LOAD STATIC OBJECTS. I believe all the texturing is preserved... just tested it and yes, the texturing is preserved. Explore the STATIC OBJECT commands and you might be able to save the world in a manner that is acceptable.

WAVE....

You mean the e^x wave example? From what I remember of that, the code does nothing more than raise a single point straight up and pull the points immediately around it up also. The problem in your code with that was the range of points that were being grabbed around the point of focus were outside the bounds of the matrix.

For example, if your matrix is 5x5 and you want to raise all of the points around location 5,5 , your program attempted to raise 5,5 : 5,4 : 4,4 : 4,5 (and these ones that don't exist : 5,6 : 6,5 : 6,6 : 4,6) so it would complain that the matrix point didn't exist.

The other wave example was almost perfect, you just had the order of things a little mixed up. I think I sent you the adjusted order of variables on that one.

Enjoy your day.
Gamers for sale
19
Years of Service
User Offline
Joined: 19th Nov 2005
Location: Some where beneath the elements
Posted: 18th Feb 2007 00:28 Edited at: 18th Feb 2007 00:29
I mean the one you corrected for the wave applied to the whole matrix. It was one of my attempts at one of the programs you sent me.

Edit: Thanks, I would use this in building the final project in my Dark World program.

Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 18th Feb 2007 03:21
I sent you a copy of that attempt and doctored it up a little. If you still have my email it should be an attachment. Your attempt was pretty much right on the money. Like I said, there was just a couple things with the order of how you created the wave, drew it, and synced it - other than that, once I got it working it looked really nice! It Waves the whole matrix diagonally!

Enjoy your day.
Gamers for sale
19
Years of Service
User Offline
Joined: 19th Nov 2005
Location: Some where beneath the elements
Posted: 25th Feb 2007 00:31
@Latch - I was working on the matrix wave and can't figure out to get the drawing as smooth as you got it. Is it possible to explain how you did it or have a code snippet for drawing the matrix?

Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 25th Feb 2007 09:59
check your email

Enjoy your day.
Gamers for sale
19
Years of Service
User Offline
Joined: 19th Nov 2005
Location: Some where beneath the elements
Posted: 8th Mar 2007 02:26
@Latch - Check this out. I am working on filemapping and I am having a problem with it. It is a cool subject because you are able to communicate between apps using a string as a namespace to a position in memory.

Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 8th Mar 2007 19:48 Edited at: 8th Mar 2007 19:52
That's great! That's mapping a file to virtual memory, right? Like putting it in a swap file?

You might want to increase your arsenal of knowledge by reading up on DDE communication and also Random Access Files. DDE is an older protocol that's actually not very complicated to use at all. It was designed to help applications talk to one another and can be appropriate in many situations.

Random Access Files are indexed files which allow you to retrieve specific pieces of information out of the file without having to read the whole thing from start to finish to search for the info you need.

If you keep learning and studying as you have, you should end up with a top notch application!

Enjoy your day.
Gamers for sale
19
Years of Service
User Offline
Joined: 19th Nov 2005
Location: Some where beneath the elements
Posted: 14th Mar 2007 00:40
When you right click in the Dark Basic Default editor I notice a convert to data in the content menu.

What good would it do you to convert a file into data statements? Can the data statements be convert back to code? Can the data statements be executed as code?

I know that data statements write to memory.

Gamers for sale
19
Years of Service
User Offline
Joined: 19th Nov 2005
Location: Some where beneath the elements
Posted: 28th Mar 2007 03:05
I have been trying to send the .dbpro file to the compiler and have looked everywhere for a way to send it.

I think that you would use the execute file command and use tags as paramters to send to the compiler to tell it to compile and make exe of code.

Example: (I Think )



I think the /f tag tells the compiler to make the final, but this was for Dark Basic and not pro. I would like to know how to to this in Dark Basic Pro.

If there is a way to do this in any other language let me know..I can work it in to the project.

Gamers for sale
19
Years of Service
User Offline
Joined: 19th Nov 2005
Location: Some where beneath the elements
Posted: 6th Apr 2007 22:50
Question for mods or any one else who would know how this high end concept would work:

How can you include the Dark Physics and Dark AI dll file in a gaming engine, use it and allow users to have it in a final exe without giving them the dll.

I want users to create there world and the program to take the files from the game engines internal media and add it to another exe program in its internal media.

How can this be done?

Also check previous posts to get more of an idea.

Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 7th Apr 2007 03:51
I'm no copyright expert, but it sounds like you may be on shaky ground. It sounds as if you want to redistribute the DBP compiler, and the Dark Physics and Dark AI dlls as your product under a different name to others who haven't purchased the original products. This may be possible with the appropriate licensing. For example, there might be a stipulation stating that you have to purchase a single license for each distribution and that it may only last a certain period of time. However, I was under the impression that Dark Physics was using ODE which is an open source physics engine and you could redistribute that under the GNU GPL (not Dark Physics but ODE and any wrappers you create for it).

You might want to write up a detailed account of what your intentions are and contact TGC support directly and discus what you want to do and what your options are. I could be way off base on this but reading your posts suggests your intentions of redistribution.

Enjoy your day.
Gamers for sale
19
Years of Service
User Offline
Joined: 19th Nov 2005
Location: Some where beneath the elements
Posted: 8th Apr 2007 04:17 Edited at: 8th Apr 2007 04:35
I am not really distributing them I am just making programs that would send "real-time commands" to the compiler using a string of data that the program would send. The user wouldn't be able to use the dll's, they would only be able to create there world will dlls they don't own and send the data to the compiler to make an exe.

It would be included in my program in the internal media.

I am just trying to have the compiler, compile a string of data and create an exe from it.

Check this post for a better idea: http://forum.thegamecreators.com/?m=forum_view&t=102021&b=1

EDIT:
Update for Dark World:
If you want to know what I have been doing you can check my blog for updates about what I have got done.

www.darkworldengine.blogspot.comwww.darkworldengine.co.nr
I got the filemapping working and I can send data very smoothly. I used parsing methods to split the data. It took me a while to figure it out because you have to read at a negitive starting index in memory.

To do this I had to send a | to mark the start and be able to find that random starting index.

At first I was only getting half of the data it send across, so I had to setup this search method.

With almost everything done I have the engine running at 257 fps with a Geforce 5200 graphics card.(256 DDR memory) I would guess without it there would be at about 123 frames per second. The last time I played with it it was at about 80 fps, but by using several functions and concepts I learned about speeding up games I almost tripled the fps!

Also the world would have several files that the user can use.

There are source code files using unity lua scripting. These are used as basic templates for loading an minipulating world data. Lua scripting is very useful because the user can change data of the world or any variables in the exe file. Even when the program is compiled into an exe it will be able to change variables even objects positions!!

In about a week I have Skills USA competions for high schoolers and I am going to enter my program Dark World! I will have a lot of media and documentation created for this competion that I will post on my site after I am done at Skills USA. I will also have some sort of demo posted later with all the new features!

Snapping or limiting is included in the engine which would stop the object against an invisible wall on any axis. (Limit at 100 on x axis would stop the object at x coord. 100) It is create for aligning objects.

I am also working on moving the object according to its size and auto snapping on another object when it gets close enough.

Also newton is being used for the physics for know...(Until I take my physics class) and will be included in the engine.

Newton was easier to use then I thought.

I let you know of any other updates if I get the time to post them.

GFS

Login to post a reply

Server time is: 2025-08-08 08:23:17
Your offset time is: 2025-08-08 08:23:17