Weddings/Divorce Fixer

Hi, I think it will be hard to believe. So I will try to explain what I made to fix those.
I realize that trying to hazardly edit weddings tasks male & female was a lost cause, how weddings and divorce work ?
It's simple, something server-sided send changes to gamedbd. But something goes wrong because weddings are not saved (ok, stop joking everyone knows that).

I came with a new Idea, why don't try to catch changes and try to make it right ?
So I developp a light server-sided service to analyze the weddings/divorce command and fix saves to gamedbd.

Stop talking, let's start with some screenshots.

1.jpg
On the up right corner, the putty window shows my sever-sided service and the server is running on the bottom left corner.

2.jpg
When weddings tasks are done, we can see the "err : PutSpouse, rid1=38 rid2=600578" on the server console. The command sent by the server is catched by my program and force the weddings to be saved.

3.jpg
I just disconnect to prove that it's working :)

4.jpg
After reconnecting, the server send "last memory (before disconnect)" RoleBase data to gamedbd. So I needed to catch those too, and retrieve the weddings data to write the right GRoleBase.
We can see the charid 600578 is still married with 38. Wedding fixed !

The divorce works on the same method.


If you need some other infos, feal free to add me on msn : tekkeitsertok@hotmail.com

Tekk.