www.tombraiderforums.com  

Go Back   www.tombraiderforums.com > Tomb Raider Modding > Tomb Raider Modding

Reply
 
Thread Tools
Old 31-01-10, 21:12   #1
Laras Boyfr.
Professor
 
Laras Boyfr.'s Avatar
 
Join Date: Jul 2009
Location: Albania
Posts: 4,742
Default Graverobber Coding

I thought of coding the graverobber exe with a developer program and replace everywhere where the word trlmesh reads ,with tramesh,so maybe it can recognize later then the tramesh files in the .drm files.of course i cant mod programs,but someone other could do it how do u think?
Laras Boyfr. is offline   Reply With Quote
Old 01-02-10, 09:35   #2
CelticGuard
Archaeologist
 
CelticGuard's Avatar
 
Join Date: Jan 2009
Location: San Francisco, CA
Posts: 2,059
Default

^^Spam

I don't think the source is available. Even if it is, it might not be easy as replacing trlmesh with tramesh if the file formats are different. You also require a lot of programming experience for that.

I'd suggest you state what you want to do instead.
CelticGuard is offline   Reply With Quote
Old 01-02-10, 10:47   #3
Laras Boyfr.
Professor
 
Laras Boyfr.'s Avatar
 
Join Date: Jul 2009
Location: Albania
Posts: 4,742
Default

I think the problem is that GR cant recognize the mesh because of its name cuz TRL and TRA use the almost same engine.so its worth a try or?
Laras Boyfr. is offline   Reply With Quote
Old 01-02-10, 13:50   #4
Tonttu
Student
 
Tonttu's Avatar
 
Join Date: May 2006
Posts: 130
Default

open the exe in hex editor and replace all occurrences of trlmesh with tramesh
I highly doubt it will work the way you want but it's worth a try

if you have knowledge about assembly, open it in debugger (like OllyDbg) and start modifying the assembly code


edit: I searched the exe for trlmesh and here's what I found
Code:
Address   Command                                  Comments
0046737A  ASCII "trlmesh"
00467B60  MOV EDX,GraveRobber.00467C34             ASCII ".trlmesh"
00467C34  ASCII ".trlmesh"
00469D25  MOV EDX,GraveRobber.00469DD4             ASCII ".trlmesh"
00469DD4  ASCII ".trlmesh"


Text strings referenced in GraveRobber, item 2889
  Address = 0046737A
  Command = ASCII "trlmesh"
  Comments =

CPU Disasm
Address   Hex dump          Command                                  Comments
0046737A   .  74 72 6C 6D 6 ASCII "trlmesh"
00467381      B8            DB B8
00467382      00            DB 00
00467383      00            DB 00
00467384      00            DB 00
00467385      02            DB 02
00467386      00            DB 00
00467387      00            DB 00
00467388      00            DB 00
00467389   .  34734600      DD 00467334
0046738D      AC            DB AC
0046738E      00            DB 00
0046738F      00            DB 00
00467390      00            DB 00
00467391   .  54734600      DD 00467354
00467395      B0            DB B0
00467396      00            DB 00
00467397      00            DB 00
00467398      00            DB 00
00467399      8D40 00       LEA EAX,[EAX]
0046739C   .  A0734600      DD 004673A0
004673A0      11            DB 11
004673A1      02            DB 02
004673A2      2E            DB 2E                                    ; CHAR '.'
004673A3      38            DB 38                                    ; CHAR '8'
004673A4      B8            DB B8
004673A5      00            DB 00
004673A6      00            DB 00
004673A7      00            DB 00
004673A8   .  74734600      DD 00467374
004673AC      FF            DB FF
004673AD      FF            DB FF
004673AE      FF            DB FF
004673AF      FF            DB FF
004673B0   .  74734600      DD 00467374
004673B4   .  05            DB 05


Text strings referenced in GraveRobber, item 2904
  Address = 00467B60
  Command = MOV EDX,GraveRobber.00467C34
  Comments = ASCII ".trlmesh"

CPU Disasm
Address   Hex dump          Command                                  Comments
00467B60  |.  BA 347C4600   MOV EDX,GraveRobber.00467C34             ; ASCII ".trlmesh"
00467B65  |.  E8 32D1F9FF   CALL 00404C9C                            ; [GraveRobber.00404C9C
00467B6A  |.  74 1E         JE SHORT 00467B8A
00467B6C  |.  8B45 F8       MOV EAX,DWORD PTR SS:[LOCAL.2]
00467B6F  |.  BA 487C4600   MOV EDX,GraveRobber.00467C48             ; ASCII ".mus"
00467B74  |.  E8 23D1F9FF   CALL 00404C9C                            ; [GraveRobber.00404C9C
00467B79  |.  74 0F         JE SHORT 00467B8A
00467B7B  |.  8B45 F8       MOV EAX,DWORD PTR SS:[LOCAL.2]
00467B7E  |.  BA 587C4600   MOV EDX,GraveRobber.00467C58             ; ASCII ".mul"
00467B83  |.  E8 14D1F9FF   CALL 00404C9C                            ; [GraveRobber.00404C9C
00467B88  |.  75 16         JNE SHORT 00467BA0
00467B8A  |>  8B83 1C030000 MOV EAX,DWORD PTR DS:[EBX+31C]
00467B90  |.  8B80 20020000 MOV EAX,DWORD PTR DS:[EAX+220]
00467B96  |.  BA 687C4600   MOV EDX,GraveRobber.00467C68             ; ASCII "Not supported yet."
00467B9B  |.  8B08          MOV ECX,DWORD PTR DS:[EAX]
00467B9D  |.  FF51 38       CALL DWORD PTR DS:[ECX+38]
00467BA0  |>  33C0          XOR EAX,EAX
00467BA2  |.  5A            POP EDX
00467BA3  |.  59            POP ECX
00467BA4  |.  59            POP ECX
00467BA5  |.  64:8910       MOV DWORD PTR FS:[EAX],EDX
00467BA8  |.  68 C27B4600   PUSH GraveRobber.00467BC2
00467BAD  |>  8D45 F0       LEA EAX,[EBP-10]
00467BB0  |.  BA 04000000   MOV EDX,4
00467BB5  |.  E8 FACCF9FF   CALL 004048B4                            ; [GraveRobber.004048B4
00467BBA  \.  C3            RETN                                     ; Jump to 467BC2


Text strings referenced in GraveRobber, item 2914
  Address = 00467C34
  Command = ASCII ".trlmesh"
  Comments =

CPU Disasm
Address   Hex dump          Command                                  Comments
00467C34   .  2E 74 72 6C 6 ASCII ".trlmesh"
00467C3C      00            DB 00
00467C3D      00            DB 00
00467C3E      00            DB 00
00467C3F      00            DB 00
00467C40   .  FFFFFFFF      DD FFFFFFFF
00467C44   .  04000000      DD 00000004


Text strings referenced in GraveRobber, item 2965
  Address = 00469D25
  Command = MOV EDX,GraveRobber.00469DD4
  Comments = ASCII ".trlmesh"

CPU Disasm
Address   Hex dump          Command                                  Comments
00469D25  |.  BA D49D4600   MOV EDX,GraveRobber.00469DD4             ; ASCII ".trlmesh"
00469D2A  |.  E8 B5ABF9FF   CALL 004048E4
00469D2F  |.  EB 0C         JMP SHORT 00469D3D
00469D31  |>  8BC6          MOV EAX,ESI
00469D33  |.  BA E89D4600   MOV EDX,GraveRobber.00469DE8             ; ASCII ".unknown(7)"
00469D38  |.  E8 A7ABF9FF   CALL 004048E4
00469D3D  |>  33C9          XOR ECX,ECX
00469D3F  |.  8B55 FC       MOV EDX,DWORD PTR SS:[LOCAL.1]
00469D42  |.  A1 D81D4700   MOV EAX,DWORD PTR DS:[471DD8]
00469D47  |.  8B18          MOV EBX,DWORD PTR DS:[EAX]
00469D49  |.  FF53 14       CALL DWORD PTR DS:[EBX+14]
00469D4C  |.  EB 33         JMP SHORT 00469D81
00469D4E  |>  68 FC9D4600   PUSH GraveRobber.00469DFC                ; ASCII ".unknown("
00469D53  |.  8BC3          MOV EAX,EBX
00469D55  |.  03C0          ADD EAX,EAX
00469D57  |.  8D0440        LEA EAX,[EAX*2+EAX]
00469D5A  |.  8B15 D41D4700 MOV EDX,DWORD PTR DS:[471DD4]
00469D60  |.  0FB744C2 20   MOVZX EAX,WORD PTR DS:[EAX*8+EDX+20]
00469D65  |.  8D55 F4       LEA EDX,[LOCAL.3]
00469D68  |.  E8 37EDF9FF   CALL 00408AA4
00469D6D  |.  FF75 F4       PUSH DWORD PTR SS:[LOCAL.3]
00469D70  |.  68 109E4600   PUSH GraveRobber.00469E10
00469D75  |.  8BC6          MOV EAX,ESI
00469D77  |.  BA 03000000   MOV EDX,3
00469D7C  |.  E8 8FAEF9FF   CALL 00404C10
00469D81  |>  33C0          XOR EAX,EAX
00469D83  |.  5A            POP EDX
00469D84  |.  59            POP ECX
00469D85  |.  59            POP ECX
00469D86  |.  64:8910       MOV DWORD PTR FS:[EAX],EDX
00469D89  |.  68 9E9D4600   PUSH GraveRobber.00469D9E
00469D8E  |>  8D45 F4       LEA EAX,[EBP-0C]
00469D91  |.  E8 FAAAF9FF   CALL 00404890                            ; [GraveRobber.00404890
00469D96  \.  C3            RETN                                     ; Jump to 469D9E


Text strings referenced in GraveRobber, item 2970
  Address = 00469DD4
  Command = ASCII ".trlmesh"
  Comments =

CPU Disasm
Address   Hex dump          Command                                  Comments
00469DD4   .  2E 74 72 6C 6 ASCII ".trlmesh"
00469DDC      00            DB 00
00469DDD      00            DB 00
00469DDE      00            DB 00
00469DDF      00            DB 00
00469DE0   .  FFFFFFFF      DD FFFFFFFF
00469DE4   .  0B000000      DD 0000000B

Last edited by Tonttu; 02-02-10 at 11:55.
Tonttu is offline   Reply With Quote
Old 04-02-10, 14:11   #5
Laras Boyfr.
Professor
 
Laras Boyfr.'s Avatar
 
Join Date: Jul 2009
Location: Albania
Posts: 4,742
Default

tried it doesnt work either
Laras Boyfr. is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 17:42.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.