Free aiming

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

Postby Sven » Mon Aug 17, 2009 1:13 pm

the patch file is created automaticly? :?:


EDIT: yes it is how i imagine it before then its cool i tought, that i have to write the .patch file per hand

i'll google it thy :D
Last edited by Sven on Mon Aug 17, 2009 1:18 pm, edited 1 time in total.
German Nexuiz Clan:
Image
Sven
Alien trapper
 
Posts: 315
Joined: Sun Jun 01, 2008 8:38 am
Location: Berlin; Germany

Postby Mr. Bougo » Mon Aug 17, 2009 1:16 pm

terencehill wrote:Another better place than this to post your patch is http://pastebin.com/ , no need to be registered there. This way we can download the patch with one click, instead of doing copy, open a text editor, paste, save file...


Erm, it would be better to put it on its own item in http://dev.alientrap.org
Meh.
Mr. Bougo
Keyboard killer
 
Posts: 760
Joined: Mon Sep 10, 2007 3:29 pm

Postby terencehill » Mon Aug 17, 2009 1:24 pm

Mr. Bougo wrote:
terencehill wrote:Another better place than this to post your patch is http://pastebin.com/ , no need to be registered there. This way we can download the patch with one click, instead of doing copy, open a text editor, paste, save file...


Erm, it would be better to put it on its own item in http://dev.alientrap.org

I've already suggested it, look at my first post. But if he doesn't want to register, I've suggested a quick alternative, where there is no need to register. I confirm the better place is http://dev.alientrap.org/projects/nexuiz/issues
terencehill
Alien
 
Posts: 176
Joined: Thu Jul 10, 2008 10:33 pm
Location: Italy

Postby Sven » Mon Aug 17, 2009 2:48 pm

Rahsennor wrote:
Sven wrote:for what is this: @@ -652,15 +700,15 @@?
i think its the lines where add or delete something but if im right for what is ",15"?

+ is add and -delete ,right?

It's a diff. Meant for computers, not humans. Try Wikipedia or Google if you really want to know.

i want to get the diff or the patch thing...
so i just make a backup from qcsrc then mod it and start the diff thing which compare the modded and the original files and create a .pach file, right?
i searched but the links i found didnt work -.-

found this but no download link... http://stephenjungels.com/jungels.net/a ... nutes.html

found link: http://gnuwin32.sourceforge.net/packages/diffutils.htm
Last edited by Sven on Mon Aug 17, 2009 4:51 pm, edited 2 times in total.
German Nexuiz Clan:
Image
Sven
Alien trapper
 
Posts: 315
Joined: Sun Jun 01, 2008 8:38 am
Location: Berlin; Germany

Postby Chubby » Mon Aug 17, 2009 3:36 pm

I stay with the regular
Chubby
Alien trapper
 
Posts: 483
Joined: Wed Mar 19, 2008 8:00 pm
Location: here

Postby Sven » Mon Aug 17, 2009 5:39 pm

is it right when i make a atch file?

Code: Select all
diff -u phys_subs.qc phys_subs2.qc > difftest_phys_subs.patch


and is it right that my windows takes aa long time for this:

Code: Select all
vector(vector c_maxs, vector c_mins, vector c_org) Clamp =
{
   local vector ret_vec;

   ret_vec_x = min(c_maxs_x, c_org_x);
   ret_vec_x = max(c_mins_x, ret_vec_x);
   ret_vec_y = min(c_maxs_y, c_org_y);
   ret_vec_y = max(c_mins_y, ret_vec_y);
   ret_vec_z = min(c_maxs_z, c_org_z);
   ret_vec_z = max(c_mins_z, ret_vec_z);
   return ret_vec;
};

vector(vector a, vector b) crossproduct =
{
   local vector v;
   v_x = a_y * b_z - a_z * b_y;
   v_y = a_z * b_x - a_x * b_z;
   v_z = a_x * b_y - a_y * b_x;
   return v;
};

float(float f) Snap2Grid =
{
   float rh, rl, r, rval;

   if (f == 0)
      return 0;

   if (f < 0)
   {
      rval = -1;
      f = f*-1;
   }
   else
      rval = 1;

   while(rh < f)
      rh = rh + self.pe_grid;
   rl = rh - self.pe_grid;
   r = (rh-rl)*0.5;
   f = f - rl;
   if (f < r)
      return rl*rval;
   else
      return rh*rval;
};

float BT_LIGHTNING = 0;
float BT_BEAM = 1;

void(float beamtype, vector bmins, vector bmaxs) BeamBox =
{
   local vector v1, v2;

   v1 = bmaxs;
   v2 = bmaxs;
   v2_x = bmins_x;
   if (beamtype == BT_LIGHTNING)
      te_lightning1(world, v1, v2);
   else
      te_beam(world, v1, v2);
   v1 = bmaxs;
   v2 = bmaxs;
   v2_y = bmins_y;
   if (beamtype == BT_LIGHTNING)
      te_lightning1(world, v1, v2);
   else
      te_beam(world, v1, v2);
   v1 = bmaxs;
   v2 = bmaxs;
   v2_z = bmins_z;
   if (beamtype == BT_LIGHTNING)
      te_lightning1(world, v1, v2);
   else
      te_beam(world, v1, v2);
   v1 = bmins;
   v2 = bmins;
   v2_x = bmaxs_x;
   if (beamtype == BT_LIGHTNING)
      te_lightning1(world, v1, v2);
   else
      te_beam(world, v1, v2);
   v1 = bmins;
   v2 = bmins;
   v2_y = bmaxs_y;
   if (beamtype == BT_LIGHTNING)
      te_lightning1(world, v1, v2);
   else
      te_beam(world, v1, v2);
   v1 = bmins;
   v2 = bmins;
   v2_z = bmaxs_z;
   if (beamtype == BT_LIGHTNING)
      te_lightning1(world, v1, v2);
   else
      te_beam(world, v1, v2);
   v1 = bmins;
   v1_z = bmaxs_z;
   v2 = bmins;
   v2_x = bmaxs_x;
   v2_z = bmaxs_z;
   if (beamtype == BT_LIGHTNING)
      te_lightning1(world, v1, v2);
   else
      te_beam(world, v1, v2);
   v1 = bmins;
   v1_z = bmaxs_z;
   v2 = bmins;
   v2_y = bmaxs_y;
   v2_z = bmaxs_z;
   if (beamtype == BT_LIGHTNING)
      te_lightning1(world, v1, v2);
   else
      te_beam(world, v1, v2);
   v1 = bmaxs;
   v1_z = bmins_z;
   v2 = bmaxs;
   v2_x = bmins_x;
   v2_z = bmins_z;
   if (beamtype == BT_LIGHTNING)
      te_lightning1(world, v1, v2);
   else
      te_beam(world, v1, v2);
   v1 = bmaxs;
   v1_z = bmins_z;
   v2 = bmaxs;
   v2_y = bmins_y;
   v2_z = bmins_z;
   if (beamtype == BT_LIGHTNING)
      te_lightning1(world, v1, v2);
   else
      te_beam(world, v1, v2);
   v1 = bmins;
   v1_x = bmaxs_x;
   v2 = bmaxs;
   v2_y = bmins_y;
   if (beamtype == BT_LIGHTNING)
      te_lightning1(world, v1, v2);
   else
      te_beam(world, v1, v2);
   v1 = bmins;
   v1_y = bmaxs_y;
   v2 = bmaxs;
   v2_x = bmins_x;
   if (beamtype == BT_LIGHTNING)
      te_lightning1(world, v1, v2);
   else
      te_beam(world, v1, v2);
};


after ~10min i canceled is and he created a .patch file with nothing(99% because i canceled it)...
German Nexuiz Clan:
Image
Sven
Alien trapper
 
Posts: 315
Joined: Sun Jun 01, 2008 8:38 am
Location: Berlin; Germany

Postby Rahsennor » Tue Aug 18, 2009 1:01 am

terencehill wrote:I've already suggested it, look at my first post. But if he doesn't want to register, I've suggested a quick alternative, where there is no need to register. I confirm the better place is http://dev.alientrap.org/projects/nexuiz/issues

I want to. :P I just haven't had a chance to check it out. It doesn't say, does it show my email to anyone? I don't want spam...

Chubby: You mean you don't like the patch? It's not meant for use with a mouse, but for other pointers that normally make the game unplayable.

Sven: try "svn diff > path/filename.patch" to get a diff of your working copy against the svn. Note this will diff all files, not just one.

EDIT: I fixed the spiderbot. :oops:
Rahsennor
Member
 
Posts: 13
Joined: Tue Jul 21, 2009 9:54 am
Location: Torven

Postby Rahsennor » Tue Aug 18, 2009 5:05 am

Update! :shock:
Code: Select all
Made playing without crosshair ("crosshair 0" only) easier.
Fixed chasecam.
Made another broken attempt at correcting for FOVs other than 90.
Added cvar for deadzone, as requested.
Added cvar for sensitivity.
(Slightly) cleaner code.
How can I test the spiderbot? :?:
Rahsennor
Member
 
Posts: 13
Joined: Tue Jul 21, 2009 9:54 am
Location: Torven

Postby Mizu Kitsune » Wed Aug 19, 2009 3:26 am

i think this will be good, and useful, as i've been playing with eye tracking lately and this would help enhance the experience.
+The Dude+
[-Project 2501-]
Mizu Kitsune
Alien trapper
 
Posts: 362
Joined: Sat Apr 11, 2009 7:51 pm
Location: Maridia

Postby terencehill » Wed Aug 19, 2009 6:49 pm

Rahsennor wrote:I want to. :P I just haven't had a chance to check it out. It doesn't say, does it show my email to anyone? I don't want spam...

U can choose in your profile to don't show your email address, like I did: http://dev.alientrap.org/account/show/19
terencehill
Alien
 
Posts: 176
Joined: Thu Jul 10, 2008 10:33 pm
Location: Italy

PreviousNext

Return to Nexuiz - Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron