|
You last visited: Today at 14:20
Advertisement
Wolfteam Server
Discussion on Wolfteam Server within the Wolfteam forum part of the Shooter category.
04/20/2021, 15:09
|
#1
|
elite*gold: 0
Join Date: Mar 2014
Posts: 18
Received Thanks: 3
|
Wolfteam Server
hello i am working on wolfteam server
But I never managed to open the channels
the files I use
those who want to help:
Discord:ꭺꭰꭼꮇ#4185
Quote:
Originally Posted by warss78
hello i am working on wolfteam server
But I never managed to open the channels
the files I use
those who want to help:
Discord:ꭺꭰꭼꮇ#4185
|
why nobody answers
|
|
|
04/21/2021, 14:48
|
#2
|
elite*gold: 0
Join Date: Jul 2015
Posts: 21
Received Thanks: 4
|
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
|
#3
|
elite*gold: 0
Join Date: Mar 2014
Posts: 18
Received Thanks: 3
|
Quote:
Originally Posted by Lyneix
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
|
#4
|
elite*gold: 0
Join Date: Feb 2021
Posts: 9
Received Thanks: 8
|
Quote:
Originally Posted by Lyneix
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
|
#5
|
elite*gold: 0
Join Date: Jul 2015
Posts: 21
Received Thanks: 4
|
Quote:
Originally Posted by XByteX
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
|
#6
|
elite*gold: 0
Join Date: Mar 2014
Posts: 18
Received Thanks: 3
|
Quote:
Originally Posted by Grid_
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
|
#7
|
elite*gold: 0
Join Date: Dec 2019
Posts: 27
Received Thanks: 1
|
How exactly can I install it?
|
|
|
09/18/2021, 10:51
|
#8
|
elite*gold: 0
Join Date: Mar 2014
Posts: 18
Received Thanks: 3
|
Quote:
Originally Posted by NosNight
How exactly can I install it?
|
Add Me Discord ꭺꭰꭼꮇ#4185
|
|
|
07/07/2023, 18:11
|
#9
|
elite*gold: 0
Join Date: Jun 2014
Posts: 79
Received Thanks: 5
|
can anyone help me discuss it even if 2 years later?
|
|
|
09/21/2023, 02:57
|
#10
|
elite*gold: 0
Join Date: Sep 2018
Posts: 1
Received Thanks: 0
|
Quote:
Originally Posted by ipro491
can anyone help me discuss it even if 2 years later?
|
What do you mean?
|
|
|
12/18/2023, 21:13
|
#11
|
elite*gold: 0
Join Date: Jun 2014
Posts: 79
Received Thanks: 5
|
Can u help with wolfteam server u can add me on discord luciofurry
|
|
|
All times are GMT +1. The time now is 14:23.
|
|