Setup Guide for Clean Files

This guide by Talos is made for these files, But will work for most sets released on VS2022:
Installing on Windows 11 (will also work on server 2016 - 2025 & windows 10)

Images of setup can be found here to help you along the way.

Guide:

1. Install Visual Studio 2022 Community
Downloads:
-> Visual Studio 2022 Community
-> DirectX 9

1.1 Download the VS2022 Community and DirectX 9 files

1.2 Install DirectX 9
1.2.1 Right click the "dxwebsetup.exe" file and "Run as administrator"
1.2.2 Click "I accept the agreement" and click "Next"
1.2.3 Uncheck "Install the Bing bar" and click "Next"
1.2.4 Click "Next"
1.2.5 Wait untill download & install is finished
1.2.6 click "Finish"

1.3 Install Visual Studio 2022 Community
1.3.1 Right click the "vs_community_*.exe" file and "Run as administrator"
1.3.2 Click "Continue"
1.3.3 Wait untill download & install is finished
1.3.4 Select ".NET desktop development" & "Desktop development with C++" and
CHECK "C++ MFC for latest v142 build tools (x86 & x64)"
UNCHECK "Test Adapter for Boost.Text", "Test Adapter for Google Test", "Live Share"
Check the image below to check if you selected everything!!!
Click "Install"
1.3.5 Uncheck "Start after installation" and wait untill download & install is finished
1.3.6 When you see the "Installation succeeded!" window, you can close it (Don't start Visual Studio!)

1.4 ONLY FOR: Windows 10 + 11 users
1.4.1 Open your start menu.
1.4.2 Search for "Turn Windows features on or off".
1.4.3 Turn on ".NET Framework 3.5 (includes .NET 2.0 and 3.0)"

2. Install/Configure SQL Server 2019 & Management
2.1 Download the Server 2019 Express, Management Studio & Native Client 11 files
2.1.1 Select the "ENU\x64\msodbcsql.msi" file (Native Client 11)

2.2 Install SQL Native Client 11
2.2.1 Right click the "msodbcsql.msi" file and "Install"
2.2.2 Click "Next"
2.2.3 Click "I accept the terms in the license agreement" and click "Next"
2.2.4 At "ODBC Driver for SQL Server SDK" click the dropdown icon and select "Will be installed on local hard drive" and click "Next"
2.2.5 Click "Install"
2.2.6 Click "Finish"
2.2.7 Restart your computer

2.3 Install Server 2019 Express
2.3.1 Right click the "SQL2019-SSEI-Expr.exe" file and "Run as administrator"
2.3.2 Select the "Custom" installation
2.3.3 Click "Install"
2.3.4 Wait untill download & install is finished
2.3.5 Click "New SQL Server stand-alone installation or add features to an existing installation"
2.3.6 Check "I accept the license terms and Privacy Statement" and click "Next"
2.3.7 Click "Next"
2.3.8 Wait untill all tasks are completed
2.3.9 Ignore the "Windows Firewall" warning for now and click "Next" (disabling your Firewall is NOT RECOMMENDED!)
2.3.10 Leave the default "Instance Features" and click "Next"
2.3.11 Leave the default "Named instance" as "SQLExpress" and click "Next"
2.3.12 Click "Next"
2.3.13 Click "Next"
2.3.14 Select "Mixed Mode" and type a secure password (write this password down) + confirm and click "Next" (don't delete the "Specify SQL Server Administrators", I have mine removed from the screenshot only!)
2.3.15 Click "Accept" and click "Next"
2.3.16 Click "Accept" and click "Next"
2.3.17 Wait until the installation is finished
2.3.18 Click "Close" after checking every status is "Succeeded" (details showing: Install successful)

2.4 Install Server Management Studio
2.4.1 Right click the "SSMS-Setup-ENU.exe" file and "Run as administrator"
2.4.2 Click "Install"
2.4.3 Wait untill download & install is finished
2.4.4 When finished, click "Close"

2.5 Configure SQL server
2.5.1 Open "Microsoft SQL Server Management Studio 18"
2.5.2 Select Authentication: "SQL Server Authentication", Login: "sa", Password: "The secure password you wrote down", check "Remember password" and click "Connect"

2.5.7 Top left, click "File", click "Open", click "File.." (CTRL+O)
2.5.8 Go to the Ketchup database folder and select "1. Database.sql" click "Open"
2.5.9 Click "Execute"

2.5.13 Top left, click "File", click "Open", click "File.." (CTRL+O)
2.5.14 Go to the Ketchup database folder and select "2. Account (Optional).sql", click "Open"
2.5.15 Click "Execute"

2.5.19 Close "Microsoft SQL Server Management Studio 18" (Click NO, for not saving the .sql files)

2.5.20 Open "ODBC Data Sources (32-bit)" as Administrator

2.5.21 Click "Add"
2.5.22 Scroll all the way down, select "SQL Server Native Client 11.0" and click "Finish"
2.5.23 Name: character01 / Server: YOURCOMPUTERNAME\SQLEXPRESS click "Next"
2.5.24 Select "With Integrated Windows authentication" and click "Next"
2.5.25 Check "Change the default database to:" select "CHARACTER_01_DBF" and click "Next"
2.5.26 Click "Finish"
2.5.27 Click "Test Data Source"
2.5.28 It has to say "TESTS COMPLETED SUCCESSFULLY!" and click "OK"
2.5.29 Click "OK"

2.5.30 Click "Add"
2.5.31 Scroll all the way down, select "SQL Server Native Client 11.0" and click "Finish"
2.5.32 Name: log01 / Server: YOURCOMPUTERNAME\SQLEXPRESS click "Next"
2.5.33 Select "With Integrated Windows authentication" and click "Next"
2.5.34 Check "Change the default database to:" select "LOGGING_01_DBF" and click "Next"
2.5.35 Click "Finish"
2.5.36 Click "Test Data Source"
2.5.37 It has to say "TESTS COMPLETED SUCCESSFULLY!" and click "OK"
2.5.38 Click "OK"

2.5.39 Click "Add"
2.5.40 Scroll all the way down, select "SQL Server Native Client 11.0" and click "Finish"
2.5.41 Name: login / Server: YOURCOMPUTERNAME\SQLEXPRESS click "Next"
2.5.42 Select "With Integrated Windows authentication" and click "Next"
2.5.43 Check "Change the default database to:" select "ACCOUNT_DBF" and click "Next"
2.5.44 Click "Finish"
2.5.45 Click "Test Data Source"
2.5.46 It has to say "TESTS COMPLETED SUCCESSFULLY!" and click "OK"
2.5.47 Click "OK"

2.5.57 Close the ODBC window (click "OK")

3. How to open source files
3.1 Opening .sln file for the first time

3.1.1 Go to the Ketchup Source "All" folder (Source\Source\All) and open "all.sln"
3.1.2 In the "How do you want to open this file?" select "Visual Studio 2022", check "Always use this app to open .sln files" and click "OK"
3.1.3 Make sure to Create an Account and sign in to Visual Studio
3.1.4 Select your "color theme" (I always set it to "Dark" mode) and click "Start Visual Studio"
3.1.5 Wait until Visual Studio is done preparing for first use
3.1.6 When Visual Studio is done preparing it should open the source (check right side, AccountServer, CacheServer, etc)

4. How to compile source
4.1 Compile source all at once
4.1.1 Follow the 3.1 steps and open your source in Visual Studio
4.1.2 Right click "Solution 'all' (8 of 8 projects)" and select "Batch Build.."
4.1.3 Click "Rebuild" and wait until the build is done
4.1.4 Check if "Rebuild All: 8 succeeded" (NOTE: The clean source will always compile "8 succeeded")
4.1.5 Don't forget to run the "-Move Compiles.bat" file (in the root folder)

4.2 Compile source separate
4.2.1 Follow the 3.1 steps and open your source in Visual Studio
4.2.2 Right click a specific server (or Neuz) and click "Rebuild"
4.2.3 Wait until the rebuild is done (shouldn't take long because it's only building 1 .exe file)
4.2.4 Check if "Rebuild All: 1 succeeded"
4.2.5 Don't forget to run the "-Move Compiles.bat" file (in the root folder)

5. How to setup your server (Resource + Source)
5.1 Configure resource .ini files
5.1.1 Open your Program folder (Server\Program)
5.1.2 Open the "AccountServer.ini" file
5.1.3 Change "PASS" to your own SQL password (DB_PWD_LOGIN/DB_PWD_LOG)
5.1.4 Save the file
5.1.5 Open the "Certifier.ini" file
5.1.6 Change "PASS" to your own SQL password
5.1.7 Save the file
5.1.8 Open your Script folder (Server\Script)
5.1.9 Open the "DatabaseServer.ini" file
5.1.10 Change "PASS" to your own SQL password (DB_PWD_CHARACTER/DB_PWD_LOG)
5.1.11 Save the file

5.2 Use merger program
5.2.1 Open your Resource folder (Server\Resource)
5.2.2 Run the "- Merge.exe" program
5.2.3 Open your ResClient folder (Server\ResClient)
5.2.4 Copy all files (data.res, dataSub1.res, dataSub2.res, Flyff.a)
5.2.5 Open your Client folder
5.2.6 Paste the files (3x .res file + Flyff.a) into the client folder (Replace the files in the destination)

This merge has to be done every time you change something in the RESOURCE folder!

5.3 Starting your server

5.3.1 Open your Program folder (Server\Program)
5.3.2 Right click "1. Account.exe" and click "Run as Administrator"
5.3.3 Check also "Private Networks, such as my home.." and click "Allow access"
5.3.4 The Account server is now running

5.3.5 Right click "2. Certifier.exe" and click "Run as Administrator"
5.3.6 Check also "Private Networks, such as my home.." and click "Allow access"
5.3.7 The Certifier server is now running

5.3.8 Open your Resource folder (Server\Resource)
5.3.9 Right click "3. Database.exe" and click "Run as Administrator"
5.3.10 Check also "Private Networks, such as my home.." and click "Allow access"
5.3.11 The Database server is now running

5.3.12 Open your Program folder (Server\Program)
5.3.13 Right click "4. Core.exe" and click "Run as Administrator"
5.3.14 Check also "Private Networks, such as my home.." and click "Allow access"
5.3.15 The Core server is now running

5.3.16 Right click "5. Login.exe" and click "Run as Administrator"
5.3.17 Check also "Private Networks, such as my home.." and click "Allow access"
5.3.18 The Login server is now running

5.3.19 Right click "6. Cache.exe" and click "Run as Administrator"
5.3.20 Check also "Private Networks, such as my home.." and click "Allow access"
5.3.21 The Cache server is now running

5.3.22 Open your Resource folder (Server\Resource)
5.3.23 Right click "7. World.exe" and click "Run as Administrator"
5.3.24 Check also "Private Networks, such as my home.." and click "Allow access"
5.3.25 Leave the World Server on "Not responding"
5.3.26 After about 30 seconds (depending on your computer) the World server is running

5.3.27 Open your Client folder (Client) and run "- Start Game.bat"
5.3.28 Your Neuz will now load - login with Account: test / Password: test
5.3.29 Make a new character
5.3.30 Login, have fun playing!

6. Change Visual Studio settings for debugging Neuz
6.1 Open Visual Studio 2022 and select the "all.sln" file
6.2 Right click your "Neuz" solution and click "Properties"
6.3 On the left side, go to the "Debugging" tab
6.4 Change "Command Arguments" to "sunkist" / "Working Directory" to your "Server\Client" folder / "Debugger Type" to "Native Only" and click "Apply"

7. How to debug server files (new instance or attach debug)
7.1 Running a new instance (start a new debug from Visual Studio)

World Server debug example
7.1.1 Run all your server .exe files except for the Worldserver (don't start the Worldserver)
7.1.2 Open your Server folder
7.1.3 Copy your "Script" folder
7.1.4 Open your Source folder (Source\Source)
7.1.5 Paste your "Script folder" into the Source folder (Source\Source)
7.1.6 Open the Script folder (Source\Source\Script)
7.1.7 Open the "WorldServer.ini" file
7.1.8 Change the "ResourceFolder" to your Resource path (Server\Resource)
7.1.9 Open Visual Studio 2022 and select the "all.sln" file
7.1.10 Right click "WorldServer" solution and select "Debug", "Start New Instance"
7.1.11 Your WorldServer will now start in debug mode. If it crashes, you will get a debug log

7.2 Running an attached debug (debug an already running proces)

World Server debug example
7.2.1 Run all your server files (also WorldServer)
7.2.2 Open Visual Studio 2022 and select the "all.sln" file
7.2.3 At the top, go to "Debug" and select "Attach to Process.."
7.2.4 Select the "7. World.exe" process and click "Attach"
7.2.5 Select "Restart under different credentials" (Visual Studio will restart)
7.2.6 At the top, go to "Debug" and select "Attach to Process.."
7.2.7 Select the "7. World.exe" process and click "Attach"
7.2.8 Visual Studio is now debugging the running WorldServer process

8. How to make your server public (and change default ports)
8.1 General

8.1.1 Find out what your WAN-IP is[/URL]
8.1.2 Write down your WAN-IP (ipv4)

8.2 Resource
8.2.1 Open your Resource folder (Server\Program)
8.2.2 Open the "AccountServer.ini" file
8.2.3 Change BOTH "127.0.0.1" to your "WAN-IP" and save the file
8.2.4 Open the "CacheServer.ini" file
8.2.5 Change the default Cache port "5400" to something else (between 1024 to 49151) - DON'T CHANGE THE 127.0.0.1
8.2.6 Write down the new Cache port and save the file
8.2.7 Open the "Loginserver.ini" file
8.2.8 Change the "AddCache(127.0.0.1);" to your "WAN-IP" and save the file - DON'T CHANGE THE OTHER 127.0.0.1

8.3 Source

8.3.1 Go to the Ketchup Source "All" folder (Source\Source\All) and open "all.sln"
8.3.2 Open the file "kCommon.h" or "LodeConfig.h" in the Solution Items tab
8.3.3 Scroll down and change NEUZ_IPSET "127.0.0.1" to your "WAN-IP" (you could also change it to your domain name)
8.3.4 Also change the NEUZ_CPORT "5400" to the port you have set in step 8.2.5
8.3.5 Press CTRL + SHIFT + F and search for "23000" (Find All)
8.3.6 There is only one search result, double click that one
8.3.7 Change the "PN_CERTIFIER 23000" to something else (between 1024 to 49151) - NOT THE SAME AS THE CACHE PORT AND TRY TO NOT HAVE THE SAME IN THE PORT LIST (msghdr.h)
8.3.8 Write down the port you just changed (This is the Certifier server port)
8.3.9 On line 1456 (in the same area) you will find "PN_LOGINSRVR 28000"
8.3.10 Change this port (28000) to something else (between 1024 to 49151) - NOT THE SAME AS THE CACHE PORT AND TRY TO NOT HAVE THE SAME IN THE PORT LIST (msghdr.h)
8.3.11 Write down the port you just changed (This is the Login server port)
8.3.12 Save the "msghdr.h" and "kCommon.h" (or "LodeConfig.h") file
8.3.13 Use step 4 to compile the source and copy the .exe files to the right folders

8.4 Firewall

8.4.1 Open "Windows Defender Firewall with Advanced Security"
8.4.2 Go to "Inbound Rules" and click "New Rule.." on the right side
8.4.3 Select "Port" and click "Next"
8.4.4 In "Specific local ports:" add the three ports you wrote down (Cache, Cert, Login) and click "Next"
8.4.5 Click "Next" again
8.4.6 Click "Next" again
8.4.7 Give it a name and click "Finish"

8.5 Portforward

NOTE: If you are using a VPS, this step is not needed (you only have to open the ports in the VPS firewall)

8.5.1 Open the Windows 10 "Command Prompt" window
8.5.2 Type: ipconfig
8.5.3 Write down the "Default Gateway" IP-address
8.5.4 Open your browser and go this Default Gateway IP-address (your Router)
8.5.5 Log into your router (most of the time it's: admin/admin, but check your router, and change the admin/admin login... security risk..)
8.5.6 Go to the Forwarding menu in your router (mine is a TP-Link, yours might be a different one)
8.5.7 Click on "Add New..."
8.5.8 Add your CHANGED ports to the new entry (the service/internal ports have to be the same) - YOU NEED TO MAKE A NEW ENTRY FOR EVERY PORT!
8.5.9 IP-address = the computer your hosting it on (check Command Prompt: ipconfig)
8.5.10 Protocol = TCP
8.5.11 Click save (Don't forget to add all the ports) - CACHE/CERT/LOGIN

8.6 Run the server
8.6.1 Run your .exe files as shown in step 5.3
8.6.2 Upload your CLIENT folder and give it to friends

if you get a sort error on world server,

add:

#include <algorithm>

to your DefineCommon.h
 
Last edited:
Anyone know how to fix this? I follow every step why is this happening? Help please! I got every other ones Build/Rebuild Succeeded, WorldServer is the only one with this error.

Screenshot (2) - Setup Guide for Clean Files - RaGEZONE Forums



UPDATE!!!!! For Anyone who still wondering how to fix this go to: Step one: 1: source, 2: then another source folder, 3: _Common. That's where you will find the "DefineCommon.h", and just add #include <algorithm>
 
Last edited:
and for those who ran into the MAIL_STR Error from the Database server like me run this query:


Code:
USE [CHARACTER_01_DBF]
 GO
 /****** Objet : StoredProcedure [dbo].[MAIL_STR_REALTIME] Date de génération du script : 10/28/2009 19:14:15 ******/
 SET ANSI_NULLS ON
 GO
 SET QUOTED_IDENTIFIER ON
 GO
 ALTER proc [dbo].[MAIL_STR_REALTIME]

 @iGu CHAR(255),
 @serverindex CHAR(2),
 @nMail_Before INT = 0,
 @nMail_After INT = 0,
 @idPlayer CHAR(7) = '0000000',
 @nLevel INT = 0,
 @iaccount VARCHAR(32) = '',
 @tmCreate INT = 0,
 @dwSerialNumber INT = 0,
 @nHitPoint INT = 0
 as
 set nocount on

 declare @iserverindex char(2)
 set @iserverindex = cast((cast(@serverindex as int) + 50) as char(2))

 IF @iGu = 'S1'
 BEGIN
 SELECT * FROM MAIL_TBL
 WHERE serverindex = @iserverindex AND byRead<90
 ORDER BY nMail
 RETURN
 END
 ELSE
 IF @iGu = 'U1'
 BEGIN
 UPDATE MAIL_TBL SET nMail = @nMail_After, serverindex = @serverindex, dwSerialNumber = @dwSerialNumber, nHitPoint = @nHitPoint
 WHERE serverindex = @iserverindex and nMail = @nMail_Before
 RETURN
 END
 ELSE
 IF @iGu = 'I1'
 BEGIN

 DECLARE @ItemID int
 DECLARE @ItemNum int
 DECLARE @bBinds int
 SET @ItemID = 0
 SET @ItemNum = 1
 SET @bBinds = 2


 IF( @nLevel = 20 ) BEGIN
 SET @ItemID = 26112
 END
 ELSE IF( @nLevel = 40 ) BEGIN
 SET @ItemID = 26211
 END
 ELSE IF( @nLevel = 60 ) BEGIN
 SET @ItemID = 26103
 END
 ELSE IF( @nLevel = 80 ) BEGIN
 SET @ItemID = 30135
 END
 ELSE IF( @nLevel = 100 ) BEGIN
 SET @ItemID = 5800
 SET @bBinds = 0
 END
 ELSE IF( @nLevel = 120 ) BEGIN
 SET @ItemID = 4703
 SET @bBinds = 0
 END

 IF( @ItemID = 0 ) BEGIN
 RETURN
 END

 -- ?? ??? ?? ??
 DECLARE @nMaxMailID int
 SELECT @nMaxMailID = MAX(nMail)+1 from MAIL_TBL where serverindex = @iserverindex
 SET @nMaxMailID = ISNULL( @nMaxMailID, 0 )

 -- ??? ??
 DECLARE @szTitle VARCHAR(128)
 DECLARE @szText VARCHAR(1024)
 SET @szTitle = 'Title'
 SET @szText = 'Text'

 EXEC dbo.MAIL_STR 'A1', @nMaxMailID, @iserverindex, @idPlayer, '0000000', 0, @tmCreate, 0, @szTitle, @szText,@ItemID, @ItemNum, 0, 0, 0, 0, @bBinds
 RETURN
 END
 
## Sorry I posted in the wrong area ##

+1 for decent guide!
 
Last edited:
and for those who ran into the MAIL_STR Error from the Database server like me run this query:


Code:
USE [CHARACTER_01_DBF]
 GO
 /****** Objet : StoredProcedure [dbo].[MAIL_STR_REALTIME] Date de génération du script : 10/28/2009 19:14:15 ******/
 SET ANSI_NULLS ON
 GO
 SET QUOTED_IDENTIFIER ON
 GO
 ALTER proc [dbo].[MAIL_STR_REALTIME]

 @iGu CHAR(255),
 @serverindex CHAR(2),
 @nMail_Before INT = 0,
 @nMail_After INT = 0,
 @idPlayer CHAR(7) = '0000000',
 @nLevel INT = 0,
 @iaccount VARCHAR(32) = '',
 @tmCreate INT = 0,
 @dwSerialNumber INT = 0,
 @nHitPoint INT = 0
 as
 set nocount on

 declare @iserverindex char(2)
 set @iserverindex = cast((cast(@serverindex as int) + 50) as char(2))

 IF @iGu = 'S1'
 BEGIN
 SELECT * FROM MAIL_TBL
 WHERE serverindex = @iserverindex AND byRead<90
 ORDER BY nMail
 RETURN
 END
 ELSE
 IF @iGu = 'U1'
 BEGIN
 UPDATE MAIL_TBL SET nMail = @nMail_After, serverindex = @serverindex, dwSerialNumber = @dwSerialNumber, nHitPoint = @nHitPoint
 WHERE serverindex = @iserverindex and nMail = @nMail_Before
 RETURN
 END
 ELSE
 IF @iGu = 'I1'
 BEGIN

 DECLARE @ItemID int
 DECLARE @ItemNum int
 DECLARE @bBinds int
 SET @ItemID = 0
 SET @ItemNum = 1
 SET @bBinds = 2


 IF( @nLevel = 20 ) BEGIN
 SET @ItemID = 26112
 END
 ELSE IF( @nLevel = 40 ) BEGIN
 SET @ItemID = 26211
 END
 ELSE IF( @nLevel = 60 ) BEGIN
 SET @ItemID = 26103
 END
 ELSE IF( @nLevel = 80 ) BEGIN
 SET @ItemID = 30135
 END
 ELSE IF( @nLevel = 100 ) BEGIN
 SET @ItemID = 5800
 SET @bBinds = 0
 END
 ELSE IF( @nLevel = 120 ) BEGIN
 SET @ItemID = 4703
 SET @bBinds = 0
 END

 IF( @ItemID = 0 ) BEGIN
 RETURN
 END

 -- ?? ??? ?? ??
 DECLARE @nMaxMailID int
 SELECT @nMaxMailID = MAX(nMail)+1 from MAIL_TBL where serverindex = @iserverindex
 SET @nMaxMailID = ISNULL( @nMaxMailID, 0 )

 -- ??? ??
 DECLARE @szTitle VARCHAR(128)
 DECLARE @szText VARCHAR(1024)
 SET @szTitle = 'Title'
 SET @szText = 'Text'

 EXEC dbo.MAIL_STR 'A1', @nMaxMailID, @iserverindex, @idPlayer, '0000000', 0, @tmCreate, 0, @szTitle, @szText,@ItemID, @ItemNum, 0, 0, 0, 0, @bBinds
 RETURN
 END
If I remember correctly, the only thing that will sometimes error is the Date because of different date-time formats. Rather than removing the date, you can actually set the datetime format within the sql. (the more you know)

And, if i remember correctly, the I1 "gu" is the only option that uses it, causes the issue, and you can also just remove it if you really want lol. It's only called through the EVE_RECOMMEND system being enabled within the Worldserver.ini and the date on the sql was an "Event" like system. This is an older version of giving people gear on level. (nMail_After being job, and before being sex according to the original query for this I1 'gu')
C++:
    sprintf( szQuery, "MAIL_STR_REALTIME 'I1', '%02d', %d, %d, '%07d', %d, '%s', %d", g_appInfo.dwSys, nSex, nValue, idPlayer, nLevel, szAccount, time(NULL) );

Anyone know how to fix this? I follow every step why is this happening? Help please! I got every other ones Build/Rebuild Succeeded, WorldServer is the only one with this error.
std::sort is within <algorithm> so include it.
 
Last edited:
Bei mir wird der 7.Worldserver exe garnicht im Resource ordner erstellt
 
Hello how did you fix that?
what i did was open spevent.cpp and add
#include <algorithm>
just after the firsts " #include "

then after compiling again, everything worked fine

This guide by Talos is made for these files, But will work for most sets released on VS2022:
Installing on Windows 11 (will also work on server 2016 - 2025 & windows 10)

Images of setup can be found here to help you along the way.

Guide:

1. Install Visual Studio 2022 Community
Downloads:
-> Visual Studio 2022 Community
-> DirectX 9

1.1 Download the VS2022 Community and DirectX 9 files

1.2 Install DirectX 9
1.2.1 Right click the "dxwebsetup.exe" file and "Run as administrator"
1.2.2 Click "I accept the agreement" and click "Next"
1.2.3 Uncheck "Install the Bing bar" and click "Next"
1.2.4 Click "Next"
1.2.5 Wait untill download & install is finished
1.2.6 click "Finish"

1.3 Install Visual Studio 2022 Community
1.3.1 Right click the "vs_community_*.exe" file and "Run as administrator"
1.3.2 Click "Continue"
1.3.3 Wait untill download & install is finished
1.3.4 Select ".NET desktop development" & "Desktop development with C++" and
CHECK "C++ MFC for latest v142 build tools (x86 & x64)"
UNCHECK "Test Adapter for Boost.Text", "Test Adapter for Google Test", "Live Share"
Check the image below to check if you selected everything!!!
Click "Install"
1.3.5 Uncheck "Start after installation" and wait untill download & install is finished
1.3.6 When you see the "Installation succeeded!" window, you can close it (Don't start Visual Studio!)

1.4 ONLY FOR: Windows 10 + 11 users
1.4.1 Open your start menu.
1.4.2 Search for "Turn Windows features on or off".
1.4.3 Turn on ".NET Framework 3.5 (includes .NET 2.0 and 3.0)"

2. Install/Configure SQL Server 2019 & Management
2.1 Download the Server 2019 Express, Management Studio & Native Client 11 files
2.1.1 Select the "ENU\x64\msodbcsql.msi" file (Native Client 11)

2.2 Install SQL Native Client 11
2.2.1 Right click the "msodbcsql.msi" file and "Install"
2.2.2 Click "Next"
2.2.3 Click "I accept the terms in the license agreement" and click "Next"
2.2.4 At "ODBC Driver for SQL Server SDK" click the dropdown icon and select "Will be installed on local hard drive" and click "Next"
2.2.5 Click "Install"
2.2.6 Click "Finish"
2.2.7 Restart your computer

2.3 Install Server 2019 Express
2.3.1 Right click the "SQL2019-SSEI-Expr.exe" file and "Run as administrator"
2.3.2 Select the "Custom" installation
2.3.3 Click "Install"
2.3.4 Wait untill download & install is finished
2.3.5 Click "New SQL Server stand-alone installation or add features to an existing installation"
2.3.6 Check "I accept the license terms and Privacy Statement" and click "Next"
2.3.7 Click "Next"
2.3.8 Wait untill all tasks are completed
2.3.9 Ignore the "Windows Firewall" warning for now and click "Next" (disabling your Firewall is NOT RECOMMENDED!)
2.3.10 Leave the default "Instance Features" and click "Next"
2.3.11 Leave the default "Named instance" as "SQLExpress" and click "Next"
2.3.12 Click "Next"
2.3.13 Click "Next"
2.3.14 Select "Mixed Mode" and type a secure password (write this password down) + confirm and click "Next" (don't delete the "Specify SQL Server Administrators", I have mine removed from the screenshot only!)
2.3.15 Click "Accept" and click "Next"
2.3.16 Click "Accept" and click "Next"
2.3.17 Wait until the installation is finished
2.3.18 Click "Close" after checking every status is "Succeeded" (details showing: Install successful)

2.4 Install Server Management Studio
2.4.1 Right click the "SSMS-Setup-ENU.exe" file and "Run as administrator"
2.4.2 Click "Install"
2.4.3 Wait untill download & install is finished
2.4.4 When finished, click "Close"

2.5 Configure SQL server
2.5.1 Open "Microsoft SQL Server Management Studio 18"
2.5.2 Select Authentication: "SQL Server Authentication", Login: "sa", Password: "The secure password you wrote down", check "Remember password" and click "Connect"

2.5.7 Top left, click "File", click "Open", click "File.." (CTRL+O)
2.5.8 Go to the Ketchup database folder and select "1. Database.sql" click "Open"
2.5.9 Click "Execute"

2.5.13 Top left, click "File", click "Open", click "File.." (CTRL+O)
2.5.14 Go to the Ketchup database folder and select "2. Account (Optional).sql", click "Open"
2.5.15 Click "Execute"

2.5.19 Close "Microsoft SQL Server Management Studio 18" (Click NO, for not saving the .sql files)

2.5.20 Open "ODBC Data Sources (32-bit)" as Administrator

2.5.21 Click "Add"
2.5.22 Scroll all the way down, select "SQL Server Native Client 11.0" and click "Finish"
2.5.23 Name: character01 / Server: YOURCOMPUTERNAME\SQLEXPRESS click "Next"
2.5.24 Select "With Integrated Windows authentication" and click "Next"
2.5.25 Check "Change the default database to:" select "CHARACTER_01_DBF" and click "Next"
2.5.26 Click "Finish"
2.5.27 Click "Test Data Source"
2.5.28 It has to say "TESTS COMPLETED SUCCESSFULLY!" and click "OK"
2.5.29 Click "OK"

2.5.30 Click "Add"
2.5.31 Scroll all the way down, select "SQL Server Native Client 11.0" and click "Finish"
2.5.32 Name: log01 / Server: YOURCOMPUTERNAME\SQLEXPRESS click "Next"
2.5.33 Select "With Integrated Windows authentication" and click "Next"
2.5.34 Check "Change the default database to:" select "LOGGING_01_DBF" and click "Next"
2.5.35 Click "Finish"
2.5.36 Click "Test Data Source"
2.5.37 It has to say "TESTS COMPLETED SUCCESSFULLY!" and click "OK"
2.5.38 Click "OK"

2.5.39 Click "Add"
2.5.40 Scroll all the way down, select "SQL Server Native Client 11.0" and click "Finish"
2.5.41 Name: login / Server: YOURCOMPUTERNAME\SQLEXPRESS click "Next"
2.5.42 Select "With Integrated Windows authentication" and click "Next"
2.5.43 Check "Change the default database to:" select "ACCOUNT_DBF" and click "Next"
2.5.44 Click "Finish"
2.5.45 Click "Test Data Source"
2.5.46 It has to say "TESTS COMPLETED SUCCESSFULLY!" and click "OK"
2.5.47 Click "OK"

2.5.57 Close the ODBC window (click "OK")

3. How to open source files
3.1 Opening .sln file for the first time

3.1.1 Go to the Ketchup Source "All" folder (Source\Source\All) and open "all.sln"
3.1.2 In the "How do you want to open this file?" select "Visual Studio 2022", check "Always use this app to open .sln files" and click "OK"
3.1.3 Make sure to Create an Account and sign in to Visual Studio
3.1.4 Select your "color theme" (I always set it to "Dark" mode) and click "Start Visual Studio"
3.1.5 Wait until Visual Studio is done preparing for first use
3.1.6 When Visual Studio is done preparing it should open the source (check right side, AccountServer, CacheServer, etc)

4. How to compile source
4.1 Compile source all at once
4.1.1 Follow the 3.1 steps and open your source in Visual Studio
4.1.2 Right click "Solution 'all' (8 of 8 projects)" and select "Batch Build.."
4.1.3 Click "Rebuild" and wait until the build is done
4.1.4 Check if "Rebuild All: 8 succeeded" (NOTE: The clean source will always compile "8 succeeded")
4.1.5 Don't forget to run the "-Move Compiles.bat" file (in the root folder)

4.2 Compile source separate
4.2.1 Follow the 3.1 steps and open your source in Visual Studio
4.2.2 Right click a specific server (or Neuz) and click "Rebuild"
4.2.3 Wait until the rebuild is done (shouldn't take long because it's only building 1 .exe file)
4.2.4 Check if "Rebuild All: 1 succeeded"
4.2.5 Don't forget to run the "-Move Compiles.bat" file (in the root folder)

5. How to setup your server (Resource + Source)
5.1 Configure resource .ini files
5.1.1 Open your Program folder (Server\Program)
5.1.2 Open the "AccountServer.ini" file
5.1.3 Change "PASS" to your own SQL password (DB_PWD_LOGIN/DB_PWD_LOG)
5.1.4 Save the file
5.1.5 Open the "Certifier.ini" file
5.1.6 Change "PASS" to your own SQL password
5.1.7 Save the file
5.1.8 Open your Script folder (Server\Script)
5.1.9 Open the "DatabaseServer.ini" file
5.1.10 Change "PASS" to your own SQL password (DB_PWD_CHARACTER/DB_PWD_LOG)
5.1.11 Save the file

5.2 Use merger program
5.2.1 Open your Resource folder (Server\Resource)
5.2.2 Run the "- Merge.exe" program
5.2.3 Open your ResClient folder (Server\ResClient)
5.2.4 Copy all files (data.res, dataSub1.res, dataSub2.res, Flyff.a)
5.2.5 Open your Client folder
5.2.6 Paste the files (3x .res file + Flyff.a) into the client folder (Replace the files in the destination)

This merge has to be done every time you change something in the RESOURCE folder!

5.3 Starting your server

5.3.1 Open your Program folder (Server\Program)
5.3.2 Right click "1. Account.exe" and click "Run as Administrator"
5.3.3 Check also "Private Networks, such as my home.." and click "Allow access"
5.3.4 The Account server is now running

5.3.5 Right click "2. Certifier.exe" and click "Run as Administrator"
5.3.6 Check also "Private Networks, such as my home.." and click "Allow access"
5.3.7 The Certifier server is now running

5.3.8 Open your Resource folder (Server\Resource)
5.3.9 Right click "3. Database.exe" and click "Run as Administrator"
5.3.10 Check also "Private Networks, such as my home.." and click "Allow access"
5.3.11 The Database server is now running

5.3.12 Open your Program folder (Server\Program)
5.3.13 Right click "4. Core.exe" and click "Run as Administrator"
5.3.14 Check also "Private Networks, such as my home.." and click "Allow access"
5.3.15 The Core server is now running

5.3.16 Right click "5. Login.exe" and click "Run as Administrator"
5.3.17 Check also "Private Networks, such as my home.." and click "Allow access"
5.3.18 The Login server is now running

5.3.19 Right click "6. Cache.exe" and click "Run as Administrator"
5.3.20 Check also "Private Networks, such as my home.." and click "Allow access"
5.3.21 The Cache server is now running

5.3.22 Open your Resource folder (Server\Resource)
5.3.23 Right click "7. World.exe" and click "Run as Administrator"
5.3.24 Check also "Private Networks, such as my home.." and click "Allow access"
5.3.25 Leave the World Server on "Not responding"
5.3.26 After about 30 seconds (depending on your computer) the World server is running

5.3.27 Open your Client folder (Client) and run "- Start Game.bat"
5.3.28 Your Neuz will now load - login with Account: test / Password: test
5.3.29 Make a new character
5.3.30 Login, have fun playing!

6. Change Visual Studio settings for debugging Neuz
6.1 Open Visual Studio 2022 and select the "all.sln" file
6.2 Right click your "Neuz" solution and click "Properties"
6.3 On the left side, go to the "Debugging" tab
6.4 Change "Command Arguments" to "sunkist" / "Working Directory" to your "Server\Client" folder / "Debugger Type" to "Native Only" and click "Apply"

7. How to debug server files (new instance or attach debug)
7.1 Running a new instance (start a new debug from Visual Studio)

World Server debug example
7.1.1 Run all your server .exe files except for the Worldserver (don't start the Worldserver)
7.1.2 Open your Server folder
7.1.3 Copy your "Script" folder
7.1.4 Open your Source folder (Source\Source)
7.1.5 Paste your "Script folder" into the Source folder (Source\Source)
7.1.6 Open the Script folder (Source\Source\Script)
7.1.7 Open the "WorldServer.ini" file
7.1.8 Change the "ResourceFolder" to your Resource path (Server\Resource)
7.1.9 Open Visual Studio 2022 and select the "all.sln" file
7.1.10 Right click "WorldServer" solution and select "Debug", "Start New Instance"
7.1.11 Your WorldServer will now start in debug mode. If it crashes, you will get a debug log

7.2 Running an attached debug (debug an already running proces)

World Server debug example
7.2.1 Run all your server files (also WorldServer)
7.2.2 Open Visual Studio 2022 and select the "all.sln" file
7.2.3 At the top, go to "Debug" and select "Attach to Process.."
7.2.4 Select the "7. World.exe" process and click "Attach"
7.2.5 Select "Restart under different credentials" (Visual Studio will restart)
7.2.6 At the top, go to "Debug" and select "Attach to Process.."
7.2.7 Select the "7. World.exe" process and click "Attach"
7.2.8 Visual Studio is now debugging the running WorldServer process

8. How to make your server public (and change default ports)
8.1 General

8.1.1 Find out what your WAN-IP is[/URL]
8.1.2 Write down your WAN-IP (ipv4)

8.2 Resource
8.2.1 Open your Resource folder (Server\Program)
8.2.2 Open the "AccountServer.ini" file
8.2.3 Change BOTH "127.0.0.1" to your "WAN-IP" and save the file
8.2.4 Open the "CacheServer.ini" file
8.2.5 Change the default Cache port "5400" to something else (between 1024 to 49151) - DON'T CHANGE THE 127.0.0.1
8.2.6 Write down the new Cache port and save the file
8.2.7 Open the "Loginserver.ini" file
8.2.8 Change the "AddCache(127.0.0.1);" to your "WAN-IP" and save the file - DON'T CHANGE THE OTHER 127.0.0.1

8.3 Source

8.3.1 Go to the Ketchup Source "All" folder (Source\Source\All) and open "all.sln"
8.3.2 Open the file "kCommon.h" or "LodeConfig.h" in the Solution Items tab
8.3.3 Scroll down and change NEUZ_IPSET "127.0.0.1" to your "WAN-IP" (you could also change it to your domain name)
8.3.4 Also change the NEUZ_CPORT "5400" to the port you have set in step 8.2.5
8.3.5 Press CTRL + SHIFT + F and search for "23000" (Find All)
8.3.6 There is only one search result, double click that one
8.3.7 Change the "PN_CERTIFIER 23000" to something else (between 1024 to 49151) - NOT THE SAME AS THE CACHE PORT AND TRY TO NOT HAVE THE SAME IN THE PORT LIST (msghdr.h)
8.3.8 Write down the port you just changed (This is the Certifier server port)
8.3.9 On line 1456 (in the same area) you will find "PN_LOGINSRVR 28000"
8.3.10 Change this port (28000) to something else (between 1024 to 49151) - NOT THE SAME AS THE CACHE PORT AND TRY TO NOT HAVE THE SAME IN THE PORT LIST (msghdr.h)
8.3.11 Write down the port you just changed (This is the Login server port)
8.3.12 Save the "msghdr.h" and "kCommon.h" (or "LodeConfig.h") file
8.3.13 Use step 4 to compile the source and copy the .exe files to the right folders

8.4 Firewall

8.4.1 Open "Windows Defender Firewall with Advanced Security"
8.4.2 Go to "Inbound Rules" and click "New Rule.." on the right side
8.4.3 Select "Port" and click "Next"
8.4.4 In "Specific local ports:" add the three ports you wrote down (Cache, Cert, Login) and click "Next"
8.4.5 Click "Next" again
8.4.6 Click "Next" again
8.4.7 Give it a name and click "Finish"

8.5 Portforward

NOTE: If you are using a VPS, this step is not needed (you only have to open the ports in the VPS firewall)

8.5.1 Open the Windows 10 "Command Prompt" window
8.5.2 Type: ipconfig
8.5.3 Write down the "Default Gateway" IP-address
8.5.4 Open your browser and go this Default Gateway IP-address (your Router)
8.5.5 Log into your router (most of the time it's: admin/admin, but check your router, and change the admin/admin login... security risk..)
8.5.6 Go to the Forwarding menu in your router (mine is a TP-Link, yours might be a different one)
8.5.7 Click on "Add New..."
8.5.8 Add your CHANGED ports to the new entry (the service/internal ports have to be the same) - YOU NEED TO MAKE A NEW ENTRY FOR EVERY PORT!
8.5.9 IP-address = the computer your hosting it on (check Command Prompt: ipconfig)
8.5.10 Protocol = TCP
8.5.11 Click save (Don't forget to add all the ports) - CACHE/CERT/LOGIN

8.6 Run the server
8.6.1 Run your .exe files as shown in step 5.3
8.6.2 Upload your CLIENT folder and give it to friends

if you get a sort error on world server,

add:

#include <algorithm>

to your DefineCommon.h

After making everything worked... Atleast i though, as soon as i press ok to create character, nothing works. I cannot press OK or CANCEL anymore
but i can still change stuff on my character.
Poreotix - Setup Guide for Clean Files - RaGEZONE Forums


Im using v18{custom}
 
Last edited:
This guide by Talos is made for these files, But will work for most sets released on VS2022:
Installing on Windows 11 (will also work on server 2016 - 2025 & windows 10)

Images of setup can be found here to help you along the way.

Guide:

1. Install Visual Studio 2022 Community
Downloads:
-> Visual Studio 2022 Community
-> DirectX 9

1.1 Download the VS2022 Community and DirectX 9 files

1.2 Install DirectX 9
1.2.1 Right click the "dxwebsetup.exe" file and "Run as administrator"
1.2.2 Click "I accept the agreement" and click "Next"
1.2.3 Uncheck "Install the Bing bar" and click "Next"
1.2.4 Click "Next"
1.2.5 Wait untill download & install is finished
1.2.6 click "Finish"

1.3 Install Visual Studio 2022 Community
1.3.1 Right click the "vs_community_*.exe" file and "Run as administrator"
1.3.2 Click "Continue"
1.3.3 Wait untill download & install is finished
1.3.4 Select ".NET desktop development" & "Desktop development with C++" and
CHECK "C++ MFC for latest v142 build tools (x86 & x64)"
UNCHECK "Test Adapter for Boost.Text", "Test Adapter for Google Test", "Live Share"
Check the image below to check if you selected everything!!!
Click "Install"
1.3.5 Uncheck "Start after installation" and wait untill download & install is finished
1.3.6 When you see the "Installation succeeded!" window, you can close it (Don't start Visual Studio!)

1.4 ONLY FOR: Windows 10 + 11 users
1.4.1 Open your start menu.
1.4.2 Search for "Turn Windows features on or off".
1.4.3 Turn on ".NET Framework 3.5 (includes .NET 2.0 and 3.0)"

2. Install/Configure SQL Server 2019 & Management
2.1 Download the Server 2019 Express, Management Studio & Native Client 11 files
2.1.1 Select the "ENU\x64\msodbcsql.msi" file (Native Client 11)

2.2 Install SQL Native Client 11
2.2.1 Right click the "msodbcsql.msi" file and "Install"
2.2.2 Click "Next"
2.2.3 Click "I accept the terms in the license agreement" and click "Next"
2.2.4 At "ODBC Driver for SQL Server SDK" click the dropdown icon and select "Will be installed on local hard drive" and click "Next"
2.2.5 Click "Install"
2.2.6 Click "Finish"
2.2.7 Restart your computer

2.3 Install Server 2019 Express
2.3.1 Right click the "SQL2019-SSEI-Expr.exe" file and "Run as administrator"
2.3.2 Select the "Custom" installation
2.3.3 Click "Install"
2.3.4 Wait untill download & install is finished
2.3.5 Click "New SQL Server stand-alone installation or add features to an existing installation"
2.3.6 Check "I accept the license terms and Privacy Statement" and click "Next"
2.3.7 Click "Next"
2.3.8 Wait untill all tasks are completed
2.3.9 Ignore the "Windows Firewall" warning for now and click "Next" (disabling your Firewall is NOT RECOMMENDED!)
2.3.10 Leave the default "Instance Features" and click "Next"
2.3.11 Leave the default "Named instance" as "SQLExpress" and click "Next"
2.3.12 Click "Next"
2.3.13 Click "Next"
2.3.14 Select "Mixed Mode" and type a secure password (write this password down) + confirm and click "Next" (don't delete the "Specify SQL Server Administrators", I have mine removed from the screenshot only!)
2.3.15 Click "Accept" and click "Next"
2.3.16 Click "Accept" and click "Next"
2.3.17 Wait until the installation is finished
2.3.18 Click "Close" after checking every status is "Succeeded" (details showing: Install successful)

2.4 Install Server Management Studio
2.4.1 Right click the "SSMS-Setup-ENU.exe" file and "Run as administrator"
2.4.2 Click "Install"
2.4.3 Wait untill download & install is finished
2.4.4 When finished, click "Close"

2.5 Configure SQL server
2.5.1 Open "Microsoft SQL Server Management Studio 18"
2.5.2 Select Authentication: "SQL Server Authentication", Login: "sa", Password: "The secure password you wrote down", check "Remember password" and click "Connect"

2.5.7 Top left, click "File", click "Open", click "File.." (CTRL+O)
2.5.8 Go to the Ketchup database folder and select "1. Database.sql" click "Open"
2.5.9 Click "Execute"

2.5.13 Top left, click "File", click "Open", click "File.." (CTRL+O)
2.5.14 Go to the Ketchup database folder and select "2. Account (Optional).sql", click "Open"
2.5.15 Click "Execute"

2.5.19 Close "Microsoft SQL Server Management Studio 18" (Click NO, for not saving the .sql files)

2.5.20 Open "ODBC Data Sources (32-bit)" as Administrator

2.5.21 Click "Add"
2.5.22 Scroll all the way down, select "SQL Server Native Client 11.0" and click "Finish"
2.5.23 Name: character01 / Server: YOURCOMPUTERNAME\SQLEXPRESS click "Next"
2.5.24 Select "With Integrated Windows authentication" and click "Next"
2.5.25 Check "Change the default database to:" select "CHARACTER_01_DBF" and click "Next"
2.5.26 Click "Finish"
2.5.27 Click "Test Data Source"
2.5.28 It has to say "TESTS COMPLETED SUCCESSFULLY!" and click "OK"
2.5.29 Click "OK"

2.5.30 Click "Add"
2.5.31 Scroll all the way down, select "SQL Server Native Client 11.0" and click "Finish"
2.5.32 Name: log01 / Server: YOURCOMPUTERNAME\SQLEXPRESS click "Next"
2.5.33 Select "With Integrated Windows authentication" and click "Next"
2.5.34 Check "Change the default database to:" select "LOGGING_01_DBF" and click "Next"
2.5.35 Click "Finish"
2.5.36 Click "Test Data Source"
2.5.37 It has to say "TESTS COMPLETED SUCCESSFULLY!" and click "OK"
2.5.38 Click "OK"

2.5.39 Click "Add"
2.5.40 Scroll all the way down, select "SQL Server Native Client 11.0" and click "Finish"
2.5.41 Name: login / Server: YOURCOMPUTERNAME\SQLEXPRESS click "Next"
2.5.42 Select "With Integrated Windows authentication" and click "Next"
2.5.43 Check "Change the default database to:" select "ACCOUNT_DBF" and click "Next"
2.5.44 Click "Finish"
2.5.45 Click "Test Data Source"
2.5.46 It has to say "TESTS COMPLETED SUCCESSFULLY!" and click "OK"
2.5.47 Click "OK"

2.5.57 Close the ODBC window (click "OK")

3. How to open source files
3.1 Opening .sln file for the first time

3.1.1 Go to the Ketchup Source "All" folder (Source\Source\All) and open "all.sln"
3.1.2 In the "How do you want to open this file?" select "Visual Studio 2022", check "Always use this app to open .sln files" and click "OK"
3.1.3 Make sure to Create an Account and sign in to Visual Studio
3.1.4 Select your "color theme" (I always set it to "Dark" mode) and click "Start Visual Studio"
3.1.5 Wait until Visual Studio is done preparing for first use
3.1.6 When Visual Studio is done preparing it should open the source (check right side, AccountServer, CacheServer, etc)

4. How to compile source
4.1 Compile source all at once
4.1.1 Follow the 3.1 steps and open your source in Visual Studio
4.1.2 Right click "Solution 'all' (8 of 8 projects)" and select "Batch Build.."
4.1.3 Click "Rebuild" and wait until the build is done
4.1.4 Check if "Rebuild All: 8 succeeded" (NOTE: The clean source will always compile "8 succeeded")
4.1.5 Don't forget to run the "-Move Compiles.bat" file (in the root folder)

4.2 Compile source separate
4.2.1 Follow the 3.1 steps and open your source in Visual Studio
4.2.2 Right click a specific server (or Neuz) and click "Rebuild"
4.2.3 Wait until the rebuild is done (shouldn't take long because it's only building 1 .exe file)
4.2.4 Check if "Rebuild All: 1 succeeded"
4.2.5 Don't forget to run the "-Move Compiles.bat" file (in the root folder)

5. How to setup your server (Resource + Source)
5.1 Configure resource .ini files
5.1.1 Open your Program folder (Server\Program)
5.1.2 Open the "AccountServer.ini" file
5.1.3 Change "PASS" to your own SQL password (DB_PWD_LOGIN/DB_PWD_LOG)
5.1.4 Save the file
5.1.5 Open the "Certifier.ini" file
5.1.6 Change "PASS" to your own SQL password
5.1.7 Save the file
5.1.8 Open your Script folder (Server\Script)
5.1.9 Open the "DatabaseServer.ini" file
5.1.10 Change "PASS" to your own SQL password (DB_PWD_CHARACTER/DB_PWD_LOG)
5.1.11 Save the file

5.2 Use merger program
5.2.1 Open your Resource folder (Server\Resource)
5.2.2 Run the "- Merge.exe" program
5.2.3 Open your ResClient folder (Server\ResClient)
5.2.4 Copy all files (data.res, dataSub1.res, dataSub2.res, Flyff.a)
5.2.5 Open your Client folder
5.2.6 Paste the files (3x .res file + Flyff.a) into the client folder (Replace the files in the destination)

This merge has to be done every time you change something in the RESOURCE folder!

5.3 Starting your server

5.3.1 Open your Program folder (Server\Program)
5.3.2 Right click "1. Account.exe" and click "Run as Administrator"
5.3.3 Check also "Private Networks, such as my home.." and click "Allow access"
5.3.4 The Account server is now running

5.3.5 Right click "2. Certifier.exe" and click "Run as Administrator"
5.3.6 Check also "Private Networks, such as my home.." and click "Allow access"
5.3.7 The Certifier server is now running

5.3.8 Open your Resource folder (Server\Resource)
5.3.9 Right click "3. Database.exe" and click "Run as Administrator"
5.3.10 Check also "Private Networks, such as my home.." and click "Allow access"
5.3.11 The Database server is now running

5.3.12 Open your Program folder (Server\Program)
5.3.13 Right click "4. Core.exe" and click "Run as Administrator"
5.3.14 Check also "Private Networks, such as my home.." and click "Allow access"
5.3.15 The Core server is now running

5.3.16 Right click "5. Login.exe" and click "Run as Administrator"
5.3.17 Check also "Private Networks, such as my home.." and click "Allow access"
5.3.18 The Login server is now running

5.3.19 Right click "6. Cache.exe" and click "Run as Administrator"
5.3.20 Check also "Private Networks, such as my home.." and click "Allow access"
5.3.21 The Cache server is now running

5.3.22 Open your Resource folder (Server\Resource)
5.3.23 Right click "7. World.exe" and click "Run as Administrator"
5.3.24 Check also "Private Networks, such as my home.." and click "Allow access"
5.3.25 Leave the World Server on "Not responding"
5.3.26 After about 30 seconds (depending on your computer) the World server is running

5.3.27 Open your Client folder (Client) and run "- Start Game.bat"
5.3.28 Your Neuz will now load - login with Account: test / Password: test
5.3.29 Make a new character
5.3.30 Login, have fun playing!

6. Change Visual Studio settings for debugging Neuz
6.1 Open Visual Studio 2022 and select the "all.sln" file
6.2 Right click your "Neuz" solution and click "Properties"
6.3 On the left side, go to the "Debugging" tab
6.4 Change "Command Arguments" to "sunkist" / "Working Directory" to your "Server\Client" folder / "Debugger Type" to "Native Only" and click "Apply"

7. How to debug server files (new instance or attach debug)
7.1 Running a new instance (start a new debug from Visual Studio)

World Server debug example
7.1.1 Run all your server .exe files except for the Worldserver (don't start the Worldserver)
7.1.2 Open your Server folder
7.1.3 Copy your "Script" folder
7.1.4 Open your Source folder (Source\Source)
7.1.5 Paste your "Script folder" into the Source folder (Source\Source)
7.1.6 Open the Script folder (Source\Source\Script)
7.1.7 Open the "WorldServer.ini" file
7.1.8 Change the "ResourceFolder" to your Resource path (Server\Resource)
7.1.9 Open Visual Studio 2022 and select the "all.sln" file
7.1.10 Right click "WorldServer" solution and select "Debug", "Start New Instance"
7.1.11 Your WorldServer will now start in debug mode. If it crashes, you will get a debug log

7.2 Running an attached debug (debug an already running proces)

World Server debug example
7.2.1 Run all your server files (also WorldServer)
7.2.2 Open Visual Studio 2022 and select the "all.sln" file
7.2.3 At the top, go to "Debug" and select "Attach to Process.."
7.2.4 Select the "7. World.exe" process and click "Attach"
7.2.5 Select "Restart under different credentials" (Visual Studio will restart)
7.2.6 At the top, go to "Debug" and select "Attach to Process.."
7.2.7 Select the "7. World.exe" process and click "Attach"
7.2.8 Visual Studio is now debugging the running WorldServer process

8. How to make your server public (and change default ports)
8.1 General

8.1.1 Find out what your WAN-IP is[/URL]
8.1.2 Write down your WAN-IP (ipv4)

8.2 Resource
8.2.1 Open your Resource folder (Server\Program)
8.2.2 Open the "AccountServer.ini" file
8.2.3 Change BOTH "127.0.0.1" to your "WAN-IP" and save the file
8.2.4 Open the "CacheServer.ini" file
8.2.5 Change the default Cache port "5400" to something else (between 1024 to 49151) - DON'T CHANGE THE 127.0.0.1
8.2.6 Write down the new Cache port and save the file
8.2.7 Open the "Loginserver.ini" file
8.2.8 Change the "AddCache(127.0.0.1);" to your "WAN-IP" and save the file - DON'T CHANGE THE OTHER 127.0.0.1

8.3 Source

8.3.1 Go to the Ketchup Source "All" folder (Source\Source\All) and open "all.sln"
8.3.2 在解决方案项选项卡中打开文件“kCommon.h”或“LodeConfig.h”
8.3.3 向下滚动并将 NEUZ_IPSET “127.0.0.1” 更改为您的“WAN-IP”(您也可以将其更改为您的域名)
8.3.4 将 NEUZ_CPORT“5400”更改为您在步骤 8.2.5 中设置的端口
8.3.5 按 CTRL + SHIFT + F 并搜索“23000”(查找全部)
8.3.6 搜索结果只有一个,双击该结果
8.3.7 将“PN_CERTIFIER 23000”更改为其他值(介于 1024 和 49151 之间)- 与缓存端口不同,并尝试不要在端口列表中使用相同的值(msghdr.h)
8.3.8 记下刚刚更改的端口(这是认证服务器端口)
8.3.9 在第 1456 行(在同一区域)您将找到“PN_LOGINSRVR 28000”
8.3.10 将此端口(28000)更改为其他端口(1024 至 49151 之间)- 与缓存端口不同,并尝试不要在端口列表中使用相同的端口(msghdr.h)
8.3.11 记下刚刚修改的端口(这是登录服务器端口)
8.3.12 保存“msghdr.h”和“kCommon.h”(或“LodeConfig.h”)文件
8.3.13 使用步骤4编译源并将.exe文件复制到正确的文件夹

8.4 防火墙

8.4.1 打开“高级安全 Windows Defender 防火墙”
8.4.2 进入“入站规则”,点击右侧的“新建规则...”
8.4.3 选择“端口”,点击“下一步”
8.4.4 在“特定本地端口:”中添加你记下的三个端口(Cache、Cert、Login),点击“下一步”
8.4.5 再次点击“下一步”
8.4.6 再次点击“下一步”
8.4.7 命名并点击“完成”

8.5 端口转发

注意:如果您使用的是 VPS,则不需要此步骤(您只需在 VPS 防火墙中打开端口)

8.5.1 打开Windows 10“命令提示符”窗口
8.5.2 类型:ipconfig
8.5.3 记下“默认网关”IP 地址
8.5.4 打开浏览器并输入此默认网关 IP 地址(您的路由器)
8.5.5 登录您的路由器(大多数情况下是:admin/admin,但请检查您的路由器,并更改 admin/admin 登录名...存在安全风险..)
8.5.6 进入路由器的转发菜单(我的是 TP-Link,你的可能是不同的)
8.5.7 点击“添加新...”
8.5.8 将您更改的端口添加到新条目(服务/内部端口必须相同) - 您需要为每个端口创建一个新条目!
8.5.9 IP 地址 = 您托管它的计算机(检查命令提示符:ipconfig)
8.5.10 协议 = TCP
8.5.11 单击保存(不要忘记添加所有端口)- CACHE/CERT/LOGIN

8.6 运行服务器
8.6.1 按照步骤 5.3 所示运行 .exe 文件
8.6.2 上传您的 CLIENT 文件夹并将其发送给好友

如果你在世界服务器上遇到排序错误,

添加:

#include <算法>

到你的 DefineCommon.h
陈尝试
 
Back