Wolfteam Server

04/20/2021 15:09 warss78#1
hello i am working on wolfteam server

But I never managed to open the channels


[Only registered and activated users can see links. Click Here To Register...]


the files I use


[Only registered and activated users can see links. Click Here To Register...]

those who want to help:
Discord:ꭺꭰꭼꮇ#4185

Quote:
Originally Posted by warss78 View Post
hello i am working on wolfteam server

But I never managed to open the channels


[Only registered and activated users can see links. Click Here To Register...]


the files I use


[Only registered and activated users can see links. Click Here To Register...]

those who want to help:
Discord:ꭺꭰꭼꮇ#4185
why nobody answers :(
04/21/2021 14:48 Lyneix#2
I have never programmed for wolfteam, but generally each channel has a port , at booting the server sends to the client a list of active channels with names then the client calls a function which enables a button for it in the channel list

After checking the code,

From, /Mateo-M/wtserver/blob/master/database/DatabaseConnection.java, you can see that the origianl coder had some local server "http://localhost/wolfteam/"

From , Mateo-M/wtserver/blob/master/database/Channels.java , One of the files of this server is "channels.php" in this file it handles channels it gets them from a DB and sends them as a response , a function called getChannels() gets the available channels from this php response.

In this file, /Mateo-M/wtserver/blob/master/server/broker/WorldInfoAck.java, the channels you received is made into a packet in a function called getData()


Soln (1):

Create this page "http://localhost/wolfteam/channels.php" and make it respond with the channel name and port so that getChannels() function can get them

The format is:

Channel1Name;Channel1Port;Channel2Name;Channel2Por t;Channel3Name;Channel3Port ... and so on

Soln (2):

Easier solution , but not neat, Instead of making the PHP page, just hardcode the channel port and name.

This is the code:

replace getChannels() function with this one

public ArrayList<Channel> getChannels()
{
ArrayList<Channel> channels = new ArrayList<Channel>();

Channel channel = new Channel("Lyneix", 4444); //The second argument is the port:4444
channels.add(channel)

return channels;
}

EXTRA:

From, "/Mateo-M/wtserver/blob/master/database/Users.java", Another page of the local server was called: "users.php". It was used to access the database to get user related info (kill count ,death count, gold, etc...).



>>>>>Which client are you using ? send it to me i may help you.
>>>>>Update me with the results
04/21/2021 18:14 warss78#3
Quote:
Originally Posted by Lyneix View Post
I have never programmed for wolfteam, but generally each channel has a port , at booting the server sends to the client a list of active channels with names then the client calls a function which enables a button for it in the channel list

After checking the code,

From, /Mateo-M/wtserver/blob/master/database/DatabaseConnection.java, you can see that the origianl coder had some local server "http://localhost/wolfteam/"

From , Mateo-M/wtserver/blob/master/database/Channels.java , One of the files of this server is "channels.php" in this file it handles channels it gets them from a DB and sends them as a response , a function called getChannels() gets the available channels from this php response.

In this file, /Mateo-M/wtserver/blob/master/server/broker/WorldInfoAck.java, the channels you received is made into a packet in a function called getData()


Soln (1):

Create this page "http://localhost/wolfteam/channels.php" and make it respond with the channel name and port so that getChannels() function can get them

The format is:

Channel1Name;Channel1Port;Channel2Name;Channel2Por t;Channel3Name;Channel3Port ... and so on

Soln (2):

Easier solution , but not neat, Instead of making the PHP page, just hardcode the channel port and name.

This is the code:

replace getChannels() function with this one

public ArrayList<Channel> getChannels()
{
ArrayList<Channel> channels = new ArrayList<Channel>();

Channel channel = new Channel("Lyneix", 4444); //The second argument is the port:4444
channels.add(channel)

return channels;
}

EXTRA:

From, "/Mateo-M/wtserver/blob/master/database/Users.java", Another page of the local server was called: "users.php". It was used to access the database to get user related info (kill count ,death count, gold, etc...).



>>>>>Which client are you using ? send it to me i may help you.
>>>>>Update me with the results



Please add me on discord
04/23/2021 13:32 XByteX#4
Quote:
Originally Posted by Lyneix View Post
I have never programmed for wolfteam, but generally each channel has a port , at booting the server sends to the client a list of active channels with names then the client calls a function which enables a button for it in the channel list

After checking the code,

From, /Mateo-M/wtserver/blob/master/database/DatabaseConnection.java, you can see that the origianl coder had some local server "http://localhost/wolfteam/"

From , Mateo-M/wtserver/blob/master/database/Channels.java , One of the files of this server is "channels.php" in this file it handles channels it gets them from a DB and sends them as a response , a function called getChannels() gets the available channels from this php response.

In this file, /Mateo-M/wtserver/blob/master/server/broker/WorldInfoAck.java, the channels you received is made into a packet in a function called getData()


Soln (1):

Create this page "http://localhost/wolfteam/channels.php" and make it respond with the channel name and port so that getChannels() function can get them

The format is:

Channel1Name;Channel1Port;Channel2Name;Channel2Por t;Channel3Name;Channel3Port ... and so on

Soln (2):

Easier solution , but not neat, Instead of making the PHP page, just hardcode the channel port and name.

This is the code:

replace getChannels() function with this one

public ArrayList<Channel> getChannels()
{
ArrayList<Channel> channels = new ArrayList<Channel>();

Channel channel = new Channel("Lyneix", 4444); //The second argument is the port:4444
channels.add(channel)

return channels;
}

EXTRA:

From, "/Mateo-M/wtserver/blob/master/database/Users.java", Another page of the local server was called: "users.php". It was used to access the database to get user related info (kill count ,death count, gold, etc...).



>>>>>Which client are you using ? send it to me i may help you.
>>>>>Update me with the results

Good infos, if you are interesed in it, we can try working developing it together.
04/24/2021 18:09 Lyneix#5
Quote:
Originally Posted by XByteX View Post
Good infos, if you are interesed in it, we can try working developing it together.
Sent to you a PM on elitepvpers
04/25/2021 13:17 warss78#6
Quote:
Originally Posted by Grid_ View Post
Hello everybody, I'm the guy who shared those files on GitHub.
If you plan on finishing those files, do not hesitate to create Pull Requests to add what you've coded into the Git repository.
We couldn't open the channels yet, even you help me (Google Translate)
09/10/2021 16:12 NosNight#7
How exactly can I install it?
09/18/2021 10:51 warss78#8
Quote:
Originally Posted by NosNight View Post
How exactly can I install it?
Add Me Discord ꭺꭰꭼꮇ#4185
07/07/2023 18:11 ipro491#9
can anyone help me discuss it even if 2 years later?
09/21/2023 02:57 r3sta#10
Quote:
Originally Posted by ipro491 View Post
can anyone help me discuss it even if 2 years later?
What do you mean?
12/18/2023 21:13 ipro491#11
Can u help with wolfteam server u can add me on discord luciofurry