Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


CRYP7IK

Member Since 14 May 2006
Offline Last Active Today, 05:20 AM

#5192558 Game engine architecture

Posted by CRYP7IK on 12 November 2014 - 07:57 PM

I don't really know if I see your problem.

 

Let's see:

 

  • Physics system can have data that it will simulate physics and collision with
  • Render system can have data that it will render images with.
  • AI system can have data that it will path find with.

The main point is the data part. Lets take terrain as an example:

GameObject* myObject = new GameObject("name");

// I don't really know how your component system is working, but I'll go with a simple version
// Here is one solution, bring out the data structures into their own DLL that others depend on.
myObject->AddComponent(new TerrainData("data/myTerrain.tdata")) // (From DataStructs.dll)
myObject->AddComponent(new TerrainRenderer()) // Requires TerrainData (From Render.dll)
myObject->AddComponent(new TerrainCollider()) // Requires TerrainData (From Physics.dll)
myObject->AddComponent(new TerrainPathFinder()) // Requires TerrainData (From AI.dll)

// OR

// All use the same data file, but have it separately in their own data structures.
myObject->AddComponent(new TerrainRenderer("data/myTerrain.tdata")) // Requires data file \ array or something (From Render.dll)
myObject->AddComponent(new TerrainCollider("data/myTerrain.tdata")) // Requires data file \ array or something (From Physics.dll)
myObject->AddComponent(new TerrainPathFinder("data/myTerrain.tdata")) // Requires data file \ array or something (From AI.dll)





#5184702 LOL - I wrote a poem about OpenGL

Posted by CRYP7IK on 02 October 2014 - 10:35 PM


OpenGL you know I love you, but like all lovers you're a.... difficult person!

 

My favourite part.




#5183368 CMake - ExternalProject targets slowing down everything

Posted by CRYP7IK on 27 September 2014 - 06:25 PM

You can just check if you have already downloaded or built it by creating a file after download or build steps and checking for that file later on.

 

Here is where I got this code from: https://projects.kde.org/projects/kde/superbuild/repository/revisions/master/entry/SuperBuild.cmake

# are we building a source package or should we download from the internet ?
	
if(EXISTS ${CMAKE_SOURCE_DIR}/ThisIsASourcePackage.valid )	
  set(buildFromSourcePackage TRUE)
else()
  set(buildFromSourcePackage FALSE)
endif()



#5171988 Funniest line of code ever ?

Posted by CRYP7IK on 06 August 2014 - 09:53 PM

https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition

 

This whole fizz buzz implementation is hilarious.




#5157777 Creating a code editor/IDE

Posted by CRYP7IK on 03 June 2014 - 05:00 AM

There are two projects that use wxWidgets \ scintilla for a code editor or IDE and they both have some form of auto-complete and snippets, they are also open source. They also show off plugin architecture and pretty much everything to do with getting your own IDE up.

 

code::blocks

codelite




#5156885 Creating a code editor/IDE

Posted by CRYP7IK on 29 May 2014 - 10:25 PM

I would use wxWidgets. Mostly because it comes with an easy to use cross platform scintilla like API and an example using it. So I would use wxSTC with wxAUI with dynamic notebooks.

 

wxSTC handles a lot of the things you would need in a code editor have a look at:

 

http://wiki.wxwidgets.org/WxStyledTextCtrl

http://docs.wxwidgets.org/trunk/classwx_styled_text_ctrl.html

 

for features and the API.




#5143468 Linux development...

Posted by CRYP7IK on 31 March 2014 - 08:10 AM

code::blocks - great, some issues with autocompletion sometimes

codelite - pretty awesome, some plugins aren't free

vim+spf13 - very good historical fuzzy auto-complete + snippets main<ctrl+k> will give you a full int main(..). or class<ctrl+k>ClassName<ctrl+k> will fill out a simple class def and impl and a lot more

eclipse - awesome auto-complete lots of different languages




#5098060 How to do starcraft 2 pathfinding?

Posted by CRYP7IK on 01 October 2013 - 08:30 AM

Well, I am no expert but I actually have pondered this myself and the following are my conclusions:

 

 

 

And how does it deal with dynamic obstacles like idle units?

 

Well this is easy, and you answer it yourself with 'boid steering' but I will explain that further. So each unit has some kind of inner area of influence and an outer area of influence, see my mspaint picture:

 

Ultralisk.png

 

Now one can, using math, get a value of 0.0 - 1.0 of your position between those area of influences! So using this 0.0-1.0 value you can slowly steer the units steering vector away based on how close you are to another units inner area of influence. E.g:

 

Zergling.png

 

Now buildings can easily mark A* nodes as closed \ open on demand with little performance impact and if A* can't find a way out it just gives back the path up until it deemed the end point impossible to get to.

 

 

 

What exactly are the nodes of A* on navmesh?

 

Well nodes of A* are generally just a grid representing passable \ not passable terrain and that can be enhanced with a navmesh that basically says all of this is a node and matches an area precisely (or more precise than a grid)...hang on there is an article I read about this a few years ago:

 

http://www.ai-blog.net/archives/000152.html

 

There you go! Have a read of that it should answer the rest of your questions I think. Digest that information and ask more!




#5098052 proTile Map Editor for Unity

Posted by CRYP7IK on 01 October 2013 - 07:20 AM

Wow, that is pretty amazing!

 

The only thing I could think while watching the video is being able to automatically create 'patterns' on the fly by multi-selecting things and right clicking or something. Other than that though pretty impressive.




#5077727 Game Engine Layout

Posted by CRYP7IK on 14 July 2013 - 06:05 PM

I have a question: Is this supposed to be used in one game? If so this engine seems fine, minus having no alpha which might be on purpose.

 

However if you then tried to adapt it to some other game the GameEngine class leaves much to be desired especially if the update function gets too large with too many different states. You can fix that with a slightly more advanced state machine to look after the states(Which would then be a separate class).

 

I was writing up a StateMachine example class when I remembered about the crazy number of gdnet articles, check these out:

 

http://www.gamedev.net/blog/812/entry-2256166-state-machines-in-games-%E2%80%93-part-1/

http://www.gamedev.net/blog/812/entry-2256167-state-machines-in-games-%E2%80%93-part-2/

http://www.gamedev.net/blog/812/entry-2256173-state-machines-in-games-%E2%80%93-part-3/

http://www.gamedev.net/blog/812/entry-2256179-state-machines-in-games-%E2%80%93-part-4/

http://www.gamedev.net/blog/812/entry-2256190-state-machines-in-games-%E2%80%93-part-5/

 

http://www.gamedev.net/page/resources/_/technical/game-programming/state-machines-in-games-r2982

 

Although, again your engine is very nice and if it works for your purpose don't over-engineer it.

 

 

 




#5041008 Article Inspiration

Posted by CRYP7IK on 08 March 2013 - 06:47 PM

I think this is a great idea, however I think the delivery of these articles does need to be discussed as well as ease of writing an article, how easy to find and accessible the articles are. What is the stance on Localisation? Are we going to bother with it?

 

First of all, should it be standard practice to include videos with the article (I think it should be, some people require visual and audio aids to learn)? Does GameDev have the bandwidth or do we host those videos with youtube and link to them? Are we even allowed to include videos in an article or is this supposed to be book-like only? Some serious thought should be put into this as we are using the web, why limit ourselves to being a book, why not a super-book! Obviously we would still have to make sure we have lo-fi versions(No automatically loaded video and make this easily accessible) to bring in those with limited bandwidth.

 

We should also think about the writing process of the articles, if you want more people writing articles you should make it easier to write them, so I have thought up of a few ideas to help in that regard, here is one. Make articles more of a collaboration rather than one author does one topic. You would probably have to limit collaborators to a few people, or have something like a 'pull request' on articles. This would alleviate the problem of  an Author feeling overwhelmed with writing (Well, if someone actually contributes).

 

Some topics I think should be covered include waterfall all the way to all the agile project management techniques and what free sites \ programs are available to use to handle projets (Trello, smartsheet etc).

 

Sidenote: Until I saw the board this was posted in and the title I saw development libraries and thought a GameDev.net engine! Then got super excited until 1 second later when I actually started reading things. sad.pngtongue.png

 

 

 

 

 

 




#4987807 AI Creation

Posted by CRYP7IK on 07 October 2012 - 06:28 PM

Wod, have you ever tried to use AI that learns on it's own, even within very limited parameters they will usually fail spectacularly or in weird uncontrollable ways.

If you then add any tweaking you may as well have just done your own logic to get the behaviour you want much faster and with more control.

I have heard stories of completely learning AI in military, such as one that learnt to detect hidden tanks, they taught it using millions of pictures. Then when they took it out into the field to test it, it gave completely messed up readings: tanks were everywhere! After many programmers poured through many logs they found that the AI had actually picked up a specific shape in clouds that it thought was a tank, basically a waste of money.

You have a (completely) learning AI and vs it against my fully scripted AI and mine will beat yours the first million times while also acting more like an adult human.


#4987803 I need help with version control software.

Posted by CRYP7IK on 07 October 2012 - 05:56 PM

Why did this not do what I was expecting--namely, combine his changes with mine? How should I/we proceed in the future to avoid this? Is there an option I should have set to avoid this?
grrr....later I'll ask how I can fix it....


I see this time and time again from beginner coders and lead coders alike. You don't want to and usually can't avoid merge conflicts and it isn't really that much of a big deal if you get them anyway.

To do a merge I go through this process:
  • Check my files (Or hunks) for changes not needed or unintended changes and reset them
  • Pull and merge
  • Fix any conflicts using a diff tool. (SourceTree on Mac shows differences and I just use that + monodevelop) I don't have a recommended for Windows
  • Commit \ push merge
Conflicts are not errors!


#4986984 Poll: There's a big piece of code in need of a rewrite, do you create a n...

Posted by CRYP7IK on 04 October 2012 - 07:53 PM

If it's really big I would probably create a branch specifically for that refactor job.

Then I would just do whatever I needed to refactor what needs to be refactored and merge the branch back in when I'm done.

I chose other, as I am doing copy-pasting but I am also editing the file (just in another branch). I always get a little bit anxious \ scared when I refactor large amounts of code, it always works out when I test though :P.


#4983496 No knowledge of programming, wish to create an android game without aforement...

Posted by CRYP7IK on 25 September 2012 - 01:36 AM

...


AAA Titles are not what is being discussed here.

GravutyPerseus1325 is not aiming for a AAA title or even for a title that anyone will play, so I am not sure why you even bring them up.

Your chances of even finishing a game using "game-maker"(as you put it) software is much higher than not. Let alone making a good one!

Hell! The engine you mentioned (Unreal) can create whole FPS games without any coding at all, just using simple visual triggers! Does that mean no-one should use it and that you could code something better in a quicker amount of time?


On Topic: Dragon Story is not a simple game and it would have cost the developers much more than $350 to make. I don't know of anything that allows social media integration without any coding or scripting at all so your chances of finding anything is slim. I would recommend just playing around with Game Maker free and make it for PC or Mac first just to test the waters. Creating a game is much hard than you think, especially of such a large scope.




PARTNERS