Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

KPT Test Server

Joined
Jul 24, 2006
Messages
883
Reaction score
581
So. I heard that the KPT test server has had a few new update to reduce fps lag from text on screen.

I dunno about this, but I thought it would be helpful to have all the game exe's.

Test Server
(Latest)v2.52.2
v2.52.1
v2.52.0
v2.51.9
v2.51.8
etc etc.
If you don't understand the dl links by now.... Too bad for you.

The .upw files are just compressed archives, so they can be opened and extracted in winrar.

Hope this helps devs in the future.
 
Last edited:
Joined
Jan 19, 2007
Messages
400
Reaction score
38
to copy ,only the functino, who will replace the GDI is not so hard, but, for use this client, at full, will get so much work, cos >
itenpost doest work
wharehouse doest work
skill, any work fine
party doest work
drops doest work....
 
Joined
Jan 19, 2007
Messages
400
Reaction score
38
to copy ,only the functino, who will replace the GDI is not so hard, but, for use this client, at full, will get so much work, cos >
itenpost doest work
wharehouse doest work
skill, any work fine
party doest work
drops doest work....
dont think is only the 'size' as you listem, cos it not. its a really hard work to fix all
...

for fix gdi, i see some mod who is called in new kpt game, see the SS :

SunnyZ - KPT Test Server - RaGEZONE Forums

its is a 'hard work' and is not for me, i will need to do all call, and realoc, by ASM, but, i found 5 procedures, and 4 of it is creat only by yourself, does't need the game for anything, its not a BMP font, its a Dx font, they call the name of it , like "Comic Sans MS" and DX creat all for it.....
i really think is better to do it by and external DLL, you have now, all the call and just need to use it. =D
(well, its i think =x )
 
Moderator
Staff member
Moderator
Joined
Feb 22, 2008
Messages
2,404
Reaction score
723
Im not talking about DX... in fact I already said in my first post that it would be better to just translate this client and fix some packets differences than trying to implement the DX changes in another game.

Yeah, they print the text using DX Sprites.. I've seen that before, not hard to do (in a completely DX9 environment), but for us (DX 6) it is another matter =p

BMP Fonts is just one of the possible solutions. I strongly dont belive that there is just one solution to the problem. There is always another way to do the same thing

--edit

From what I can see, seems pretty much like sandurr's code

Code:
0060CC80  /$ 8B4424 04      MOV EAX,DWORD PTR SS:[ESP+4]
0060CC84  |. 85C0           TEST EAX,EAX
0060CC86  |. 75 29          JNZ SHORT kpt.0060CCB1
0060CC88  |. 8B4C24 10      MOV ECX,DWORD PTR SS:[ESP+10]
0060CC8C  |. 8B5424 0C      MOV EDX,DWORD PTR SS:[ESP+C]
0060CC90  |. 50             PUSH EAX                                 ; /Arg6
0060CC91  |. 8B4424 18      MOV EAX,DWORD PTR SS:[ESP+18]            ; |
0060CC95  |. 50             PUSH EAX                                 ; |Arg5
0060CC96  |. 8B4424 10      MOV EAX,DWORD PTR SS:[ESP+10]            ; |
0060CC9A  |. 51             PUSH ECX                                 ; |Arg4
0060CC9B  |. 8B0D 20504603  MOV ECX,DWORD PTR DS:[3465020]           ; |
0060CCA1  |. 52             PUSH EDX                                 ; |Arg3
0060CCA2  |. 50             PUSH EAX                                 ; |Arg2
0060CCA3  |. 51             PUSH ECX                                 ; |Arg1 => 00000000
0060CCA4  |. B9 584E4603    MOV ECX,kpt.03464E58                     ; |
0060CCA9  |. E8 12F8FFFF    CALL kpt.0060C4C0                        ; \kpt.0060C4C0 // new print text function
0060CCAE  |. C2 1400        RETN 14
0060CCB1  |> 894424 04      MOV DWORD PTR SS:[ESP+4],EAX
0060CCB5  \. FF25 3C504603  JMP DWORD PTR DS:[346503C] // pointer to TextOutA

The new DirectX code to print the text
Code:
0060C400  /$ 8B4424 10      MOV EAX,DWORD PTR SS:[ESP+10]
0060C404  |. 85C0           TEST EAX,EAX
0060C406  |. 56             PUSH ESI
0060C407  |. 57             PUSH EDI
0060C408  |. 8BF1           MOV ESI,ECX
0060C40A  |. 7C 71          JL SHORT kpt.0060C47D
0060C40C  |. 8B7C24 1C      MOV EDI,DWORD PTR SS:[ESP+1C]
0060C410  |. 85FF           TEST EDI,EDI
0060C412  |. 7C 69          JL SHORT kpt.0060C47D
0060C414  |. 8B4C24 10      MOV ECX,DWORD PTR SS:[ESP+10]
0060C418  |. 3B0D FC4F4603  CMP ECX,DWORD PTR DS:[3464FFC]
0060C41E  |. 7D 5D          JGE SHORT kpt.0060C47D
0060C420  |. 8B5424 14      MOV EDX,DWORD PTR SS:[ESP+14]
0060C424  |. 3B15 00504603  CMP EDX,DWORD PTR DS:[3465000]
0060C42A  |. 7D 51          JGE SHORT kpt.0060C47D
0060C42C  |. 3BC1           CMP EAX,ECX
0060C42E  |. 7E 4D          JLE SHORT kpt.0060C47D
0060C430  |. 3BFA           CMP EDI,EDX
0060C432  |. 7E 49          JLE SHORT kpt.0060C47D
0060C434  |. 8B4C24 0C      MOV ECX,DWORD PTR SS:[ESP+C]
0060C438  |. 85C9           TEST ECX,ECX
0060C43A  |. 74 41          JE SHORT kpt.0060C47D
0060C43C  |. E8 2FF3FFFF    CALL kpt.0060B770
0060C441  |. 85C0           TEST EAX,EAX
0060C443  |. 74 38          JE SHORT kpt.0060C47D
0060C445  |. 8B4E 18        MOV ECX,DWORD PTR DS:[ESI+18]
0060C448  |. 85C9           TEST ECX,ECX
0060C44A  |. 7E 05          JLE SHORT kpt.0060C451
0060C44C  |. 8B4E 14        MOV ECX,DWORD PTR DS:[ESI+14]
0060C44F  |. EB 02          JMP SHORT kpt.0060C453
0060C451  |> 33C9           XOR ECX,ECX
0060C453  |> 8B76 10        MOV ESI,DWORD PTR DS:[ESI+10]
0060C456  |. 8B10           MOV EDX,DWORD PTR DS:[EAX]
0060C458  |. 56             PUSH ESI
0060C459  |. 8B7424 2C      MOV ESI,DWORD PTR SS:[ESP+2C]
0060C45D  |. 81CE 20010000  OR ESI,120
0060C463  |. 56             PUSH ESI
0060C464  |. 8D7424 18      LEA ESI,DWORD PTR SS:[ESP+18]
0060C468  |. 56             PUSH ESI
0060C469  |. 8B7424 30      MOV ESI,DWORD PTR SS:[ESP+30]
0060C46D  |. 56             PUSH ESI
0060C46E  |. 8B7424 30      MOV ESI,DWORD PTR SS:[ESP+30]
0060C472  |. 56             PUSH ESI
0060C473  |. 51             PUSH ECX
0060C474  |. 50             PUSH EAX
0060C475  |. FF52 38        CALL DWORD PTR DS:[EDX+38] // magic!
0060C478  |. 5F             POP EDI
0060C479  |. 5E             POP ESI
0060C47A  |. C2 2000        RETN 20
0060C47D  |> 5F             POP EDI
0060C47E  |. 33C0           XOR EAX,EAX
0060C480  |. 5E             POP ESI
0060C481  \. C2 2000        RETN 20
 
Last edited:
Custom Title Activated
Loyal Member
Joined
Jan 28, 2009
Messages
1,320
Reaction score
616
Old PT uses GetDC for drawing text... Its like checkmate for Win 7 and newer. I doubt you can do anything other than bmp font. I have not seen new kPT yet but I will definitely take a look.
kPT devs have code so its easier for them to make those changes. But it good to hear that they are not letting this game die.
BTW. It look like other official...PTs don't have those changes and are crypted for some reason... with themida <_<
 
Experienced Elementalist
Joined
Jan 1, 2009
Messages
217
Reaction score
61
Maybe we could work together to translate the client, since I belive copying the DirectX changes would be a pain in the butt

yes。 I think so .to me,I have finish the work , I made my server siut for the new Kpt
Game.exe.i want anyone how can cooperate with me to translate it to English ,remember that we are a team.

Party. Five warehouse. Quest,including 103 quest ,tier5 quest, two everyday quests,new skills for tier5. New .dat for new structure ,and so on.

Party. Five warehouse. Quest,including 103 quest ,tier5 quest, two everyday quests,new skills for tier5. New .dat for new structure ,and so on.
 
Moderator
Staff member
Moderator
Joined
Feb 22, 2008
Messages
2,404
Reaction score
723
yes。 I think so .to me,I have finish the work , I made my server siut for the new Kpt
Game.exe.i want anyone how can cooperate with me to translate it to English ,remember that we are a team.

Party. Five warehouse. Quest,including 103 quest ,tier5 quest, two everyday quests,new skills for tier5. New .dat for new structure ,and so on.

Party. Five warehouse. Quest,including 103 quest ,tier5 quest, two everyday quests,new skills for tier5. New .dat for new structure ,and so on.
I'm working on an automatic translator for any pt executable... lets see how it goes... :): would make our job a lot easier & faster

you can PM me if you like
 
Newbie Spellweaver
Joined
Aug 31, 2012
Messages
72
Reaction score
26
to copy ,only the functino, who will replace the GDI is not so hard, but, for use this client, at full, will get so much work, cos >
wharehouse doest work
drops doest work....

Warehouse you get the "wharehouse" screen and you can put things in it but will dissapear
Drops works perfect for me loool
 
Newbie Spellweaver
Joined
Dec 5, 2011
Messages
15
Reaction score
0
Sheen, if you wanna help, just contact me. Daan here.
 
Back
Top