The shoutbox is currently out of service. Join us on Discord instead.
You can help CodeWalrus stay online by donating here.

Calling Python Developers! Help Needed

Started by ACagliano, July 30, 2016, 08:06:43 pm

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ACagliano

July 30, 2016, 08:06:43 pm Last Edit: July 30, 2016, 08:34:11 pm by ACagliano
As many of you know I've been working on a project that entails the use of Python for networking. I have made significant effort to learn Python, and while I know how the language works, learning how to create an application with networking is a whole other ball game. I need a hands on approach to this and therefore am asking anyone here who knows Python at this level to PM me or comment and ill discuss what im trying to learn to do and what i need.

edit: here are some details. This is for the calcnet server to my Star Trek game, a realtime MMO, where calculators render graphics and do some stuff like firing weapons and changing position/direction. Every time a packet containing something (a client join/leave, a weapon fired, a change in direction and speed, a chat message, etc) is sent to the calcnet "server", the server responds in some fashion. It could be as simple as retransmitting the packet to another unit, adding an "object" to a database of objects in the virtual world, changing its coordinates or status, or sending information about environment to a unit. If you head to my project page, http://clrhome.org/startrek and go to "Features", you'll see some of the things I want to do.

Thanks in advance.

DJ Omnimaga

* DJ Omnimaga thinks @Cumred_Snektron might know some python, even if he doesn't use it much nowadays

Snektron

I don't really know much about the calcnet protocol, but wasn't it only for calculators to calculators? If you want to connect a calculator to a computer with a relay to the server host then you'll need to look into the TI USB stuff and PyUSB.
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


ACagliano

Quote from: Cumred_Snektron on July 31, 2016, 11:31:56 am
I don't really know much about the calcnet protocol, but wasn't it only for calculators to calculators? If you want to connect a calculator to a computer with a relay to the server host then you'll need to look into the TI USB stuff and PyUSB.

No. CALCnet itself is a calc-to-calc protocol, but globalCALCnet is a man-in-the-middle that lets CALCnet communicate with the internet. All you need is a program that can handle connections and packets with data, as if you were creating a fully online application. The gCn program handles the rest-- including libusb and stuff.

Snektron

Oh thats pretty neat. Still i have no idea about how global calcnet works. I assume it works with network sockets, and im pretty sure Python has a socket library built in (almost every serious language has). You might need to look into them.
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


ACagliano

July 31, 2016, 02:12:43 pm #5 Last Edit: July 31, 2016, 08:10:50 pm by ACagliano
Quote from: Cumred_Snektron on July 31, 2016, 02:06:43 pm
Oh thats pretty neat. Still i have no idea about how global calcnet works. I assume it works with network sockets, and im pretty sure Python has a socket library built in (almost every serious language has). You might need to look into them.


There's a skeleton somewhere that can be used as a template. Once I find and share it, I'll be able to be more specific about what i actually need help learning :)

Edit: here is the skeleton. Assuming you recommend I stick to python as the language, I'd need to first be explained how this works for connecting, and where in the code should i begin to insert my own.
https://www.cemetech.net/programs/index.php?mode=file&id=909

DJ Omnimaga

It would be nice to see more Calcnet-related stuff in action. The only issue is if it's for monochrome calcs or the CSE then it might not be used as much, but it's still cool to see such things in action. Besides, Patrick Davidson still releases TI-85 ports of his monochrome games. :P

ACagliano

Quote from: DJ Omnimaga on July 31, 2016, 10:22:05 pm
It would be nice to see more Calcnet-related stuff in action. The only issue is if it's for monochrome calcs or the CSE then it might not be used as much, but it's still cool to see such things in action. Besides, Patrick Davidson still releases TI-85 ports of his monochrome games. :P
its intended for the CE, and perhaps later to be forked to earlier models.

DJ Omnimaga

Has the USB protocol been figured out yet on the CE, though? I think I recall in 2010 that the TI-84+ USB protocol was still not fully figured out and it's hard to tell from a BASIC programmer perspective if any progress has been made on color models, since there seemed to be no interest in making games or programs that used the USB port until now. gCn was more meant to be a proof-of-concept, but it does have quite a lot of potential, especially for games or shells.

Powered by EzPortal