Space Nerds In Space

Space Nerds In Space

Postby smcameron » 04 Nov 2012, 04:49

Hi guys... I've got a new project rolling these days...

https://github.com/smcameron/space-nerds-in-space

Still in the pretty early days, not even "playable" yet, really, though I expect to approach "playable" tomorrow or in the next few days (though no where near polished enough to be considered done.)

So this game (when it becomes a game) is very much inspired by Artemis Spaceship Bridge Simulator
See: http://www.artemis.eochu.com/ The idea is you have a game which is played much as the actors in the Star Trek TV series played their roles on the bridge of the Starship Enterprise. There are a number of "stations": Navigation, Weapons, Science, Communications, etc. and each player assumes that role. Each station has it's own laptop or other computer which communicates via network to a central server which simulates the game universe. So it's kind of a cooperative multiplayer network game... No reason not to have multiple teams in multiple starships inhabiting the same server/universe either cooperating or doing battle.

Mine is different than Artemis Spaceship Bridge Simulator in that it is:

GPL'ed.
Linux/gtk
Probably uglier (lol).
Probably more scalable (yay vector graphics.)
Not even close to finished.

Here's a video from a couple days ago... (much progress since then.)
https://www.youtube.com/watch?v=BF19sPZGvmo
Image

(yeah... it's not much to look at yet.)

Hoping to be able to "drive" the ship around the "universe" and "shoot stuff" sometime tomorrow... we'll see.

-- steve
Last edited by smcameron on 12 Jul 2019, 16:20, edited 1 time in total.
smcameron
 
Posts: 377
Joined: 29 Oct 2010, 23:44

Re: Space Nerds In Space

Postby Skorpio » 04 Nov 2012, 20:05

I'd love to see this game finished. Are you leaning more towards a simulation or an action game?
User avatar
Skorpio
OD Moderator
 
Posts: 775
Joined: 05 Dec 2009, 18:28

Re: Space Nerds In Space

Postby smcameron » 04 Nov 2012, 20:23

Skorpio {l Wrote}:I'd love to see this game finished. Are you leaning more towards a simulation or an action game?


Well, I'm not sure what you're asking...

It's going to be real time, but the action is probably somewhat slow, not frenzied. In some ways it's a simulation, but, also an action game?

In any case, I've gotten pretty far in the last day.

You can now drive and shoot, which as everyone knows, are the two most important activities of a starship captain.

Individual players can join the game at any time, and specify which starship to join, and multiple starships per game are possible. (this is all working now.)

That being said, you can pretty much *only* drive and shoot -- and the torpedoes don't ever hit anything, or die -- the torpedoes are immortal, just like everything else in the game so far (deleting objects from all the clients is not straightforward, but should be do-able, just haven't done it...)

-- steve
smcameron
 
Posts: 377
Joined: 29 Oct 2010, 23:44

Re: Space Nerds In Space

Postby Skorpio » 04 Nov 2012, 20:51

With simulation I meant a more complex game in comparison to a simplistic action game, but of course a simulation can be simple as well and contain lots of action (like the farming simulator :D ).
User avatar
Skorpio
OD Moderator
 
Posts: 775
Joined: 05 Dec 2009, 18:28

Re: Space Nerds In Space

Postby smcameron » 05 Nov 2012, 04:14

https://www.youtube.com/watch?v=Jf6lttQN2A4
Image

Progress video... sorry about the low quality. The red lines esp. do not show up well in the video, but maybe you can still get some idea of what it's like.

http://www.youtube.com/watch?v=Jf6lttQN ... e=youtu.be

-- steve
Last edited by smcameron on 12 Jul 2019, 16:21, edited 1 time in total.
smcameron
 
Posts: 377
Joined: 29 Oct 2010, 23:44

Re: Space Nerds In Space

Postby smcameron » 12 Nov 2012, 02:08

Just a little update:


https://www.youtube.com/watch?v=fC0iFtF2I4A
Image

-- steve
Last edited by smcameron on 12 Jul 2019, 16:22, edited 1 time in total.
smcameron
 
Posts: 377
Joined: 29 Oct 2010, 23:44

Re: Space Nerds In Space

Postby smcameron » 25 Nov 2012, 03:00

Got a lot done over the last week, as I was on vacation for Thanksgiving. Too lazy to do a video today, so just some screen shots:

Image

Above is all the client modes (screens) Weapons, Navigation, Science, Comms, Engineering, and Debug. They are small because, like Word War vi, the graphics scale to match the window size, and I have shrunk them all down to fit on the screen. They are all separate processes communicating via network with a server process. The large screen partially shown on the right is the "main" screen. Any client process can "project" his screen onto the "main" screen by pressing "ctrl-O" -- O for "on screen!", as Capt. Picard so frequently says.

Image

Above is the navigation screen. Left/right arrow keys rotate the ship, up/down arrow keys move the ship fore and aft. The Warp drive slider and "engage" button "warp" the ship instantly through space (the warp drive needs some work to make it a little more intuitave and, uh, dramatic as well.)

Image

Above is the Weapons screen. Torpedoes may be loaded into the torpedo tubes (2) and fired at passing ships. This needs work (sound effects) and also, right now, a single hit invariable annihilates whatever it hits, so that needs fixing. Phasers don't work yet.

Image

Above is the "science" screen (scanning). You have a scanning beam that you can swing around using left/right arrow keys. up/down arrow keys control the width of the beam. When the beam is wide, it's range is short, and the further away things are, they "fuzzier" they are. As you narrow the beam, the objects become less fuzzy. At a certain point, when things are un-fuzzed enough, you get some information about the ship, like it's name, position, bearing, range, heading, shield strength and wavelength characteristics. You can also zoom the science scope in and out using the mouse scroll wheel.

The "dotted" lines in the above still picture are kind of moving around and a bit more lively than they look in this picture, but you can't see it in a still shot.

Image

Above is the engineering screen. There are 4 gauges: RPM, Fuel, Power, and Temperature. The idea is you have some sort of "engine" consuming "fuel" and producing "power" which can be distributed to the various systems. The power is a function of rpm and temperature. The sliders are used to distribute the power around the ship. The power distribution part doesn't really do anything yet (but the sliders work.)

Image

Last, is the debug screen, which shows a map of the universe. The white dots (or, X's, if you look really closely) represent computer controlled ships. They are clustered around the "starbases" because the AI for these ships at the moment consists of "go sit near the nearest starbase."

Also, difficult to show, when you start up each client you can specify which "roles" it will fulfill -- science, weapons, navigation, etc. ("all" is an option.) Additionally there is a "soundserver" role, so that sounds which are global to the ship -- e.g. being hit by a photon torpedo -- can be directed to the system that is connected to the big stereo. Sounds also may be directed to individual stations -- so you could get distinctive science-y beeping noises from the science station laptop, and weapons-y noises from the weapons stations etc. Not that any of those sounds are in there yet, but the infrastructure to do it is there in the code.

No 3d "thru the window" view yet --- if I do it, it will be a totally software z-buffered flat-shaded triangle renderer that looks like it's from a 1982 silicon graphics workstation. You'd probably rather someone besides me programs that bit, lol. As would I, as would I.

-- steve

p.s. Not getting a lot of feedback... wonder if I'm wasting my time creating a game that requires you get together 4-6 of your linux/startrek nerd friends on a LAN to play, lol. Well, it's a fun waste of time programming the thing, and, I am learning a bit doing it, so... I'll keep at it. I do worry that the various stations won't actually be *fun enough* though -- trying to program in some "fun", but, also keeping to the spirit of the thing -- the "fun" may depend more on the personality of the participants than on the game content for this sort of game, not sure.
smcameron
 
Posts: 377
Joined: 29 Oct 2010, 23:44

Re: Space Nerds In Space

Postby charlie » 25 Nov 2012, 06:03

It's not pretty, which sadly limits any kind of exposure.

However it looks really interesting.
Free Gamer - it's the dogz
Vexi - web UI platform
User avatar
charlie
Global Moderator
 
Posts: 2131
Joined: 02 Dec 2009, 11:56
Location: Manchester, UK

Re: Space Nerds In Space

Postby Myckel » 25 Nov 2012, 17:48

Looks more and more as something I might want to check out. How easy would it be to change the vector-interface to allow (backdrop) images, to make it more pretty?

3D would be great on the long term.
Myckel
 
Posts: 20
Joined: 23 Nov 2011, 07:04

Re: Space Nerds In Space

Postby smcameron » 25 Nov 2012, 20:01

Well... probably if I switched from basic gtk/gdk line drawing and so on to cairo, compositing a backdrop image -- even scalable -- would be possible, similar to Dueling Masters of Space Time. http://smcameron.github.com/dueling-mas ... pace-time/ Performance might be iffy on low end machines, but, eh, it'd probably be ok. To some extent, I think the "looks" of the thing aren't necessarily all that important, what's important is that is should be "fun", and fun and looks are not necessarily correlated, and maybe a lot of the "fun" of this particular game may come from the people playing it, we'll see, I guess.

The one place I think that the looks probably do matter quite a bit would be in the as-yet-unimplemented 3d "out the window" viewscreen.

I need to hurry up and get things far enough along that I can get some people together to play it and see what it's like.

-- steve
smcameron
 
Posts: 377
Joined: 29 Oct 2010, 23:44

Re: Space Nerds In Space

Postby charlie » 25 Nov 2012, 21:59

I wouldn't worry too much about the looks, I didn't mean it in a critical way.

Not everything can be Crysis 3, and to be honest I like the quaint style you use, I think Word War Vi is great. Like you say; priority is gameplay first.
Free Gamer - it's the dogz
Vexi - web UI platform
User avatar
charlie
Global Moderator
 
Posts: 2131
Joined: 02 Dec 2009, 11:56
Location: Manchester, UK

Re: Space Nerds In Space

Postby qubodup » 26 Nov 2012, 14:06

This looks exciting! What self-ironic name. :) (It might make sense to make some things in the game nerdy-funny-ironic, rather than nerdy-serious, too. in-game warning messages perhaps.)

The look is quite TTY-retro but dark-blue-on-black is very bad to read. I recommend light blue instead for the weapons screen.

If you enjoy tweaking the color palettes, here are some inspirations:
http://commons.wikimedia.org/wiki/File: ... t_(MSO-488)_mine_detection_and_classification_console.jpg
http://www.sonarscreensaver.com/promo/
http://commons.wikimedia.org/wiki/File: ... irdRad.jpg
If you prefer to not care about that but are interested in people testing other color palettes and posting screenshots and diffs, let us know.
User avatar
qubodup
Global Moderator
 
Posts: 1671
Joined: 08 Nov 2009, 22:52
Location: Berlin, Germany

Re: Space Nerds In Space

Postby Skorpio » 26 Nov 2012, 20:25

I've been working on some new top-down spaceships (and mechs), just for fun, and wondered if you have a use for them. Or are you going for a more abstract look and 3D graphics for the screen? If you want 3D ships, then you could probably utilize the shipyard on OGA.

Btw, I think the term phaser is protected and you should better replace it.
Spaceships.png
User avatar
Skorpio
OD Moderator
 
Posts: 775
Joined: 05 Dec 2009, 18:28

Re: Space Nerds In Space

Postby smcameron » 26 Nov 2012, 22:29

I'm probably going for a more abstract thing than those top-down views. The shpyard may come in handy when I get to the 3d stuff. (I have vague notions of metaprogramming OpenSCAD to procedurally generate spaceship models, but haven't thought very hard about it.)

As far as "phasers" being a protected term... I'm a little skeptical. Games like Netrek (http://www.netrek.org/ ) contain "phasers" ( http://www.netrek.org/beginner/newbie.php ) , as do all the old text based star trek games. If a lawyer writes me a scary letter, I'll worry about it then.

For now, getting the game into a playable state (and I think the 3d view is not strictly needed for that) is the highest priority.

-- steve
smcameron
 
Posts: 377
Joined: 29 Oct 2010, 23:44

Re: Space Nerds In Space

Postby smcameron » 02 Dec 2012, 04:11

Last edited by smcameron on 12 Jul 2019, 16:22, edited 1 time in total.
smcameron
 
Posts: 377
Joined: 29 Oct 2010, 23:44

Re: Space Nerds In Space

Postby schmidt100 » 11 Dec 2012, 11:06

This game looks really nice. Its impressive to see the fast progress and all the new things. Keep up your interesting work, I`ll follow your posts.
Do you have any idears of goals for the players, beside flying around in space?
User avatar
schmidt100
 
Posts: 14
Joined: 11 Mar 2010, 23:30

Re: Space Nerds In Space

Postby smcameron » 12 Dec 2012, 01:26

Do you have any idears of goals for the players, beside flying around in space?


Well, as a start, various ships will attack various starbases, as well as your ship, so you try to intervene, etc. and stay alive.

Additionally, multiple player-controlled starships may inhabit a server, so either cooperative or combative play is possible. "Space" being kind of wide open (and in my implemenation) kind of two dimensional, there's not much opportunity to hide-n-seek, or have elaborate strategies that I can think of for multi-ship combat. Will have to think about some ways to liven that up and make things more interesting.

Farther than that, I haven't really given it much thought, just trying to get the game to a playable state for now.

If you have some particular ideas, feel free to share, but of course I can't guarantee I'll ever get around to implementing any of them.

Ideas that allow simple things to be combined in interesting ways that lead to some interesting emergent behavior are probably the best, but that is kind of a tall order.
smcameron
 
Posts: 377
Joined: 29 Oct 2010, 23:44

Re: Space Nerds In Space

Postby smcameron » 21 Dec 2012, 06:22

Just a little progress update...

https://www.youtube.com/watch?v=XqXw85tyhXU
Image


-- steve
Last edited by smcameron on 12 Jul 2019, 16:22, edited 1 time in total.
smcameron
 
Posts: 377
Joined: 29 Oct 2010, 23:44

Re: Space Nerds In Space

Postby smcameron » 10 Jan 2013, 02:42

Lot of progress in the last few weeks.

Tons of refactoring to make the UI code ... start to resemble some sort of UI framework. Frightening.

Added a network setup screen from which you can launch the lobby server and the game server from the client and connect the client to the aforementioned.

And, added a wireframe 3d renderer.

https://www.youtube.com/watch?v=cZVxT4L4hJw
Image


-- steve
Last edited by smcameron on 12 Jul 2019, 16:23, edited 1 time in total.
smcameron
 
Posts: 377
Joined: 29 Oct 2010, 23:44

Re: Space Nerds In Space

Postby Evropi » 10 Jan 2013, 15:26

Nice! What is the classical music playing in the background by the way?

BTW, you may wanna try actually, err, using a screen recorder (FDesktopRecorder is the one I find the best for Linux). Also, if you find OpenSCAD slowing you down, try BRL-CAD. It's much more powerful, and in many ways, the granddaddy of the CAD programs today, made by the American army.
I'll just quote Wikipedia on it:
The BRL-CAD source code repository is believed to be the oldest public version-controlled codebase in the world that's still under active development, dating back to 1983-12-16 00:10:31 UTC.

You know your program is mature when it is still in use and development today and its original author is dead (another example: the C programming language) :)
You just wasted 3 seconds of your life reading this.
User avatar
Evropi
 
Posts: 385
Joined: 02 Sep 2012, 16:18

Re: Space Nerds In Space

Postby smcameron » 10 Jan 2013, 19:37

Evropi {l Wrote}:Nice! What is the classical music playing in the background by the way?


I believe it's Bach, the Brandenburg Concerto.

BTW, you may wanna try actually, err, using a screen recorder (FDesktopRecorder is the one I find the best for Linux).


Bit of a hassle with the audio then... pointing the camera at the screen is trivially easy, and I'm lazy, though it does give sub-par results.

Also, if you find OpenSCAD slowing you down, try BRL-CAD. It's much more powerful, and in many ways, the granddaddy of the CAD programs today, made by the American army.
I'll just quote Wikipedia on it:
The BRL-CAD source code repository is believed to be the oldest public version-controlled codebase in the world that's still under active development, dating back to 1983-12-16 00:10:31 UTC.

You know your program is mature when it is still in use and development today and its original author is dead (another example: the C programming language) :)


Interesting. I'll have to take a look at that. It appears to be a bit of a monster compared to openSCAD.
smcameron
 
Posts: 377
Joined: 29 Oct 2010, 23:44

Re: Space Nerds In Space

Postby hc » 10 Jan 2013, 23:53

+1 for openscad. I'm aware of brlcad and it's history for a some time btw.
But for programmers openscad seems like an awesome tool - again because I'm a fan of parametric and procedural design.
On the other hand maybe I've missed similar features in brlcad?
Can it do CSG operations like intersection, subtraction and addition on 3D geometry and that parametrically scripted with macro/modules

Would be nice if you can surprise me.

Edit: The MGED Quick Reference card shows a brlcad programming example with variables, loops and conditions.
But openscad seems 'turing' complete, looks familiar and decomposition into modules (like C functions) is simple and obvious, too.

:think:
github.com/hackcraft-de
hackcraft.de
User avatar
hc
LW3D Moderator
 
Posts: 213
Joined: 07 Feb 2011, 10:00
Location: far away

Re: Space Nerds In Space

Postby smcameron » 12 Jan 2013, 08:26

hc {l Wrote}:But openscad seems 'turing' complete, looks familiar and decomposition into modules (like C functions) is simple and obvious, too.

:think:


I'm a big fan of openSCAD as well. I'm not actually sure whether it's turing complete or not. It does have some pretty severe limitations (e.g. the "variables" you get in openSCAD act more like constants than like variables.) For this reason, I came up with openCSCAD, which is a tiny little C library for outputting openSCAD code. (It's kind of a neat little hack at best, and a useless piece of crap at worst, lol.) It does technically get you nice things like real variables, recursion etc. but at the cost of massive openscad file output which may or may not really be processable by openscad. (e.g. the tree picture on that page was done by screen shotting after pressing F5, not F6. F6 in openscad actually does all the reall CSG stuff, and doing all the intersections of all those branches, etc... well, you may or may not live long enough to see that computation run to completion.)

Haven't yet looked at BRLCAD, as I have no pressing need, and it looks a bit daunting.
smcameron
 
Posts: 377
Joined: 29 Oct 2010, 23:44

Re: Space Nerds In Space

Postby hc » 12 Jan 2013, 23:12

Hm, assumed that recursion in OpenSCAD would work - which would still make it a more or less complete functional programming language for solids even without variables - but it didn't work. It gave no errors for module-recursion but didn't work as expected, duplicating and renaming the duplicate method code did of course. Yes, seems pretty static compile time and incomplete but for technical/mechanical models it should be enough.
As for BRL-CAD: Can't imagine a tank having fractal structures ... unless for stealth someday ;)

Yeah, generating code from code is of course an option - besides openSCAD's code-editor isn't the best.
OpenSCAD's loops should suffice most of the time, I think I'll try when in need of recursive structures.


Wouldn't mind if Admins would move this discussion about tools somewhere else - don't want to divert from the interesting work in progres topic.
github.com/hackcraft-de
hackcraft.de
User avatar
hc
LW3D Moderator
 
Posts: 213
Joined: 07 Feb 2011, 10:00
Location: far away

Re: Space Nerds In Space

Postby smcameron » 13 Jan 2013, 05:06

hc {l Wrote}:besides openSCAD's code-editor isn't the best.

Yes. I'm pretty sure the openSCAD developers know this, because they provided a "hide editor" option, and the F3 key reloads the source file. What I do is have vim going in another window, and switch between the two with alt-tab. Save from vim, alt-tab to openscad, F3, then F6, then alt-tab back to vim -- that is essentially the "edit compile debug edit" cycle for me with openscad.
smcameron
 
Posts: 377
Joined: 29 Oct 2010, 23:44

Who is online

Users browsing this forum: No registered users and 1 guest