Sorry for the double post, i can't find the edit button.
I solved my first issue. I had just forgotten to re-compile it. *facepalm*
however a new issue surfaced. the program detects my client, and when i go to change ip, it tells me i successfully changed the ip. however, when i go to log in in the client, it still connects to the real Tibia server.