Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,449 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Code/skeleton for genetic algorithms/neural nets #68376
03/27/06 12:20
03/27/06 12:20
Joined: Jan 2005
Posts: 12
banjo Offline OP
Newbie
banjo  Offline OP
Newbie

Joined: Jan 2005
Posts: 12
Hi,

Well, I hope this is not too much asked being my first post!

Anyway, does anybody have code or a skeleton for genetic algorithms, neural nets or FSM (Finite State Machines for 3DGS?
I have some C/C++ code, but it's going to take a lot of time to convert it to C-script.

Have earlier tried EvolutionNo9, but with 6.40.2 it's not working anymore due to abandoned A4/A5 commands. I tried to change everything that 3DGS complained about, but it was too much and difficult for me, as I don't understand the old A4/A5 commands enough. (It ended with "Error E355-Startup failure" + "Error 97 Syntax error - Nonexistent/empty function remove")

Thanks,
Thomas

Re: Code/skeleton for genetic algorithms/neural nets [Re: banjo] #68377
03/27/06 13:17
03/27/06 13:17
Joined: May 2005
Posts: 338
Brasil
Filipe Offline
Senior Member
Filipe  Offline
Senior Member

Joined: May 2005
Posts: 338
Brasil
i think you'd be better off using the c++ code you have in a dll...
especially because you can do object-oriented programming, which is much better and easier for doing neural nets and genetic algorithms...

Filipe

Re: Code/skeleton for genetic algorithms/neural nets [Re: Filipe] #68378
03/27/06 19:35
03/27/06 19:35
Joined: Jan 2005
Posts: 12
banjo Offline OP
Newbie
banjo  Offline OP
Newbie

Joined: Jan 2005
Posts: 12
Thanks Filipe for answering,

Yes, for sure a dll would be a very good solution, but my knowledge of making and using dll:s is zero.
Maybe it's not so difficult, but can I take whatever C or C++ program and make a dll of it?
I have - of course a legal - MS VC6.

What I would like to put my efforts on, is using some existing GA/NN (or FSM) 3DGS code, and - if possible - not kill my last brain cells by trying to make a dll of some other peoples C-program. That was why I tried EvolutionNo9 in the first place.

More comments anyone?

Thomas

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 Offline
Serious User
LarryLaffer  Offline
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(...)


INTENSE AI: Use the Best AI around for your games!
Join our Forums now! | Get Intense Pathfinding 3 Free!
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 Offline OP
Newbie
banjo  Offline 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 Offline
Serious User
LarryLaffer  Offline
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


INTENSE AI: Use the Best AI around for your games!
Join our Forums now! | Get Intense Pathfinding 3 Free!
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 Offline OP
Newbie
banjo  Offline 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 Offline
Serious User
LarryLaffer  Offline
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


INTENSE AI: Use the Best AI around for your games!
Join our Forums now! | Get Intense Pathfinding 3 Free!
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 Offline OP
Newbie
banjo  Offline 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)!


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1