Controls for a space based combat thing

Hi

I’m trying to get a bit of the feel of x-wing, but slightly updated. I’m using accelerations rather than the x-wing setting the local velocity style controls, but I still want the same feel. I have spent quite some time working this out, and I think I have something close, you now drift slightly when flying round corners etc as the velocity vectors update due to the thrust kicking in.

I have a webstartable test client up, it’s 14 meg because I put some music in early on. I can remove it again if it’s too much of an issue (would only remove about 6 meg of the download). I would appreciate some feedback with constructive critisism.

The controls are mouse up/down/left/right increase/decreases pitch/yaw, cursor left and right controll roll, cursor up/down increases/decreases desired velocity.

Holding down the right mouse button changes to move camera mode and the mouse wheel zooms in/out.

This is designed for multiplayer, but right now, you’ll have to use the dummy server :slight_smile:

Thanks

Endolf

It swapped around my desktop res abit, and then died.

running full screen 640x480, on a dual monitor (1280x1024*2) Vista machine.
Latest nvidia drivers (on a GF6800GT), with Java 1.6.

windowed mode works fine… until the mouse leaves the window area, then the ship gets into a crazy super-fast spin :smiley:

It’s highly likely that Vista is the cause; I’ve had a number of Java related problems in Vista - most of them Eclipse related.

A perfect time to find the answer to a long-standing question i’ve had actually, does webstart pipe console output anywhere useful?

:edit:

I don’t think momentum should be maintained on angular rotation, it makes it quite easy to lose control.

Hi

You should get some .dvsf*.log files in your users home dir :slight_smile:

I’m not sure what you mean by [quote]I don’t think momentum should be maintained on angular rotation, it makes it quite easy to lose control.
[/quote]
The logic is that if you were traveling in the local z axis, and you rotate 90 degrees, within a short time, you should once again be traveling in the local z axis, is that not what you are seing happen?

Or do you mean that moving the mouse should affect the rotational velocity instead rotational acceleration like it currently does?

Thanks for trying it :slight_smile:

Endolf

yeah, roll, pitch and yaw rates should all be kept within sensible (human tollerable) limits.

I would imagine such a space craft would also automatically bring the crafts rotation to a stop when the controls are released, as I can’t think of many situations where tumbling endlessly is a particularly helpful ability. (possibly with an override key if you realy realy want to be tumbling through space)

Hi

I could do with some limits on roll/pitch/yaw agreed :). I imaged the being like a joystick, so pulling back on the joystick (moving the mouse down) would start you moving, centering it again would stop you (moving it back to where it was). I think thats how it should be. Does this seem very odd when you play?

I’m wondering if 1/2 the issue isn’t vista though, when I run the game windowed, I don’t have a mouse pointer, so I can’t move it out the window causin the huge spinning you seem to be getting.

A constant roll rate will be useful for matching your roll rate to that of the hangar entrance on the space stations that rotate, that don’t exist yet :slight_smile:

Thanks for trying it, it’s useful to hear others views of the system.

Endolf

I’m getting download stalled ???

anyways perhaps a useless comment(since I haven’t played it) but have you looked at freelancer, I remember liking the controlls and also has a controll where you can disable the stability system on command allowyou to drift while flying (you can rotate the ship slowly wilst still going the same way, proved to provide intesting dogfights.

Crashes after selecting a display mode (both windowed and fullscreen).

Pentium M 1.4GHz
512MB RAM
ATI Mobility Radeon 7500 32MB VRAM
(laptop)

Will try it later on my beafy desktop.

Oops, at a very quick guess I’d say thats because I’ve hard coded the number of samples at 4 for now, other than that, I can’t think of anything I’m doing thats complicated in any way. There should be a hint in the traces that webstart dumps out.

Thanks

Endolf

Hi

I was getting some serious issues with webstart lagging, it would say stalled downloading for minutes at a time. I’ve just installed jdk 6 update 1 and it seems to have disappeared. It might be unrelated, it might be a coinsidence, but it’s worked here for now :slight_smile:

I’ve updated the webstart to use no FSAA and to use 16 instead of 24 depth bits. This isn’t supposed to be a graphics demo, just a controls demo, so we don’t need that lot right now.

I’ve also turned off the visual velocity/thrust vectors as they were a distraction rather than an aid in testing at this point :slight_smile:

Thanks

Endolf

Webstart downloads, I get login then screen res choice and then it flickers once and poof…nothing.

Whats in your webstart logs?

C:\Documents and Settings<WINDOWS USER>\Application Data\Sun\Java\Deployment\log

I’m guessing there should be a .trace file that was from the appropriate time.

Check for a line right near the top something like
INFO: org.newdawn.darkvoid.client.gui.DVSFJMEDisplay: Using jar:http://www.darkvoidonline.com/dvsf/dvsfdata.jar!/data/images/dvsf.png for properties dialog image

After that, the jme bits should start, and it sounds like it fails creating the display.

Endolf

Why don’t you replace System.out with System.setOut(…) with a ‘pair’ outputstream (one to the STDOUT and one to a socket-outputstream targeted at your server)

It simply sucks to have remote crashes, without the traces (and having to ask for them)

When I have a game client aimed at players, rather than a ‘does this control system make sence’ that I’ve targeted at a developer audience I might. For now, this is a noddy little demo to see what people think of the control system. If it crashes, then yes, I’d like to fix it, but I would anticipate that most people on JGO could manage to find some logs.

As I’m not doing anything graphically clever, I expected it to ‘just work’, but I over estimated the odds of that happening I think :slight_smile:

Endolf

One thing about those space-shooters is that there is ‘too much’ freedom. It only takes a few moments of not paying attention, to get completely lost in these three dimensions. After a while, I turned around and found the big fleet again (more by luck than anything else). The biggest problem is that there are no reference-points, unless you have a superb memory and navigate on the starmap. Maybe add some ehm… hydrogen gasclouds?

The controls don’t really feel natural… just think about it, when you want to steer in space, you won’t tilt your spacecraft (it’s not an airplane, there is no air/gas to justify that behaviour). We also need some visual feedback of the steering, to make it more natural - now it feels like vector-math, instead of fiddling with the thrusters a bit.

Update:
Hm… I’m totally not into the space-sim genre, but I’ve seen some games that have a quite long (glowing) trace behind the spaceships, and a bigger viewingdistance from it - that might help.

Hi

Thanks for the feedback.

The lack of reference will be solved with some floating things, gas clouds or debris or something, and there will be trails from the ship. I’m anticipating a location read out too, plus a radar type thing with prehaps multiple levels of zoom, so if you get lost, you can find our way back to your mates. All valid points, but beyond this test.

The controls, you meantioned not needing to tilt in space?, do you mean the roll that appears to happen?, roll is attached to the keyboard right now exactly for this reason. The primary controls are pitch and yaw, purley so you travel in the direction you are looking. In theory there is no need to do that, but traveling sideways/backwards you really would get lost :). Is that what you mean?, I’d like to clarify incase there is something that needs improving, which is the point of this test :slight_smile:

The visual feedback of steering, do you mean you want to see some kind of thrusters on the front of the ship so you can see the thrust changes?, your point is you can’t see the thrust changes, only the effect (you rotate slower or faster)?

Again, this is useful to me, so thank you for trying.

Endolf

Hm… seems I was a little unclear I guess.

This is what I meant:


_
  - o _   (right turn)
        -


        _
  _ o -   (left turn)
-       

This is not needed, although it might be convenient with
G-forces 'n such so all the machinery in the spaceship
doesn’t shift all over the floor in a tight turn. Hmpf… :slight_smile:

About the thrusters, just at the backside. Having steering
thrusters at the nose is too… realistic? :slight_smile:

About the radar, you might want to make it logarithmic, so
that you have multiple-levels of zoom without ‘transitions’.

About the controls…
Some feature to break (to a hold) would be nice, because
right now, when you try to turn, you might miss your target
(a sitting duck) because you’re circling around it. Without
the (debug) colored vectors it’s hard to see whether you’re
moving or not - even with referencepoints, because they
tend to be HUGE and too far way to determine your velocity.

The roll like a plane when turning doesn’t happen unless the user uses the left/right cursor keys. Any other percieved roll is a result of pitch/yaw.

If you sit still when you log in, then pitch up 45 degrees, then yaw 90 degress, it will look as though you have rolled 45 degree, but it’s a result of how you got there.

I was thinking of adding a ‘halt’ command. It won’t stop you instantly, but will slow you to a halt and stop all roll/pitch/yaw too.

Endolf

This actually makes me feel more like I’m in space… more lost and alone :slight_smile:

I’ve played the game, had no problems. I find the steering to airplane like, not as quite as good as I remember when I’ve played other space ship games. Maybe you could try with thrusters sideways and on top and below of the ship, like they have on raptors on “battlestar gallactica”. That way ship would turn around it’s center very fast and you would still have much velocity (well, the same velocity as space doesn’t slow you down) from your old direction. Could be interesting.

btw. how about starting in one of those X fighter you have instead of this flat one which looks like one of those animals that wait for their pray at sea bottom :slight_smile:

The lost and alone thing is part of what I’m going for. I liked the realistic manouvers of elite, but found that in combat, when the 2 players came at the fight from different sides, they just overshot each other by huge amounts because of how long it took to slow down, and I ended up having to spend a few minutes hitting F4 (or shitf F4 or what ever the key combo was) to time skip trying to slow down. On the other hand, I didn’t want to go quite as far as x-wing, which is very very arcade style. I wanted something in between.

Currently, the ‘physics’ of the space flight does indeed have thrusters all over, it’s just that players can’t control them all yet :). Moving the mouse sideways gives you some yaw thrust, which will yaw around the ships center (stay still when you first start and try it). Once you are moving, this effects your ‘I want to be going this way’ vector. The speed once it has rotated you should be the same. It’s all done with ‘fly by wire’, if I turn that off, you are back to elite style controls. This may become a feature, lose the computer and you have to control it all yourself :slight_smile:

Do you think the option to turn it on/off will add to the game play when it’s a proper space combat thing?, that should be easy enough to do.

There will be limits on the speed of rotation and the velocity of the ship, but that will depend on which ship you have.

Endolf

That is a really cool start. I thought that the controlls were generally quite OK, but as it is right now, it is quite easy to spin out of control. It also seems like one “slides” a bit much when turning at slow speeds. But that’s just a matter of taste. I think you should try to make it as easy to control as possible and fun rather than realistick and really hard to get the ship to do what one wants. Radar, some sort of gyro and more things might give feedback of what is happening might make things easier, but hart to tell without trying. I think that joystick contol might work very well here. Given that a shot? Might be nice to slow the roll a bit automatically, sort of like most plane sims.

AND I really wanna blow things up! I mean, just to test how easy it is to target things :wink: