Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database is missing. [request] #107

Closed
Adizbek opened this issue Jul 14, 2018 · 10 comments
Closed

Database is missing. [request] #107

Adizbek opened this issue Jul 14, 2018 · 10 comments

Comments

@Adizbek
Copy link

Adizbek commented Jul 14, 2018

There is no sql except app_test.sql.

Where is data to run Unity ? After login OnWorldList packet received but nothing in it. Is there any example ?

@Adizbek
Copy link
Author

Adizbek commented Jul 14, 2018

After searching. I have found generated Struct/Nframe.sql

Is there any instructions to setup database ? I have no idea how to start?
2018-07-14 22 34 48

2018-07-14 22 57 07

On the last log of second screenshot written OnWorldList0: How can I add a World ?

@ketoo
Copy link
Owner

ketoo commented Jul 15, 2018

I think this problem is related� with the problem #105

Now NF using Redis as the database.

I know from your graph[22:56:49] that your account sign-in was succeeded. The reason you can't get the world list that is your world server was crashed, could you please show me more log which comes from the world server?

Normally we run the shell script runxd.sh(with Database) or rund.sh (without Database), you can see the shell file to know how to run a world server.

@Adizbek
Copy link
Author

Adizbek commented Jul 15, 2018

There is no file named runxd.sh in my folder. Only:
Debug
Kill.bat
NFDataCfg
Release
Tester
VC_Clear.bat
clearlog.bat
clearlog.sh
kill.sh
log
redis.bat
redis.sh
rund.bat
rund.sh
runr.bat
runr.sh
runtutorial.bat
runtutoriald.sh
xd.bat
xd.sh
xr.bat
xr.sh

@ketoo
Copy link
Owner

ketoo commented Jul 15, 2018

So you run the shell script named rund.sh?

I will test it late.

@Adizbek
Copy link
Author

Adizbek commented Jul 15, 2018

@ketoo should I install redis before?

@ketoo
Copy link
Owner

ketoo commented Jul 15, 2018

You can run the script rund.sh without Database, wait a moment please, i am testing for this issue.

@Adizbek
Copy link
Author

Adizbek commented Jul 15, 2018

When I run rund.sh
5 processes strated:

 9554 ??         0:00.07 ./NFPluginLoader_d -d Server=MasterServer ID=3
 9556 ??         0:00.06 ./NFPluginLoader_d -d Server=WorldServer ID=7
 9558 ??         0:00.04 ./NFPluginLoader_d -d Server=LoginServer ID=4
 9560 ??         0:00.02 ./NFPluginLoader_d -d Server=GameServer ID=6
 9562 ??         0:00.01 ./NFPluginLoader_d -d Server=ProxyServer ID=5

But after 10 sec. Proxy and WorldServer stopped.

ketoo added a commit that referenced this issue Jul 15, 2018
@ketoo
Copy link
Owner

ketoo commented Jul 15, 2018

Got it.

bool NFCWorldToMasterModule::Init()
{
m_pNetClientModule = pPluginManager->FindModule();
m_pNetModule = pPluginManager->FindModule();
m_pClassModule = pPluginManager->FindModule();
m_pElementModule = pPluginManager->FindModule();
m_pLogModule = pPluginManager->FindModule();
m_pWorldNet_ServerModule = pPluginManager->FindModule<NFIWorldNet_ServerModule>();
m_pSecurityModule = pPluginManager->FindModule();

return true;

}

Assert:
m_pSecurityModule = pPluginManager->FindModule();

How to fix:
const std::string NFSecurityPlugin::GetPluginName()
{
return GET_CLASS_NAME(NFCSecurityPlugin);
}
======>>>>
const std::string NFSecurityPlugin::GetPluginName()
{
return GET_CLASS_NAME(NFSecurityPlugin);
}

Now fixed.
32bcbda

@Adizbek
Copy link
Author

Adizbek commented Jul 15, 2018

Yes. Fixed.
2018-07-15 17 22 38

But the most interesting thing. I have logged in with the same login on the same time and playing.

@ketoo
Copy link
Owner

ketoo commented Jul 15, 2018

Yes, the old one you logged should be kicked from the server, I will fix it soon.

ketoo added a commit that referenced this issue Nov 8, 2018
ketoo added a commit that referenced this issue Nov 8, 2018
ketoo added a commit that referenced this issue Nov 8, 2018
ketoo added a commit that referenced this issue Sep 22, 2019
@ketoo ketoo closed this as completed Mar 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants