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

  • Group: Members
  • Posts: 187
  • Joined: 17-August 12

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

  • Group: Members
  • Posts: 187
  • Joined: 17-August 12

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

ninjapop12 Icon : (11 December 2016 - 05:00 AM)
wow
VoFchic Icon : (10 December 2016 - 11:53 PM)
Привет! созданы все правила исключения для исполняемых файлов игры и тангл в антивирусе ESET. Однако в игре по сети не вижу ни одного игрока.В чате игроков вижу. Порты настроены,тест прошли.
economicalth... Icon : (10 December 2016 - 12:19 PM)
hello everynyan. can anyone of you please tell me how do i remove inactive friends from my tunngle.. i know how to remove them but each time i restart tunngle they re-appears is there a local file that is controlling this madness so i can edit/remove it ?

-thx
Mike Harper Icon : (10 December 2016 - 11:14 AM)
Some people with the same problem reported that they got it solved by using the new test version: https://www.tunngle....files-download/ :)
Meshuggah BG Icon : (10 December 2016 - 04:13 AM)
clicking it gonna open a page with info about what could be possible causing this error and how to solve it
Meshuggah BG Icon : (10 December 2016 - 04:11 AM)
when an error message pops up, there's a button "Help" on it, next to the "OK" button
Meshuggah BG Icon : (10 December 2016 - 04:10 AM)
i just started my Tunngle client and it connected without any problems, guys
koosh69 Icon : (10 December 2016 - 03:17 AM)
peeps, i keep getting (4-104) could not reach the tunngle master server. whats up with that? i dont think the servers are down or under maintenance because i was able to login using a vpn as a test.. any ideas?
egynono Icon : (10 December 2016 - 01:29 AM)
any help for (4-104) could not reach the tunngle master server (2) ?
UNDER_GREY Icon : (09 December 2016 - 10:43 PM)
Omsk1993, во что именно?
Meshuggah BG Icon : (09 December 2016 - 10:04 PM)
WASD, Space, LMB, RMB, Omsk :P
Omsk1993 Icon : (09 December 2016 - 09:41 PM)
как играть
Omsk1993 Icon : (09 December 2016 - 09:41 PM)
rfr
UNDER_GREY Icon : (09 December 2016 - 09:32 PM)
Есть)
maro50025 Icon : (09 December 2016 - 09:14 PM)
Is there one here?
maro50025 Icon : (09 December 2016 - 09:14 PM)
hi guys
kozart1982 Icon : (09 December 2016 - 09:06 PM)
Живые есть?
Mike Harper Icon : (09 December 2016 - 05:33 PM)
If you can't connect in Tunngle, then you can setup Port_Forward :).
If you're not able to connected in game then you can check this wiki: Troubleshooting#Can.27t_find-join-host_a_game :)
Mike Harper Icon : (09 December 2016 - 05:18 PM)
Hey mate :). Are you not being able to connect in Tunngle or in-game?
adrianwc Icon : (09 December 2016 - 04:51 PM)
hey guys, my nsunsr showed that i cannot connect to session when i tried to connect to my friend's session
UNDER_GREY Icon : (09 December 2016 - 10:21 AM)
UNDER_GREY Icon : (09 December 2016 - 10:21 AM)
VoFchic, у вас созданы правила исключения для исполняемых файлов игры и тангл в антивирусе и брандмауэре виндовс?
ChesterNIK1986 Icon : (09 December 2016 - 09:49 AM)
где скачать оффлайн версию?
pedrosisa Icon : (08 December 2016 - 11:59 PM)
hola alguien quiere jugar al Mean greens
VoFchic Icon : (08 December 2016 - 09:31 PM)
Заранее благодарю
VoFchic Icon : (08 December 2016 - 09:31 PM)
Не могу соединиться с сервером игроков.При проверке порта пишет - порт открыт, игроков в чате вижу, могу общаться, при выборе и
запуске игры ни кого не вижу. может дело в антивирусе ESET, хотя отключал файервол и защиту.
VoFchic Icon : (08 December 2016 - 09:22 PM)
Привет! помогите разобраться!
rares215 Icon : (08 December 2016 - 02:20 PM)
I'm sorry if I'm bothering but I still can't play Monaco with my friend and we really wanted to play it. :(
Does anyone have a guide for it? I followed the Tunngle Community Guide step by step but didn't get GreenLuma because that's broken, and it didn't work.
CalmanKhan Icon : (08 December 2016 - 01:31 PM)
hello everyone
nomenus25 Icon : (08 December 2016 - 07:47 AM)
Hello people , I would like to change / remove the automatic extension thing from my account , can someone help me?
Resize Chat Area