[Release]Dynamic IP variant for hosting shaiya server ep4.5

10/22/2014 07:11 ilie321#1
Hello to all first :)
Now lets try to solve the dynamic IP problem with game.exe
Shaiya game.exe use socket connection which can be made only by IP not by host name.
To solve this thing i made an executable in C# invisible for end user. This is working in this manner:
My executable has the name game.exe and need to be in the same folder with original exe which will be renamed to gameIP.exe . You need to create a txt file named host.txt near game.exe. Edit this file and insert your host name(myhostname.com for example). From now you can use updater or a shortcut to my game.exe to start shaiya. User will not see anything except a small delay at starting game maximum 1sec.
The idea is the following : the new game exe connects to internet and obtain the IP of your host name. After that it injects in gameIP.exe this IP and start it.
To get a host name for your server use no-ip.com or other dynamic dns hosting site if you dont have one yet.
Problem: It may be seen as virus since it inject code in an executable.

I will post also the source project (C#) soon so anyone can change it for other versions of shaiya.


PS: dont forget to put in ps_game.ini same as in host.txt

Edit: added source of the project as i promised
10/24/2014 13:57 TheWolf0508#2
Hi !

thank you greatly for this awsome release !!!

But it works only a bit for me ....

- added my DynDNS in host.txt
- added same in ps_game.ini

Now I can finaly launch my game ... I can provide account credentials ... but when I select my server in servers list, and check "OK" button, it waits, waits, and then gives me the error "Time over, failed to connect to game server"

I guess I'm blocked because of the Game Public IP ...
in PS_Game.ini :
GamePublicIP=mydyndns.ddns.net

Is that good ?
Have you got an idea of what is going wrong with my pserver now that I have a Dyn IP ?
(I had NO problems with my pserver when my IP was a static one)
10/25/2014 11:06 ilie321#3
Are you using a router. If yes did you configure it for shaiya. Noip fails alot for me so i changed with another free dns host. Is ok what you did. Is ep4.5 game exe. Check with hex editor that ip is injrcted in exe corectly if not you need to put new hex adres in project and recompile. Don't write http in front of your address. Is working great for me.
10/25/2014 11:35 TheWolf0508#4
My router natively supports No-Ip, DynDns and DtDns services ...
For some other programs (like my web server) it worked great ...

I checked IP in exe, it was ok, the good actual one was injected (if not the game wouldn't even start)... and I only wrote pure domain name (w/o http)...

I didn't find what was going wrong with your great release (coz it would serv loads of ppl here), so I simply ordered a static IP to my ISP ... 3 hours later I got it ...

Now I'm facing another weird problem (probably NAT / Firewall issues) ... God, why did I move ??? Everything was working well before I changed home/isp ... lol

So now I've got no more questions about your release as I don't need it anymore ... Thanks again anyway for creating and sharing this !
11/06/2016 07:46 balongskie123#5
What should i do with the console application? sorry for being noob. Will I just need to copy it into the client folder?