CEMETECH
Leading The Way To The Future
Login [Register]
Username:
Password:
Autologin:

Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 131 users online: 7 members, 86 guests and 38 bots.
Members: charlessprinkle, HOMER-16, juju2143, lafferjm, tr1p1ea.
Bots: VoilaBot (3), Spinn3r (1), Magpie Crawler (6), VoilaBot (9), Googlebot (16), MSN/Bing (3).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
Author Message
ACagliano


Super-Expert


Joined: 08 Feb 2010
Posts: 930

Posted: 05 Dec 2011 08:58:37 pm    Post subject: Small Request for Star Trek

For anyone familiar with gCn and the DCS GUI, can someone code up a small routine for me. I need to process incoming transmissions, then create a GUI window that displays all active server numbers, then allows me to enter the number of an active server into a 1-byte spinner or to click a "Create New Server" button.

I could probably do this myself at some point, but I ask for help on it so that I can expedite the release of the game. If someone wants to help, the only thing you need to know is that, in incoming frames, (Cn2_Int_RecBuf) contains the server number of the sender.
_________________
-ACagliano

Current Projects

Legend of Zelda. "Ganon's Rage"
51%
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55881
Location: Earth, Sol, Milky Way

Posted: 06 Dec 2011 01:09:06 pm    Post subject:

If you've seen Sandpaper, would the way its Connect screen works be the sort of thing you'd want? If so, let me know, and I would be happy to share the code for that.
_________________


Back to top
ACagliano


Super-Expert


Joined: 08 Feb 2010
Posts: 930

Posted: 06 Dec 2011 01:56:05 pm    Post subject:

I'm sorry, because of my inability to run gcnclient.exe at this point, I have not used it. Do you have a screenshot?
_________________
-ACagliano

Current Projects

Legend of Zelda. "Ganon's Rage"
51%
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55881
Location: Earth, Sol, Milky Way

Posted: 06 Dec 2011 03:00:52 pm    Post subject:

ACagliano wrote:
I'm sorry, because of my inability to run gcnclient.exe at this point, I have not used it. Do you have a screenshot?


http://www.cemetech.net/news.php?id=487


Link

_________________


Back to top
ACagliano


Super-Expert


Joined: 08 Feb 2010
Posts: 930

Posted: 06 Dec 2011 03:38:49 pm    Post subject:

It looks like it could work, Kerm. How does it handle multiple pending connection requests?
_________________
-ACagliano

Current Projects

Legend of Zelda. "Ganon's Rage"
51%
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55881
Location: Earth, Sol, Milky Way

Posted: 06 Dec 2011 03:44:52 pm    Post subject:

ACagliano wrote:
It looks like it could work, Kerm. How does it handle multiple pending connection requests?
It doesn't. Basically, each calculator that is not connected to anything sends out a periodic broadcast containing its username. When the user opens the Connect dialog on some calculator, it stops broadcasting and instead starts collecting broadcasts. It keeps a list of the calculators it knows, each element of which is 13 bytes (5 bytes for the address, 8 bytes for the name, or 9 if you want to be lazy and include the zero terminator in the list). The user can flip backwards and forwards through the list with those two arrows, and if new broadcasts arrive, the user will be able to flip further. You can only send a connect request to a calculator still broadcasting its presence, otherwise the calculator will just ignore the message (if you try to connect to a calculator already connected to someone else, for insta.ce
_________________


Back to top
ACagliano


Super-Expert


Joined: 08 Feb 2010
Posts: 930

Posted: 06 Dec 2011 04:23:47 pm    Post subject:

That sounds like it could work. I would need to modify it slightly tho. I don't need usernames displayed, just Server numbers (@Cn2_Int_RecBuf). I would need a list of all servers that are sending presence packets, and each server number would only need listing once. And, I'd need the highest received active server number returned into a register.

I'm assuming this would be easier than your sandpaper connect, right?
_________________
-ACagliano

Current Projects

Legend of Zelda. "Ganon's Rage"
51%
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are GMT - 5 Hours

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.033127 seconds.