Re: writeField Function (adding and editing PT fields)
using unmodified.exe's address...
Game.exe
Code:
0043ABB0 $ 53 PUSH EBX ; kernel32.7716500E
0043ABB1 . 33DB XOR EBX,EBX ; kernel32.7716500E
0043ABB3 . 881D 18CE8D00 MOV BYTE PTR DS:[8DCE18],BL
0043ABB9 . 881D 58CE8D00 MOV BYTE PTR DS:[8DCE58],BL
0043ABBF . E8 9C850000 CALL games.00443160
0043ABC4 E8 DB E8
0043ABC5 07 DB 07
0043ABC6 . 66:B8 638B MOV AX,8B63
0043ABCA . 15 7CB56E00 ADC EAX,games.006EB57C
0043ABCF . 3BD3 CMP EDX,EBX ; kernel32.7716500E
0043ABD1 . 7D 07 JGE SHORT games.0043ABDA
0043ABD3 . E8 D8ACFFFF CALL games.004358B0
0043ABD8 . EB 46 JMP SHORT games.0043AC20
0043ABDA > 8B0D 48615F00 MOV ECX,DWORD PTR DS:[5F6148]
0043ABE0 . A1 381F3503 MOV EAX,DWORD PTR DS:[3351F38]
0043ABE5 . 3BC1 CMP EAX,ECX ; games.<ModuleEntryPoint>
0043ABE7 . 8B0D 3C1F3503 MOV ECX,DWORD PTR DS:[3351F3C]
0043ABED . 75 1C JNZ SHORT games.0043AC0B
0043ABEF . 3B0D 4C615F00 CMP ECX,DWORD PTR DS:[5F614C]
0043ABF5 . 75 14 JNZ SHORT games.0043AC0B
0043ABF7 . 68 5C958D00 PUSH games.008D955C
0043ABFC . 68 58958D00 PUSH games.008D9558
0043AC01 . E8 3A70FFFF CALL games.00431C40
1 Attachment(s)
Re: writeField Function (adding and editing PT fields)
UPDATE
1.18.7
- added new map "sod-2"
- remodeled "Fall_Game" code for new version of "Fall_Game"
DOWNLOAD
Offsets are set to tkPT 2.3.4
"sod-2" map is same old sod-1 map but in new space, in official server it is a SoD map for lv1-79.
"Fall_Game" is same old map but with new look and new minigame, most likely it will need additional server side code to start (?)
New tKPT have some additional informations for GM in overlay (weapon ID and number?)
http://i.imgur.com/rQJV5.jpg
I also updated links in first post.
Re: writeField Function (adding and editing PT fields)
How do i Install those Old_ files? Don't I need a .ase file or something?
Re: writeField Function (adding and editing PT fields)
You extract them to "\Field" folder in client and server.
http://cdn.memegenerator.net/instanc...x/21593860.jpg
Re: writeField Function (adding and editing PT fields)
No .ase file? just extract and make new folders like Old_dungeon? okay :).
--EDIT--
My server crashes when I copy the folders (Old_dungeon etc) to my server field folder. However when i copied the rest, the map ingame just loads. Do I need to change anything?
Re: writeField Function (adding and editing PT fields)
What do you mean when you say that you copy "rest"? Your server should have Field folder from client and you should extract my OLD_ maps to it.
If server is crashing than check if you added writeServerField.dll correctly. Everything is in first post.
Re: writeField Function (adding and editing PT fields)
I copied all the folders (old_dungeon etc) to my field in the client. I copied everything in Map and title and copied in both client and server. However when I try to copy the folders also to the field in the server, the server crashes. The strange thing is, the maps work just fine in game now. (except I have no Idea how to go to the maps besides using /field and there are no npc's/mobs spawning) Do I need to leave things as they are?
And also where are the spm and the spp files? I guess I need to make those myself? (Then i'm screwed 0.0)
Re: writeField Function (adding and editing PT fields)
I don't know why your server is crashing, maybe your files got corrupted. Try redownloading them.
Without maps in server folder, server won't know where ground is.
You can go to old_ fields only by using /field command (because they are not connected to new fields) unless you add scroll to your server that will teleport you there.
You can copy other spm, spp files and rename them to old_ names to add mobs.
Re: writeField Function (adding and editing PT fields)
There seems to be an error with the dungeon files. Only when I add those the server got runtime error. I try redownloading ;)
--Edit--
Redownloading doesn't help. There is something wrong with either my server, or the files :S, ... It seems it are not only the dungeon files. I will look into it. The maps in game just work fine. Weird.
Re: writeField Function (adding and editing PT fields)
Delete all .bmp and .tga files in server Field folder.
Re: writeField Function (adding and editing PT fields)
ok I will try that :)
--EDIT--
Same error T_T Runtime error or just a crash or it will start, but I cannot connect :S. I paste the folders (old_dungeon) in Ptt-server/field
Is this the correct folder?
Do I really need those maps in my server? Because in game the maps load just well.
Re: writeField Function (adding and editing PT fields)
Try different server .exe
If you planing to add monsters and NPCs to that map than yes you need it in server.
Re: writeField Function (adding and editing PT fields)
What server.exe are you using? Could you please upload it. I use Kpt 1977.exe. Apparently that server doesn't work...
Re: writeField Function (adding and editing PT fields)
I'm using basic server .exe that can be found in any repack that was ever released. It could be some modification that makes your server crash. Everything can be found in Release section or in pined threads.
Re: writeField Function (adding and editing PT fields)
when i login on my server or i turn on my server my debugger opens, this problem only occurs here?
i'm using server.exe and game.exe of magicpt.
My english is bad, I'm from brazilian.