The online racing simulator
Searching in All forums
(263 results)
Stuff
S2 licensed
In the example I posted I declared the 3 position ints as an array of 4 bytes. Then in the handler, multiplied them to get an unsigned result (0 to 4,278,190,080 I think). They actually should be declared As Long (signed) so the result can be negative (-2,147,483,648 to 2,147,483,647). My mistake on that part. Readme.txt says 3 ints, and an int in C++ is 4-byte signed (according to InSim.txt)

This may be why you're getting problems with the position. Again, my mistake but don't say I didn't warn ya, as I did in my last post You would probably still get the shape of the track, it would just be shifted in some way. Better to make them Longs for accuracy and a tiny bit of speed since it doesn't have to convert and multiply.
Stuff
S2 licensed
Weird.. when I click on that link, or paste it into the address bar it asks me to save the .php file? Of course, its not the code but a bunch of weird characters and scattered text.. Might have something to do with mime types.. Using Firefox btw.

As far as the demo hosts go, Victor knows
Stuff
S2 licensed
Firefox thankfully doesn't support ActiveX as the code says " var xml = new ActiveXObject("Microsoft.XMLDOM")"

Check this out for a cross-browser example: W3Schools XML DOM Parser
Also, for the ultimate Mozilla reference, the mozilla developer center
Last edited by Stuff, .
Stuff
S2 licensed
Hmm.. I dunno what else there is either? Maybe give us the reason why you need the 3d orientation (pitch and roll) and think of another approach..
Stuff
S2 licensed
w00t! Much better. It now makes sense, mostly. Its cool my quick set of numbers worked out. I put it together somewhat fast and didn't pay much attention to accuracy. I now see that the 3 position ints probably should be declared as longs (each 4-byte signed) instead of 4 separate bytes then multiplying for an "unsigned" result.

The speed is the cool part to me. Heck, I don't know much about physics functions so they are foreign to me That's where you guys come in to make this OutSim thing into something really cool :grouphug: Can't wait!
Stuff
S2 licensed
OK, I was sorta "bored" so I went all out and made a simple chat program! Take a look. Use whatever you want. Ask if needed. Don't worry, be happy

Edit: Worked a little bit with my socket control and made a VB6 OutSim project! It just outputs the values to the form. I'm not sure if they are correct as my understanding of C++ to VB6 conversion is "rusty". Anyway, check it out too and as always, you can use the code any way you want. A little mention would be cool tho
Last edited by Stuff, . Reason : outsim!
Stuff
S2 licensed
Quote from Bob Smith :Hmm, somebody else has asked me to make an app in VB to read OutSim values, I'll give it a go and see how far I can get.

VB eh? I'll help with that if you don't have the time

Quote from Fonnybone :I have a few links somewhere to do it but if i remember VB doesn't work with UDP without some extra code to get working.

I'm not sure about the Winsock control in VB6 for UDP packets but it should work? I use Winsock2 API. I even made a simple user-control encapsulate it. Self-subclassing, asynchronous (non-blocking), TCP and UDP. Anyone interested?
Stuff
S2 licensed
You probably want an 8 bit alpha layer. 1 bit is 0 or 1, black or white, opaque or transparent. 8 bit is 0-255 and allows you to fade from one to the other.
Stuff
S2 licensed
The smoke looks square because the alpha channel is probably pure white. To solve that, you have to fade the white image in the alpha channel, like the original has a "puff". Remember, with alpha, its just shades of grey where white is opaque and black is transparent.

Check out the screenie of the original dustalpha.dds in my Photochop CS2. You have to use the channels tab and enable the alpha channel and then you can edit it. Also, if you save it to some other format that doesn't support the alpha channel, it will lose that puff shape and make it all opaque when you go to save it to .dds again.

Hope that helps..
Stuff
S2 licensed
Quote from Bob Smith :Ah cheers, have added a link to that on the download page now. Well done from refraining from mentioning APIs.

To each their own, programming methods... I gave up a while ago trying to convince people that API is the way to go in VB6. I'm currently learning Java so no need anyway
Stuff
S2 licensed
Also Gizz, and Bob, don't forget about the essential .dll file, the VB 6 runtime.
It can either be found in this spiffy unofficial service pack or simply at the M$ site.

Might help
Stuff
S2 licensed
My "solution" for this would be to get rid of the thousandths byte and add an hours byte. I mean, thousandths is great and all for accuracy and detail, it's just I've never seen much of a use for it yet. LFS doesn't even show the thousandths part of the time to the user.

Of course, this doesn't do much good now. Will take an act of Scawen to make it happen
Stuff
S2 licensed
Very cool..

I also created a small ban editor a few months ago. However, it was not as complete as yours and didn't see much of a use for it after the /ban and /unban switches. Anyway, I think if I ever ran a permanent server and had the need to edit the .ban file I would use yours instead of mine!

Nice job!

-------------
known as RayOK :up:
Last edited by Stuff, .
FGED GREDG RDFGDR GSFDG