|
Post by blaize on Dec 29, 2006 20:24:36 GMT
It's all coming back to me now!
|
|
|
Post by Maximilian on Dec 29, 2006 20:26:23 GMT
It's all coming back to me now! Is that a good thing?
|
|
|
Post by _stanley on Dec 31, 2006 10:47:14 GMT
Yesterday I added the weapon selection screen to Stick Territory and I have finished nearly all of the networking framework for SCI.
|
|
|
Post by Maximilian on Dec 31, 2006 10:57:16 GMT
I have finished nearly all of the networking framework for SCI. That's fast !
|
|
|
Post by _stanley on Dec 31, 2006 15:15:00 GMT
Yes, it is. Already, the networking library for SCI is more complete than BDNE. I think I will use the SCI net library for ST.
|
|
|
Post by Maximilian on Dec 31, 2006 22:47:10 GMT
*gulp*
If I were to compile ST using the Cygwin environment, would the networking parts work ?
|
|
|
Post by _stanley on Jan 1, 2007 8:33:58 GMT
Yeah, I don't see why not.
|
|
|
Post by Maximilian on Jan 1, 2007 9:30:51 GMT
It would work under Windows... That's good news then.
|
|
|
Post by _stanley on Jan 1, 2007 9:31:58 GMT
Is it?
|
|
|
Post by Maximilian on Jan 1, 2007 10:35:20 GMT
Well a majority of gamers use Windows. Or so I'm told.
|
|
|
Post by _stanley on Jan 6, 2007 10:40:31 GMT
I have come across a problem with SCI.
Job data is stored as a void pointer, when I send it across the network, the computer on the other end receives a pointer. Unrortunately, there is a segmentation fault because the pointer address at best does not belong to that program or at worst is completely invalid and causes Bad Stuff (TM).
I will either come up with a way of resolving the pointer when sending and putting it back to a pointer when receiving, or I will limit the size of the data and not have it as a pointer.
|
|
|
Post by Maximilian on Jan 6, 2007 10:46:19 GMT
Haha Bad Stuff(TM). And go with the non-pointer one. One pointer is too many.
|
|
|
Post by _stanley on Jan 6, 2007 10:50:23 GMT
You need to use pointers in C. That is the single biggest advantage C(++) has over BASIC.
The problem is, I, having learnt on BASIC, have had my mind corrupted by stupid principles about getting the value from the return value, and that you shouldn't have to manage your own memory. I will probably write a function that splits the packet up into three, and dereferences (?) the pointer to send it over the network. On the other end, an opposite function will reassemble the packet, return the pointer to a reference, and return the packet.
|
|
|
Post by Maximilian on Jan 6, 2007 10:58:49 GMT
I would have thought that most new programmers now would have started on some form of BASIC.
|
|
|
Post by _stanley on Jan 6, 2007 13:46:48 GMT
Not necessarily. If you are taught by somebody, there is little point in learning a pre-language. You would go straight to the language you want and start at the beginning there. I had to teach myself, so I would have failed miserably starting in C.
|
|
|
Post by Maximilian on Jan 6, 2007 15:33:47 GMT
Well most people that program for fun would start with BASIC.
|
|
|
Post by _stanley on Jan 7, 2007 14:22:51 GMT
I am writing this from links2 in text mode. Yay!
|
|
|
Post by Maximilian on Jan 7, 2007 16:19:22 GMT
I am writing this from Konqueror on Mepis. I spent half the day wrestling with NDISwrapper - It installs the driver, but doesn't link it with the device.. so I just rebooted and plugged in the network cable and everything works. And just now I crashed KDE so the little bar at the bottom has gone.
|
|
|
Post by _stanley on Jan 7, 2007 18:24:34 GMT
That's not 'crashing'. You either hid it or clicked the arrow, if it closed on its own (I think Mepis does that occasionally. If you're going to install Linux, don't use Mepis - it's OK for a LiveCD), press Alt-F2 and type kicker.
EDIT: When you say it 'doesn't link it with the device', what does it say when you type ndiswrapper -l? It should say driver present, hardware present. If it doesn't then you have a wrong/incompatible driver. Mepis comes with most of the drivers anyway. Go into OS Center and do the network config.
|
|
|
Post by Maximilian on Jan 7, 2007 18:32:52 GMT
It only says driver present. And according to the wiki, it was the right driver..
EDIT: What distro should I use then? It has to be a small-ish one because it will be installed to my portable hard drive (I'm not going to risk damaging the laptop, especially as it's not mine !)
|
|
|
Post by _stanley on Jan 7, 2007 21:06:12 GMT
Debian.
EDIT: Which Wiki? Often manufacturers have two cards that look the same and are named the same but have different chipsets.
|
|
|
Post by wowposter on Sept 8, 2008 20:56:45 GMT
|
|