Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Cauldron Initialization GDI Version

Initiate Mage
Joined
Oct 11, 2012
Messages
4
Reaction score
0
Cauldron Initialization GDI Version

First I start off with a personal experience.

First instancing everything(graphics device,parameters,content manager,and the main form)

did not quite work. The values ended up null. I noticed inheriting the class GDI Form(similar I forgot!)

Would make the class(magically perhaps..) turn into a form! Now the problem was

everything is Nothing(the default value in VBNET).

So I looked through the classes, and did some

debugging. Mainly looking at the locals. You can get to the locals by pressing alt and navigate to the

debug menu and hitting enter on locals. Also setting breakpoints here and there.

So I went and looked at how some other game engine boots.

They seem to boot with a module. With a string as the argument or parameters

. So with that knowledge made a class inheriting GDI game.

Then override the subs. By typing override then the list of subs

appear. Now once you overridden the essential subs, or all of them.

Either one will work but to initialize the engine only 4 or 5 are needed.

Back to the module a sub taking a string as argument and

instancing the main game class.(In the scope of the sub.)

Then with the variable you should have a run sub if not you inherited

the wrong class. Type variable name and dot and run.

Back to the class that inherited GDI Game. Make a global variable

not just any global variable a private one! In the overridden

Initialize sub make an instance of graphics device manager.

Pass in Me as the parameter.(There is a variable named graphics device manager make the variable equal the new instance.) Then type me and dot.

Then type s you should be brought to the services property which is read only.

Before you do anything with the service right under the instance of Graphics Device Manager

use the variable not with code(Laughter.) Type dot then find the create device.(Sub or function me have forgotten). Ok so the Graphics device is in services so is the form and something else.(Again forgot debug or something to find out.). Back to the service property in

Me. Add a service by typing me dot services dot add service.

Use Get type to get the graphics device manager type.

Its in system name space and can be used by typing get type the shift plus

9 and zero keys. Anyway in those two is the type of which needs to be determined.

That was for the first argument, now the instance of graphics device manager is suitable for

the last argument. All of the service related code is in initialize sub and under

the instance of graphics device manager including the sub or function to create the

device. You should get a black screen now.

To set the window title , use the window property.

There is a graphics device property and a graphics property in graphics device property.

Summing up initialization of Cauldron GDI. Not sure how many ways this can be

done the first method, instancing everything may work I just stopped and worked

on inheritance, it has something to do with polymorphism and is one of three parts of

OOP
 
Back
Top