• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
SurfingNerd

Stuck on learning machines :/

3 posts in this topic

Hello, 

i am working on a roundbased medieval RPG.

 

I tried to achieve an AI, where i dont need to implement how to use each skill, for 2 reasons:

- i want to use the AI to verify that the implementation of a new character/skill is still balanced. (i do this with statistical analysis of the results of AI games)

- hardcoding that is pretty hard in decision finding: f.e. : You got a healer that can attack. You have a near to death enemy, and a near to death ally. What you gonna do ? heal your ally, or kill the enemy ??

 

The AI KI i wrote is some kind of "Future prediction AI", like the common implementations of chess.

The AI works really fine, it has just 1 Problem: highly CPU consumption.

 

Letz assume a 5 vs 5 Battle.

In this case, i have to go 10 action into the future to have the outgoing of 1 round predicted.

In Chess, you will have with 10 actions 5 rounds predicted.

 

And thats the problem: i need at least ~ 5 rounds to successfully forecast the effect of "over time effects" like poison, heal over time, or simple the disadvantage of a blind effect within 5 rounds.

 

Currently it seems impossible to predict the outgoing of just 1 round in a 5vs5 situation: too many possibilitis in the decision tree.

RAM consumption is also a hard limit.

 

i began to study neural networks at university to solve that problem,  but i am still far away from a solution, 

and i read that with ANN even such a simple game like chess (Full Observable, continous, not many possibilities) are really really hard to do with ANN.

 

So maybe you can tell me another ideas how to solve that problem.

0

Share this post


Link to post
Share on other sites

Use Monte Carlo methods (i.e. random simulation).

 

If you have 3 choices each round start with equal probability to choose each action. Simulate a large number of matches (over multiple rounds), store the statistics for the expected result. (Score could perhaps be d * damagedealt - h * healthlost where d, h are constants to weight how good doing damage is compared to losing health).

 

Tweak the probabilities to choose the actions, simulate again, get more statistics.

 

After a while the best distribution for choosing actions should end up with the highest expected results.

 

That's the basic idea anyway and works well for AI where making a full decision tree is impractical.

 

EDIT: You can also add state to the simulation, e.g. choosing different tactic distributions depending upon the actor state, e.g. have an "unharmed" state where you choose only aggressive actions, whereas if you are in "near death" state you weight run away or heal much higher.

Edited by Paradigm Shifter
0

Share this post


Link to post
Share on other sites

thank you, 

i dit not fully understand your explaination, but heres a simular plan i have so far:

 

its about to "remember" a calculated tactic , instead to make a fully future prediction, from a  stored DB.

 

So i have at first to classifiy "the situation", because every situation is really unique.

 

 

I have to cluster over "simulary" situations. i even thought about to let the clustering neural networks do, because they seem very good at clustering.

But at first i have to complete my studies on university for that, its REALLY hard stuff...

 

i think i have at first to cluster every x vs y situation, and then build subclastes of that:

 

1 vs 1

1 vs 2

1 vs 3

2 vs 1

...

 

Subcluster example for the example 1 vs 1:

damaged healer vs Full Life Tank that is affected by poison.

 

 

maybe i get benefits when i cluster the "chars-in-battle situation" at first:

so "damaged Healer" is a cluster as well the "Full Life Tank affected by poison".

 

The good thing: its designed as Client/server  game, so i can store to big tactic DB near to the server.

Client only would be problem, when the games needs to deliver a 10GB Tactic DB biggrin.png

 

EDIT

i have done some calculations on this idea, and i think now, that the memory is fairly too much. there are too many possibilities:

i calculated that i would need ~ 5000 clusters of a chartype, that would lead in a 5vs5 scenario into ~ 6.49E+36 possible combinations of those.

i have got an idea to solve this with neural networks, check this out

Edited by SurfingNerd
0

Share this post


Link to post
Share on other sites

Some kind of culling operations are required for your analysis  (ie-  why include 'cure poison' action possibility being considered  if the previous/predecessor situation wasnt 'got poisoned'

 

You might also do simplification combining/merging  'like' effects to minimize possible factors being considered (after all you are looking for the crossover point threshhold of  enemy Hitpoints and the death/incapacitated line of the target while trying to hold up your own above that threshold simultaneously.

 

Poison over time largely has the same effect as a bleeding wound 'over time'   doesnt it (unless you are in a MUCH more complicated game mechanics where all kinds of actions are differently effceted by different attack methods etc...

 

Even so there is probably some significant simplification  (you dont think these chess programs simply do move combinatorics looking for checkmate do you ??)

 

Unfortunately Chess is a rather simple game and coming up with the culling logic/evaluation equations for YOUR games mechancs may be the very hard part.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0