IPB


Welcome Guest ( Log In | Register )


Welcome to the nsMod Community Forum (formerly modNS) - please have a look around.
Its recommended that you create a member account so you can access all the features available to members.
Forum activity / posting rewards you with many privileges. Registration is free and only takes a few moments to complete.

> Read The Rules, Or DIE!

View the Rules for this Forum prior to posting here ... OR ELSE! Do not post requests, or ideas in here, or they will be removed, and so shall you.

During your visit you may notice missing attachments or broken links - please post them in the Bug Tracker.

2 Pages V   1 2 >  
Reply to this topicStart new topic
> NS 3.2 Final AMXx Module, Just the standard module
steve
post Nov 22 2006, 06:26 AM
Post #1


Dehrnoxti
Group Icon

Group: Good Guys
Member No.: 62
Joined: 17-September 03

Posts: 932
Posts per day: 0.23
Topics Started: 41
Skin: IP.Board Pro

User's local time:
Aug 22 2014, 05:05 AM
Windows or Linux ?: Lin



This is just a very quick update of the NS module (not peachys patch, Im not familiar with his offsets), all offsets should be updated. Let me know of any problems asap.

Edit: Updated to fix a wrong offset with player points.

Edit 2: Updated for beta 2.

Edit 3: Updated for NS 3.2 final

Source available here.

NOTE: You do not need this if you installed the AMX Mod X 1.76d package!

This post has been edited by steve: Mar 9 2007, 08:12 PM
Attached File(s)
Attached File  ns_amxx.zip ( 66.12K ) Number of downloads:  1599
 
Go to the top of the page
PM  
+Quote Post
steve
post Nov 22 2006, 06:36 AM
Post #2


Dehrnoxti
Group Icon

Group: Good Guys
Member No.: 62
Joined: 17-September 03

Posts: 932
Posts per day: 0.23
Topics Started: 41
Skin: IP.Board Pro

User's local time:
Aug 22 2014, 05:05 AM
Windows or Linux ?: Lin



For those curious, here are the changes from the 1.76 branch of the module from AMXXs SVN:

CODE
--- ns_const.h  2006-11-22 11:10:41.000000000 -0500
+++ ns_const.h-old.h    2006-11-22 11:21:36.000000000 -0500
@@ -6,56 +6,56 @@

// Offsets (used in NPData.cpp)

-#define      OFFSET_WIN_RESOURCES              1816    //454 * 4 // ESTIMATED - CONFIRMED
-#define      OFFSET_LIN_RESOURCES              1836    //459 * 4 // NO CHANGE
+#define      OFFSET_WIN_RESOURCES              1816    //454 * 4
+#define      OFFSET_LIN_RESOURCES              1836    //459 * 4

-#define      OFFSET_WIN_WEAPDMG                        408             //102 * 4 // ESTIMATED - CONFIRMED
-#define      OFFSET_LIN_WEAPDMG                        424             //106 * 4 // CHANGED + 8 B
+#define      OFFSET_WIN_WEAPDMG                        400             //100 * 4
+#define      OFFSET_LIN_WEAPDMG                        416             //104 * 4

-#define      OFFSET_WIN_WEAPRANGE              404             //101 * 4 // ESTIMATED - CONFIRMED
-#define      OFFSET_LIN_WEAPRANGE              420             //105 * 4 // CHANGED + 8 B
+#define      OFFSET_WIN_WEAPRANGE              396             //99 * 4
+#define      OFFSET_LIN_WEAPRANGE              412             //103 * 4

-#define      OFFSET_WIN_WEAPCLIP               364             //91 * 4 // ESTIMATED - CONFIRMED
-#define      OFFSET_LIN_WEAPCLIP               380             //95 * 4 // NO CHANGE
+#define      OFFSET_WIN_WEAPCLIP               364             //91 * 4
+#define      OFFSET_LIN_WEAPCLIP               380             //95 * 4

-#define      OFFSET_WIN_HIVE_TRAIT             484             //121 * 4 // ESTIMATED - CONFIRMED
-#define      OFFSET_LIN_HIVE_TRAIT             500             //125 * 4 // NO CHANGE
+#define      OFFSET_WIN_HIVE_TRAIT             484             //121 * 4
+#define      OFFSET_LIN_HIVE_TRAIT             500             //125 * 4

-#define      OFFSET_WIN_SCORE                  6584    //1646 * 4 // ESTIMATED - CONFIRMED
-#define      OFFSET_LIN_SCORE                  6604    //1651 * 4 // CHANGED + 28B
+#define      OFFSET_WIN_SCORE                  6556    //1639 * 4
+#define      OFFSET_LIN_SCORE                  6576    //1644 * 4

-#define      OFFSET_WIN_EXP                            6508    //1627 * 4 // ESTIMATED - CONFIRMED
-#define      OFFSET_LIN_EXP                            6528    //1632 * 4 // CHANGED + 28B
+#define      OFFSET_WIN_EXP                            6480    //1620 * 4
+#define      OFFSET_LIN_EXP                            6500    //1625 * 4

-#define      OFFSET_WIN_POINTS                 6516    //1629 * 4 // ESTIMATED - CONFIRMED
-#define      OFFSET_LIN_POINTS                 6536    //1634 * 4 // CHANGED + 28B
+#define      OFFSET_WIN_POINTS                 6488    //1622 * 4
+#define      OFFSET_LIN_POINTS                 6508    //1627 * 4

-#define      OFFSET_WIN_AMMO_LMG               1116    //279 * 4 // ESTIMATED - CONFIRMED
-#define      OFFSET_LIN_AMMO_LMG               1136    //284 * 4 // NO CHANGE
+#define      OFFSET_WIN_AMMO_LMG               1116    //279 * 4
+#define      OFFSET_LIN_AMMO_LMG               1136    //284 * 4

-#define      OFFSET_WIN_AMMO_PISTOL            1120    //280 * 4 // ESTIMATED - CONFIRMED
-#define      OFFSET_LIN_AMMO_PISTOL            1140    //285 * 4 // NO CHANGE
+#define      OFFSET_WIN_AMMO_PISTOL            1120    //280 * 4
+#define      OFFSET_LIN_AMMO_PISTOL            1140    //285 * 4

-#define      OFFSET_WIN_AMMO_SHOTGUN   1124    //281 * 4 // ESTIMATED - CONFIRMED
-#define      OFFSET_LIN_AMMO_SHOTGUN   1144    //286 * 4 // NO CHANGE
+#define      OFFSET_WIN_AMMO_SHOTGUN   1124    //281 * 4
+#define      OFFSET_LIN_AMMO_SHOTGUN   1144    //286 * 4

-#define      OFFSET_WIN_AMMO_HMG               1128    //282 * 4 // ESTIMATED - CONFIRMED
-#define      OFFSET_LIN_AMMO_HMG               1148    //287 * 4 // NO CHANGE
+#define      OFFSET_WIN_AMMO_HMG               1128    //282 * 4
+#define      OFFSET_LIN_AMMO_HMG               1148    //287 * 4

-#define      OFFSET_WIN_AMMO_GL                        1132    //283 * 4 // ESTIMATED - CONFIRMED
-#define      OFFSET_LIN_AMMO_GL                        1152    //288 * 4 // NO CHANGE
+#define      OFFSET_WIN_AMMO_GL                        1132    //283 * 4
+#define      OFFSET_LIN_AMMO_GL                        1152    //288 * 4

-#define      OFFSET_WIN_AMMO_HG                        1136    //284 * 4 // ESTIMATED - CONFIRMED
-#define      OFFSET_LIN_AMMO_HG                        1156    //289 * 4 // NO CHANGE
+#define      OFFSET_WIN_AMMO_HG                        1136    //284 * 4
+#define      OFFSET_LIN_AMMO_HG                        1156    //289 * 4

-#define      OFFSET_WIN_DEATHS                 1380    //345 * 4 // ESTIMATED - CONFIRMED
-#define      OFFSET_LIN_DEATHS                 1400    //350 * 4 // CHANGED + 4B
+#define      OFFSET_WIN_DEATHS                 1380    //345 * 4
+#define      OFFSET_LIN_DEATHS                 1400    //349 * 4

-#define      OFFSET_WIN_STRUCTOWNER            324             //81 * 4 // ESTIMATED - CONFIRMED
-#define      OFFSET_LIN_STRUCTOWNER            340             //85 * 4 // NO CHANGE
+#define      OFFSET_WIN_STRUCTOWNER            324             //81 * 4
+#define      OFFSET_LIN_STRUCTOWNER            340             //85 * 4

-#define      OFFSET_WIN_HIVEABILITY            6244    //1561 * 4 // ESTIMATED - CONFIRMED
-#define      OFFSET_LIN_HIVEABILITY            6264    //1566 * 4 // CHANGED + 24B
+#define      OFFSET_WIN_HIVEABILITY            6220    //1555 * 4
+#define      OFFSET_LIN_HIVEABILITY            6240    //1560 * 4

enum
{


This post has been edited by Steve_Dudenhoeffer: Jan 3 2007, 01:15 AM
Go to the top of the page
PM  
+Quote Post
steve
post Dec 24 2006, 12:10 AM
Post #3


Dehrnoxti
Group Icon

Group: Good Guys
Member No.: 62
Joined: 17-September 03

Posts: 932
Posts per day: 0.23
Topics Started: 41
Skin: IP.Board Pro

User's local time:
Aug 22 2014, 05:05 AM
Windows or Linux ?: Lin



Note that because 3.2 beta 2 is expected to be released "soon" this was *not* included in amxmodx 1.76c (released a couple hours ago), but this module WILL work with 1.76c.

The nscommands.sma was patched in 1.76c (since its really unlikely it will break again through the betas of 3.2).
Go to the top of the page
PM  
+Quote Post
steve
post Jan 8 2007, 05:09 AM
Post #4


Dehrnoxti
Group Icon

Group: Good Guys
Member No.: 62
Joined: 17-September 03

Posts: 932
Posts per day: 0.23
Topics Started: 41
Skin: IP.Board Pro

User's local time:
Aug 22 2014, 05:05 AM
Windows or Linux ?: Lin



Updated for NS 3.2 Beta 2 offsets. Please note, this wont work in beta 1 any more.

For those curious, here are the new offsets, comments (CHANGED etc) are in relation to Beta 1.

CODE
#define      nOFFSET_WIN_RESOURCES        1816    //454 * 4 // CONFIRMED
#define      nOFFSET_LIN_RESOURCES        1836    //459 * 4 // NO CHANGE

#define      nOFFSET_WIN_WEAPDMG            408        //102 * 4 // CONFIRMED
#define      nOFFSET_LIN_WEAPDMG            424        //106 * 4 // NO CHANGE

#define      nOFFSET_WIN_WEAPRANGE        404        //101 * 4 // CONFIRMED
#define      nOFFSET_LIN_WEAPRANGE        420        //105 * 4 // NO CHANGE

#define      nOFFSET_WIN_WEAPCLIP        364        //91 * 4 // CONFIRMED
#define      nOFFSET_LIN_WEAPCLIP        380        //95 * 4 // NO CHANGE

#define      nOFFSET_WIN_HIVE_TRAIT        488        //122 * 4 // CONFIRMED
#define      nOFFSET_LIN_HIVE_TRAIT        504        //126 * 4 // CHANGED + 4B

#define      nOFFSET_WIN_SCORE            6588    //1647 * 4 // CONFIRMED
#define      nOFFSET_LIN_SCORE            6608    //1652 * 4 // CHANGED +4B

#define      nOFFSET_WIN_EXP                6512    //1628 * 4 // CONFIRMED
#define      nOFFSET_LIN_EXP                6532    //1633 * 4 // CHANGED + 4B

#define      nOFFSET_WIN_POINTS            6520    //1630 * 4 // CONFIRMED
#define      nOFFSET_LIN_POINTS            6540    //1635 * 4 // CHANGED + 4B

#define      nOFFSET_WIN_AMMO_LMG        1116    //279 * 4 // CONFIRMED
#define      nOFFSET_LIN_AMMO_LMG        1136    //284 * 4 // NO CHANGE

#define      nOFFSET_WIN_AMMO_PISTOL        1120    //280 * 4 // CONFIRMED
#define      nOFFSET_LIN_AMMO_PISTOL        1140    //285 * 4 // NO CHANGE

#define      nOFFSET_WIN_AMMO_SHOTGUN    1124    //281 * 4 // CONFIRMED
#define      nOFFSET_LIN_AMMO_SHOTGUN    1144    //286 * 4 // NO CHANGE

#define      nOFFSET_WIN_AMMO_HMG        1128    //282 * 4 // CONFIRMED
#define      nOFFSET_LIN_AMMO_HMG        1148    //287 * 4 // NO CHANGE

#define      nOFFSET_WIN_AMMO_GL            1132    //283 * 4 // CONFIRMED
#define      nOFFSET_LIN_AMMO_GL            1152    //288 * 4 // NO CHANGE

#define      nOFFSET_WIN_AMMO_HG            1136    //284 * 4 // CONFIRMED
#define      nOFFSET_LIN_AMMO_HG            1156    //289 * 4 // NO CHANGE

#define      nOFFSET_WIN_DEATHS            1380    //345 * 4 // CONFIRMED
#define      nOFFSET_LIN_DEATHS            1400    //350 * 4 // NO CHANGE

#define      nOFFSET_WIN_STRUCTOWNER        324        //81 * 4 // CONFIRMED
#define      nOFFSET_LIN_STRUCTOWNER        340        //85 * 4 // NO CHANGE

#define      nOFFSET_WIN_HIVEABILITY        6248    //1562 * 4 // CONFIRMED
#define      nOFFSET_LIN_HIVEABILITY        6268    //1567 * 4 // CHANGED + 4B


This post has been edited by Steve_Dudenhoeffer: Jan 8 2007, 05:10 AM
Go to the top of the page
PM  
+Quote Post
Guest_Depot_*
post Jan 8 2007, 06:22 AM
Post #5





Guests












Thanks Steve, nice work.
Go to the top of the page
 
+Quote Post
steve
post Jan 8 2007, 09:55 AM
Post #6


Dehrnoxti
Group Icon

Group: Good Guys
Member No.: 62
Joined: 17-September 03

Posts: 932
Posts per day: 0.23
Topics Started: 41
Skin: IP.Board Pro

User's local time:
Aug 22 2014, 05:05 AM
Windows or Linux ?: Lin



Just a small note, if you do not have any gameplay altering plugins on your server then there really should be no need to update this module from beta1 to beta2. Running things such as extralevels and buildmenu would require updates, though.

This post has been edited by Steve_Dudenhoeffer: Jan 8 2007, 09:55 AM
Go to the top of the page
PM  
+Quote Post
steve
post Mar 1 2007, 02:38 PM
Post #7


Dehrnoxti
Group Icon

Group: Good Guys
Member No.: 62
Joined: 17-September 03

Posts: 932
Posts per day: 0.23
Topics Started: 41
Skin: IP.Board Pro

User's local time:
Aug 22 2014, 05:05 AM
Windows or Linux ?: Lin



Updated for the upcoming NS 3.2 Final release.
Go to the top of the page
PM  
+Quote Post
Guest_Depot_*
post Mar 1 2007, 03:44 PM
Post #8





Guests












Thanks steve, nice work. (IMG:http://www.nsmod.org/forums/style_emoticons/default/clapping.gif)
Go to the top of the page
 
+Quote Post
nhdriver4
post Mar 2 2007, 05:06 AM
Post #9


Plugin Support
Group Icon

Group: Developer / ServerOp
Member No.: 3,185
Joined: 12-November 05

Posts: 41
Posts per day: 0.01
Topics Started: 4
Skin: IPB 2.2.0 Default

User's local time:
Aug 22 2014, 06:05 AM
From: NH, USA
Windows or Linux ?: Lin



TY Sir!
Go to the top of the page
PM  
+Quote Post
Zerot
post Mar 2 2007, 09:53 AM
Post #10


nsMod Coder
Group Icon

Group: Coders
Member No.: 4,054
Joined: 17-August 06

Posts: 8
Posts per day: 0.00
Topics Started: 4
Skin: SubBlackS&L

User's local time:
Aug 22 2014, 12:05 PM
Windows or Linux ?: Lin



The comments denoting the 32bit offset aren't correct. You forgot to update those.

For the rest, good work (IMG:http://www.nsmod.org/forums/style_emoticons/default/thumbsup.gif)

This post has been edited by Zerot: Mar 2 2007, 09:54 AM
Go to the top of the page
PM  
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic

 



RSS Lo-Fi Version Time is now: 22nd August 2014 - 02:05 AM


subBlack shadows and light edition © 2007 - DreamCaster
Original subBlack phpbb2 style by spectre