Remember Me


Forgotten Password?

Tunngle Community: KK's Helicopter Crash Sites Script (Saintly) - Tunngle Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

KK's Helicopter Crash Sites Script (Saintly) Rate Topic: -----

#1 User is offline   Killzone_Kid Icon

  • Advanced Tunngler
  • PipPipPipPipPip
  • Group: Members
  • Posts: 187
  • Joined: 17-August 12
  • Tunngle Username: Killzone_Kid
Reputation: 32
Average

Posted 19 September 2012 - 18:11

<?php

//path to arma2oaserver.RPT

$RPT_file = "D:\Program Files (x86)\Bohemia Interactive\ArmA 2\Saintly\arma2oaserver.RPT";

echo '<pre>';

if ($handle = fopen($RPT_file, "r")) {

    while (($buffer = fgets($handle)) !== false){
        
		if (preg_match ('/crashed helicopter/',$buffer)){
		
			echo $buffer;
		}
    }
	
    fclose($handle);
}

echo '</pre>';

?>


This script will show the time and coordinates of the helicopter crash site spawns. This is for Saintly but may work for other builds too.

Change the path to arma2oaserver.RPT file to match your setup, save the code as crash_sites.php, put it in /inetpub/wwwroot directory and run it from http://yourserverip/crash_sites.php

Enjoy.
0

#2 User is offline   Killzone_Kid Icon

  • Advanced Tunngler
  • PipPipPipPipPip
  • Group: Members
  • Posts: 187
  • Joined: 17-August 12
  • Tunngle Username: Killzone_Kid
Reputation: 32
Average

Posted 21 September 2012 - 19:22

Well here is even better way of showing heli wrecks!

1. Find your dayz_server.pbo
2. unpack it with cpbo.exe
3. open server_functions.sqf for edit (should be in /init folder)
4. add (in red)

spawn_heliCrash = {
private["_mark_wrecked","_position","_veh","_num","_config","_itemType","_itemChance","_weights","_index","_iArray"];

waitUntil{!isNil "BIS_fnc_selectRandom"};
if (isDedicated) then {
_position = [getMarkerPos "center",0,4000,10,0,2000,0] call BIS_fnc_findSafePos;
diag_log("DEBUG: Spawning a crashed helicopter at " + str(_position));

_mark_wrecked = createMarker ["Wreck at "+str(_position),_position];
_mark_wrecked setMarkerType "waypoint";
_mark_wrecked setMarkerPos (_position);
_mark_wrecked setMarkerColor "ColorRed";
_mark_wrecked setMarkerText " ";


_veh = createVehicle ["UH1Wreck_DZ",_position, [], 0, "CAN_COLLIDE"];
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_veh];
_veh setVariable ["ObjectID",1,true];
dayzFire = [_veh,2,time,false,false];
publicVariable "dayzFire";
if (isServer) then {
nul=dayzFire spawn BIS_Effects_Burn;
};

5. repack dayz_server.pbo
6. start the server
7. profit


What this does is it adds markers on the map for heli wrecks every time they are generated. So anyone with a map will see this: http://cloud.steampo...782235C3F42F2A/

which makes having map suddenly pretty useful :)

This post has been edited by Killzone_Kid: 21 September 2012 - 23:06

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Toggle chat Chat

ccGH0STcc Icon : (20 December 2014 - 12:05 PM)
why its not working on 7dtd
ccGH0STcc Icon : (20 December 2014 - 12:05 PM)
COMMUNITY SERVERLIST
Gametype: SDK Survival | IP:Port = 7.31.190.236:25000
ccGH0STcc Icon : (20 December 2014 - 12:05 PM)
s
mshlmc79 Icon : (20 December 2014 - 11:03 AM)
# Mike, I found some... Folders 'scoped_dir*' should be moved from the TEMP variable to Tunngle directory. The user may not be aware of them when purges the system using the program clear. For example: CCleaner cleans the system and removes empty folders, including 'scoped_dir*'. This violates the stability of the app. The only way out is to restart Tunngle. Continue to observe... Posted Image
mshlmc79 Icon : (20 December 2014 - 09:34 AM)
Thnks, Mike ; // It would be easier to make a switch in the settings. For example: 'minimize the game when you receive a private message in chat'. Good luck. Posted Image Posted Image
Mike Harper Icon : (20 December 2014 - 03:26 AM)
@mudavunts: You can find info here: Network:7_Days_to_Die :).
Mike Harper Icon : (20 December 2014 - 03:24 AM)
@Neos21: New and updated Tunngle client will be released soon, it's almost ready ;)
Mike Harper Icon : (20 December 2014 - 03:23 AM)
@mshlmc79: That's an issue related to Tunngle. However this issue is already fixed in the newer version of Tunngle (which will be released soon) ;).
Mike Harper Icon : (20 December 2014 - 03:22 AM)
Hi mates :)
mudavunts Icon : (20 December 2014 - 12:55 AM)
10.2 ******* and on x64 win
mudavunts Icon : (20 December 2014 - 12:54 AM)
Hey, is here someone who knows how to set up a connection in 7DTD
mudavunts Icon : (20 December 2014 - 12:54 AM)
hry
NuckBone Icon : (20 December 2014 - 12:13 AM)
magyarok hozzátok szólok most büfögjön aki itt van :D
Neos21 Icon : (19 December 2014 - 10:28 PM)
Bookmark
Neos21 Icon : (19 December 2014 - 10:27 PM)
Tunngle Need New Update...
Neos21 Icon : (19 December 2014 - 10:27 PM)
this chat is crazyyyyyyyyyyyyyyy D:<
Neos21 Icon : (19 December 2014 - 10:26 PM)
lol ?
Neos21 Icon : (19 December 2014 - 10:26 PM)
We've noticed that you've been inactive for over 6 minute(s).
We've stopped running the Chat due to your inactivity.
If you are back again, please click the I'm Back button below.
OlegUkrainec Icon : (19 December 2014 - 09:58 PM)
9
Ryan_Sousa Icon : (19 December 2014 - 08:29 PM)
..
mshlmc79 Icon : (19 December 2014 - 08:14 PM)
# maybe it has to do with OS or something Posted Image
mshlmc79 Icon : (19 December 2014 - 08:10 PM)
Mike, please read this ; // me and my friend are going to play the game (no matter). His words: when he receives a message in a private chat (app), the game minimizes to the desktop. It has something in common with Tunngle or not? If Yes, please suggest the solution. Posted Image
xxRocKxx Icon : (19 December 2014 - 06:20 PM)
:nono:
Mike Harper Icon : (19 December 2014 - 06:18 PM)
:D Posted Image :thumbup:
xxRocKxx Icon : (19 December 2014 - 06:12 PM)
:)
xxRocKxx Icon : (19 December 2014 - 06:12 PM)
я бэтмен
Mike Harper Icon : (19 December 2014 - 04:54 PM)
@kizco819: Tunngle games (LAN games) live forever, that's why we love them :). For instruction about playing Torchlight 2 with Tunngle, see this wiki: Network:Torchlight_II :).
Mike Harper Icon : (19 December 2014 - 04:53 PM)
Hello mates :)
PEDRO_AHMED55 Icon : (19 December 2014 - 04:30 PM)
hello
kizco819 Icon : (19 December 2014 - 04:14 PM)
does torchlight 2 still work here?
Resize Chat Area