Originally Posted by
Blequi
I just see no reason to keep the .dat file loaded into your app holding a huge amount of memory, when you can read an specific item of the .dat file in a few steps that doesn't require any searching through an array.
You can check
http://tpforums.org/forum/threads/52...ory-DataReader to see how to read an specific item.
mmm, you are right, didn't see it that way :/
but one question please, I have read that thread entirely, and also spent a couple of hours reading threads in this forum.
After that I decided to do it your way, and I was going to use that thread you sent me, but also the TibiaAPI which Jash recommended in another post.https://code.google.com/p/tibiaapi/s...emAddresses.cs
And they are not the same! =0
I think this is because in your URL they used
PHP Code:
const
DatPointer = $7B973C;
StepItems = 136; //<------only StepITems
FlagsOffset = 68; //<------only Flags, nothing more
while in TibiaAPI they used everything
PHP Code:
public class DatItemAddresses
{
public uint StepItems; //<------ StepITems
public uint Width;
public uint Height;
public uint MaxSizeInPixels;
public uint Layers;
public uint PatternX;
public uint PatternY;
public uint PatternDepth;
public uint Phase;
public uint Sprite;
public uint Flags; //<------Flags
public uint CanEquip;
public uint CanLookAt;
public uint WalkSpeed;
public uint TextLimit;
public uint LightRadius;
public uint LightColor;
public uint ShiftX;
public uint ShiftY;
public uint WalkHeight;
public uint Automap;
public uint LensHelp;
public uint ClothSlot;
public uint MarketCategory;
public uint MarketTradeAs;
public uint MarketShowAs;
public uint MarketName;
public uint MarketRestrictProfession;
public uint MarketRestrictLevel;
is all of that really needed?
yes--> for what?
ty Blequi =)