Server Help

Trash Talk - Friction for ships or WDL compatiblity

Qndre - Wed Feb 18, 2004 8:50 am
Post subject: Friction for ships or WDL compatiblity
This is just a suggestion but what about friction for ships? If you don't engage the thrusters then you slow down. I know this isn not useful for space-games but there is something like "ground warfare" or "metal gear" where it would make sense.

And what about WDL compatiblity so that you can write your own game-physics-engine in the powerful C-compatible programming language WDL? I've already written some WDL code which would be able to do that. It's a full physics- and movement-engine written originally with 3D compatiblity but also compatible to a 2D-game like subspace is:

Code: Show/Hide

////////////////////////////////////////////
// Qndre's Game Physics Engine  1.0.1     //
// Requires a running instance            //
// of the A4 engine                       //
// and an A5 compatible WDL C interpreter //
//                                        //
// This software is still in beta.        //
////////////////////////////////////////////

var intindicat = 0;
var a_position[3];
var a_angle[3];
var friction;
var force[3];
var temp[3];
var dist[3];

action move_me
{
   while (1) {
      force.pan = -10 * key_force.x;
      my.skill14 = time*force.pan + max(1-time*0.7,0)*my.skill14;
      my.pan += time * my.skill14;
      vec_set(temp.x);
      temp.z -= 4000;
      trace_mode = ignore_me+ignore_sprites+ignore_models;
      result = trace(my.x,temp);
      if (result > 5) {
         force.x = 0;
         force.y = 0;
         force.z = -5;
         friction = 0.1;
      } else {
         force.x = 10 * key_force.y;
         force.y = 0;
         force.z = -0.5 * result;
         friction = 0.7;
      }
      my.skill11 = time*force.x + max(1-time*friction,0)*my.skill11;
      my.skill13 = time*force.z + max(1-time*friction,0)*my.skill13;
      dist.x = time * my.skill11;
      dist.y = 0;
      dist.z = time * my.skill13;
      move(my,dist,nullvector);
      move_view();
      wait(1);
   }
}

Even if it's not possible (and I don't think anyone would implement this into his server) then it's a good suggestion, isn't it? biggrin.gif
Dr Brain - Wed Feb 18, 2004 9:53 am
Post subject:
Not possible. The server doesn't do any physics. It's all on the client.
Qndre - Wed Feb 18, 2004 11:21 am
Post subject:
Dr Brain wrote:
Not possible. The server doesn't do any physics. It's all on the client.

OK. It was just a proposition.
But what about putting a file like "physics.wdl" into the LVZ and then interpreting it by the client? That would be possible, right?
The script has one bug I'm not able to fix... In the last lines... new_let_it_all_out.gif
Dr Brain - Wed Feb 18, 2004 12:50 pm
Post subject:
That would take a client modification. Something that wont happen.
Qndre - Wed Feb 18, 2004 1:20 pm
Post subject:
Dr Brain wrote:
That would take a client modification. Something that wont happen.

It won't happen because PriitK has no license for WDL. A WDL license costs 899.- $ so PriitK won't buy. biggrin.gif
Jason - Wed Feb 18, 2004 1:26 pm
Post subject:
He could afford the license. The point Dr Brain is trying to make is the possiblility of either of the following is slim to none.

A.) Priit being interested the idea.

and/or

B.) Priit ever bothering to implement the functionality into the client.


I'm not saying this to be mean or an asshole or whatever. That's just the way it is. Priit has done barely a drop of client development (as least any that the general public is aware of) in months upon months.
Cyan~Fire - Wed Feb 18, 2004 5:08 pm
Post subject:
Why do you say C looks like junk to you when you can read that? It's almost exactly C.
Mine GO BOOM - Wed Feb 18, 2004 6:17 pm
Post subject:
Qndre wrote:
It won't happen because PriitK has no license for WDL. A WDL license costs 899.- $ so PriitK won't buy. :D

This is why people just learn C and DirectX/OpenGL.
Qndre - Thu Feb 19, 2004 6:38 am
Post subject:
Cyan~Fire wrote:
Why do you say C looks like junk to you when you can read that? It's almost exactly C.

I haven't only read it. I've written it. Stolen some physics formulas out of other apps (sample-code) but essentially written the source.
_
My problem with C is that I can't do things like creating a library and execute some code if it's called by another application and then sharing a result-variable with the calling application so that the calling application can get the value of the variable.
_
I can do some maths in C. But that's all. I don't know how to build a program structure or how do create procedures which are executed if the application is called, etc.
CypherJF - Thu Feb 19, 2004 10:21 am
Post subject:
hmm I wonder if this is in the wrong forums, shouldn't it be in GameDev on SSForums? o.O
Qndre - Fri Feb 20, 2004 9:18 am
Post subject:
Yes. Should be.
Qndre - Fri Feb 20, 2004 3:57 pm
Post subject:
K! Now posted it to www.ssforum.net
CU
PS: You can close this thread if you want. It isn't needed any more.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group