* FAQ    * Search  * Register * Login 
Active topics
Unanswered topics

All times are UTC-06:00



Post new topic  This topic is locked, you cannot edit posts or make further replies.  [ 15 posts ] 
Author Message
 Post subject: Ripping code ...
PostPosted: Wed Feb 14, 2007 11:30 am 
Offline
D2X Master
D2X Master
User avatar

Joined: Thu Nov 05, 1998 12:01 pm
Posts: 5278
Website: http://www.descent2.de
Zico,

Code:
#define LIMIT_HOMERS   1
#define HOMER_MAX_FPS   30
#define HOMER_MIN_DELAY (1000 / HOMER_MAX_FPS)

//--------------------------------------------------------------------
//   Set object *objp's orientation to (or towards if I'm ambitious) its velocity.
void homing_missile_turn_towards_velocity(object *objp, vms_vector *norm_vel)
{
   vms_vector   new_fvec;

#ifdef LIMIT_HOMERS
   static time_t   last_time = -1;
   static int nFrames = 1;
   time_t this_time, delta_time;
   fix frame_time;
   int fps;
   if (last_time == -1) {
      last_time = clock ();
      frame_time = FrameTime;
   } else {
      nFrames++;
      this_time = clock ();
      delta_time = this_time - last_time;
      if (delta_time < HOMER_MIN_DELAY) {
         return;
      } else {
         fps = (1000 + delta_time / 2) / delta_time;
         frame_time = fps ? (f1_0 + fps / 2) / fps : f1_0;
         //                     frame_time /= nFrames;
         nFrames = 0;
         last_time = this_time;
      }
   }
#else
   fix frame_time = FrameTime;
#endif


Sure, D2X-XL is GPL, but if you rip code from D2X-XL, you still ought to have at least the decency to give due credit to the author.

I wonder how much other stuff you took from D2X-XL w/o dropping a single word about it.

Diedel


Top
   
 
 Post subject:
PostPosted: Wed Feb 14, 2007 1:44 pm 
Offline
DBB_Master
DBB_Master
User avatar

Joined: Thu Nov 05, 1998 12:01 pm
Posts: 9485
Location: Capital Of Canada
Shouldn't this be taken to PMs?


Top
   
 
 Post subject:
PostPosted: Wed Feb 14, 2007 1:46 pm 
Offline
DBB Ace
DBB Ace
User avatar

Joined: Tue Jan 09, 2007 12:02 pm
Posts: 66
I believe this has already been addressed elsewhere.

http://dxx-rebirth.de/smf/index.php?top ... 74#msg1374


Top
   
 
 Post subject:
PostPosted: Wed Feb 14, 2007 8:46 pm 
Offline
DBB Master
DBB Master
User avatar

Joined: Thu Nov 22, 2001 3:01 am
Posts: 9205
WLM: biffski@yahoo.com
Location: Beaverton, Oregon USA
oh come on.

Posting here was unnecessary if it's already been addressed on the DXX forum.

If you have a real beef, bring in a couple of others to moderate a discourse.

thanks Bakdraft.


Top
   
 
 Post subject:
PostPosted: Thu Feb 15, 2007 8:20 am 
Offline
D2X Master
D2X Master
User avatar

Joined: Thu Nov 05, 1998 12:01 pm
Posts: 5278
Website: http://www.descent2.de
If you look at the post dates, you will notice that I posted on dxx-rebirth after having posted here, because it had come to my mind that that would be a better place. You can delete my post(s) here if you want to.


Top
   
 
 Post subject:
PostPosted: Thu Feb 15, 2007 12:56 pm 
Offline
DBB DemiGod
DBB DemiGod
User avatar

Joined: Sat Oct 24, 1998 2:01 am
Posts: 6415
Location: Calgary Alberta Canada
why are you complaining about zico using code that came from the original D2x, and claiming it as your own?


Top
   
 
 Post subject:
PostPosted: Thu Feb 15, 2007 1:59 pm 
Offline
D2X Master
D2X Master
User avatar

Joined: Thu Nov 05, 1998 12:01 pm
Posts: 5278
Website: http://www.descent2.de
It doesn't come from the original D2X, It is definitely my code; but it can be that it stems from a time when I was still contributing to the main D2X project. If that is so, zico couldn't know that. I also wouldn't complain about someone using my code, I'd only complain if I wouldn't be given due credit for it.


Top
   
 
 Post subject: Re:
PostPosted: Thu Feb 15, 2007 2:29 pm 
Offline
DBB Material Defender
DBB Material Defender
User avatar

Joined: Sun Nov 11, 2001 3:01 am
Posts: 4680
Website: http://www.metallisoft.com/files
Diedel wrote:
It doesn't come from the original D2X, It is definitely my code; but it can be that it stems from a time when I was still contributing to the main D2X project. If that is so, zico couldn't know that. I also wouldn't complain about someone using my code, I'd only complain if I wouldn't be given due credit for it.


Why waste code space with comments, eh? :)


Top
   
 
 Post subject: Re:
PostPosted: Thu Feb 15, 2007 4:21 pm 
Offline
D2X Master
D2X Master
User avatar

Joined: Thu Nov 05, 1998 12:01 pm
Posts: 5278
Website: http://www.descent2.de
Testiculese wrote:
Why waste code space with comments, eh? :)

How the heck did you know ... ? :P

That code limits homing missile turn rate handling to 30 fps.


Top
   
 
 Post subject:
PostPosted: Thu Feb 15, 2007 5:40 pm 
Offline
DBB Material Defender
DBB Material Defender
User avatar

Joined: Sun Nov 11, 2001 3:01 am
Posts: 4680
Website: http://www.metallisoft.com/files
Whoops, you missed it, I was joking on \"given due credit for it.\" (I can read code as fast as you.)


Top
   
 
 Post subject: Re:
PostPosted: Thu Feb 15, 2007 6:33 pm 
Offline
D2X Master
D2X Master
User avatar

Joined: Thu Nov 05, 1998 12:01 pm
Posts: 5278
Website: http://www.descent2.de
Testiculese wrote:
Whoops, you missed it, I was joking on "given due credit for it." (I can read code as fast as you.)

I don't think I missed it. I was joking back. My half sentence finishes "... about my ugly commenting habits?" ;) (A feeble attempt of making fun of myself ... :roll: )

Tsk. You guys here just never understand me ... :wink:


Top
   
 
 Post subject:
PostPosted: Thu Feb 15, 2007 9:18 pm 
Offline
Defender of the Night
Defender of the Night

Joined: Thu Nov 05, 1998 12:01 pm
Posts: 13452
Location: Olathe, KS
Heres a novel idea: If you have a dispute with someone, save it for PM or IM. We don't care about your little melodrama.

By the way, if you're going to accuse someone of stealing something, atleast get it right.


Top
   
 
 Post subject:
PostPosted: Thu Feb 15, 2007 9:31 pm 
Offline
DBB Ace
DBB Ace
User avatar

Joined: Tue Jun 12, 2001 2:01 am
Posts: 87
I was under the impression the new turn rate is 40 fps, not 30 fps. However, I'm fine with 60 FPS. I have a bigger problem with fact that the homing missiles in D2 don't lock onto the target in the reticle and instead home in on the targets using some other protocol. IN anarchy I believe it's the first target in the players list instead of the one in your reticle, for robots I think it's something similar, not necessarily the closest robot and rarely the one you're trying to target.


Top
   
 
 Post subject:
PostPosted: Fri Feb 16, 2007 3:23 am 
Offline
D2X Master
D2X Master
User avatar

Joined: Thu Nov 05, 1998 12:01 pm
Posts: 5278
Website: http://www.descent2.de
It was always so that the missile does not necessarily target the object closest to your reticle.


Top
   
 
 Post subject:
PostPosted: Fri Feb 16, 2007 10:54 am 
Offline
DXX Master
DXX Master

Joined: Wed Sep 07, 2005 8:11 am
Posts: 229
No problem about crossposting, copy/paste is easy:

a) this code comes from D2X: http://cvs.icculus.org/cvs/d2x/main/las ... 10&r2=1.11

b) however it's not working correctly/ is broken so do not have any fear it'll be removed soon.

c) the license of your engine is NOT GPL and DOES allow you to keep the source for yourself

d) if you want to spread up such things, please do it private

e) closed


Top
   
 
Display posts from previous:  Sort by  
Post new topic  This topic is locked, you cannot edit posts or make further replies.  [ 15 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Descent'rs have piloted these pages
 
The layout and contents contained within this site are © DescentBB.net 1997-2006.
Descent, Descent II are © Parallax Software Corporation.
Descent III is Outrage Entertainment.
Descent is a Trademark of Interplay Productions.

Miner Wars™ is trademark of Keen Software House s. r. o.
.


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group