Jump to content

MoLAoS

Community Members
  • Posts

    135
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MoLAoS

  1. I don't really need to know the details per se. Just general stuff. I did a little looking in the source and I do grok the JS but I don't have time to do a detailed analysis right now on top of my own work.
  2. I don't mean the thread title to be misleading, you just have limited space to describe the topic. As I work on my own game engine I have slowly been working on the concept for my AI system. I want it to be able to deal with new maps and units without my specific input. Now realistically I don't expect to have many modders making game factions, but I am sort of compulsive and perfectionist so I want it to work theoretically even if I am just making games to play by myself. On that topic, what sort of AI are people making for 0 AD? Any of the standard approaches? Anything original? How much simulation data is exposed to the AI? How does your AI read the map? How does it decide what units are for? Is it a tag system where the faction designer specifies a type tag? Can the AI look at the units stats and figure out what they are for? How does it work? I had been considering trying out some of my AI theories using 0AD since my engine does the AI in source and I don't have multiple well designed and completed factions. How much power does the API have to work with? Also I just like discussing AI and only one or two sites on the web are dedicated to AI for video games.
  3. Playing a MOBA with a community less than hundreds of thousands doesn't make sense when you can play LoL for free on an engine explicitly designed for MOBAs. I've never understood why people see the need to make games in genres that have dozens of varied options made with top quality are, balance, and dedicated engine types. The goal of indies and open source should be to make something different than commercial projects. ESPECIALLY in the case of games based on intense multiplayer churn.
  4. City Building games tend to have a lot of resources but almost no combat. Its very difficult to find a halfway game with more resources but still enough combat. Warlords Battlecry had metal, stone, crytal, and gold and that's the most we usually see. Although most games you could kinda count the population cap. SC has 2 and warcraft has 3. And honestly we have so many people whining about even starcraft. Wah I hate buildings, wah we should only need gold and so on. Aside from people like myself who are serious nerds you aren't going to find any audience for games with more complex economics, gaming has been pushing towards simplistic for so long, you can't reverse the slide.
  5. Maybe they thought they were clever making the spoiler button invisible...
  6. I've been working on a side project lately using my game engine because I am building up energy for the long haul to the various graphics/gui/pahtfinding upgrades which I hate doing. Sorry about the huge size, its mechanics vary from uncommon to unique and there is no spoiler button here to put each description in a separate box. Edit: Forgot, the beta version will be released around Christmas. All the engine stuff is done and about 95% of the game play coding is set, barring any bugs that are found. I am mostly cleaning up the XML and adding the remaining buildings and units, then I will just need to get all the credits documentation done. The engine is open source and the units are controlled by simple XML files. All the stats and date and items and resource stuff is data driven in the XML. The nearest comparison is sort of a blend between Majesty, in that you don't have control over mobile units, and maybe something from Tilted Mill since it has quite a big of economy and some pretty complex, optional though, production chains. Production chains are mostly tilted towards the end level. Multiple types and grades of weapons with various enhancements your units can buy for the weapons they purchase and so forth. There is some low level farm/market/guild/house economics. Houses buy food and clothes which increases their taxes. But no multiple food types. Markets can build shops that provide extra money but require farms or various guilds that produce items to be built in order to construct. Economic Guild Info End line production buildings are leather worker, armorer, robe maker, weapons maker, alchemist and so forth. There are advanced structures like the foundry for most item lines as well. Foundry also sells things like structural enhancements to buildings and other such things. There may be siege weapons as well. Orders(The combat and priestly and magical orders that provide combat units): You can build some military and defensive structures which are modified and upgraded from the kingdom treasury. However the most powerful fighting units come from the Orders. Orders also produce new equipment and consumables. Some Orders produce new structures. Each Order has its own theme with its own strengths and weaknesses as described farther down. Each Order has a Motherhouse which does all the production and upgrades and construction. Once you build the Motherhouse everything the Order buys must be purchase from its treasury. Multiple Motherhouses can be built but they are quite expensive. Part of the cost of each Motherhouse is put into its treasury for initial purchases until its goods sales and taxes on member units kick in. Taxation Info Each building built by the Motherhouse follows a similar pattern of a personal treasury which gets an initiate influx of cash from the Motherhouse treasury. Chapterhouses, built at the motherhouse, cannot do anything but create extra housing. They have a base number of extra order members and can make room for more. Motherhouses have limited space for units even if you put it all into housing ups and you have to decide what path of the Order to pursue at each Motherhouse. That is why multiple ones are allowed. The expense keeps you from just getting 2 or 3 per Order and/or ignoring chapter houses. Motherhouses can produce special units, a higher tier member unit which takes more space and more cost for fewer units as well as a single leader of the order who is much more powerful. Melee Order 1 Melee Order 2 Melee Order 3 There are also 3 archer factions and various magical factions.
  7. I believe vectors are basically superior arrays. They should even allow you to use a find function which is similar to in. My previous answer only applies to raw arrays.
  8. Based on Google search of the in operator: int value[5] = { 1, 2, 3, 4, 5 }; bool member; int variable; for (int i = 0; i < value.size(); ++i) { if (variable == array[i]) { member = true; return; } } Alternatively you could create your own version of the in operator for use: Note that you would need to make one for all the kinds of type reactions which is a pain so I would stick with defining it on the spot. Header file: class PythonLike { public: bool inOperatorInt(int i, int intArray[]); } cpp file: bool PythonLike::inOperatorInt(int i, int intArray[]) { for (int j = 0; j < intArray.size(); ++j) { if (i == intarray[j]) { return true; } } }
  9. But, but, how would I set it so that I could have the optimal number of spartans? Say, 300.
  10. There are a lack of people interested in implementing gameplay features? That seems like the opposite of how it should be. I guess I'm biased since I dislike graphics programming. Can you really not find people interested in doing something as simple as javascript to add stuff they have wanted to see in games? IIRC the world is loaded with people who can't use compiled languages but really want to design game mechanics. I'm surprised more haven't popped up here.
  11. If it interests you there should be an open source TiltedMill style city building game, city building being distinct from sim city and city management, in a few months to a year from now. Given interest though a half decent C++ programmer could also add support to 0 A.D. for city building. The vast majority of the code is identical to RTS games.
  12. My understanding was that there are some slight differences between libRocket and the browser versions. But most of the basic features are identical. I haven't checked it all out but the differences are minimal in most senses. A test RML document in the samples/shell that was copy pasted from my website appeared to work fine. libRocket lacks some features but, adds others. I was thinking of maybe making some changes to make it more standards compliant since its open source. I am taking a break from adding support to my engine to work on stuff that is more fun for me, I don't particularly enjoy graphics programming in any of its forms, I like to write game logic and other stuff is just something I have to do to do that. I should have a great deal more useful information after I finish integration next weekend.
  13. If its of any interest I am currently attempting to integrate and test out libRocket with my significantly altered version of GAE, the Mandate Engine. I could post some opinions on how it works out after I get it tested over the weekend.
  14. I was under the impression that Greenlight was for commercial games.
  15. Some spanish guy posted a poorly written post on civfanatics advocating that people check out 0 AD. It was hard to understand due to the bad english and several people make mocking comments and such about the poster and the game. A staff member luckily already knew about 0 AD and put a stop to it but that was pure luck. It could have put a lot of people off the game. I did a bit of damage control as well.
  16. https://git.wiki.kernel.org/index.php/GitSvnComparison http://blog.webfaction.com/2011/05/trac-and-git-two-new-best-friends/ Note also that GAE uses Trac with GIT with no problems as far as I know, so it definitely should be possible to use it and be just as good as with SVN.
  17. 0 AD seems like it could make a boatload from a crowdfunding system. Its already got global exposure and support, you proved you could commit seeing as its been 10 years, work definitely gets done. On the other hand because its open source you already get it free. It seems like you are mostly paying for a speed increase and maybe a bit of codebase cohesion and optimaztion. Of course I presume there would also be cool swag for donating. God I hate the word swag...
  18. Roads are one of those things you need to plan to have from the start or else they cause all sorts of drama. That's the fun of computer programming. Your brain is just so advanced that you think a computer game could handle something like roads no problem but pathfinders and build commands and trying to sneak your armies around enemy scouts throw up like 10 problems for each one you solve. Kinda like walkable walls
  19. The roads in most city builders are mandatory for non military units. That is, your units cannot leave the roads. In my personal game and engine I plan to implement roads that apply a movement bonus and I have had a lot of trouble working out how to get them to behave the way I want. Ideally you want to have control over a unit's movement and if your pathfinder auto incorporates roads you can have some issues. Currently roads are only planned to be enabled for the waypoint/trade route system where you specifically tell units to use a road when you define a trade route or other economic path. This allows you to control how your units move. Military units may or may not get a special move command that allows you to specify road use or maybe just access to the waypoint system. Do you really want to have to deal with all that in 0 A.D.? Roads that you don't have to use are such a hassle for programmers. And god only knows how the AI would deal with roads. My current non-player faction is different enough that it will just ignore roads but if I wanted the AI to play the human faction things would not go well. It would make terrible decisions. Plus you have to deal with all sorts of other fun issues like how long it takes to build roads, what are the costs, how strong is the speed bonus and what about people who don't build roads since 0 A.D. is a historically based game.
  20. In Majest they had a special screen that followed whatever unit you had selected at the moment. This was incredibly helpful for me when I played the game. It would cover perhaps 400x400 pixels, although of course for 0 A.D. you could change it to whatever size you liked.
  21. I am actually busy doing something else. I am indeed making my own AI, but not for 0 AD. I just like to discuss AI which is why I post here, as well as some other places. Posting on forums doesn't take up too much time, but making a full AI for 0 A.D. is too time intensive. I might do one in a year or so when I'll have more free time. The reason I am suggesting a utility based AI is because as a serious strategy gamer I have never been able to find an AI I couldn't smash even if it cheated with no fog on the map and large res bonuses.
  22. Someone should look into making a quality utility with maybe a high strategic level planner. For an RTS this should produce the most effective AI.
  23. One file of your code is formatted badly but the rest looks pretty typical I guess. I don't know specifically what various functions do but based on the name you can sort of guess.
  24. Random google grab for behavior tree or BT, I checked to make sure its decent: http://www.altdevblo...behavior-trees/ Rule based AI is the probably the most intuitive. The original Glest uses a rule based system. Basically it has general directives like gather resources and produce units and then it has other things like when you have this, this is the finite state machine part, then do this. That might mean, when the game is 5 minutes in, and you have 10 units, send them to scout the enemy base. This system tends to rely on the game knowing where your base is as well as likely expansions. So the scout part is basically hard coded to go to your starter base while checking any expansions in between. The AI is given specific rules, hence the name. Rule based is sort of like planner iirc. I believe that 0 A.D. is set up for a rule based or hierarchical system. It may also be a planner, this is my impression from posts here and playing the game, I don't look at the actual code cause its time consuming. Here is a more complete list of AI frameworks: Ad-hoc rules Finite State Machine (FSM) Hierarchical FSM Behavior Tree (BT) Planner Utility-based system Artificial Neural Network
×
×
  • Create New...