What about a WDL-interpreter in Subspace? |
Great! Please do that. |
|
60% |
[ 3 ] |
Yes but another programming language please. |
|
0% |
[ 0 ] |
Yes but DLL-plugins or something like that. |
|
0% |
[ 0 ] |
No. What wouldn't be a good idea. |
|
40% |
[ 2 ] |
|
Total Votes : 5 |
|
Author |
Message |
Qndre Server Help Squatter

Gender: Joined: Jan 25 2004 Posts: 295 Offline
|
Posted: Wed Feb 18, 2004 8:50 am Post maybe stupid 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:
////////////////////////////////////////////
// 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? 
Last edited by Qndre on Tue Mar 16, 2004 8:22 am, edited 2 times in total |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Wed Feb 18, 2004 9:53 am Post maybe stupid Post subject: |
 |
|
|
|
Not possible. The server doesn't do any physics. It's all on the client. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
 |
Qndre Server Help Squatter

Gender: Joined: Jan 25 2004 Posts: 295 Offline
|
Posted: Wed Feb 18, 2004 11:21 am Post maybe stupid 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...  |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Wed Feb 18, 2004 12:50 pm Post maybe stupid Post subject: |
 |
|
|
|
That would take a client modification. Something that wont happen. |
|
Back to top |
|
 |
Qndre Server Help Squatter

Gender: Joined: Jan 25 2004 Posts: 295 Offline
|
Posted: Wed Feb 18, 2004 1:20 pm Post maybe stupid 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.  |
|
Back to top |
|
 |
Jason Novice

Age:41 Gender: Joined: Feb 05 2004 Posts: 57 Offline
|
Posted: Wed Feb 18, 2004 1:26 pm Post maybe stupid 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. |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Wed Feb 18, 2004 5:08 pm Post maybe stupid Post subject: |
 |
|
|
|
Why do you say C looks like junk to you when you can read that? It's almost exactly C. _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him. |
|
Back to top |
|
 |
Mine GO BOOM Hunch Hunch What What

Age:42 Gender: Joined: Aug 01 2002 Posts: 3615 Location: Las Vegas Offline
|
Posted: Wed Feb 18, 2004 6:17 pm Post maybe stupid 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. |
|
Back to top |
|
 |
Qndre Server Help Squatter

Gender: Joined: Jan 25 2004 Posts: 295 Offline
|
Posted: Thu Feb 19, 2004 6:38 am Post maybe stupid 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. |
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Thu Feb 19, 2004 10:21 am Post maybe stupid Post subject: |
 |
|
|
|
hmm I wonder if this is in the wrong forums, shouldn't it be in GameDev on SSForums? o.O _________________ Performance is often the art of cheating carefully. - James Gosling |
|
Back to top |
|
 |
Qndre Server Help Squatter

Gender: Joined: Jan 25 2004 Posts: 295 Offline
|
Posted: Fri Feb 20, 2004 9:18 am Post maybe stupid Post subject: |
 |
|
|
|
Yes. Should be. |
|
Back to top |
|
 |
Qndre Server Help Squatter

Gender: Joined: Jan 25 2004 Posts: 295 Offline
|
Posted: Fri Feb 20, 2004 3:57 pm Post maybe stupid 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. |
|
Back to top |
|
 |
|