• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Structures Files 1.5.3 (145)

Junior Spellweaver
Joined
Oct 16, 2012
Messages
136
Reaction score
46
There is currently no guide to make tools from structures and i doubt anyone will ever do that.

funny enough this right here is what divides petty boys from men. Or actual developers from the casual people who want to setup a server.
Anyone that needs a guide for this doesn't even have the right to call him/herself a PW Developer in my eyes.
 

Ben

Developer - JS
Developer
Joined
Jul 6, 2013
Messages
1,224
Reaction score
506
funny enough this right here is what divides petty boys from men. Or actual developers from the casual people who want to setup a server.
Anyone that needs a guide for this doesn't even have the right to call him/herself a PW Developer in my eyes.

That's true, till a certain extend as it depends on how far you can look into stuff.

I can program in both c# and Java database connections etc..but lack the eye of seeing certain patterns in the pwi files :)

I guess it also depends on how deep ur willing to look into it.
 
Newbie Spellweaver
Joined
Nov 21, 2011
Messages
86
Reaction score
8
How did you get this? Is it possible to get the structure from the .data file?
 
Banned
Banned
Joined
Dec 17, 2011
Messages
470
Reaction score
245
hi i was wondering how could some one use this thing ?
is there a tutorial ?

I can do that here is a small EG:
//--------------------------------------
// File:dynamicobjects.data
// Author:Rey35
//--------------------------------------
struct objectsinfo
{
int id;
int length;
char path[length];
};

struct
{
char header[4];
int count;
local int i;
for(i = 0; i < count; i++)
{
objectsinfo objectsinfo?;
}
} file;

Code:
                using (BinaryReader br = new BinaryReader(File.Open("dynamicobjects.data", FileMode.Open)))
                {
                      byte[] head = br.ReadBytes(4);
                      int count = br.ReadInt32();
                      for(int i = 0; i<count;i++)
                      {
                            int id = br.ReadInt32();
                            int lenght = br.ReadInt32();
                            byte[] string = br.ReadBytes(lenght);
                            string path = Encoding.GetEncoding("GB18030").GetString(string);
                      }        
                }
 
  • Like
Reactions: Ben
Back
Top