Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[GUIDE]Why doesn't my client connect to my server? - Part 2: Configuration

Status
Not open for further replies.
Custom Title Activated
Loyal Member
Joined
May 26, 2007
Messages
5,545
Reaction score
1,315
the endless tower server based on the 2 part server files found in most posts
I've never seen Endless Tower as a 2 part in *any* post... and how did you "set it up".
I also tried editing the hotuk, the idata.bmp (which the new ept client does not use)
ZPT is QF1873, which also doesn't use idata.bmp... though it will use hotuk.ini.
I know my client is probably too new
Nope. QF1873, and therefore ZPT are designed for ET2 servers.
but shouldn't I at least get to wrong version instead of can't connect?
Yes... provided your server is set up correctly for the local configuration you have told the client to use.
 
Newbie Spellweaver
Joined
May 20, 2011
Messages
12
Reaction score
0
Taking a look now that I am back home. I am using FusionPTRepack. It came as 2 .rar files; that's what I was trying to reference in my first post.

So I have SQL Server set up. Also note from the screen shot that I tried to manually make an account for test purposes.

Server's hotuk.ini:
//Server IP and Name
*GAMSERVER ServerName 127.0.0.1 127.0.0.1 127.0.0.1
//*GAME_GUARD
*MODE SERVER
*SERVER_CODE 0
*SERVER_NAME FusionPT
*VERSION 1870
*SERVER_AUTOPLAY
//*NOTICE_URL
*GAME_SERVER FusionPT 127.0.0.1 127.0.0.1 127.0.0.1
//*AREA_SERVER 127.0.0.1 127.0.0.1 127.0.0.1
*LOGIN_SERVER_IP 127.0.0.1
*SYSTEM_IP 127.0.0.1
//*ENABLE_CLAN 72.36.198.250 80 72.36.198.250 80 72.36.198.250 80
//*CLAN_SERVER 72.36.198.250 80 72.36.198.250 80 72.36.198.250 80
*TT_DATA_SERVER
*SERVER_LINK_IP

//Server Settings

*MAX_USERS 200
//*CRAZY_PACKET
*ENABLE_PARTYITEM
//*PERMIT_MONEY 80
//*PERMIT_EXP 60
//*ENABLE_SERVER_EXP 1
//*REC_ADMIN_CMD
//*DISABLE_THROWITEM
//*START_FIELD
//*DISABLE_QUEST
//*DISABLE_DEC_SKILLPOINT
*SERVER_RECORD_MEM
//*CLIENT_CHECK_FUNC 1
//*BLOCK_LEVEL 1
//*DISCONNECT_ITEM_ERROR 1
*CHECK_POTION_COUNT 10000
*CLIENT_CHECK_PROCESS_TIME 30
*CLIENT_PROCESS_TIME_OUT
*ENABLE_CLAN

//Event's

//*EVENT_EXPUP 5000
//*EVENT_POTION 30
//*EVENT_BITMASK
//*EVENT_BLESSCASTLE
//*EVENT_SUMMER_CHICKEN
//*EVENT_SANTAGOBLIN
//*EVENT_GHOST
//*EVENT_MOLLYWOLF
//*EVENT_MORIFSHELTOM
//*EVENT_WHITEDAY
//*EVENT_VALENTINEDAY
//*EVENT_NINEFOX
//*EVENT_BABELHORN
//*EVENT_PUZZLE
//*EVENT_BIRTHDAY
//*EVENT_STARPOINT
//*EVENT_CRISTAL
//*EVENT_CHILD
//*EVENT_DAMAGEOFF
//*EVENT_HARDCORE
//*EVENT_MANDOO
//*ENABLE_PK 1
//*PK_FIELD 6

//Server Protection

//*CONNECT_CLIENT_CODE 1065117298
//*DISCONNECT_CLIENT_BADCODE
*CLSAFE_CODE 100
//*DISCONNECT_CLSAFE_CODE

//Database Backup DIR

*BACKUP_FOLDER_NAME "c:\databasebackup"
*BACKUP_PATH "c:\databasebackup"

// [ Admin Stuff ]

*REC_ADMIN_CMD

//*DEBUG_ID USERID
//*DEBUG_ID USERID
//*DEBUG_ID USERID
//*DEBUG_ID USERID
//*DEBUG_ID USERID
//*DEBUG_ID USERID
//*DEBUG_ID Ryder (u can leave mine in here if u want LOL)
//*DEBUG_ID USERID
//*DEBUG_ID USERID
//*DEBUG_ID USERID
//*DEBUG_ID USERID

//*ADMIN_IP 72.36.198.250
//*ADMINISTRATOR_IP 72.36.198.250
//*ADMIN_LOGIN "FusionDev"
//*ADMIN_NAME "FusionDev"
//*ADMIN_COMMAND "sex1"
//*ADMIN_COMMAND "sex2"
//*ADMIN_COMMAND "sex3"

Got OBDC set up (see screen shot).

Then run -KPT-Endless-Tower-Update-V2.2 (posting one last screen to verify this is right)

Ok now onto the client:

Copied ZPT.exe and Client.cfg into
D:\Program Files\Subagames\Pristontale

Client.cfg:

# Client configuration file.
# Hash "#" beginning a line indecates the line is a comment.

(ELEMENTGUIDE) PACKAGING_ORDER /0

*VID_BPP 32
*VID_RES 1024 768
*VID_MODE MODE
SCREEN

# Enables first person, no clip travel.
#*OBSERVERMODE

# These settings should allow redirecting communication to a different server.
*CHRSVRPORT 10007
*CHRSCRADDRESS 127.0.0.1
*DATSVRPORT 10007
*DATSCRADDRESS 127.0.0.1
*SERVERPORT 10007
*SERVERADDRESS 127.0.0.1

# Please only use one of these
*GFXQUALITY HIGH
#*GFXQUALITY MEDIUM
#*GFXQUALITY LOW
#*GFXQUALITY LOWEST

*BACK_VIS
#*BACK_BRIGHT
#*BACK_SCREEN

#*TERRAIN_CHILD
#*TERRAIN_OBJS
#*TERRAIN_MODEL

#*LIGHTANGLE
#*MONSTER
#*BASTERD
#*PLAYERSKIN
#*MENU

Also hotuk.ini:

*Network 1
*ColorBPP 32
*MotionBlur false
*CameraSight OFF
*ScreenSize 0
*MicOption OFF
*Sound On
*CameraInvert false
*Server1 127.0.0.1
*Server2 127.0.0.1
*Server3 127.0.0.1
*ServerName ServerName
*Version 3096
*TestVersion 0

Run ZPT.exe and after a brief wait from clicking Login, I get "Unable to connect!".
 

Attachments

You must be registered for see attachments list
Custom Title Activated
Loyal Member
Joined
May 26, 2007
Messages
5,545
Reaction score
1,315
Comment out "*VERSION 1870" in server hotuk, for sure. Also "*Version 3096" & "*TestVersion 0" in client, except that ZPT.cfg is the name of hotuk.ini for the ZPT client... the settings have all been translated. ;)
 
Newbie Spellweaver
Joined
May 20, 2011
Messages
12
Reaction score
0
One thing I forgot to mention, not sure if it matters. ZPT wouldn't execute without HanDes.dll so I copied it over from the FusionPT server files. Not sure if that's ok.

Also, I had changes in the registry but I took them back out (shouldn't need them since I'm using hotuk.ini, right?).

Updated server hotuk.ini:

//Server IP and Name
*GAMSERVER ServerName 127.0.0.1 127.0.0.1 127.0.0.1
//*GAME_GUARD
*MODE SERVER
*SERVER_CODE 0
*SERVER_NAME FusionPT
//*VERSION 1870
*SERVER_AUTOPLAY
//*NOTICE_URL
*GAME_SERVER FusionPT 127.0.0.1 127.0.0.1 127.0.0.1
//*AREA_SERVER 127.0.0.1 127.0.0.1 127.0.0.1
*LOGIN_SERVER_IP 127.0.0.1
*SYSTEM_IP 127.0.0.1
//*ENABLE_CLAN 72.36.198.250 80 72.36.198.250 80 72.36.198.250 80
//*CLAN_SERVER 72.36.198.250 80 72.36.198.250 80 72.36.198.250 80
*TT_DATA_SERVER
*SERVER_LINK_IP

//Server Settings

*MAX_USERS 200
//*CRAZY_PACKET
*ENABLE_PARTYITEM
//*PERMIT_MONEY 80
//*PERMIT_EXP 60
//*ENABLE_SERVER_EXP 1
//*REC_ADMIN_CMD
//*DISABLE_THROWITEM
//*START_FIELD
//*DISABLE_QUEST
//*DISABLE_DEC_SKILLPOINT
*SERVER_RECORD_MEM
//*CLIENT_CHECK_FUNC 1
//*BLOCK_LEVEL 1
//*DISCONNECT_ITEM_ERROR 1
*CHECK_POTION_COUNT 10000
*CLIENT_CHECK_PROCESS_TIME 30
*CLIENT_PROCESS_TIME_OUT
*ENABLE_CLAN

//Event's

//*EVENT_EXPUP 5000
//*EVENT_POTION 30
//*EVENT_BITMASK
//*EVENT_BLESSCASTLE
//*EVENT_SUMMER_CHICKEN
//*EVENT_SANTAGOBLIN
//*EVENT_GHOST
//*EVENT_MOLLYWOLF
//*EVENT_MORIFSHELTOM
//*EVENT_WHITEDAY
//*EVENT_VALENTINEDAY
//*EVENT_NINEFOX
//*EVENT_BABELHORN
//*EVENT_PUZZLE
//*EVENT_BIRTHDAY
//*EVENT_STARPOINT
//*EVENT_CRISTAL
//*EVENT_CHILD
//*EVENT_DAMAGEOFF
//*EVENT_HARDCORE
//*EVENT_MANDOO
//*ENABLE_PK 1
//*PK_FIELD 6

//Server Protection

//*CONNECT_CLIENT_CODE 1065117298
//*DISCONNECT_CLIENT_BADCODE
*CLSAFE_CODE 100
//*DISCONNECT_CLSAFE_CODE

//Database Backup DIR

*BACKUP_FOLDER_NAME "c:\databasebackup"
*BACKUP_PATH "c:\databasebackup"

// [ Admin Stuff ]

*REC_ADMIN_CMD

//*DEBUG_ID USERID
//*DEBUG_ID USERID
//*DEBUG_ID USERID
//*DEBUG_ID USERID
//*DEBUG_ID USERID
//*DEBUG_ID USERID
//*DEBUG_ID Ryder (u can leave mine in here if u want LOL)
//*DEBUG_ID USERID
//*DEBUG_ID USERID
//*DEBUG_ID USERID
//*DEBUG_ID USERID

//*ADMIN_IP 72.36.198.250
//*ADMINISTRATOR_IP 72.36.198.250
//*ADMIN_LOGIN "FusionDev"
//*ADMIN_NAME "FusionDev"
//*ADMIN_COMMAND "sex1"
//*ADMIN_COMMAND "sex2"
//*ADMIN_COMMAND "sex3"

Updated client ZPT.cfg:

*Network 1
*ColorBPP 32
*MotionBlur false
*CameraSight OFF
*ScreenSize 0
*MicOption OFF
*Sound On
*CameraInvert false
*Server1 127.0.0.1
*Server2 127.0.0.1
*Server3 127.0.0.1
*ServerName ServerName
//*Version 3096
//*TestVersion 0

Also tried alternating between ZPT.cfg and Client.cfg. Something's still not working though. Can not connect.
 
Last edited:
Custom Title Activated
Loyal Member
Joined
May 26, 2007
Messages
5,545
Reaction score
1,315
I assume "*CLSAFE_CODE 100" is deliberately obfuscated... because ZPTs safe code is definitely not 100. XD

The registry will still be read, but the Server1 entry is overridden by the exe IP.

Pt.1 will tell you if the server recieves contact on it's listning port (of course) and that should have been done before we started this thread.

As for HanDes.dll, it comes with every client install. The server one *may* be different.
 
Newbie Spellweaver
Joined
May 20, 2011
Messages
12
Reaction score
0
"*CLSAFE_CODE 100" is what was in the file by default. I haven't touched it as I don't know what it is.

Still trying to obtain the IP the client is using. Feeling kinda stupid since PT won't let me see the TCP program while I'm trying to log in... :(:

Searched the entire client install for HanDes.dll and it was not there. Had to copy it over from the server files.

EDIT:

Finally got the little jerk. TCP screen shot below:
 
Last edited:
Newbie Spellweaver
Joined
May 20, 2011
Messages
12
Reaction score
0
TCP screen shot
 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
May 20, 2011
Messages
12
Reaction score
0
Fixed it, kind of. For some reason it was trying to connect to the wrong local IP. Couldn't make it stop, so I changed the server's local IP lol. Now it gives me a bad password error. So close yet so far.
 
Custom Title Activated
Loyal Member
Joined
May 26, 2007
Messages
5,545
Reaction score
1,315
That isn't uncommon when you "manually" create an account in the database.

The method listed works if you don't have SQL.dll and Clan.dll in your server files, but they need more data filled in in the account for successful login. (it's still mostly blank... but they are more fussy about whether blank is "0", "", "NULL" etc)
 
Newbie Spellweaver
Joined
May 20, 2011
Messages
12
Reaction score
0
Installed the webserver and asp registraion scripts. Account login worked fine after that. I think I have figured out the problem; that is, whatever version of ZPT.exe I downloaded has 192.168.1.4:10009 hardcoded into it and it is not allowing config files to change the IP as the Client.cfg suggests. I guess I will try either finding a new exe or trying to edit it.

The line I was referring to in Client.cfg:
# These settings should allow redirecting communication to a different server.
#*CHRSVRPORT
#*CHRSCRADDRESS
#*DATSVRPORT
#*DATSCRADDRESS
#*SERVERPORT
#*SERVERADDRESS
 
Custom Title Activated
Loyal Member
Joined
May 26, 2007
Messages
5,545
Reaction score
1,315
Yea, I translated the Korean text in all the configurations that the program looks for, and told it to read them all from the same file "ZPT.cfg". I didn't check that they where actually still functional.

I doubt it's something QF would have disabled, but there are a lot of features in PT that Yedang disable without completely commenting out of the source files.

Like the fact that it can read and write Zip files, and decompress Zip (deflate) compressed data in memory blocks... but it never does.

Many possible configurations (like the exact resolution in Width, Height and Bits/Pixel or "Observer Mode") are overwritten with defaults if you don't provide the GM/"Debug user" authentication line.

But the point of QFs released clients was to make it easier for people to see how the PT executable could be adapted to suite your needs. My development in ZPT was my earliest experimentation with doing this, and your attempts to use ZPT have taught you something about how they work too. ^_^

Most people never even consider trying to set those options in QFs releases, because it isn't obvious (unless you read Korean natively) what they could do for you.
 
Last edited:
Newbie Spellweaver
Joined
May 20, 2011
Messages
12
Reaction score
0
So if ZPT.exe has the IP hardcoded into it, can't I just use Olly to change it to my IP? I tried looking in it but it's a big confusing mess so far. Maybe you can point me in the right direction. ;) I also added the Korean script you provided to give myself admin. Well, it gave me admin level 1, but I couldn't set it past that. It also took all monsters and NPCs out of the game and gave constant system error messages.
 
Custom Title Activated
Loyal Member
Joined
May 26, 2007
Messages
5,545
Reaction score
1,315
I have many versions of ZPT on my system, at various stages of editing. The one I posted was not the most advanced, but probably one of the most stable. Later edits pointed out to me how much you need to not keep editing, saving, then making more edits and saving again. Gradually the PE becomes a mess, and corrupts, which is why I have tried to do as much as I can without altering the PE structure, and using DLLs instead of "adding sections" ever since that.

I'm afraid it's been too long (over 2 years) since I really used it to remember much about how it was internally set up.

I remember successes, attempts, and complete failures. But not much of the specifics.
 
Newbie Spellweaver
Joined
May 20, 2011
Messages
12
Reaction score
0
Maybe someone can suggest an exe that will read the ip from hotuk. I have tried 5 different exes now. 3 seem to be hard coded and 2 crash before ever starting.
 
Custom Title Activated
Loyal Member
Joined
May 26, 2007
Messages
5,545
Reaction score
1,315
Remember the priority, and if you don't like it, it's time to get Ollying. :D:

If you have registry set, that will write back to PTReg.rgx, if it's empty then PT clients (unaltered) fall back to PTReg.rgx, or the old ones from idata.bmp... the really old ones (pre-AOR) usually only read registry and hotuk.ini.
 
Initiate Mage
Joined
May 9, 2016
Messages
3
Reaction score
0
Hi bobsobol,

I want to connect to my private server by Chinese official client. The version of server is 1850. The version of client is 1035. I try many methods by your guide. But I still can't connect to server. Can you give me additional guide? Thank you.
 
Status
Not open for further replies.
Back
Top