-
MAXimum customizations [WIP]
Branch off from another thread, I left T5 skills due to lack of developers (too big project for one person). However it does not mean I will never back to it.
Originally I was planing to do more than 5103 combinations but I lots myself in possibilities, so now I am using only original PT components.
Nobody uploaded me rare DA122 so I guessing that nobody have it, anyway it will not be included.
So far so good, everything fit well together (see YT video) and I added only 3 manual fixes, for first two armours (knees) and phoenix boots (official files (mech) have bubble gum sticked to them O.o). I hope other classes will be as obedient as mech ;) Now I need to sit more with code before I will got any further. I am leaving you guys/gals alone with YT video:
(watch in HD! on YT)
YouTube - ‪Priston Tale - Customization MOD (MS, 5103 possible combinations)‬‏
-
Re: MAXimum customizations [WIP]
DA122 = "Dragon Armor" and is in my client... but I have no idea what you want from it?
-
Re: MAXimum customizations [WIP]
I didnt understand the video...
-
Re: MAXimum customizations [WIP]
Vormav has the client showing different armour parts on the model of a character. So you can see, not only what main armour a player is in, but also what Boots, Gloves and Bracers they have on. :wink:
It's pretty cool, even if it is a normal part of most graphical RPGs for the last decade or two. XD
-
Re: MAXimum customizations [WIP]
Vormav wanna dev the same other game. When you have boot in character inventory. Your Skin only Boot of Character. I think so
-
Re: MAXimum customizations [WIP]
I see. This is very good :D Congratz vormav.
-
Re: MAXimum customizations [WIP]
Thanks guys. Yes its split/visualisation for items. PT left this feature as if something was wrong with it so partly my work is done by PT itself, there is a lot to do but things are going smoothly, for now ;)
@bobsobol
I mean da122 like in this post ~~~> http://forum.ragezone.com/f286/quest...-items-280064/
BTW. its possible to mix some bodys "on the fly" like armour parts O_o
Not all work together but mech skills will work with fighter and knight body, same with ata and archer.
So your female fighter based on ata/archer (priestess? Or too hardcore? XD)
is quite possible. Or it can be used to force fighter to wear archer armor... I can image his hands sticking out from that thing XD
Here are few examples I found during client hacking:
http://oi53.tinypic.com/29n73ao.jpg
http://oi54.tinypic.com/qrhqw0.jpg
http://oi53.tinypic.com/fp3yhh.jpg
http://oi53.tinypic.com/otzuig.jpg
http://oi53.tinypic.com/120t7v8.jpg
http://oi54.tinypic.com/a3dzko.jpg
Bodys are from knight and fighter, head and skills from mech (no file editing).
I can use it for mixing armor parts between characters (if your armlets are fs spec. they will look like armlets for FS) but for now I will leave it alone.
So bobsobol, feel like making female fighter now? ;)
PS. its ARMOUR or ARMOR? My dictionary tells me armoUr but for google translator both are forms correct, any difference?
-
Re: MAXimum customizations [WIP]
Quote:
Originally Posted by
Vormav
Yes, but I presume you want the meshes and textures associated with that item, and I don't know how to work out what files in tmABCD relate to what item. (I guess this is essentially what you are working on)
Quote:
Originally Posted by
Vormav
PS. its ARMOUR or ARMOR? My dictionary tells me armoUr but for google translator both are forms correct, any difference?
This is similar to the differences between European Poruguese and Brazilian Portuguese that I mention with regard to Google Translate. It doesn't take any notice of sub-dialects.
Are you from the US or the UK? In the UK it's "Armour" in the US it's "Armor". In an "American" English dictionary "Armour" isn't a word. It doesn't exist. The same applies for the word "Armor" in the British English dictionary. No such thing. :ott1:
Drives me crackers in the "European" releases of "English" games... especially when they expect me to actually type the word wrong. :grr:
Another prime example in "English" RPGs is the word "Honor" which my spell-checker is already "telling me off" for. It's spelled "Honour". :lol:
I quote "American", (from the phrase "American dictionary") because Canadians are, undoubtedly, "American"... however, they often know how to spell. :lol: (By which I mean their dictionary tells them to spell words much more like our British dictionary tells us to, than how the "American" dictionary tells U.S. "Americans" to spell :wink:)
Clear as mud? ^_^
-
Re: MAXimum customizations [WIP]
I always laugh when I see:
"Clear as mud? ^_^"
lol
-
Re: MAXimum customizations [WIP]
Yea, that phrase really doesn't need [sarchasm] codes does it. :wink:
I'm sure if you used Google translator on it you'd think it had misunderstood something though. XD
-
Re: MAXimum customizations [WIP]
I dont even know what Mud is, but I think its funny, IDK why. lol
-
Re: MAXimum customizations [WIP]
You don't know what "mud" is? O'magosh. Well, if you mix soil (or "Dirt" in U.S. English) and water, you have "mud". :lol:The point is, "mud" is not clear, at all.
-
Re: MAXimum customizations [WIP]
lmfao, I suspected it was earth + water.
xD
-
Re: MAXimum customizations [WIP]
Quote:
Originally Posted by
bobsobol
Yes, but I presume you want the meshes and textures associated with that item, and I don't know how to work out what files in tmABCD relate to what item. (I guess this is essentially what you are working on)
Yes, but I starting to think that it never existed, I think i seen SS of it but this might be just skin modification, anyway nvm. If I put drop items on myself they will end "flat", thats because the are flat, only boots are more "3D" but they are missing bottom.
Here its how it look like when you try to wear item that you dropping on floor:
http://oi55.tinypic.com/xcq7b4.jpg
http://oi55.tinypic.com/21myq9d.jpg
http://oi51.tinypic.com/2zho2td.jpg
Quote:
Originally Posted by
bobsobol
Clear as mud? ^_^
Yes clear ashttp://oi51.tinypic.com/2irqmtf.jpg!! ;)
-
Re: MAXimum customizations [WIP]
I see that my thread hit bottom hard ;)
Here is new video showing how it works (359424 different combinations for one player):
‪Customization MOD - BETA TEST (359424 different combinations!)‬‏ - YouTube
whats done:
- putting items on/off, from floor/shop
- swap items
- saving your items configuration set on server
- recognizing NPC/MOB/myself
what need to be done:
- other classes items combinations
- sending/receiving configurations to other player
- recognizing myself/other players (partly working)
- exceptions
- probably something I forgot ;)
For now I am happy with speed (close to original). Memory usage will go up but whole game.exe should not take more than 1 GB of ram, nothing will change on server.
I will probably add option to off/on this whole mode, so players will have choice to show "what they are made of" or not ;)
-
Re: MAXimum customizations [WIP]
Quote:
Originally Posted by
Vormav
I will probably add option to off/on this whole mode, so players will have choice to show "what they are made of" or not ;)
And presumably what other players are made off. XD
Wicked demo, and kickin' backing track. Love the OldSkule D&B section. Can't wait to get a chance to play with this. A small thing that makes a major difference to the game.
Recently noticed that there are four variations of each "head" texture in the TPT clients. They come regular, crying, in love, and twinkle eyes. XD
I have no idea how this is implemented in the client. To me, it would make sense if you could select them by a "yahoo" type command, but that doesn't seem to be the method used.:?:
Anyway. GZ:thumbup:
-
Re: MAXimum customizations [WIP]
awesome video, cant wait to see it :)
-
Re: MAXimum customizations [WIP]
Quote:
Originally Posted by
bobsobol
Recently noticed that there are four variations of each "head" texture in the TPT clients. They come regular, crying, in love, and twinkle eyes. XD
In ePT they are cash shop items (right click a potion and your head goes big) all they do is increase your attack power by like 15% for 3 hours or so.
-
Re: MAXimum customizations [WIP]
Quote:
Originally Posted by
bobsobol
To me, it would make sense if you could select them by a "yahoo" type command, but that doesn't seem to be the method used.
It is possible to implement that, but I would go even further. When someone type in his chat one of the faces in text than the appropriate head would appear.
e.g. >"I bumped my head T_T"
would turn your head into crying head.
When I think of it it would not be that hard, but how I can manipulate time for how long it will last without freezing PT? Thats only thing I can't imagine =P
-
Re: MAXimum customizations [WIP]
Quote:
Originally Posted by
sungam3d
In ePT they are cash shop items (right click a potion and your head goes big) all they do is increase your attack power by like 15% for 3 hours or so.
Isn't that the "Comic Character" or "Child" mode? I thought Hammer monsters gave that when the Child event is running? There is an Admin command to "Comic Character" players as well, so I'm sure that could easily be turned into a pot.
These are quite different.
I've seen screen shots before, and I'm really annoyed I can't find them now... I can dig the skin files out and post those but that isn't quite the same.
Anyway, that's all they are, no new mesh, head normal size, but with a new texture over it.
--EDIT--
Quote:
Originally Posted by
Vormav
When I think of it it would not be that hard, but how I can manipulate time for how long it will last without freezing PT? Thats only thing I can't imagine =P
Oh, I would just do WoW emote style. /cry, /love, /grin, /norm
Don't leave a time-out, just use one of the emote commands to switch texture.
But if you are looking for emote mesh / animation, I'm sure "yahoo" would be an excellent example. You don't carry on doing a "yahoo" animation more than once... you just go back to stand_state.
-
Re: MAXimum customizations [WIP]
Quote:
Originally Posted by
bobsobol
I've seen screen shots before, and I'm really annoyed I can't find them now... I can dig the skin files out and post those but that isn't quite the same.
Something like this ?
http://i56.tinypic.com/34q031h.jpg
http://desmond.imageshack.us/Himg43/...jpg&res=medium
http://desmond.imageshack.us/Himg691...jpg&res=medium
http://desmond.imageshack.us/Himg835...jpg&res=medium
But it was bugged, when the 3 hours were up your head fell off lol XD
http://desmond.imageshack.us/Himg845...jpg&res=medium
-
Re: MAXimum customizations [WIP]
No. Very different.
That's what I mean about the heads not changing. The mesh is the same, only the texture changes.
---EDIT---
Okay... so your mech is displaying TmhA02, TmhA14t and failing to show TmhA17t. But how do you use TmhA15t and TmhA16t? The screenshots I've seen show them on the "normal" head mesh. Not the "Child" big head. :wink:
Textures (blond Mech only)
http://www.4freeimagehost.com/uploads/6ad768a90c37.png http://www.4freeimagehost.com/uploads/7c232518132c.png
-
Re: MAXimum customizations [WIP]
I think that we are "misunderstanding" the actual purpose of this game. All I see in BR pservers are Age + 30, FULL PVPs server, level +250...
Now this fun faces.. I'm not a big fan of these changes, really... But the work vormav is doing in this thread is really what I'd like to see in every pt pservers. not age +30 lol, all we are doing is bugging our clients and then we start to make threads
"why is mine games.exe crasshing when I go to ric??//? some1 help me???"
or even that recent thread, "how to raise max attack limit"..
It doesnt need to be an expert to guess that he'd try to raise - even more - the attack of the weapons, bugging even more the game with too much attack power and making skills useles.
Why would I use the Defence Skill of KS ( e.g ) if without it I have 4k of defense? you know what I mean? things are becoming "unbalanced", IMHO.
-
Re: MAXimum customizations [WIP]
I do agree, and I don't want to distract Vormav for his original project.
I only originally mentioned it, because it's another "feature" which (unlike starting at level 150 and silly amounts of damage) is already in PT, but I've only seen an official implementation once.
Those aren't "new" faces that I made up. They are in the official Thai client. (or where, before Suba took them over) But I've not seen them anywhere else.
-
Re: MAXimum customizations [WIP]
pt seems to have a nice feature but I think its disabled or incomplete.. something involving voice chat.. dunno exactly how it suppose to work...
Quote:
I don't want to distract Vormav for his original project.
-
Re: MAXimum customizations [WIP]
I can answer some of that. Sandurr apparently had an equivalent working in one of his clients. There is a secondary executable or dll which loads a voice chat interface. (jPT has some of the imagery for the interface)
It's a "push to talk" system. When you press a button, the mic image lights up, and you are recording to a .wav file in your /savedata/TalkWav folder. When you release the button the .wav file is uploaded to the PT server, and your party / clan then download it, and their client plays it back.
It's a bit clumsy and not very responsive. But it works. :):
-
Re: MAXimum customizations [WIP]
It would be better not to save and then upload but to be transmitted "live", you know? I dunno if Counter Strike e.g does that way.
-
Re: MAXimum customizations [WIP]
I do know. But that is definitely not how PT is designed. That much is very clear, even without the missing code. :wink:
Honestly, using TeamSpeak or Ventrilo is much more responsive than in-built PT method, which is probably why it was never completed. However, many of the hacking and key-logging protection systems in the official clients disable the use of these tools when playing PT. (nothing is allowed to capture keyboard and mouse input but PT while PT is running)
-
Re: MAXimum customizations [WIP]
Sending & receiving item information working but I need to change it a bit... boots taking place of head... not that bad bug... last one was: everyone who logged to game was spinning in crouching position and could not walk. So its huge improvement ;)
___
I wonder how mix/age color work. It would be nice if I could age every part and get nice glow >=P
This might be too disturbing so I wonder if PT can age only some "colors" on armor like 80d armor golden parts are glowing at night.
___
This wave chat is interesting but I would use it for announcements or some "radio npc", everyone who win sod/bc can control what song/station is playing in some spot (not in town, too laggy ;))
___
Yeah I don't get why add more lvls (this would be OK if we had more items) or increase gold limit, if you have gold limit 100KK... best items will cost 100KK, you have limit 500KK... best items will cost 500KK well...more or less. MMORPGs prefer gold + barter :) and I think thats perfect.
___
Bigger heads helps see expressions on those heads... but this creep me out, heads that look like balloon :)
-
Re: MAXimum customizations [WIP]
There are filters for making shine or glow effects in DX9, but I don't think it would be "easy" to use them on the existing PT client code.
I would be happier to see all the kit individually without ageing or mixing effects. WoW implemented a "changing room" feature, where by players could "inspect" other players, and see their "paper doll" to inspect the stats of the items they where wearing. (useful if you are going to PvP someone to ascertain strengths and weaknesses before partying for an inst)
Some of the additional UI features I've seen pServers use could have something similar to this, even if inventory of another player was only listed in a "help" style text window.
-
Re: MAXimum customizations [WIP]
Is there a way to pack two random numbers into one and than unpack them?
e.g. number from 00h to 7Fh + number from 00h to 7Fh
I need to pack 4 numbers like that into 2.
I can't remember if there was some match formula for it.
I have bug: items informations that I am sending are in the same packet as weapon/shield... there is some other space but I do not want to touch it (might be something else e.g. age/mix info or ring etc.). So weapon/shield writes on my items informations and vice versa. Result is that my items are sticking out of my head and all Hopys are turned into mechs without head that are attacking with respawn animation...
So would be nice if there is formula or else I will have to think about some other way (I do not want modify client that much).
-
Re: MAXimum customizations [WIP]
0x00 - 0x7F is a single byte... so if you have a DWord, you can pack 4 of them into it via:-
Code:
Integer = (byteA << 24) & (byteB << 16) & (byteC << 8) & byteB;
Then reverse the process to get them back.
Is that any use?
-
Re: MAXimum customizations [WIP]
Not really sure about it. If you have DWORD than you splitting it into 4 BYTES
DWORD 0x11051A15
byteA 0x15
byteB 0x1A
byteC 0x05
byteD 0x11
I need something like this.
DWORD 0x11051A15
Code:
WORD 0x15 0x05
+ +
0x1A 0x11
and method to take out 4 original values and turn them back to DWORD.
I have space to send information as WORD but I need DWORD :/
__EDIT__
HM... I will try to mask them in bits.
Your posts are like massage to my brain... forcing me to think ;)
-
Re: MAXimum customizations [WIP]
I am sure I wrote something... rollback?
Anyway I found myself good place in packet to send that extra information for now I don't see bugz, but maybe some packet experts can tell me if this spot is always 00 00 00 00.
By bugz I mean:
I really need to do all bloopers I had when I finish this project ;)
84 00 00 00 14 00 47 48 01 00 00 00 9b 09 00 00 74 00 00 00 13 00 47 48 66 2a 00 00 00 00 00 00 01 00 00 00 c0 00 00 00 a4 01 a4 01 00 00 00 00 03 00 02 00 00 24 00 00 64 f0 00 01 00 00 00 00 4c f6 0b 00 53 9b 00 00 61 8a c0 ff 10 54 00 00 00 00 eb 10 00 00 0b 00 8d 01 ff ff 09 00 00 00 00 00 00 00 20 00 00 00 e0 8a 47 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
So what you guys think is it safe?
-
Re: MAXimum customizations [WIP]
what are you trying to do? If I remember well, 48470014 is the time packet...
-
Re: MAXimum customizations [WIP]
I am sending items information in the "red" DWORD, just before it you have armor, weapon and shield information, also this packet contain informations about your position XYZ and angle (but this is in most of packets), I did not check rest.
This packet is perfect for me, but I am not sure about "place", I can't tell if anything is ever send in those 00 00 00 00.
I spend some time testing and for now players don't act strange, spasming without control or spinning in circles but I am afraid that something might be there, so thats why I am asking. :)
Is anything ever there?
I wonder whats 20 00 00 00 e0 8a 47 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00, but its not important, not as much as place before it.
-
Re: MAXimum customizations [WIP]
the 4 bytes before the opcode is the packet size.
XX 00 00 00 14 00 47 48
it means a packet with opcode 0x48470014 and 0xXX size.
-
Re: MAXimum customizations [WIP]
That missed the question Sheen. XD
I can't imagine that anything is transmitted which has no use, but I can imagine that some things are transmitted whos' use is depreciated to the point where it is mostly irrelevant.
Can I ask where you are writing this information into the packet?
Because, if you know where the packet is composed before encoding and then transmission, you could either modify the encoding of "wastefully stored" information, (a DWord that only needs a Word (and that happens) or you could possibly add a DWord to the "size" of the packet?
Either way, the only things I have suspected of being a buffer for packet encode and write are the general player stats, (savegame.dat) and I still suspect that of being copied to a new memory block and possibly modified a little before transmission.
-
Re: MAXimum customizations [WIP]
Yeah Sheen you missed by 4 bytes, but thanks. Now I know to not touch packet size ;)
bobsobol find this sequence if commands:
Code:
MOV EAX,DWORD PTR DS:[ECX+387C]
MOV DX,WORD PTR DS:[ECX+19C]
INC EAX
1st function you get from top, I don't know when 2nd (similar) is executed.
I adding my code to the bottom. Packet information are scattered all over memory, its composed into one packet somewhere else, not sure where.
Those packets are not encoded or decoded, this is raw data, only name and packet size is coded since it don't make sense to me, you can simply add "bobsobol like pie" into packet and it will never be encoded, everyone can get that packet and say "I knew it" ;) At least player name is encoded.
The space I am using to send my DWORD is right after weapon and shield information and for me it look like puzzle piece for unfinished addition.
PS. anyone know author of code?
Code:
/****************************************************************
FindPattern bullshit. This has been C&P'd so many times that
crediting the author would be a pointless exersize.
I added a struct for this ok
****************************************************************/
BOOL DataCompare( PBYTE pbData, PBYTE pbMask, char * szMask ){
for( ; *szMask; ++szMask, ++pbData, ++pbMask )
if( *szMask == 'x' && *pbData != *pbMask )
return FALSE;
return ( *szMask == NULL );
}
Very useful, but wherever I look nobody knows who wrote that.
So probably I will add "written by anonymous".
__EDIT__
PS.2 can we do something to speed up packet sending & receiving, (to 1ms ;))? PT is doing it too slow, can it have FPS speed? ;)
-
Re: MAXimum customizations [WIP]
Sending and receiving items information on place that I pointed out is working:
‪MAXimum customization (sending & receiving informations TEST)‬‏ - YouTube
So far I don't see bugs, maybe one but you have to put item on and take another item really really fast (gloves, armlets, boots... armor is too far to do this bug) and it will be as you never send this information that you took off next item (only others will see it), Its hard to reproduce this bug so its hard for me to trace it, for now I will add it to KNOWN BUGS, hopefully it will fix itself ;).
Speed is good to, you would not see difference with naked eye, however PT is really slow with sending packets, maybe there is some way to speed it up, to shorten delay (probably server doing something, on client everything is fast)?
So stay tuned for more ;)
-
Re: MAXimum customizations [WIP]
thats really good, when are you going to release a beta ver? is it done by dll or pure asm modifications?
-
Re: MAXimum customizations [WIP]
-
Re: MAXimum customizations [WIP]
Quote:
Originally Posted by
Vormav
PS.2 can we do something to speed up packet sending & receiving, (to 1ms ;))? PT is doing it too slow, can it have FPS speed? ;)
Okay... it took seeing your next post to understand that. You should note that both FPS and packet send is considerably reduced when PT is not they foreground window.
You can remove this limitation (I have done) but it would not be very advisable.
Check calls to GetForgroundWindow(). The routine in question checks the result against the clients main window handle (hWnd) and if they match, it uses Sleep() and (IINM) GetSystemTime() to delay the thread from updating.
This stops PT from hindering the responsiveness of the foreground window. It's not too bad if you've switched to Notepad or Calc, or even MSN... but if you've switched to another PT client, or are even playing Pac-Man while your Personal Shop is waiting to sell up, PT can considerably degrade the performance of the system running at full speed.
In short... I wouldn't worry about what you are seeing, unless that delay is too annoying even when you are using two PCs attached to your server.
At which point... the delay in the server processing your packet and passing the information on the the next player also comes into the equation, and what you do with the client won't make any difference.
I think the server does also take notice of the network speed setting that you can see in the clients launcher... and most of us never bother to set it on the server.
The default is middle-low I think. (one up from the slowest, and therefore two down from the fastest) But if you increase this, you also increase the bandwidth requirement of your server system, and degrade performance in high user situations. :wink:
-
Re: MAXimum customizations [WIP]
I always hated that delay, now its gone *_* thank you bob :lol:
I just changed a JE to JMP acctualy :P
-
Re: MAXimum customizations [WIP]
Yea... actually, I did "reduce" it, as something "in-between". I think that is in Butchered for some time. For example a 15 or 30fps cap for background window is neither here nor there when you aren't in combat. (I hope you don't MSN while fighting)
It's also enough to give other tasks a time-slice at least that frequently, and that's responsive enough not to see type-lag in Word. :wink:
33ms sleep will give approx 30fps max.
-
Re: MAXimum customizations [WIP]
why is bad to remove that lag?
-
Re: MAXimum customizations [WIP]
Because if you don't lag the game when it's minimised and you do something else processor intensive... you absolutely thrash your CPU. XD
It's not hard to imagine why that delay was implemented, and if you run two PT clients with it completely off, you will see the problems it causes.
If you try playing Oblivion in a window while PT is in the background and the background Sleep() is disabled you will really struggle.
-
Re: MAXimum customizations [WIP]
but sandurr has removed it in RealmPT... have you seen it? maybe he has done it using another method?
-
Re: MAXimum customizations [WIP]
Maybe, or maybe he doesn't care for people who want to play Oblivion while they wait for their personal shop to sell up. :lol:
I should state that when I say "trash the CPU" I don't mean it will pop (overheat / burn out) or anything. I just mean you are "throwing good cycles after bad". The common sense says that if you are Atl-Tabbed away from PT, you don't care if it is updating very slow (you may have it obscured by another window, or minimised to the task bar, and then you really wouldn't notice at all) but you almost certainly will notice if web pages take forever to load, and Word is lagging entire sentences behind what you are typing.
I know I type pretty fast. Not quite as fast as I read, but certainly faster than I can speak. Still I have managed this while running PT in a background window.
It's also worth remembering that TV is only about 25 - 30fps (SD) and HDTV and most PC monitors max out at 60fps. (high end gaming or HTPC screens can cope with 120 / 150 maybe even 175... I've still never seen one running though) So the question could easily be... why doesn't PT implement this all the time?
I don't think PT takes any notice of the "VSync". (you see that as an option in many games) This delays the page flip until the monitor has rendered the whole of the last one, and prevents "tearing". However, it also avoids over stressing the CPU, and GPU. If I knew how to implement that alongside the existing PT code, I would program "when not the foreground window, wait two VBlanks before continuing".
As ever, I don't care to look too closely at Sandurrs' code, unless he has shared it with us publicly. Certainly, his client feels faster, and seems to affect other processes even less than jPT clients I've tried. They (to my tests and my eye) tend to be the smoothest and produce the least load of any of the official clients.
-
Re: MAXimum customizations [WIP]
For some reason I strongly disagree with you bobsobol :)
and the reason for that is I just test it!
On one PC I'm running server, 2 clients, wii game on emulator in HD, dungeon siege 3 (I don't have oblivion installed... only this crap =P) and I am writing this.
My CPU usage did not pass 20% and every game/emu took 2 threads (I have 8 on 4 core CPU). 5 GB of ram is eaten alive... but CPU don't want to sweat :(
I hooked DDraw (also foreground and background window and few others) and I think Sandurrs doing it similar way. It works great! As if you turned off all your menus in game (F11). I can work on it when I finish this project but there is not need to add DX9, all we need it DDraw hook.
Also I don't see any more or less packets send so I don't think this have any effect on server, but I noticed one thing, PVP is closer to "real time".
PS. Correct me if I did something wrong with my testing.
-
Re: MAXimum customizations [WIP]
Sounds okay. I haven't compared the comparison between packets and frames, and I certainly would have no idea how to "hook DDraw". I'm getting closer to understanding the COM API for DirectX than I was when I started poking PT in sore places though. XD
When I reduced the Sleep(), and when I skipped the entire GetForgroundWindow() stuff... I struggled to type in notepad, let alone do anything else, so your method clearly has considerable benefits. However, I don't see any greater speed-up tapping F11, and I do by disabling all the 2D UI (HUD or WHY) and leaving the text in place.
I can certainly kill the PT client frame rate by patching it with GDIPP though. XD (Text renders awesomely, but game is not playable)
Back to packet timing. I believe that there is one or more threads allocated to packet send. Each has a Sleep() or similar API associated with it, and a critical section object.
The method I think is being employed (debugging around thread change and critical objects often leads to a threadlock or other crash) is that the thread goes idle by means of a sleep, leaving the game to get on with what it's doing until it's time for a packet of this type. Then the critical object is signaled, (I'm not sure what the Microsoftees for this is, but they are basically an object-oriented Mutex unlike anything in any other OS, just to be awkward) so any other thread which tries to do anything with the memory the packet dispatching thread is working on becomes suspended. The packet is created in a memory buffer (which I'm not sure if it creates and destroys every time a packet is to be dispatched or just creates and keeps present... I suspect they just use the threads heap or such) encoded and passed to WinSock to send out.
The the thread cleans up, releases the critical section and returns to it's Sleep().
There are a few places which perform this same basic task in a couple of different ways. I don't really understand them, but I can kinda identify them.
Same way as with frame rate, it's simple and safe enough to reduce the Sleep() time.
If all your clients are doing it, you need to allow for that in your server bandwidth though... especially if the server spits out a packet to anyone nearby any player when ever they send it a packet.
Would be nicer if changing a clothing item, or starting / stopping / turning would trigger the packet generation, and the time-out only applied if you are stood still doing nothing... so the connection remains in "keep alive".
Unsurprisingly, I'm pretty sure it doesn't work the "nice" way. :(:
-
Re: MAXimum customizations [WIP]
Try FRAPS with FPS overlay, I just got results
On best video settings and resolution while standing and doing nothing:
Visible inventory: ~25 FPS
Invisible inventory: ~65 FPS! (F11 as admin)
Intro for both ~75 FPS with turned on login/pass screen.
I was not able to test apps that have directDraw hooker (sounds strange) since they work only in window mode and I don't know how reliable their FPS counter is. But it gave me from 30-50 <_< (it felt faster).
If you standing and doing nothing PT keep sending that you standing and doing nothing on XYZ position, you look like that and that, wen you move, PT will send that you moved. I never seen PT not sending anything for longer than 1 sec...
_________________________________
OK about hooking stuff:
There is a cool "windower" called D3DWindower it can do some magic with old DX1-7 and newer.
DL it and try some different configurations, you should see visible speed, 2 maybe 3 times faster and less lag, timeout on your chat window will show up less times too.
Also you can add it to PT imports like I did:
DL:
Multiupload.com - upload your files to multiple file hosting sites!
extract it to your KPT folder and edit hook.ini (yes hook not hotuk =P):
F:\MyPTClient\TKPT\game_2006_NO_XTRAP.exe=game_2006_NO_XTRAP
SubModule0=F:\MyPTClient\TKPT\D3dHook.dll
change them to your path.
Don't forget about:
Width=1152
Height=864
:)
and just start game_2006_NO_XTRAP.exe
PS. best to test in in BC. Two clients with sound ON and when you hit someone you there will be only 1 sec delay. Before I had to wait even 4 or more...
__EDIT__
I forgot about ptReg.rgx
Turn off your window mode there:
"WindowMode" "OFF"
-
Re: MAXimum customizations [WIP]
which functions are you hooking exactly? I thought it'd be the source code but I think its some kind of component you downloaded...
-
Re: MAXimum customizations [WIP]
This app have only source for its GUI.
You have to find what speeding up PT and reverse engineer functions in this DLL. Somehow adding everything to PT imports don't speed it as much.
But it help PT to work faster.
I don't plan to work on it anytime soon so I will be glad if anyone would do it.
________________________________________________________________
I nearly done fixing fighter, all items are compatible with each other.
BUT there is a problem I can't edit hands in last armor (tmbB17.smd; they are even in 16, 15 and 18). Non of them work. It look like there is a problem with *MESH_NUMTVERTEX or MESH itself.
Mesh look a little broken (hands only) after conversion and it cause incorrect uvw map :/ This will crash MAX so you need to remove
*MESH_NUMTVERTEX NUMBER
*MESH_TVERTLIST {
[...]
}
or convert it to editable poly.
Rendering it as it is will give error:
Object <TAHB21> has a mesh with invalid texture vertex indices - can't render
Those hands are a bit irregular, right hand look like uvw map did not took spikes.
Worst case scenario is that I will have to remake those hands or those hands are not going to be included.
I will try to PM Sandur now (UserNameHere2, if I am correct) but I don't know if he takes bug reports or if it can be fixed.
---------- Post added at 08:36 PM ---------- Previous post was at 07:46 PM ----------
'K FS check and ready to launch (without gloves from da125 for now :( )
I will make movie when I clean mess I made ;) ...and make interactions with Mech. Probably Prs/Mage will be more interesting than this ;)
http://oi51.tinypic.com/iyh2dx.jpg
-
Re: MAXimum customizations [WIP]
if you can tell me which functions you changed the values with those hooks, I could try to work on it, I saw the .ini but there are too many functions patched, am I right? I dont think PT uses all of them.. you know what I mean?
The oly call to a DDRAW API I found was "DirectDrawCreate"
-
Re: MAXimum customizations [WIP]
Download D3DWindower-English.rar | Game Front
Play with options and check what speeding up PT.
You can even use "proxy" dll to load this dll.
Once you find best configuration rewrite functions that are hooked.
I don't have any deep tests of it so you are a bit on your own =P
-
Re: MAXimum customizations [WIP]
I cant make it work, I add my game to the list, click in the Play button, then I try to open my game, but it just closes :P I've traced it before and I know the error is right after the _InitD3D call, that TEST EAX,EAX.
EAX is 0, then some error ocurred then the RET is called and my progam exits the main routine and stops in a beautiful ExitProcess lol
-
Re: MAXimum customizations [WIP]
All your settings need to be on FULL SCREEN so it can make WINDOW.
ptReg, hotuk.ini need to run game.exe in full screen mode.
Also copy this app and files into your main game folder.
Don't press play |>
My configuration:
http://oi52.tinypic.com/22zzmt.jpg
-
Re: MAXimum customizations [WIP]
it worked now, I'll see what I can do.
-
Re: MAXimum customizations [WIP]
I have had the same immediate quit to desktop when I've tried DirectX windowers or Fraps FPS counter on PT clients. PT is so badly coded against DirectX.
The readme says it's a DX7 to DX9 wrapper I believe, and it looks like it. The DirectX9 APIs probably do run faster, and will certainly make more use of 2D graphics acceleration and underlying GDIPlus functions. (a big problem with font rendering)
Another problem with DirectX exported functions is that they are ActiveX (Component Object Model) APIs, so only the Object instantiation function needs to be exported. Every other function (method or property) is exported by the object handle passed back to the application, and invoked by COM manipulation of the object represented by that handle.
Back on topic. I'm looking forward to the release... if the only problem is with the UV map of hands, I suspect they could easily be re-created manually. Even I have some experience of manipulating UV maps when I've been skinning other peoples models. (that's close enough to the 2D work to be something I can do)
-
Re: MAXimum customizations [WIP]
Fixed pikeman, YD did some mess on this class, but all good now and fits together! It was a nightmare... the horror! But I learned that I might be able to do realistic wings that will move when you breath, I totally need to test my theory some other day =P
So only archer to do and tempskrons are ready!
I got error; already fixed; but I would like to know what it does say, make no sense to me:
모델제거 오류 (Remove the model error?)
Everyone where blinking like in disco :)
-
Re: MAXimum customizations [WIP]
I would guess it comes when reading the cached / compiled ASE. The interpreter thinks there is a problem with the file?
-
Re: MAXimum customizations [WIP]
Tempskron practically done.
http://oi53.tinypic.com/15ckahd.jpg
Here is video of (in order):
★ Archer ★ Pikeman ★ Fighter ★ Mechanic ★
‪Customization MOD ★ Archer ★ Pikeman ★ Fighter ★ Mechanic ★‬‏ - YouTube
Pike need few fixes and fighter still missing last gloves (anyone willing to fix them, here is a file).
I still need to fix few textures that look silly (mostly on archer) and that would be all for "core" of tempskron.
I might be AFC (Away From Computer ;)) for few days so for now enjoy video!
-
Re: MAXimum customizations [WIP]
Nice... Do I hear Liquid Tension Experiment? ō.ô Should really be credited... but I know YT can become stropy.
-
Re: MAXimum customizations [WIP]
No you don't :)
But YT can't recognize audio if you pitched it :)
-
Re: MAXimum customizations [WIP]
this will be easy to add/modify or its like item table with too many offsets to change?
-
Re: MAXimum customizations [WIP]
3-year-old should be able to add it :)
Just few fixes in 6 client function and some few lines of text.
I will include all tools that I made and are needed.
I moved it to new clean client (making a guide for myself if I forget what I did ;)) and it took me 15 minutes.
-
Re: MAXimum customizations [WIP]
-
Re: MAXimum customizations [WIP]
Just saying that I did FS gloves that I mentioned before so no one need to do them. You will not see difference.
Riped and fixed, tempskron are complete, yay.
http://oi52.tinypic.com/2i0vnd2.jpg
Time to do morions :)
-
Re: MAXimum customizations [WIP]
Bruttaly cool =D
@Vormav: Check this crazy idea of mine :drool: (or someone maybe already had this idea xd) :
I wonder if its possible to add a 'self-ilumination' subtexture to the models, so specific parts of the texture (like the thorns coming out of the pike's shoulder pad, or the 'jewel' on the mech's shoulder pad) would shine accordingly to the lvl of aging/mix. Then some could really see what a character is 'made of' XD... I wonder if it would be viable =D...
-
Re: MAXimum customizations [WIP]
It isn't, using the current 3D engine Fox. :(: I'd love to have Normal maps, but the only other texture layer (besides diffuse map) allowed is translucency map. (alpha) :wink:
No shine, (speculative) no glow, (emissive) no bump (normal) maps. :*:
-
Re: MAXimum customizations [WIP]
My dream since I played Priston the first time more than 10 years :)
-
Re: MAXimum customizations [WIP]
Actually... I suspect speculative map would add the most visible oh and ahh for the least effort.
The "lighting" in PT is mostly pretty fake, and I suspect that emissive map would look more like a blue-screen hole in the render. XD (unless you apply blur effects after / around the edges)
Speculative could make metals "really" shiny, and give texture to silks and velvets in the costumes, and shiny slime on monsters.
I think it would be cool anyway.
-
Re: MAXimum customizations [WIP]
When I finish this project I will have a look on PT overlay age/mix, if its done on .bmp/.tga than there should not be a problem with aging armor parts however if its done on mesh only than I would need to detach parts of mesh and thats a lot of work. Maybe some tricks I have in mind will work but that will be different story :)
After this project I was thinking about visualisation of orbs for mage/prs, nothing special, just some crystal balls in hand with some nice visual effects that PT is providing but we will see.
Only priestess and mage need to be done but those 2 are a bit different from the rest so it might take bit longer.
-
Re: MAXimum customizations [WIP]
Quote:
Originally Posted by
Vormav
When I finish this project I will have a look on PT overlay age/mix, if its done on .bmp/.tga than there should not be a problem with aging armor parts however if its done on mesh only than I would need to detach parts of mesh and thats a lot of work. Maybe some tricks I have in mind will work but that will be different story :)
The mix bitmap overlays are in the DropItem folder, they are named:
mixM_01.bmp, mixM_02.bmp, mixM_03.bmp, mixM_04.bmp, mixM_05.bmp
mixS_01.bmp, mixS_02.bmp, mixS_03.bmp, mixS_04.bmp, mixS_05.bmp
You can get some pretty funky effects going changing those images.
http://img856.imageshack.us/img856/5...0123102033.jpg
One funny bug, if a pike uses vanish, and his armour is mixed, you can change the mix image to a more vibrant one, and you can see the mix colour on him XD
*cough* being able to see vanished pikes in BC *cough*
http://img10.imageshack.us/img10/6607/201115233138.jpg
http://img143.imageshack.us/img143/5...1111713356.jpg
I have never been able to find the age glow files though, I spent like 2 hours looking through every single bitmap and tga a year ago trying to find em. Even made a big flat weapon tosee if I could match a image to it, nothing, hes the reference I used, its +10 age glow.
http://img543.imageshack.us/img543/8246/10ageglow.jpg
I'd love to see glowing armours, get ready for a seizure!
GL.
-
Re: MAXimum customizations [WIP]
LOL pike vanish colors XD
Age effect might have some control in .part/.ini or be coded to .exe
PS. I see stars in that flag, so I guess you are from Australia.
-
Re: MAXimum customizations [WIP]
@Sungam3d: I think the foreground color in the aging process is given on a plain 'rgb' process (i think that these colors are determined "in the code" or in values on some file...)..If you use "Quest Weapon Glow" in an item, it will glow just like the aging, but without the 'mixing' texture.. Maybe the aging system uses both "weapon glow" and the mix subtexture (i'm almost certain of it, at least visually)...
@Bobsobol: Mmm.. if its subtle it would be great :).. But.. i was thinking.. The mixing subtexture is like a self ilumination tex somehow (the mixing maps are rudimentary ilumination subtextures), if the mixing motion could be stopped, the maps matched and the opacity set to fade in and out, it would be much like a 'selective aging glow'.. Even though this may sound farfetched (and it really is), maybe "the secret of light maps" on priston resides on the mixing effect XD..
@Vormav: Smashing =D:thumbup1:
-
Re: MAXimum customizations [WIP]
Isn't mix just overlay wave of colour onto existing texture? I could do that easier programmatically than with a texture file, so I doubt there is a "texture" for mixes.
Actually performing an "overlay" is not hard, and clearly PT does modify textures for certain models (mixed or aged versions of their original) before rendering to the scene... so you could have an "additive" overlay.
I still suspect that unless it's done as a "late" render, it will look like it's a permanent part of the flat diffuse map. ie. it won't look any different in game than if you had drawn it on the texture in Photoshop before you started playing.
This is where "shader model" comes into play. I think emissive maps are SM1.0 though, where normal maps are definitely an SM2.0 thing. (I think we could use Height maps before that, which aren't so effective, and I don't know that even they where available in SM1.0)
I'm pretty sure people where doing Specular maps before shader model standardisation. So I don't know if that's a DirectX specific thing or what.
-
Re: MAXimum customizations [WIP]
You do not know how to get the parts of the armor ...
More started here for the minutes it took to help and to get just 3 '-'
Are in 3DS, MAX + texture
Highlander, Frenzy, Wyvern =)
-
Re: MAXimum customizations [WIP]
@bocadecao
stop using google translator all the time... its really hard to read/understand your messages...
Read it: http://forum.ragezone.com/f286/ragez...ortant-755935/
-
Re: MAXimum customizations [WIP]
I guess he translated posts in this thread and misunderstand what I'm doing.
google translator is bad, use this improved translator:
Bad Translator
example:
Original text:
"You do not know how to get the parts of the armor ... More started here for the minutes it took to help and to get just 3 '-' Are in 3DS, MAX + texture Highlander, Frenzy, Wyvern =)"
...10 translations later Google gives us:
"You do not know how to get a piece of the tank. Here in March, just three minutes it takes to start '- '3 DS Max + + Web entrepreneurs mountain crazy =)."
and my favorite 56 translations:
Original text:
"You do not know how to get the parts of the armor ... More started here for the minutes it took to help and to get just 3 '-' Are in 3DS, MAX + texture Highlander, Frenzy, Wyvern =)"
...56 translations later Google gives us:
"I do not know the military. - Silver and DS - 3, with natural light = 3)"
And now I get it. Plz use badtranslator in the future with option Number of translations: (Max) 56
PS. I just need to do mage and we are ready to go (prs was a nightmare) :)
-
Re: MAXimum customizations [WIP]
I have never laughed so hard in my entire life until now LMFAO
@edit
I translated 56 times the word HELLO and the final result was: THIS
LOOOOOOOOOOOOOOOOOOOL
-
Re: MAXimum customizations [WIP]
Hardest part is done :)
http://oi55.tinypic.com/152mgr8.jpg
Morions:
☆ Mage ☆ Priestess ☆ Atalanta ☆ Knight ☆
Priston Tale - CMOD ☆ Mage ☆ Priestess ☆ Atalanta ☆ Knight ☆ - YouTube
Now only some code and textures fixes left.
When I started this project I never expected it would be so hard work but now its down the hill. Patience and you will see update as big as morion update ;)
-
Re: MAXimum customizations [WIP]
wow, no words Vormav
very good =)
if you want help in texture corrections just call me =) thanks
-
Re: MAXimum customizations [WIP]
http://oi53.tinypic.com/2a5jk14.jpg
What are those armors? Official sites provide me with 0 informations.
Items table tells me that those are normal (da126) armors (look like da125 but have gray texture). So are they in cash shop? Monster drop? Something else?
-
Re: MAXimum customizations [WIP]
armor 103 wins in the quest
-
Re: MAXimum customizations [WIP]
@bocadecao
Any more details? Will it disappear/does it have timer? Can you age/mix it?
What was quest to get it? Can you have more than one? Can you trade/sell it?
-
Re: MAXimum customizations [WIP]
Nova Quest do Nível 103!
is the ultimate armor to see the quest go to the link
@ @ try for a translator ... :s
-
Re: MAXimum customizations [WIP]
They look a bit like the "Undead" players armour to me. XD
-
Re: MAXimum customizations [WIP]
They are reward for completing 103 quest.
- Same/similar stats as 105 armours/robes.
- Same model as 105 armours/robes except diff colour.
- Can be both aged and mixed.
- No timer, they are permanent.
- They cant be traded, but you can bug drop trade them.
- You can only have one, the quest is non-repeatable.
I can't find the details for the quest atm, but you gotta hunt new boss monsters, get some crystals from them, then swap the crystals for stones, and plant the stones in required maps, not 100% sure not 103 yet :(
Edit: quest information is here: http://pt1.subagames.com/guide_sidequests.aspx
Browse down to "Specimen of Evil Quest"
-
Re: MAXimum customizations [WIP]
-
Re: MAXimum customizations [WIP]
-
Re: MAXimum customizations [WIP]
Thanks, official sites sucks when comes to informations like that.
Those fancy armors are going to to exceptions because those will not work with rest of parts. Only cash shop armlets and boots are going into collection. I assume that those don't have lvl?
__EDIT__
One more question:
Any info on "Mokova Boots" DB130? This item exist? (official server)
-
Re: MAXimum customizations [WIP]
mokova boots is not the official ...
-
Re: MAXimum customizations [WIP]
-
Re: MAXimum customizations [WIP]
-
Re: MAXimum customizations [WIP]
OK I hope that I'm not missing anything.
boots:
db131
db132
armlets:
OA231
OA232
armors:
da131 - da165
robes:
da231 - da265
I still wonder about:
db130 Mokova Boots, those exist in official kPT items table but there is no info about them. And I am interested if its cash shop item or normal drop (can you drop, mix, age, trade etc.)?
-
Re: MAXimum customizations [WIP]
Quote:
Originally Posted by
Vormav
I still wonder about:
db130 Mokova Boots, those exist in official kPT items table but there is no info about them. And I am interested if its cash shop item or normal drop (can you drop, mix, age, trade etc.)?
Do you mean the "Speed Boots"?
https://payment.ndolfin.com/images/p...em66_7over.gif Price: 3,000 cash (1off)
Speed Boots (7 days) 1 off
Speed, defence, absorption is not limited ability high requirement.
Level: 10
Defence: 115
Absorption: 7.5
Speed: 12
That (and it's 30 day equivalent) are the only ones I can find in the ndolphin Item Shop. :/:
--- EDIT ---
Slightly off-topic, but I notice that both jPT and kPT are now supporting the alternate faces as Big Head potions. :)
http://pristontale.arario.jp/img/shop/item/BI109.gif http://pristontale.arario.jp/img/shop/item/itbi195.gif http://pristontale.arario.jp/img/shop/item/itbi196.gif http://pristontale.arario.jp/img/shop/item/itbi197.gif http://pristontale.arario.jp/img/shop/item/itbi198.gif
-
Re: MAXimum customizations [WIP]
No not speed boots, speed boots are db131 (7 days) and db132 (30 days).
Mokova Boots = drop from Mokova? I guess.
JPT items are interesting....
You magnificent bastard XD I see what you did there!
Ball head is on the first page of JPT! (Samba Carnival event?! WTH!)
I think I need to DL JPT client again and take a look inside :)
Maybe it works better than kPT... ePT and bPT are sooooooo sloooooow on win7.
-
Re: MAXimum customizations [WIP]