Jump to content

Campaign Co-Op Tacmap


Recommended Posts

Each player will need two computers but...

I created a home-server so that client players could connect to my computer via a web browser

e.g htttp://my.ip.address/tacmap_images_folder/

Then I took in-game screenshots of the tactical map,

saving them automatically to the local folder i.e /tacmap_images_folder/

Web browser then shows 'index of/tacmap_images_folder'

the images are dated and in order so on refresh (about 10 seconds) client players have a tactical map.

Really useful for showing fellow players where snipers are.

One solution at least. :thumbsup:

Edited by Palyarmerc
Link to comment
Share on other sites

Is nobody interested in this ? :huh:

No wonder developers aren't creating the game I want :P

I have it now so that the other computers browser will update the screenhot every 30 seconds. no having to use a mouse to navigate the images, the last Tactical Map picture will display by default.

You can pretend it's a real sat-map if you use a laptop :P

Link to comment
Share on other sites

OK someone, somewhere, may want this for co-op campaigns, so...

You'll need to know how to host a site from home (two computers to play too, but)

also you'll need FRAPS (purchased copy) or a free screen-grabber that takes jpegs as they are smaller for quick upload to the net.

The gallery is by DynamicDrive but I have modified it a bit, zipped it, and created a download called...

Screenshot 2 webpage

available in our downloads, in the Ghost Recon section and includes a readme.txt with instructions.

http://www.nomandown.com/

Link to comment
Share on other sites

  • 6 months later...

Sorry for bumping a really old thread, but this is the first time I noticed this.

What a clever tool for hardcore tactical players! Kudos to Palyarmerc for coming up with this, I've never seen anything quite like it.

Link to comment
Share on other sites

it still grieves me that the tacmap is un-available for GRAW [GR] co-op too...

anyway, glad you liked my TacMap solution for GRAW2 - it worked for a while, but we realised after some time that playing no-respawn everyone gets used to where the enemy are, and how many, and a brief confirmation from the Squad Leader (game-host) on TeamSpeak, who has access to the Tacmap, was more than enough to complete the game - still, it was fun and had it uses... :rocky:

Link to comment
Share on other sites

  • 4 years later...


OK here it is re-worked again.

If you know how ...(sorry about this bit)... to host websites !

1. Use FRAPS or similar to capture .jpg's.
2. Use PHP Photo Album script- at dynamicdrive(dot)com

(If you don't want to handle the whole thing on your local server - otherwise see original method)
Create a directory on both local and online websites you administrate called 'tacmapup'
create any image, and save as 'grawtacmap.jpg' to both local and remote 'tacmapup' folders.
In your local server, save the following as upload.php, run it in your local tacmapup folder

and run a web browser that will auto-refresh the script.

<?php
?>

<html><body>
<script language='javascript' type='text/javascript'>setTimeout('location.reload();',10000);</script>
</body></html>

<?php

$path = ".";
$latest_ctime = 0;
$latest_filename = '';

$d = dir($path);
while (false !== ($entry = $d->read())) {
$filepath = "{$path}/{$entry}";
if (is_file($filepath) && filectime($filepath) > $latest_ctime) {
$latest_ctime = filectime($filepath);
$latest_filename = $entry;
}
}

$filename = 'grawtacmap.jpg';
if ("{$latest_filename}" == "grawtacmap.jpg") { echo "File Exists"; } else {
rename("{$latest_filename}","grawtacmap.jpg");

$file = "grawtacmap.jpg";
$remote_file = "/public_html/tacmapup/grawtacmap.jpg";

$ftp_server = "ftp.yoursite";
$ftp_user_name = "yourusername";
$ftp_user_pass = "yourpassword";

$conn_id = ftp_connect($ftp_server);
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
// upload a file
if (ftp_put($conn_id, $remote_file, $file, FTP_BINARY)) {
echo "successfully uploaded $file\n";
} else {
echo "There was a problem while uploading $file\n";
}

ftp_close($conn_id);
}

?>




Use the Dynamic Gallery Script in the Online Site to update the last screenshot every 30 seconds, while
the above script will FTP upload every 30 seconds (only if FRAPS has created a new image).


As host, take screenshots and leave the upload.php open in a browser window while you play.
My example image at www.nomandown.co.uk/tacmapup/gallery.php

Edited by Palyarmerc
Link to comment
Share on other sites

Oh, one last thing. If you can't host a local server (wamp or xamp or whatever) you can always just use...

FRAPS and Dropbox - No scripting, just have FRAPS save to you public image folder.

Thing I like about my last bit of code is it doesn't fill your drives with screenshots, The last image is always overwritten.

Edited by Palyarmerc
Link to comment
Share on other sites

  • 3 weeks later...

Currently woking on a Grid Map Overlay. Just need to create a decent overlay png.

Don't forget this idea has uses in other games. A friend suggested it's usefulness in IL2 Cliffs of Dover, for showing players which buildings had been destroyed at an airfield. Gotta think outside the box.

http://nomandown.co.uk/tacmapup/gallery.php

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...