Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: What's the name of the concept of scripting in a Sim/RTS type of game?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Hey peeps,

    After a little bit of searching on https://gamedev.stackexchange.com I found a mention to Finite State Machines (FSM) and it clicked immediately!!!

    DUH!! Of course that's what I want. Why didn't it occurred to me initially is still a mystery

    Now to learn a bit more in depth on the subject and then onto implementation.

    Many thanks to all that gave me an answer.

    Cheers,
    Gus

  2. #2
    Then I recommend you to read this.

    Anyway you can implement your state machine to use a scripting language. it will be more flexible and allow modding, which is always good. In that case the paper I linked may help you with this too.
    Last edited by Ñuño Martínez; 06-02-2017 at 01:03 PM.
    No signature provided yet.

  3. #3
    Quote Originally Posted by Ñuño Martínez View Post
    Then I recommend you to read this.
    Thanks. I actually ended buying the book for my Kindle. The way it's explained connects very well into the game programming world.

    Other stuff I read about the State pattern gave me more question marks in regards of how to make it work on the game, so this chapter is perfect to get the question marks gone.

    Quote Originally Posted by Ñuño Martínez View Post
    Anyway you can implement your state machine to use a scripting language. it will be more flexible and allow modding, which is always good. In that case the paper I linked may help you with this too.
    Thanks for this also. I'll probably implement some kind of modding in the very FAR future.

    Keep in mind that this is a game I'm making for myself. I don't really think I'll ever publish it or anything. But, never say never, and all that, so I'll keep this handy just in case I do get it out from under "for my pleasure only".

    Cheers,
    Gus

  4. #4
    Quote Originally Posted by gcarreno View Post
    After a little bit of searching on https://gamedev.stackexchange.com I found a mention to Finite State Machines (FSM) and it clicked immediately!!!

    DUH!! Of course that's what I want. Why didn't it occurred to me initially is still a mystery
    Hey don't be to hard on yourself. I also had to sleep over before I realized I should recommend you to use one of state machine designs. But I see you already figured that out by yourself

    Any way.
    I also wanted to say that wile you are searching for state machine examples you should note that most of them are only showing the simplest state machine examples with very low complexity like general game state (whether you are in main menu, is game loading or is the game in progress for instance).
    But the state machine that you will need for your game will probably need to have much higher complexity. But don't let that discourage you.

    Also you might want to check Decision_tree and Behavior_tree concepts.
    Now while these two concepts are most often used for implementing AI they can also be used for controlling your game state.

  5. #5
    Quote Originally Posted by SilverWarior View Post
    Hey don't be to hard on yourself. I also had to sleep over before I realized I should recommend you to use one of state machine designs. But I see you already figured that out by yourself
    Thanks !!!

    Quote Originally Posted by SilverWarior View Post
    Any way.
    I also wanted to say that wile you are searching for state machine examples you should note that most of them are only showing the simplest state machine examples with very low complexity like general game state (whether you are in main menu, is game loading or is the game in progress for instance).
    But the state machine that you will need for your game will probably need to have much higher complexity. But don't let that discourage you.
    That's good advice. Thanks!

    I usually don't do much copy/paste type of coding, mainly because if I don't understand what I'm pasting my hives flare up like a bad case of poison ivy
    If I don't understand it I can't master it, and if I don't master it it's gonna be deleted and replaced by something I do understand and can maintain, so why not just understand the damn thing before I get into bugs I can't squash cuz I just pasted some code like a script kiddy

    Quote Originally Posted by SilverWarior View Post
    Also you might want to check Decision_tree and Behavior_tree concepts.
    Now while these two concepts are most often used for implementing AI they can also be used for controlling your game state.
    I've also stumbled on BT's and I still need to get e better grasp on that. I'll probably need it for some other game that has some resemblance of AI.
    Decision trees is a subject that I think I grok, but will have to have a go at your link to see if my mental model coincides with it.

    Cheers,
    Gus

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •