1 registered members (TipmyPip),
18,449
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Code/skeleton for genetic algorithms/neural ne
[Re: banjo]
#68379
11/19/07 03:02
11/19/07 03:02
|
Joined: Jul 2004
Posts: 1,205 Greece
LarryLaffer
Serious User
|
Serious User
Joined: Jul 2004
Posts: 1,205
Greece
|
Hey Banjo, What is it that you want to do exacly? I'm guessing you want to develop a smart ass AI, but before trying on code you should figure out exacly which algorithm will work better for you. This site explains all FSM, GAs and NNs and maybe help you decide. btw, "Error E355-Startup failure" + "Error 97 Syntax error - Nonexistent/empty function remove" means you need to replace all remove(...) functions with ent_remove(...)
|
|
|
Re: Code/skeleton for genetic algorithms/neural ne
[Re: LarryLaffer]
#68380
11/19/07 20:03
11/19/07 20:03
|
Joined: Jan 2005
Posts: 12
banjo
OP
Newbie
|
OP
Newbie
Joined: Jan 2005
Posts: 12
|
Hi LarryLaffer, Thanks for the link. Although I've been there before and at a lot of other places, it was good to be reminded. I had and have no other plans than to just play around with especially GAs and NNs that I know fairly well as an user, and have used in C and VB for 10-15 years. Have not programmed them from scratch, just used and adjusted available freeware code. That said, it would still be fun to evolve some "intelligent" creatures and visualize them in 3DGS. Once I evolved a simulated two wheelie robot with GA that with the help of a NN tried to go through a simple race track as fast as possible (used the 2D robot simulator from http://www.mobotsoft.com/mobotsim.htm), and it is something in that direction that I've been dreaming of. Thomas
|
|
|
Re: Code/skeleton for genetic algorithms/neural ne
[Re: banjo]
#68381
11/19/07 23:05
11/19/07 23:05
|
Joined: Jul 2004
Posts: 1,205 Greece
LarryLaffer
Serious User
|
Serious User
Joined: Jul 2004
Posts: 1,205
Greece
|
hey, Glad to hear that you have a lot experience in machine learning. I hope you give c-script/lite-c a chance and actually make something worthwhile in gamestudio. So far there's been nothing..  What I'd like to do sometime, is a beat-em-up Ai. I imagine it like that: a huge floor with pairs of bots fighting it off. The bots that did the most damage are used for the next generation of fighters, and it goes on. I think after a few thousand generations, the bots would be impossible to be beaten by a human player. I haven't heard of anyone trying this before, although i do know tekken has some machine learning in it, that runs at run-time. So if a human player 'solves' the Ai and always beats it with a certain move, this time the ai will try to figure out a new way to attack (learns by its mistakes and doesn't try techniques that have already failed). Another thing that might come up as a cool beatem-up game would be that the player interactively 'teaches the AI'. So let's say you create a dumb bot, get him to a training level, and you show it some attacks, or show him what to do in a certain situation by doing it yourself. The bot will mimic your behavior and eventually become better than you, cause 'duh' it's a bot with a better reaction time and more precision than humans. Then the real game is when you pit your bot against other players' bots, in single or multiplayer! The game could be called 'Sensei' or something, and you could actually teach your bot a specific combat style, like aikido, kung fu, capoeira, kick boxing, etc, depending on how flexible your beat-em-up engine is.. So anyway, keep us updating on your work. If you make anything work with GAs and NNs in Gamestudio i'd be fascinated to see. As far as i know there's no NN code already made to work with c-script, but you've already found my GA c-script work, which you could use for any type of application/game.. If there's anything you want me to explain on the code, let me know.. Cheers, Aris
|
|
|
Re: Code/skeleton for genetic algorithms/neural ne
[Re: LarryLaffer]
#68382
11/21/07 20:55
11/21/07 20:55
|
Joined: Jan 2005
Posts: 12
banjo
OP
Newbie
|
OP
Newbie
Joined: Jan 2005
Posts: 12
|
Hi, What you wrote is certainly doable with GAs and NNs, you "just" need enough horsepower - today's computers should be alright - and a lot of time to make the game. I've played with different kinds of navigating creatures using GAs and/or NNs, mainly in C, so adding fighting behaviour is possible, though one shouldn't underestimate the complexity of questions/problems that will arise. The time part is why I've always tried to find existing code to tinker with instead of reinventing the wheel again. At the moment my family situation with 2 small kids (and a wife) gives me about 1 hour own time every day, so don't hope too much from me in the near future  . Then I also have a Roomba (robot vacuum) and a Parallax Boe-Bot that also are fun to program. Luckily my robot lawn mover is not programmable...  Anyway I'll try your GA code when (if) I get A7 to work. As I wrote in another thread, my computer freezes when running a game...  Cheers, Thomas
|
|
|
Re: Code/skeleton for genetic algorithms/neural ne
[Re: banjo]
#68383
11/22/07 01:27
11/22/07 01:27
|
Joined: Jul 2004
Posts: 1,205 Greece
LarryLaffer
Serious User
|
Serious User
Joined: Jul 2004
Posts: 1,205
Greece
|
Lol, I could imagine your house with all three robots running. Is Roomba any good? I actually thought of buying one for actually cleaning the house..(my other idea is attach lego mindstorms to a black and decker but that didn't fly..) About your pc freezing, it's a long shot but consider installing the omega drivers for that Mobility 7500. I had the same gfx card once and there where several issues with it and Gamestudio. I know it worked with A6.6, but some change in A7 might have re-surfaced the problem. Happens all the time here 
|
|
|
Re: Code/skeleton for genetic algorithms/neural ne
[Re: LarryLaffer]
#68384
11/22/07 06:29
11/22/07 06:29
|
Joined: Jan 2005
Posts: 12
banjo
OP
Newbie
|
OP
Newbie
Joined: Jan 2005
Posts: 12
|
Yes, I think Roomba is very good and valuable, I have a year old Roomba, but today they are selling the 500 series which seem more intelligent and quieter. My Roomba is not quiet, it isn't fun to be in the same room for a long time. But if you are not home during the day, it's easy to just press Clean and let Roomba vacuum your house. A good link with lots of information is this Thanks, I'll try the Omega drivers, and I'll also reinstall 6.40 to check that it still works. Due to a hard disk format in the summer I haven't reinstalled 6.4, instead waited for A7 to become stable enough. The reformatting was by the way one of the best things I've did for my computer (and myself)!
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|