when a host in Dune 2000 selects a map someone that joins doesn't have, in less than a minute it will disconnect the host from cncnet and cancel the game. I was told the code is written in PHP (which I'm getting more and more familiar with). The way I understand it the code very roughly looks or should look something like this:
Question
Shaokhan
Hi,
when a host in Dune 2000 selects a map someone that joins doesn't have, in less than a minute it will disconnect the host from cncnet and cancel the game. I was told the code is written in PHP (which I'm getting more and more familiar with). The way I understand it the code very roughly looks or should look something like this:
===================================================
Client side code (cncnet):
$downloadfiles = missingmap.map (or missingmap.mis) + missingmap.ini
$MapNotPresent = check if selected map is present for user X (true/false);
if ($MapNotPresent = false) {
send query to server to request map download ($downloadfiles) from host to server;
once complete, create files for write access with file names ($downloadfiles) locally
receive data
close files
}
IF (confirmation info received = true) {
echo "Map missingmap was successfully downloaded";
show button to /restart
}
Server side code:
receive query to request map download from host ($downloadfiles);
create files for write access with file names ($downloadfiles)
download data from both files
upload files to player X
close files
send confirmation info to client side
===================================================
If I get provided with the right files, I think (and hope) I should be able to fix it.
Link to comment
Share on other sites
15 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now