[src] Possible Fix For Inventory Jumble

Codes already submitted by people of the forums.
Post Reply
Hypnotoad
Member
Posts: 100
Joined: Wed Apr 28, 2004 8:16 pm

Post by Hypnotoad »

in _bDecodePlayerDatafileContents find

Code: Select all

if (memcmp(token, "item-position-x", 16) == 0) {
	cReadModeA = 50;
	cReadModeB = 1;
}
if (memcmp(token, "item-position-y", 16) == 0) {
	cReadModeA = 51;
	cReadModeB = 1;
}
and replace

Code: Select all

if (memcmp(token, "item-position-x", 15) == 0) {
	cReadModeA = 50;
	cReadModeB = 1;
}
if (memcmp(token, "item-position-y", 15) == 0) {
	cReadModeA = 51;
	cReadModeB = 1;
}
maybe lol ???
<img src='http://www.playah.no-ip.com/images/Hypn ... imated.gif' border='0' alt='user posted image' />
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

Replace 16 with 15? lol
<img src='http://www.hot.ee/carvanho/taavi.png' border='0' alt='user posted image' /><br><br><img src='http://www.hot.ee/carvanho/Elvine.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/LieroX.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/Football.png' border='0' alt='user posted image' />
Dshaked
&lt;3 bd long time
Posts: 747
Joined: Tue Oct 11, 2005 6:40 pm

Post by Dshaked »

Are you tested it hypnotoad?
I think it works xD
Im not sure.
Old Helbreath Nemesis Player<br><img src='http://img232.imageshack.us/img232/9784/dshakedqc5.jpg' border='0' alt='user posted image' /><br><img src='http://img232.imageshack.us/img232/6475 ... barqj0.jpg' border='0' alt='user posted image' /><br><a href='index.php?showtopic=7107&hl=' target='_blank'>MainServer Hexing Tutorial</a><br><a href='index.php?showtopic=7663&hl=x-mas' target='_blank'>My Files</a>
o.0
noob
Posts: 17
Joined: Wed May 03, 2006 3:23 pm

Post by o.0 »

count <_<
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

Non working.
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
Dax
&lt;3 bd long time
Posts: 785
Joined: Mon Apr 18, 2005 3:19 pm

Post by Dax »

Tafka12 wrote: Replace 16 with 15? lol
And that's why you nubs need us posting your codes. It's not just replace 16 with 15.. You have to understand what it represents.

Good spot Hypno. I'm not sure why everyone says this code doesnt work. I just added Hypno's fix for this bag jumble and it worked perfectly fine. I also checked the client and server messages related to this and found nothing to be of concern.

But if it makes any difference i checked this on my own builds of a 2.20 Client and GS. I find these files work in perfect harmony lol. Sure iStatus is a bitch, there are still unfinished or pointless codes and building up can be boring but there is no cross version bullshit to consider while coding.

My advice for anyone who wishes to fix this code is to refer to the 2.20 source (Client and GS). See how they communicate with this code because Hypno's fix did the job for them.
Reppin' 127.0.0.1!!!<br><br><img src='http://img502.imageshack.us/img502/1348/sig4daxbn2.jpg' border='0' alt='user posted image' /><br><br>I contend that we are both atheists. I just believe in one fewer god than you do. <br>When you understand why you dismiss all the other possible gods, you will <br>understand why I dismiss yours.<br>~ <b>Stephen Roberts</b>
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

as far as I know it should be the number of the letters in this word(s) "item-position-x"
<img src='http://www.hot.ee/carvanho/taavi.png' border='0' alt='user posted image' /><br><br><img src='http://www.hot.ee/carvanho/Elvine.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/LieroX.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/Football.png' border='0' alt='user posted image' />
ADDKiD
&lt;3 bd long time
Posts: 967
Joined: Tue Jul 12, 2005 8:07 pm
Location: Washington, USA
Contact:

Post by ADDKiD »

Didn't you fix this Dax? I thought you did... You said something about it, in msn...
Sprint
Spamtastic
Posts: 1000
Joined: Tue Jun 06, 2006 6:59 am
Location: Far from home
Contact:

Post by Sprint »

ADDKiD wrote: Didn't you fix this Dax? I thought you did... You said something about it, in msn...
dont belive everything that is said on msn...
<span style='color:blue'><span style='font-size:19pt;line-height:100%'><u><b>FUCK Helbreath!</b></u></span></span><br><br><span style='color:gray'><a href='http://www2.analystica.com/users/anttu/online/ngd' target='_blank'>ngdnetwork</a> OFFICIAL WEBSITE OF Northern Game Developers. Do visit! (THEY ARE UP!)<br><a href='http://project3d.x.am' target='_blank'>Project3d development forum</a> plz join and discuss,develop,give ideas,feedback. Anything goes as long it helps the project!</span><br><br>Zepto Znote 6625WD: 1.8Ghz dual core, 2GB, 512mb graphics card(dedicated), 160GB HDD<br><img src='http://www.signaturebar.com/uploads/images/10111.jpg' border='0' alt='user posted image' /><br><img src='http://www.signaturebar.com/uploads/images/13229.jpg' border='0' alt='user posted image' /><br><img src='http://www.signaturebar.com/uploads/images/8852.png' border='0' alt='user posted image' />
Dax
&lt;3 bd long time
Posts: 785
Joined: Mon Apr 18, 2005 3:19 pm

Post by Dax »

ADDKiD wrote: Didn't you fix this Dax? I thought you did... You said something about it, in msn...
Read the post you idiot. I just said it on here aswell. The only problem in 2.20 is the fact the HG is reading the character file wrong just like hypno pointed out. I don't know what problem everyone else is having because i'm not using their version.
Reppin' 127.0.0.1!!!<br><br><img src='http://img502.imageshack.us/img502/1348/sig4daxbn2.jpg' border='0' alt='user posted image' /><br><br>I contend that we are both atheists. I just believe in one fewer god than you do. <br>When you understand why you dismiss all the other possible gods, you will <br>understand why I dismiss yours.<br>~ <b>Stephen Roberts</b>
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

Also Try This

This Is In 2.24b

Code: Select all

DEF_NOTIFY_ITEMPOSLIST: 
           for (i = 0; i < DEF_MAXITEMS; i++) { 
                sp = (short *)cp; 
                *sp = (short)m_pClientList[iToH]->m_ItemPosList[i].x; 
                cp += 2; 
                sp = (short *)cp; 
                *sp = (short)m_pClientList[iToH]->m_ItemPosList[i].y; 
                cp += 2; 
           } 
           iRet = m_pClientList[iToH]->m_pXSock->iSendMsg(cData, 6 + DEF_MAXITEMS*4); 
           break;
This In 2.03 + 2.20
Replace With This

Code: Select all

DEF_NOTIFY_ITEMPOSLIST: 
           for (i = 0; i < DEF_MAXITEMS; i++) { 
                sp = (short *)cp; 
                *sp = m_pClientList[iToH]->m_ItemPosList[i].x; 
                cp += 2; 
                sp = (short *)cp; 
                *sp = m_pClientList[iToH]->m_ItemPosList[i].y; 
                cp += 2; 
           } 
           iRet = m_pClientList[iToH]->m_pXSock->iSendMsg(cData, 6 + DEF_MAXITEMS*4); 
           break;
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

they look same lol
<img src='http://www.hot.ee/carvanho/taavi.png' border='0' alt='user posted image' /><br><br><img src='http://www.hot.ee/carvanho/Elvine.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/LieroX.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/Football.png' border='0' alt='user posted image' />
Orkl
Loyal fan
Posts: 376
Joined: Sat Sep 17, 2005 2:31 pm

Post by Orkl »

Tafka12 wrote: they look same lol
look closer...
<!--QuoteBegin-crazymnig88+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (crazymnig88)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->by notepad??? it didn't show any code, just show words wif no mean<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br><!--QuoteBegin-charlie+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (charlie)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->he'll probably save it as 600pagebook.bmp<br><br>400gb file plzkthnx<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd-->
Crossfade
Loyal fan
Posts: 354
Joined: Sun Mar 20, 2005 5:55 pm

Post by Crossfade »

Tafka12 wrote: they look same lol
diff is the (short) call
Post Reply