{"action":"created","issue":{"url":"https://api.github.com/repos/sanctuary/notes/issues/1","repository_url":"https://api.github.com/repos/sanctuary/notes","labels_url":"https://api.github.com/repos/sanctuary/notes/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/sanctuary/notes/issues/1/comments","events_url":"https://api.github.com/repos/sanctuary/notes/issues/1/events","html_url":"https://github.com/sanctuary/notes/issues/1","id":160855395,"number":1,"title":"debug files","user":{"login":"blankname2","id":19716871,"avatar_url":"https://avatars.githubusercontent.com/u/19716871?v=3","gravatar_id":"","url":"https://api.github.com/users/blankname2","html_url":"https://github.com/blankname2","followers_url":"https://api.github.com/users/blankname2/followers","following_url":"https://api.github.com/users/blankname2/following{/other_user}","gists_url":"https://api.github.com/users/blankname2/gists{/gist_id}","starred_url":"https://api.github.com/users/blankname2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blankname2/subscriptions","organizations_url":"https://api.github.com/users/blankname2/orgs","repos_url":"https://api.github.com/users/blankname2/repos","events_url":"https://api.github.com/users/blankname2/events{/privacy}","received_events_url":"https://api.github.com/users/blankname2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-06-17T10:10:36Z","updated_at":"2016-09-20T18:32:21Z","closed_at":null,"body":"a nice list of functions, variables and source file names\r\n\r\n[DIABPSX.zip](https://github.com/sanctuary/notes/files/320227/DIABPSX.zip)\r\n\r\ntaken from the japanese version of the playstation one release\r\n"},"comment":{"url":"https://api.github.com/repos/sanctuary/notes/issues/comments/248390874","html_url":"https://github.com/sanctuary/notes/issues/1#issuecomment-248390874","issue_url":"https://api.github.com/repos/sanctuary/notes/issues/1","id":248390874,"user":{"login":"mewmew","id":1414531,"avatar_url":"https://avatars.githubusercontent.com/u/1414531?v=3","gravatar_id":"","url":"https://api.github.com/users/mewmew","html_url":"https://github.com/mewmew","followers_url":"https://api.github.com/users/mewmew/followers","following_url":"https://api.github.com/users/mewmew/following{/other_user}","gists_url":"https://api.github.com/users/mewmew/gists{/gist_id}","starred_url":"https://api.github.com/users/mewmew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mewmew/subscriptions","organizations_url":"https://api.github.com/users/mewmew/orgs","repos_url":"https://api.github.com/users/mewmew/repos","events_url":"https://api.github.com/users/mewmew/events{/privacy}","received_events_url":"https://api.github.com/users/mewmew/received_events","type":"User","site_admin":false},"created_at":"2016-09-20T18:32:21Z","updated_at":"2016-09-20T18:32:21Z","body":"From https://gitter.im/sanctuary/notes?at=57e15fb327a8458f7f2eda53\r\n\r\n@7i and I have been working on parsing the PS1 symbol debug files that were introduced in this issue by @blankname2. There are some burried treasures in these files for sure!\r\n\r\nFor instance, we now have all enumerable constants defined in the game:\r\n\r\n```c\r\ntypedef enum _setlevels {\r\n    SL_SKELKING = 1,\r\n    SL_BONECHAMB = 2,\r\n    SL_MAZE = 3,\r\n    SL_POISONWATER = 4,\r\n    SL_VILEBETRAYER = 5,\r\n} _setlevels;\r\n```\r\n\r\nAll structure type definitions:\r\n\r\n```c\r\ntypedef struct UniqMonstStruct {\r\n    char mtype;\r\n    unsigned short mName;\r\n    unsigned char mlevel;\r\n    unsigned short mmaxhp;\r\n    unsigned char mAi;\r\n    unsigned char mint;\r\n    unsigned char mMinDamage;\r\n    unsigned char mMaxDamage;\r\n    unsigned short mMagicRes;\r\n    unsigned short mUnqAttr;\r\n    unsigned char mUnqVar1;\r\n    unsigned char mUnqVar2;\r\n    int mtalkmsg;\r\n} UniqMonstStruct;\r\n```\r\n\r\nAll global variables:\r\n\r\n```c\r\nUItemStruct UniqueItemList[91];\r\n```\r\n\r\nAnd all function declarations, with function signatures, including function names, return types, function parameters, and even local variables with correct names and types:\r\n\r\n```c\r\n// Path: C:\\diabpsx\\SOURCE\\DRLG_L1.CPP\r\n// Addr: 0x8013C5A0\r\nint DRLG_PlaceMiniSet__FPCUciiiiiii(unsigned char *miniset, int tmin, int tmax, int cx, int cy, int setview, int noquad, int ldir) {\r\n    int sx;\r\n    int sy;\r\n    int sw;\r\n    int sh;\r\n    int xx;\r\n    int yy;\r\n    int i;\r\n    int ii;\r\n    int numt;\r\n    int found;\r\n    int abort;\r\n}\r\n```\r\n\r\nThe code for parsing PS1 symbol files is currently hosted at https://github.com/sanctuary/symbol and https://github.com/sanctuary/exp. It is still very much a work in progress, and we hope to give it some love within the following months <3\r\n"}}
{"actor":{"display_login":"mewmew"}}