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.

Dark GDK / C++/ DGK: Using the Check List Functions

Author
Message
Timidon
19
Years of Service
User Offline
Joined: 26th Jun 2005
Location: Bakersfield, Ca. USA.
Posted: 3rd Mar 2009 05:21
This is a bit strange for me to look at. I am working on making a simple client / server with DGK.

the dbJoinNetGame():
This command will join a currently running net game session. To join a net game, you must first find one using PERFORM CHECKLIST FOR NET SESSIONS. From this you can find the Session Number required to join the net game. The Playername is the name the player uses when entering the net game session. If the specified session does not exist, or there are too many players in the session, this command will fail.

alright I look at the "dbPerformChecklistForNetSessions()"

This command will fill the checklist with the names of all the currently available sessions on the previously specified connection. The session names represent a currently running net game. These are net games you are able to join. The index of the checklist is also the session number associated with the session description obtained from this command. Use the CHECKLIST commands in the SYSTEM command set to read the checklist.

So I look at the CheckList function in System:

dbCheckListQuantity ()

int dbCheckListValueA ( int IntegerValue )

char* dbCheckListString ( int IntegerValue )

How do I get the Value of the Session Number? Do I use the dbCheckListValueA-D, but witch one. What is the IntergerValue I use, why is it there?

A little confused.

There are many answers but just one question" ~ Jerilith the Mad
prasoc
16
Years of Service
User Offline
Joined: 8th Oct 2008
Location:
Posted: 3rd Mar 2009 08:34
you have a loop like this:

jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 9th Mar 2009 15:28
I went through all of this a few days ago - here's the post: http://forum.thegamecreators.com/?m=forum_view&t=146413&b=22

The original question was about limbs, but my answers cover checklists in general.

Timidon
19
Years of Service
User Offline
Joined: 26th Jun 2005
Location: Bakersfield, Ca. USA.
Posted: 9th Mar 2009 17:31
Sorry about the lack of reply, but in jest yes. It is still not a specific enough, but it is enough to point me in the direction I am looking for. I have not used the check list features and the DOC file is rather incomplete on some of it's uses. I will take a look at the form post you got also. Thanks. I started trying to put together a server / client code for practice, using the DGK included functions.

I have been working out the Object Oriented Programing using Class - some of the stuff you guys pointed out in a earlier post, this has made my code much more readable and easier to use, after I got over creating Unhanded Exception errors, by trying to read or use data class's that did not exist. I got a Gui that I have not changed in 3 years until I got to use the Class features of C++, now It does the same work, and easier to fix and read. Well I got a few hours before going back to work. Catch you later on the next question.

Thanks IanM and the others who have *pointed in the correct direction.

There are many answers but just one question" ~ Jerilith the Mad
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 9th Mar 2009 21:14
These are the jgc_file files in Jegas Game Classes. There are utilitiy functions in there JUST for this purpose - interrogating your hardware etc via checklist:

jgc_file.h



jgc_file.cpp



I hope these shed some light on matters for ya
--Jason

Timidon
19
Years of Service
User Offline
Joined: 26th Jun 2005
Location: Bakersfield, Ca. USA.
Posted: 10th Mar 2009 18:06
Great! More stuff for me to digest. Thanks again.

There are many answers but just one question" ~ Jerilith the Mad

Login to post a reply

Server time is: 2024-11-25 18:02:43
Your offset time is: 2024-11-25 18:02:43