Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 5 6 [7] 8 9 10

Author Topic: Astronautics: Alpha demo released!  (Read 10435 times)

Tsuchigumo550

  • Bay Watcher
  • Mad Artificer
    • View Profile
Re: Astronautics: A 2D Space Sim
« Reply #90 on: February 18, 2013, 10:18:21 pm »

Windows 7. A working copy of windows 7. It believes it has the most recent one, but also screams "YOU DON'T HAVE IT" as soon as it comes up. Updating does nothing. My desktop managed to work past it's problems and take the newest .NET, while my laptop sits in a corner and cries when it thinks about it.
Logged
There are words that make the booze plant possible. Just not those words.
Alright you two. Attempt to murder each other. Last one standing gets to participate in the next test.
DIRK: Pelvic thrusts will be my exclamation points.

GalenEvil

  • Bay Watcher
    • View Profile
    • Mac-Man Games
Re: Astronautics: A 2D Space Sim
« Reply #91 on: February 19, 2013, 01:40:19 am »

Which version specifically is the issue? I 'think' the newest version is 4.5, but not sure :P Haven't been making sure I have the latest versions for all runtimes heh.
Logged
Fun is Fun......Done is Done... or is that Done is !!FUN!!?
Quote from: Mr Frog
Digging's a lot like surgery, see -- you grab the sharp thing and then drive the sharp end of the sharp thing in as hard as you can and then stuff goes flying and then stuff falls out and then there's a big hole and you're done. I kinda wish there was more screaming, but rocks don't hurt so I guess it can't be helped.

Tsuchigumo550

  • Bay Watcher
  • Mad Artificer
    • View Profile
Re: Astronautics: A 2D Space Sim
« Reply #92 on: February 19, 2013, 06:58:15 am »

4.5 is beta iirc, but 4.03013 or something. it has two 3s, two 0s, a 1, and a 4 at the front.
Logged
There are words that make the booze plant possible. Just not those words.
Alright you two. Attempt to murder each other. Last one standing gets to participate in the next test.
DIRK: Pelvic thrusts will be my exclamation points.

Lemunde

  • Bay Watcher
    • View Profile
Re: Astronautics: A 2D Space Sim
« Reply #93 on: February 19, 2013, 08:28:08 am »

The latest version of XNA only requires .NET framework 4. XNA 4.0 refresh was published well over a year ago so I have a feeling a new version won't be coming out any time soon. Not that it would matter as far as my game is concerned. I'm not upgrading frameworks and possibly gumming up my game halfway through development. 4.0 kinda screwed some of my older projects out of ever being worked on again.

In other news, I worked on drawing some space station parts over my lunch break. Space stations will be using the same format as ships so most of the code will be the same. They just won't move. Much. Well, outside of orbits that is. That's the funny thing about space, everything is always moving. In fact, now that I think about it the only thing that won't me moving is the central star in the star system. Unless I throw in an imaginary super massive black hole a few thousand light years away but then I think things would start getting pretty ridiculous.

Edit: Also toying around with the idea of player owned space stations. The economy's not going to be as complex as what you might see in the X series games, just fixed commodities at varying prices depending on where you go. If you haven't played any of them, the X games have a living economy that's constantly changing. Ships bring in lots of power cells and the price drops way down. It's a nice concept but it's a lot for the player to have to keep up with. And since my game isn't going to be tracking every single ship across the entire galaxy all at once, it's just not going to happen. That's part of the reason the X games have such high system requirements.

Where was I? Space stations! So yeah, you could build space stations but not really to sell stuff from. I'm thinking something more like a base of operations where you can store your extra ships, ammo...slaves? I don't know. Still thinking on it. In any case this won't be something added until I start working on the full version.
« Last Edit: February 19, 2013, 08:38:20 am by Lemunde »
Logged

kytuzian

  • Bay Watcher
    • View Profile
    • Kytuzian - Youtube
Re: Astronautics: A 2D Space Sim
« Reply #94 on: February 19, 2013, 06:25:59 pm »

In other news, I worked on drawing some space station parts over my lunch break. Space stations will be using the same format as ships so most of the code will be the same. They just won't move. Much. Well, outside of orbits that is. That's the funny thing about space, everything is always moving. In fact, now that I think about it the only thing that won't me moving is the central star in the star system. Unless I throw in an imaginary super massive black hole a few thousand light years away but then I think things would start getting pretty ridiculous.

While you are at it you can have every solar system's gravities act upon each other. And every planets. And all the space ships. And everyone's glasses.

That would be extremely cool, even if unfeasible.

Tsuchigumo550

  • Bay Watcher
  • Mad Artificer
    • View Profile
Re: Astronautics: A 2D Space Sim
« Reply #95 on: February 19, 2013, 09:48:51 pm »

WHY DO I HAVE TO KEEP ADJUSTING MY GLASSES

"Sir, we're next to the biggest planet in existence."
Logged
There are words that make the booze plant possible. Just not those words.
Alright you two. Attempt to murder each other. Last one standing gets to participate in the next test.
DIRK: Pelvic thrusts will be my exclamation points.

Lemunde

  • Bay Watcher
    • View Profile
Re: Astronautics: A 2D Space Sim
« Reply #96 on: February 19, 2013, 10:03:42 pm »

In other news, I worked on drawing some space station parts over my lunch break. Space stations will be using the same format as ships so most of the code will be the same. They just won't move. Much. Well, outside of orbits that is. That's the funny thing about space, everything is always moving. In fact, now that I think about it the only thing that won't me moving is the central star in the star system. Unless I throw in an imaginary super massive black hole a few thousand light years away but then I think things would start getting pretty ridiculous.

While you are at it you can have every solar system's gravities act upon each other. And every planets. And all the space ships. And everyone's glasses.

That would be extremely cool, even if unfeasible.

The funny thing is, programming it that way would be easy. Programming it so that the game doesn't run at 0.05 frames per second, that's the hard part.

Got a lot done before I went to bed. I can now use the ship editor to save ships to the template file. Got some angle and position snapping going on so it's much easier to make perfectly symmetrical ships now.

And a new video! http://youtu.be/qLNZ5_E2Ckk
« Last Edit: February 20, 2013, 02:57:02 am by Lemunde »
Logged

Lemunde

  • Bay Watcher
    • View Profile
Re: Astronautics: A 2D Space Sim
« Reply #97 on: February 21, 2013, 07:22:51 am »

Added in the faction system today. Had about 20 ships, two teams of 10, going at each other. The "BADGUYS" team won then turned their guns on me. I also added a feature where ships don't get hit by friendly fire. I may add an option to turn this off but right now teams have a bad habit of killing each other more so than their intended targets.

It looks like I'll also have to set a hard cap of 20 ships in combat at a time. I tried it with 100 and it was just too much for my processor to handle, probably because of all the projectiles flying around. That's 100 ships times 50 or so projectiles each, making it somewhere around 5000 projectiles checking collision against 100 ships, so that's...*does math*... half a million checks every frame.

20 ships in combat is actually quite a lot. Ideally I probably don't want more than 8 just to keep things from getting crazy. I'm probably looking at somewhere around 30 ships flying around in a system at a time, most of them just going from point A to point B or on a patrol route or something. I'm also going to tone down the lifespan of those projectiles. There's no reason a ship's weapon needs that kind of range unless it's a missile or something and missiles definitely won't have the same refire rate.
Logged

GalenEvil

  • Bay Watcher
    • View Profile
    • Mac-Man Games
Re: Astronautics: A 2D Space Sim
« Reply #98 on: February 21, 2013, 09:18:33 am »

Why are so you doing collision checks against ALL 100 ships? You can reduce the detail a little to check first the axis aligned bounding box (AABB) for the ship if it is in an area between the pre-frame location and the post-frame location. This would cull a lot of the ships from the list of what to check. If the projectile interacts with any AABBs then you would check the ship within that AABB to figure out if it actually hits and where it hits :D

Turning friendly fire off is definitely a good start, as well as keeping projectile lifespans down :) I have some missile ships that pretty well own everything around them since they fire off 6 missiles every few seconds, but the fighters they try to kill off are smart enough to guide the missiles into the trade ships that the missile ships are trying to protect, or into the missile ships themselves hehe. In my case, keeping friendly fire on is a good idea since it adds more depth to the combat system. Demonstration of this
Logged
Fun is Fun......Done is Done... or is that Done is !!FUN!!?
Quote from: Mr Frog
Digging's a lot like surgery, see -- you grab the sharp thing and then drive the sharp end of the sharp thing in as hard as you can and then stuff goes flying and then stuff falls out and then there's a big hole and you're done. I kinda wish there was more screaming, but rocks don't hurt so I guess it can't be helped.

Lemunde

  • Bay Watcher
    • View Profile
Re: Astronautics: A 2D Space Sim
« Reply #99 on: February 21, 2013, 10:53:21 am »

Why are so you doing collision checks against ALL 100 ships? You can reduce the detail a little to check first the axis aligned bounding box (AABB) for the ship if it is in an area between the pre-frame location and the post-frame location. This would cull a lot of the ships from the list of what to check. If the projectile interacts with any AABBs then you would check the ship within that AABB to figure out if it actually hits and where it hits :D

Turning friendly fire off is definitely a good start, as well as keeping projectile lifespans down :) I have some missile ships that pretty well own everything around them since they fire off 6 missiles every few seconds, but the fighters they try to kill off are smart enough to guide the missiles into the trade ships that the missile ships are trying to protect, or into the missile ships themselves hehe. In my case, keeping friendly fire on is a good idea since it adds more depth to the combat system. Demonstration of this

Sorry, I didn't go into enough detail. Yes, I already have it optimized to use the bounding box checks first. I think the real problem was there were just far too many projectiles flying around at once, most of them not even on screen. There's plenty of room for more optimization once I get around to it.

The way the game is feeling right now I think it would be a better experience with fewer ships anyway. When you have too many targets it's hard to focus on strategy and instead rely on luck and key mashing to survive.
Logged

GalenEvil

  • Bay Watcher
    • View Profile
    • Mac-Man Games
Re: Astronautics: A 2D Space Sim
« Reply #100 on: February 21, 2013, 11:51:48 am »

Okay, hehe :D I completely understand that. In the game that demonstration is from I had to tone down the refire rates for the fighters by a loooot to get decent fps, and that's mostly just standard bullet physics stuff with a quick cast to see where it is going to be. Question! How far ahead are you checking to see if they hit something? The distance of a raycast can have a pretty drastic effect when combined with lots and lots and lots of projectiles. Also, since you are doing this in 2D have you considered using a Quadtree approach to keeping track of what objects are where? Each leaf in the tree would have a boundary square and a list of objects that fall within it. Since most of the time, as this is a space sim, the leaf would have nothing in it except maybe a projectile you would not need to do any collision checks for that leaf :) It could potentially also be turned into a parallel process which would allow you to shunt the work into threads and speed up the simulation even more to allow for larger numbers of simultaneous ship to ship battles even far offscreen. It is probably not what you are looking for but it if the need arises for a larger number of ships to be in an area then this could be a solution for it :)

What language is this in again? I can possibly throw something together to demonstrate this in C# today or tomorrow but I have no idea about other languages :P My skills in C++ are severely lacking at the moment hehe...
Logged
Fun is Fun......Done is Done... or is that Done is !!FUN!!?
Quote from: Mr Frog
Digging's a lot like surgery, see -- you grab the sharp thing and then drive the sharp end of the sharp thing in as hard as you can and then stuff goes flying and then stuff falls out and then there's a big hole and you're done. I kinda wish there was more screaming, but rocks don't hurt so I guess it can't be helped.

MaximumZero

  • Bay Watcher
  • Stare into the abyss.
    • View Profile
Re: Astronautics: A 2D Space Sim
« Reply #101 on: February 21, 2013, 11:57:03 am »

Added in the faction system today. Had about 20 ships, two teams of 10, going at each other. The "BADGUYS" team won then turned their guns on me. I also added a feature where ships don't get hit by friendly fire. I may add an option to turn this off but right now teams have a bad habit of killing each other more so than their intended targets.

It looks like I'll also have to set a hard cap of 20 ships in combat at a time. I tried it with 100 and it was just too much for my processor to handle, probably because of all the projectiles flying around. That's 100 ships times 50 or so projectiles each, making it somewhere around 5000 projectiles checking collision against 100 ships, so that's...*does math*... half a million checks every frame.
What kind of rig do you have? I could test it out on mine [AMD 1045T 6-core Black Edition, 8GB RAM, Radeon HD 7850] for you. Purely for ‼SCIENCE‼, of course.
Logged
  
Holy crap, why did I not start watching One Punch Man earlier? This is the best thing.
probably figured an autobiography wouldn't be interesting

Tsuchigumo550

  • Bay Watcher
  • Mad Artificer
    • View Profile
Re: Astronautics: A 2D Space Sim
« Reply #102 on: February 21, 2013, 05:47:29 pm »

It's supposed to work on netbooks?

Last time I checked, netbooks have trouble with 100 words of ASCII text, let alone...
Logged
There are words that make the booze plant possible. Just not those words.
Alright you two. Attempt to murder each other. Last one standing gets to participate in the next test.
DIRK: Pelvic thrusts will be my exclamation points.

Lemunde

  • Bay Watcher
    • View Profile
Re: Astronautics: A 2D Space Sim
« Reply #103 on: February 21, 2013, 09:57:48 pm »

It's supposed to work on netbooks?

Last time I checked, netbooks have trouble with 100 words of ASCII text, let alone...

Believe it or not there are quite a few games that will run on a netbook. Nothing new like Skyrim or Mass Effect but older games like Diablo 2, Age of Empires 2, Halflife. Morrowind will run on mine but just barely. Freelancer for some reason runs flawlessly. Dwarf Fortress runs fine as long as you turn temperature off and keep the population low.

Okay, hehe :D I completely understand that. In the game that demonstration is from I had to tone down the refire rates for the fighters by a loooot to get decent fps, and that's mostly just standard bullet physics stuff with a quick cast to see where it is going to be. Question! How far ahead are you checking to see if they hit something? The distance of a raycast can have a pretty drastic effect when combined with lots and lots and lots of projectiles. Also, since you are doing this in 2D have you considered using a Quadtree approach to keeping track of what objects are where? Each leaf in the tree would have a boundary square and a list of objects that fall within it. Since most of the time, as this is a space sim, the leaf would have nothing in it except maybe a projectile you would not need to do any collision checks for that leaf :) It could potentially also be turned into a parallel process which would allow you to shunt the work into threads and speed up the simulation even more to allow for larger numbers of simultaneous ship to ship battles even far offscreen. It is probably not what you are looking for but it if the need arises for a larger number of ships to be in an area then this could be a solution for it :)

What language is this in again? I can possibly throw something together to demonstrate this in C# today or tomorrow but I have no idea about other languages :P My skills in C++ are severely lacking at the moment hehe...

Projectiles just use a single, stationary check for now. They don't really move fast enough to need more than that and I'm trying to keep tight control over the framerate. I may add some more strict checks once I get closer to release. As for the quadtree, probably a little overkill for my purposes. With all the internal physics and processes that are going on with each ship it's still in my best interest to keep the population relatively low.
Logged

GalenEvil

  • Bay Watcher
    • View Profile
    • Mac-Man Games
Re: Astronautics: A 2D Space Sim
« Reply #104 on: February 22, 2013, 01:57:02 am »

Okay, something else to think about then :D Since you know the locations and AABBs of the ships you can take the location and the distance to the farthest corner of the AABB and use that as a radius. Calculate a distance from projectile to the ship, for each ship, and only check against the AABB if the distance is less than the calculated radius. This should reduce overhead by a small amount since the radius should be precomputed, and you would be checking against a single value instead of the boundaries of the AABB. Another micro optimization to go with this is to use the square of the distance (x^2 + y^2) instead of the actual distance (sqrt(x^2 + y^2)) and compare it to the squared radius. Finding a square root is pretty slow compared to multiplications and every little bit helps as you are doing so many checks each frame.

The Quadtree probably is a little overkill for this heh :P
Logged
Fun is Fun......Done is Done... or is that Done is !!FUN!!?
Quote from: Mr Frog
Digging's a lot like surgery, see -- you grab the sharp thing and then drive the sharp end of the sharp thing in as hard as you can and then stuff goes flying and then stuff falls out and then there's a big hole and you're done. I kinda wish there was more screaming, but rocks don't hurt so I guess it can't be helped.
Pages: 1 ... 5 6 [7] 8 9 10