Search found 27 matches

by HTCraft
18 Dec 2019, 07:35
Forum: SFS2X Questions
Topic: How to protect sourcecode
Replies: 4
Views: 5659

Re: How to protect sourcecode

Unfortunately obfuscation isn't good protection for you code :(
In my humble opinion the best way to do this use C++ critical section code calling from Java and othewise.
Look at https://www.javaworld.com/article/20775 ... h-c--.html
by HTCraft
16 Dec 2019, 17:13
Forum: SFS2X Questions
Topic: Make a custom login
Replies: 13
Views: 13853

Re: Make a custom login

Remove LoginAssistant.jar in lib folder, restart SFS and don't get an error anymore!
Problem is solved!
by HTCraft
16 Dec 2019, 17:03
Forum: SFS2X Questions
Topic: Make a custom login
Replies: 13
Views: 13853

Re: Make a custom login

Lapo wrote: If you are using SmartFoxServer 2X v2.7.0 or later, skip this step as the component is already available.

Please remove the jar file, as it's likely the cause of the problem.
Cheers

Thanks!
:roll:
by HTCraft
16 Dec 2019, 11:35
Forum: SFS2X Questions
Topic: Make a custom login
Replies: 13
Views: 13853

Re: Make a custom login

I downloaded this module from http://docs2x.smartfoxserver.com/Extens ... -assistant
Today I installed the 2.14 version of SFS.
by HTCraft
16 Dec 2019, 06:55
Forum: SFS2X Questions
Topic: Make a custom login
Replies: 13
Views: 13853

Re: Make a custom login

This parameter (customPasswordCheck) is absent in the code of LoginAssistantComponent! public class LoginAssistantComponent { ... private final LoginConfiguration config; ... public LoginConfiguration getConfig() { return this.config; } } package com.smartfoxserver.v2.components.login; import com.sm...
by HTCraft
15 Dec 2019, 13:11
Forum: SFS2X Questions
Topic: Make a custom login
Replies: 13
Views: 13853

Re: Make a custom login

Lapo wrote:The error seem to indicate that you have a compilation issue. Make sure to recompile your code without errors and re-deploy your Extension.

I have done it several times and always get this error :(
No errors with compilation.
by HTCraft
14 Dec 2019, 11:20
Forum: SFS2X Questions
Topic: Make a custom login
Replies: 13
Views: 13853

Re: Make a custom login

When I enable custom password check (line 66 in code) lac.getConfig().customPasswordCheck = true; in the LoginAssistantComponent SFS falls with error ---------------------------------------------------------------------------------------------------------------------------------- Exception in thread...
by HTCraft
13 Dec 2019, 08:48
Forum: SFS2X Questions
Topic: Debuggin SFS2x
Replies: 13
Views: 14022

Re: Debuggin SFS2x

Code in Ext called successfuly (user is created, e-mail is sent e.t.c.) but I cannot catch process at breakpoints.
In the Netbeans I see the running threads.
Thanks for help.
Will think again.
by HTCraft
11 Dec 2019, 18:34
Forum: SFS2X Questions
Topic: Debuggin SFS2x
Replies: 13
Views: 14022

Re: Debuggin SFS2x

Do I understand correct that method init() starts first when extension runs? Will be catched breakpoint at lac = new LoginAssistantComponent(this); ? public class LoginController extends SFSExtension{ private LoginAssistantComponent lac; private final Logger log = LoggerFactory.getLogger(LoginContro...
by HTCraft
11 Dec 2019, 18:07
Forum: SFS2X Questions
Topic: Debuggin SFS2x
Replies: 13
Views: 14022

Re: Debuggin SFS2x

Thanks Lapo,
I've found some errors in SFS log and I'll investigate this issues... Hope it will help me :)
by HTCraft
11 Dec 2019, 11:56
Forum: SFS2X Questions
Topic: SFS 2X can't connect other database
Replies: 4
Views: 5802

Re: SFS 2X can't connect other database

Sometime connection needs define the time zone

Try

Code: Select all

cfg.connectionString = "jdbc:mysql://localhost:3306/****?useSSL=false&serverTimezone=UTC";
by HTCraft
11 Dec 2019, 11:47
Forum: SFS2X Questions
Topic: Debuggin SFS2x
Replies: 13
Views: 14022

Re: Debuggin SFS2x

Does the debugger connect successfully to the remote process? 1. Stop SFS service and start sfs2x.bat Netbeans: 2. Click "Debug / Attach debugger..." 3. Choose "Java Debugger (JPDA)" and "Ok". Tried all options - no effect. 4. Debug still running. 5. Breakpoints don't ...
by HTCraft
11 Dec 2019, 08:33
Forum: SFS2X Questions
Topic: Debuggin SFS2x
Replies: 13
Views: 14022

Re: Debuggin SFS2x

Have done all as described (https://smartfoxserver.com/blog/how-to-debug-your-extensions/). Unfortunately I cannot catch the breakpoints :( They are skipped. What I'm doing wrong? Debug in Netbeans runs well (not stops), Unity runs well (all fuctions work), breakpoints in Visual Studio work, but bre...
by HTCraft
30 Nov 2019, 18:58
Forum: SFS2X Questions
Topic: Guide: How to compile a .jar file for your extension
Replies: 35
Views: 75241

Re: Guide: How to compile a .jar file for your extension

In Netbeans project tree you have to switch to tab Files, open file project.properties and change from build.dir= build to build.dir= ...your...location...\\SFS2X\\extensions\\...your...subfolder... from dist.dir= dist to dist.dir= ...your...location...\\SFS\\SFS2X\\extensions\\...your...subfolder.....

Go to advanced search