Newbie Spellweaver
- Joined
- Feb 10, 2012
- Messages
- 84
- Reaction score
- 10
It is most likely older engine.exe, older XTrap folder. That DLL works only with older version. Useless, since whole point of emulator is to keep compatibility with latest engine.exe.
Just to make sure I'm not messing something up. Can you upload your client?it works for me on 7/7/2017 engine and it will work with newer versions just if you update the addresses xtrap can be removed if we invest some time into
Edit: Tried it today after work and it's still not working 100%, basically it lets me start the game but once I get into the login screen and try to login it just doesn't do much more after that.
That did it!Did you pull latest emu commits? Packet ids have changed in 7 7 17 engine
This has nothing to do with the actual emulator, I would say google will have your answerhey why when i install system got this error ?
So I added so you can kill mobs, however I don't have the packets for behead anim etc. So I won't commit it, lol.
Also, the tick with the mobs is quite slow. So sometimes the mobs can just stand there for a long time and not react to you.
Alright I'll revert my changes thenYes, there are different AI types for certain mobs. The one I implemented is so called by players "old AI", it looks for target each 20s. I'm currently working on damage/die exact way inix does it so you could wait with your changes.
I currently see a lot of switch-case statements which might be better implemented using a command pattern.
case C2S_MOVE_ON:
case C2S_MOVE_END:
{
char byX=0;
char byY=0;
char byZ=0;
CSocket::ReadPacket(packet.data, "bbb", &byX, &byY, &byZ);
Lock();
if (CanMove())
OnMove(byX, byY, byZ, packet.byType == C2S_MOVE_ON ? 0 : 1);
Unlock();
break;
}
It definitely looks like you just opened Nano and not a specific file with nano. Nano is just a editor, like notepad. You need to specify what file you want it to open.
BTW: @lafreak you should make a list of things you would like added, but aren't working on yourself.
The reason is because I do have an hour here and there after work and on weekends and wouldn't mind contributingbut it seems foolish if we were to work on the same things .
Oh and also, there's a segfault in the CPlayer:amage function, I solved it by doing this simply:
if (pAttacker->GetKind() == CK_MONSTER) { CMonster* pAttack = (CMonster*)pAttacker; if(pAttack) pAttack->SetTarget(NULL); }
I actually did a clean pull this morning and it still segfaults on that lineAlways pull latest changes, it was fixed few commits (days) before.
You must be registered to see links
I'll try to make a list, by now you could try adding small commits. I was scared of your "Player attack and behead" feature, which obviously would not be a small commit. xD
You most likely opened DBConfig.xml in wrong directory, that's why it's empty. Nano creates file if it doesn't exist.
I actually did a clean pull this morning and it still segfaults on that line, at least it does for me! Try summoning mob id 250 and dying, that crashes it for me at least. With my fix it doesn't crash anymore.
Haha yeah I figured as much, looking over your code it's pretty similar to mine. I'm currently looking at dropping/picking up items, but if you make a list of small things you'd like added instead let me know. Also do you sniff the latest int client for packets?
Item drop is not something easy aswell, it's like player/monster/npc you need to generate appear packets, disapear packets etc. It should inherit from CCharacter and override GenerateCreatePacket I think.
No, I do not sniff client, you've got engine source from 2009 with all info about old packets and I also disassembled latest engine to look for new packets.
Makes sense, I've just been sniffing instead but I guess that's not as efficient.
I'll await your list then.