Page 3 of 9

Re: [Request] Sleeping Dogs Model Files

Posted: Tue Sep 10, 2013 10:19 pm
by shakotay2
These damned offsets being rather simple at the end:
Image

Image

Exclusion of errorness texture faces might be left to the user by defining a "range":
Image

Re: [Request] Sleeping Dogs Model Files

Posted: Thu Sep 12, 2013 9:44 pm
by TaylorMouse
Can you write down some pseudo code on how the file format is constructed?

Thnx

T.

Re: [Request] Sleeping Dogs Model Files

Posted: Fri Sep 13, 2013 10:57 am
by shakotay2
Sure - but let me first finish the extractor. :)

edit: some vehicles are going to be o.k.:
Image

Some others are not:
Image

Re: [Request] Sleeping Dogs Model Files

Posted: Sun Sep 15, 2013 2:35 am
by SergeantJoe
Back!
The hair is a separate mesh, maybe that's why. At least the body UVs are intact.

Model itself looks amazing! Is it really just a pure luck hit or miss with the vehicles though?

EDIT: Yeah, I'm pretty sure the hair uses a separate texture. At least Wei's does.

Re: [Request] Sleeping Dogs Model Files

Posted: Sun Sep 15, 2013 11:10 pm
by SergeantJoe
shakotay2 wrote:SleepDogsExtractor.zip

This is a mesh extractor for SleepingDogs' *.perm.bin files.
YES! Although most of the details are a bit over my head I'm sure I can figure it out.

Thank you so much, this will make a lot of people very happy, I guarantee it.

Re: [Request] Sleeping Dogs Model Files

Posted: Sun Sep 15, 2013 11:21 pm
by shakotay2
SergeantJoe wrote:Thank you so much, this will make a lot of people very happy, I guarantee it.
I hope so. :D
But with the vehicles there's some weird error I didn't figure out so far.
FireEngine
Image
and bisai01:Image having additional faces I can't understand.

Again I have to look for a small model with this error to understand what's going on.

Re: [Request] Sleeping Dogs Model Files

Posted: Sun Sep 15, 2013 11:25 pm
by SergeantJoe
Well, I hope you can get that sorted out. The wheels are missing because they're stored in a different .perm.bin file.

And by the way, your program seems to be creating .obj files all right, but they're completely empty. Or am I just doing something wrong?

Re: [Request] Sleeping Dogs Model Files

Posted: Sun Sep 15, 2013 11:36 pm
by shakotay2
SergeantJoe wrote:And by the way, your program seems to be creating .obj files with nothing in them.
Talking about the t12-button? Another thing to be figured out - so far only for sampan01 something useful (fender, steering wheel) is being created.

(Maybe I should lock this button to avoid the tool losing reputation? :D )

"Completely" empty? Could you give a model example/params used/buttons pressed?

Re: [Request] Sleeping Dogs Model Files

Posted: Sun Sep 15, 2013 11:50 pm
by SergeantJoe
I didn't change anything, I just loaded the very first .perm.bin from Characters_New and it gave me this.

It must be my computer again, other people are saying it works fine.

Re: [Request] Sleeping Dogs Model Files

Posted: Mon Sep 16, 2013 2:39 am
by SergeantJoe
Say, did Ekey ever release this?

The folks at FP are trying to get textures, and that would be very useful for those of us that aren't programmers.

Re: [Request] Sleeping Dogs Model Files

Posted: Mon Sep 16, 2013 7:52 am
by Ekey
SergeantJoe wrote:Say, did Ekey ever release this?

The folks at FP are trying to get textures, and that would be very useful for those of us that aren't programmers.
Nope, because project frozen.

Re: [Request] Sleeping Dogs Model Files

Posted: Mon Sep 16, 2013 5:43 pm
by SergeantJoe
Well that's a disappointment. Oh well, we do have the program that Shako showed us, that will have to do.

Re: [Request] Sleeping Dogs Model Files

Posted: Tue Sep 17, 2013 7:25 pm
by SergeantJoe
Say, will you continue working on this? I know that you're doing this out of good will and on your own time, but I really want to get as much done as possible.
Who knows when another person with programming experience will take notice of this game?

EDIT: And by the way, I've tried running the program on Windows 8, and even on Windows 7 and XP virtual machines, it still produces 0 kb files no matter what. Does it require any special libraries or anything?

Re: [Request] Sleeping Dogs Model Files

Posted: Tue Sep 17, 2013 11:08 pm
by shakotay2
SergeantJoe wrote:Say, will you continue working on this?
Yes - problem is that I'm a little bit stuck atm at the additional faces on the vehicles.
I cut the bisai01 LOD2 model down to 100 vertices and still don't have a clue how to identify the additional (=wrong) faces or where they come from:

Code: Select all

v 6.271484 1.791016 -4.091797
v 6.361328 0.000000 -4.155273
v 6.177734 0.000000 -1.404297
v 6.088867 1.877930 -1.422852
v 5.879883 0.000000 0.977539
v 5.754883 1.966797 0.796875
v 1.517578 2.772461 2.229492
v 0.987305 2.664063 2.094727
v 1.130859 2.707031 1.947266
v 1.571289 2.806641 2.050781
v 6.141602 1.756836 -4.341797
v 6.174805 0.000000 -4.402344
v 5.955078 1.994141 -4.198242
v 6.066406 2.080078 -3.763672
v 4.241211 2.645508 -3.007813
v 4.245117 2.559570 -3.715820
v 2.382813 2.946289 3.082031
v 2.059570 2.898438 2.561523
v 2.201172 2.910156 2.389648
v 2.568359 2.918945 2.875977
v 2.568359 2.432617 2.875977
v 3.443359 2.511719 2.934570
v 3.443359 2.789063 2.934570
v 2.568359 2.918945 2.875977
v 2.570313 2.467773 -2.183594
v 2.570313 3.027344 -2.183594
v 4.104492 2.703125 -2.451172
v 4.153320 2.199219 -2.454102
v 1.384766 2.666992 -1.487305
v 2.509766 2.879883 -2.161133
v 1.384766 2.290039 -1.487305
v 1.384766 2.290039 -1.487305
v 1.142578 2.352539 2.112305
v 1.130859 2.707031 1.947266
v 1.384766 2.666992 -1.487305
v 1.142578 2.352539 2.112305
v 2.042969 2.410156 2.294922
v 1.571289 2.806641 2.050781
v 1.130859 2.707031 1.947266
v 2.042969 2.410156 2.294922
v 2.568359 2.918945 2.875977
v 2.201172 2.910156 2.389648
v 1.571289 2.806641 2.050781
v 2.201172 2.910156 2.389648
v 4.155273 2.541016 -2.454102
v 4.104492 2.703125 -2.451172
v 4.153320 2.684570 -2.454102
v 4.104492 2.703125 -2.451172
v 4.155273 2.541016 -2.454102
v 4.153320 2.199219 -2.454102
v 3.801758 2.524414 2.854492
v 3.746094 2.724609 2.813477
v 3.443359 2.789063 2.934570
v 3.801758 2.524414 2.854492
v 3.794922 2.710938 2.786133
v 4.153320 2.684570 -2.454102
v 5.969727 2.090820 -2.452148
v 5.969727 2.090820 -2.452148
v 5.969727 1.947266 -2.452148
v 4.155273 2.541016 -2.454102
v 3.944336 2.461914 3.298828
v 3.838867 1.272461 3.881836
v 3.666016 1.291992 4.085938
v 3.695313 2.422852 3.656250
v 3.826172 0.000000 4.045898
v 3.658203 0.000000 4.255859
v 6.088867 1.877930 -1.422852
v 5.856445 2.108398 -0.418945
v 6.017578 2.063477 -2.452148
v 6.271484 1.791016 -4.091797
v 6.141602 1.756836 -4.341797
v 5.559570 2.189453 0.689453
v 5.856445 2.108398 -0.418945
v 6.088867 1.877930 -1.422852
v 5.754883 1.966797 0.796875
v 5.559570 2.189453 0.689453
v 3.002930 2.546875 4.297852
v 3.180664 2.365234 4.265625
v 2.975586 2.361328 4.433594
v 2.623047 2.918945 3.191406
v 2.564453 2.896484 3.817383
v 2.381836 2.940430 3.778320
v 2.564453 2.896484 3.817383
v 2.623047 2.918945 3.191406
v 2.604492 2.821289 3.827148
v 3.937500 2.654297 2.874023
v 5.005859 2.362305 1.496094
v 3.944336 2.461914 3.298828
v 3.700195 2.509766 3.592773
v 3.717773 2.710938 3.133789
v 3.695313 2.422852 3.656250
v 3.443359 2.789063 2.934570
v 3.746094 2.724609 2.813477
v 3.717773 2.710938 3.133789
v 2.623047 2.918945 3.191406
v 2.568359 2.918945 2.875977
v 3.700195 2.509766 3.592773
v 2.604492 2.821289 3.827148
v 3.575195 2.422852 3.811523
v 3.695313 2.422852 3.656250

vt 0.652344 0.701416
vt 0.655518 0.616455
vt 0.525146 0.616455
vt 0.525879 0.705566
vt 0.412109 0.616455
vt 0.420898 0.709717
vt 0.434082 0.934082
vt 0.440430 0.958160
vt 0.446777 0.951599
vt 0.442383 0.931641
vt 0.664307 0.699707
vt 0.667236 0.616455
vt 0.726807 0.735352
vt 0.706299 0.729980
vt 0.670410 0.816528
vt 0.704102 0.816284
vt 0.395996 0.894714
vt 0.419434 0.909424
vt 0.427246 0.902954
vt 0.405273 0.886292
vt 0.405273 0.886292
vt 0.402832 0.846558
vt 0.402832 0.846558
vt 0.405273 0.886292
vt 0.631348 0.895691
vt 0.631348 0.895691
vt 0.644043 0.822998
vt 0.644287 0.820679
vt 0.598389 0.951843
vt 0.630371 0.898560
vt 0.598389 0.951843
vt 0.598389 0.951843
vt 0.427734 0.963348
vt 0.435547 0.963867
vt 0.598389 0.951843
vt 0.439453 0.951080
vt 0.431152 0.910156
vt 0.442383 0.931641
vt 0.446777 0.951599
vt 0.431152 0.910156
vt 0.405273 0.886292
vt 0.427246 0.902954
vt 0.442383 0.931641
vt 0.427246 0.902954
vt 0.644287 0.820679
vt 0.644043 0.822998
vt 0.644287 0.820679
vt 0.644043 0.822998
vt 0.644287 0.820679
vt 0.644287 0.820679
vt 0.406250 0.830200
vt 0.408203 0.832764
vt 0.402832 0.846558
vt 0.406250 0.830200
vt 0.409180 0.830566
vt 0.644287 0.820679
vt 0.644043 0.734619
vt 0.644043 0.734619
vt 0.644043 0.734619
vt 0.644287 0.820679
vt 0.395508 0.732422
vt 0.390625 0.676025
vt 0.382324 0.677002
vt 0.383789 0.730713
vt 0.389648 0.615723
vt 0.381836 0.615723
vt 0.595215 0.729004
vt 0.547852 0.739990
vt 0.644043 0.732422
vt 0.721680 0.720215
vt 0.733643 0.726563
vt 0.495117 0.754028
vt 0.547852 0.739990
vt 0.595215 0.729004
vt 0.490234 0.744873
vt 0.495117 0.754028
vt 0.341797 0.866577
vt 0.343262 0.858521
vt 0.335449 0.867798
vt 0.391113 0.883789
vt 0.363281 0.886475
vt 0.364746 0.894775
vt 0.363281 0.886475
vt 0.391113 0.883789
vt 0.362793 0.884644
vt 0.419922 0.806152
vt 0.457031 0.780273
vt 0.399902 0.805786
vt 0.385742 0.817383
vt 0.407715 0.816528
vt 0.382813 0.817627
vt 0.402832 0.846558
vt 0.408203 0.832764
vt 0.393555 0.834106
vt 0.391113 0.883789
vt 0.405273 0.886292
vt 0.373047 0.834839
vt 0.362793 0.884644
vt 0.363281 0.840576
vt 0.370605 0.835083

#  1321 faces
f 83/83 84/84 85/85
f 86/86 87/87 88/88
f 98/98 99/99 100/100
# f 107/107 108/108 109/109
# f 118/118 119/119 120/120
# f 123/123 124/124 125/125
f 1/1 2/2 3/3
f 3/3 4/4 1/1
f 6/6 9/9 10/10
f 10/10 7/7 6/6
f 5/5 6/6 7/7
f 7/7 8/8 5/5
f 5/5 8/8 19/19
f 19/19 20/20 5/5
f 20/20 19/19 41/41
f 11/11 12/12 13/13
f 13/13 14/14 11/11
f 17/17 18/18 15/15
f 15/15 16/16 17/17
f 39/39 17/17 16/16
f 16/16 38/38 39/39
f 29/29 38/38 25/25
f 29/29 39/39 38/38
f 25/25 26/26 27/27
f 29/29 40/40 39/39
f 29/29 25/25 28/28
f 27/27 28/28 25/25
f 40/40 29/29 42/42
f 42/42 43/43 40/40
f 21/21 22/22 23/23
f 23/23 24/24 21/21
f 30/30 31/31 32/32
f 32/32 33/33 30/30
f 34/34 35/35 36/36
f 36/36 35/35 37/37
f 46/46 47/47 44/44
f 44/44 45/45 46/46
f 62/62 46/46 45/45
f 51/51 62/62 45/45
f 45/45 48/48 51/51
f 50/50 51/51 48/48
f 48/48 49/49 50/50
f 49/49 53/53 52/52
f 52/52 50/50 49/49
f 54/54 55/55 56/56
f 56/56 57/57 54/54
f 60/60 61/61 58/58
f 58/58 59/59 60/60
f 60/60 59/59 80/80
f 80/80 81/81 60/60
f 81/81 80/80 82/82
f 82/82 90/90 89/89
f 81/81 82/82 71/71
f 89/89 71/71 82/82
f 81/81 71/71 68/68
f 71/71 69/69 68/68
f 67/67 68/68 69/69
f 69/69 70/70 67/67
f 63/63 64/64 65/65
f 65/65 66/66 63/63
f 72/72 73/73 74/74
f 74/74 75/75 72/72
f 76/76 77/77 78/78
f 77/77 79/79 78/78
f 93/93 94/94 91/91
f 91/91 92/92 93/93
f 92/92 96/96 97/97
# f 92/92 97/97 101/101
f 92/92 95/95 93/93

f 45/45 46/46 47/47
f 58/58 59/59 60/60
f 72/72 73/73 74/74

f 41/41 42/42 37/37
f 36/36 37/37 38/38
f 38/38 39/39 36/36
f 43/43 40/40 44/44
f 40/40 21/21 24/24
f 21/21 22/22 23/23
f 23/23 24/24 21/21
f 23/23 22/22 54/54
f 48/48 49/49 50/50
f 49/49 56/56 57/57

f 7/7 8/8 9/9
f 9/9 10/10 7/7
f 18/18 7/7 10/10
f 10/10 19/19 18/18
f 17/17 18/18 19/19
f 19/19 20/20 17/17
f 80/80 17/17 20/20
f 82/82 17/17 80/80
f 80/80 81/81 82/82
# f 196/196 82/82 81/81
# f 81/81 195/195 196/196
f 15/15 16/16 13/13
f 13/13 14/14 15/15
f 13/13 71/71 70/70
f 70/70 14/14 13/13
f 69/69 14/14 70/70
f 67/67 68/68 69/69
f 70/70 67/67 69/69
f 67/67 75/75 76/76
f 75/75 87/87 76/76
f 86/86 87/87 75/75
f 90/90 86/86 88/88
f 75/75 88/88 86/86
f 88/88 89/89 90/90
f 89/89 88/88 91/91
f 27/27 28/28 25/25
f 25/25 26/26 27/27
f 25/25 31/31 29/29
f 30/30 26/26 25/25
f 29/29 30/30 25/25
f 32/32 33/33 34/34
f 34/34 35/35 32/32
f 51/51 52/52 53/53
f 52/52 51/51 55/55
f 63/63 64/64 61/61
f 61/61 62/62 63/63
f 66/66 63/63 62/62
f 62/62 65/65 66/66
# f 157/157 66/66 65/65
# f 156/156 157/157 154/154
# f 65/65 154/154 157/157
# f 154/154 155/155 156/156
f 77/77 78/78 79/79
# f 98/98 77/77 199/199
f 99/99 78/78 77/77
f 99/99 97/97 100/100
f 77/77 97/97 99/99
f 77/77 98/98 94/94
f 94/94 97/97 77/77
f 98/98 95/95 92/92
f 92/92 94/94 98/98
f 92/92 95/95 96/96
f 92/92 93/93 94/94
f 83/83 84/84 85/85

f 3/3 4/4 1/1
f 6/6 4/4 3/3
f 3/3 5/5 6/6
# f 103/103 5/5 3/3
f 2/2 1/1 11/11
# f 3/3 101/101 103/103
f 1/1 2/2 3/3
f 11/11 12/12 2/2

f 1/1 2/2 3/3
f 3/3 4/4 1/1
f 5/5 6/6 7/7
f 7/7 8/8 5/5
f 9/9 10/10 11/11
f 9/9 11/11 14/14
f 11/11 12/12 14/14
f 12/12 13/13 14/14
f 15/15 16/16 17/17
f 15/15 17/17 20/20
f 17/17 18/18 20/20
f 18/18 19/19 20/20
f 21/21 22/22 23/23
f 23/23 24/24 21/21
f 25/25 26/26 27/27
f 27/27 28/28 25/25
f 29/29 30/30 31/31
f 29/29 32/32 33/33
f 33/33 30/30 29/29
f 34/34 35/35 36/36
f 38/38 36/36 35/35
f 35/35 37/37 38/38
f 39/39 40/40 41/41
f 41/41 42/42 39/39
f 45/45 39/39 43/43
f 43/43 44/44 45/45
f 46/46 47/47 48/48
f 48/48 49/49 46/46
f 48/48 55/55 49/49
f 50/50 51/51 52/52
f 54/54 52/52 51/51
f 51/51 53/53 54/54
f 60/60 61/61 62/62
f 60/60 58/58 59/59
f 60/60 62/62 58/58
f 59/59 58/58 57/57
f 58/58 62/62 63/63
f 56/56 57/57 58/58
f 63/63 56/56 58/58
f 68/68 69/69 70/70
f 68/68 67/67 65/65
f 68/68 65/65 69/69
f 67/67 66/66 65/65
f 71/71 69/69 65/65
f 64/64 65/65 66/66
f 65/65 64/64 71/71
f 72/72 73/73 74/74
f 74/74 79/79 72/72
f 79/79 74/74 78/78
f 78/78 77/77 79/79
f 77/77 78/78 75/75
f 75/75 76/76 77/77
f 80/80 81/81 82/82
f 81/81 80/80 87/87
f 87/87 84/84 81/81
f 84/84 87/87 85/85
f 83/83 84/84 85/85
f 85/85 86/86 83/83
# face index min/max: 1 / 100
EDIT: And by the way, I've tried running the program on Windows 8, and even on Windows 7 and XP virtual machines, it still produces 0 kb files no matter what. Does it require any special libraries or anything?
On every model? Or some models? Then could you please give me a model name? (But keep in mind I only can check the models from your 9.87 MB samples zip.)

If it's on every model then I'd like to know if anyone else having this problem.

And 'no' it doesn't require any special library.

Re: [Request] Sleeping Dogs Model Files

Posted: Wed Sep 18, 2013 12:03 am
by SergeantJoe
shakotay2 wrote:On every model? Or some models?
I've tried dozens of different models from both folders, they all end up the same. I'm pretty sure it's just me though, everyone else I've talked to seems to be able to do it just fine. Strange.
Oh well, I already got someone that I can send bins to and they can convert them for me.

The Bisai is the smallest four-wheeled vehicle in the game, I'm not sure what else to say.