Jump to content

Tankbuster

Member
  • Content Count

    8191
  • Joined

  • Last visited

  • Medals

Posts posted by Tankbuster


  1. Aha. I've been told off for just plopping php into an html file and expecting it to work before. Please continue to take the mickey! biggrin_o.gif

    Anyhoo... I've changed it as Daddl suggested but it's still not working. After a pause of 1 minute, the page generates the infamous "image broken" red cross.

    The script and htm live in the same directory and I've tried using the entire url or just the file name with the same result.


  2. I tried Daddl's one first, but I'll be honest I'm not particulary aufait with PHP, especially includes. Here's the code snippet from my index.htm page;

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> <table width="85%" border="0" cellspacing="0" cellpadding="0">

             <tr>

               <td><font color="#000000"> </font></td>

    <?php

    include 'http://www.teamspaff.co.uk/pDSSQ.php';

    ?>

             </tr>

           </table>

    However, this doesn't get parsed. If I look at the source code from the resulting webpage, the php hasn't been parsed.

    So, I tried plan B. have the include statement in a small php file of its own and calling that. This doesn't produce expected result either after a pause it produces;

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Warning: main(http://www.teamspaff.co.uk/pDSSQ.php): failed to open stream: HTTP request failed! $Ôl¶ą in /home/teamsp1/public_html/serverquery.php on line 2

    Warning: main(): Failed opening 'http://www.teamspaff.co.uk/pDSSQ.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/teamsp1/public_html/serverquery.php on line 2


  3. Guy, I wonder if this is possible?

    I'd like to have a link on my webpage that displays a nice graphic when my standalone server is up and a not so nice one when it isn't. smile_o.gif

    Maybe it should even say how may people are on the server.

    Has this already been done or is it easy to implement?


  4. or even easier. try to add the magazine BEFORE the weapon.

    like this

    This addMagazine "laserdesignator"; this addWeapon "laserdesignator"

    becouse, if you want the weapon to start loaded you should ALWAYS enter the magazine before the weapon, and since the laserdesignator cant be reloaded in game this is extra important in this case smile_o.gif

    hope it works smile_o.gif

    That didn't work. Same unloaded LD problem.

    Nip into mission editor, go to west, search the men for Black Op, Laser.

    Then test it.

    That worked!


  5. Yes crosshairs are enabled.

    I've taken some screenshots to illustrate my problem.

    Firstly, from a test mission I've made, you can see the designator is not working. Here is the init string I've given this soldier;

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this AddWeapon "laserdesignator";  this addMagazine "laserdesignator";

    lasernotworking.jpg

    And below is a screenshot from Operation Stormhammer.

    laserworking.jpg

    You'll note that in the top picture, the weapon name in the top left corner is red, which I take to mean "unloaded", but of course, there is no way to "reload" an LD and in any case, I have given the man a magazine, as you can see in the soldier init string.

    Given that in the lower picture, where you can see the designation dot and it's working, (the A-10 pilot says he can see it) the weapon name is in green writing and indeed, has a round up the spout, so to speak, I'm assuming this "unloaded LD" is the problem.

    Does anyone have any ideas?

    Thanks in advance,

    Paul


  6. Update! We haven't got it sussed! sad_o.gif

    I've given my man a laser designator and a magazine for it, but it doesn't work. It doesn't seem to "activate"; there's no red dot projected.

    Am I doing something wrong?

    I've been able to designate targets successfuly using the OH-58.


  7. Guys,

    Further to my laser designator thread, we have this working now, but we used a OH-58 to illuminate the targets in a test map.

    My question is where in the editor is the handheld designator? You know, the one with the tripod. I can't find it in any of the weapons cache things you add to the map.

    Thanks in advance,

    Tanky


  8. Guys,

    I've been playing a couple of missions that have laser designators, namely Operation Snakebite and Operation Stormhammer.

    We've had trouble making it work as expected. I thought that one player would point the LD at a target and the LGB A10 would come along, drop the bomb near the target and the bomb would hit where the designator was pointing.

    Needless to say, it didn't work. In Snakebite, I had the target illuminated nicely, the pilot came in from 800 ft and dove onto the target, but the bomb missed by a considerable margin. This isnt a huge problem as the mission can still be completed.

    In Stormhammer, it means we are stuck and at the moment, we are actually considering that the whole concept of designation isn't actually modeled in these missions and is just for show.

    So, could anyone give me some guidance on how to make this work for us?

    Thanks in advance,


  9. Guys,

    Hello all. Just a little thing I'd like your opinion on.

    I have a laptop PC next to me which runs my standalone server (GOTY edition). It's a powerful machine, a 3 meg P4 with half a gig of ram. When it hosts a game and as the mission proper starts (the shooting stage, not briefing etc) the CPU load goes to 100% and stays there until the mission is over, even if there is only one player present.

    Is this normal? I only ask as if I host a SWAT4 dedicated server on the same machine, CPU load with 6 players is only 40%.

    Most odd. Any help greatly appreciated.

×