Game Development Community

My first McCullough-Pitts neural net working in Torque

by Demolishun · in Torque Game Engine · 09/30/2004 (9:45 pm) · 5 replies

I had to say something as I am really excited. I just got my neural net code up and working and tested with a McCullough-Pitts based net. I can calculated the XOR function with it. If you don't have a clue as to what I am talking about, just nod and say "thats great". This is what I have been messing with lately. Now to connect all my objects to icons for visual net editing...

BTW, can you draw lines, arcs,etc with script? I assume no and that I would have to create a custom class or something.

About the author

I love programming, I love programming things that go click, whirr, boom. For organized T3D Links visit: http://demolishun.com/?page_id=67


#1
10/07/2004 (8:39 pm)
With a stock compiled torque, you can techincally draw lines in the world editor by using the "editor.renderline" function. but you need to do this every time the editor is redrawn (13 milliseconds if i'm not mistaken). To time it perfectly, basically you need to create a say, static shape, and then create (or modify) the staticshape::oneditorrender function to also draw whatever lines you want drawn.

if you have the source it becomes significantly simpler, but i dont have the source (and the stuff i was talkign about was a little cheating project in tribes, allow me to see where enemy is pointing his gun, etc etc)

and if you can point me to a link with helpful information about neural nets that'd be great
#2
10/08/2004 (3:02 pm)
Is the renderline function available in the GUI? I am doing my editing in the GUI in case I did not mention it.

That is a cool way to cheat in Tribes.

Search for Neural Nets Games under google. There was at least one article that talked about it. I would recommend getting some books on neural nets, however most of the books I have are a pain in the butt to read. They use tons of jargon and slow equations at you without ever really explaining what is going on. I think you do well to get books oriented toward game programmers covering the topic of neural nets.
#3
10/08/2004 (10:12 pm)
If you don't want to roll your own, I suggest the FANN library. It's LGPL, and VERY well structured and documented. I integrated it with TorqueScript a bit ago just for kicks but I really didn't find much to do with it except train it to do XOR, and I got bored with that, so I ended up with a little "AI" that was 80% sure that 1 XOR 1 was 0, but it was totally sure that 0 XOR 0 was 0.
#4
10/09/2004 (1:07 am)
Quote:That is a cool way to cheat in Tribes.

That's pretty sad. There is no such thing as a "Cool way" to cheat.

Cheaters flat out suck. Don't like what I said? Tough! Don't cheat and it won't bother you.
#5
10/13/2004 (7:29 pm)
Gonzo,
I was referring to the novelty of the cheat. Not as to the merits or lack thereof of cheating itself. Most cheaters would write something that auto aims on the target. Cheating does demean the experience of playing games and I do not engage in or condone it.

If you elect me for this presidency I will raid every cheaters home and teach them constructive ways to use those talents. Such as crashing enemy computers, spamming Taliban, and sending porn emails to distract the enemy forces. Run with me all ye cheaters and I will give thee purpose!

Thank you, thank you,
Frank