violentbedlinen
Member
Lovely tool, thanks. Forgive me if wrong, but I think it needs updating for use with Epoch 1.0.1.3 as new elements of the traders data doesn't show up completely.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
no connection to DB or not enough RIGHTS.
When i push "Test", and i enter correct DB information and instalation was sucessful done
im getting the same error "no connection to DB or note enough rights.
i've created a separate DB for the tools created a new user - given it elevated rights- i can connect to the DB via HiediSQL.
any ideas
cheers
A
Ignore the test... I was never able to get that to work on mine either. Fill out all info and install... you can edit the config directly or in "settings" later if you still have issue.
Many thanks nightmare.... this makes life much easier.
1.0.1 version lags. Why ? With 1.0.0 all work fast.
I can't get this to work, I get #WRONG HIVE SCHEMA#
Any ideas, I'm running reality?
when I hit the install.php page I get a 403 access denied to this resource.
I have PHP installed on my webhost and I even tried to set the permissions on all the files to 757 or 777.
I'm lost![]()
This script set correctly direction and Z coordinate when you use 3D SQF Mission Parser!Yeah, i create new script with fixes, please add it to your build
<?php
defined('PRIVATEHIVETOOLS') or die('no direct access');
function missionParser($mission){
global $_POST;
$rows = explode("\n",$mission);
array_shift($rows);
for($i=0;$i<count($rows);$i++)
{
$direction = 0;
if (strpos($rows[$i],'_this = createVehicle [') !== false)
{
$strings = explode("\"",$rows[$i]);
$firstOpenBracket = strpos($rows[$i], "[");
$secondOpenBracket = strpos($rows[$i], "[", $firstOpenBracket + strlen("]"));
$firstCloseBracket = strpos($rows[$i], "]");
if (strpos($rows[$i+2],'_this setDir') !== false)
{
$firstSpace = strpos($rows[$i+2]," ");
$secondSpace = strpos($rows[$i+2]," ",$firstSpace+strlen(" "));
$thirdSpace = strpos($rows[$i+2]," ",$secondSpace+strlen(" "));
$forthSpace = strpos($rows[$i+2]," ",$thirdSpace+strlen(" "));
$period = strpos($rows[$i+2],";");
$direction = substr($rows[$i+2],$forthSpace+1, $period-$forthSpace-1);
}
$pos = "[$direction," . substr($rows[$i],$secondOpenBracket, $firstCloseBracket-$secondOpenBracket+1) . "]";
$pos = str_replace(array(' '), '',$pos);
$newPos = explode(",",$pos);
if (count($newPos) == 3)
{
$pos = "[$direction," . substr($rows[$i],$secondOpenBracket, $firstCloseBracket-$secondOpenBracket) . ",0]]";
$pos = str_replace(array(' '), '',$pos);
}
$userDataClassNameQuery[] = $row['class_name'];
$matchFound = 0;
for($j=0;$j<count($userDataClassNameQuery)-1;$j++)
{
if ($strings[1] == $userDataClassNameQuery[$j])
{
$matchFound = 1;
}
}
$id++;
$CLASSNAME = $strings[1];
$WORLDSPACE = $pos;
if ($_POST['submit']=='vehicle'){
insert_vehicle($CLASSNAME,$WORLDSPACE);
}
if ($_POST['submit']=='deploy'){
insert_deploy($CLASSNAME,$WORLDSPACE);
}
}
}
}
function insert_deploy($CLASSNAME,$WORLDSPACE) {
global $db,$INSTANCE,$WORLD_ID;
$TIME = date("Y-m-d G:i:s", time());
$ID = generateID(5);
$unique_id = generateID(30);
$vehicle = $db->query("SELECT `id` FROM `building` WHERE `class_name` = '".secure($CLASSNAME)."' ");
if(mysqli_num_rows($vehicle) == false) {
$db->query("INSERT INTO `building` SET `id` = '".secure($ID)."', `class_name` = '".secure($CLASSNAME)."' ");
}else{
$v = mysqli_fetch_assoc($vehicle);
$ID = $v['id'];
}
$db->query("INSERT INTO `instance_building` SET
`building_id` = '".secure($ID)."',
`instance_id` = '".secure($INSTANCE)."',
`worldspace` = '".secure($WORLDSPACE)."',
`created` = '".$TIME."'
");
return true;
}
function insert_vehicle($CLASSNAME,$WORLDSPACE) {
global $db,$INSTANCE,$WORLD_ID;
$TIME = date("Y-m-d G:i:s", time());
$ID = generateID(4);
$vehicle = $db->query("SELECT `id` FROM `vehicle` WHERE `class_name` = '".secure($CLASSNAME)."' ");
if(mysqli_num_rows($vehicle) == false) {
$db->query("INSERT INTO `vehicle` SET `id` = '".$ID."', `class_name` = '".secure($CLASSNAME)."' ");
}else{
$v = mysqli_fetch_assoc($vehicle);
$ID = $v['id'];
}
$world_vehicle = $db->query("SELECT `id` FROM `world_vehicle` WHERE `vehicle_id` = '".secure($ID)."' ");
if(mysqli_num_rows($world_vehicle) == false) {
$db->query("INSERT INTO `world_vehicle` SET `id` = '".secure($ID)."', `vehicle_id` = '".secure($ID)."', `world_id` = '".secure($WORLD_ID)."' ");
}else{
$wv = mysqli_fetch_assoc($world_vehicle);
$ID = $wv['id'];
}
$db->query("INSERT INTO `instance_vehicle` SET
`world_vehicle_id` = '".$ID."',
`instance_id` = '".secure($INSTANCE)."',
`worldspace` = '".secure($WORLDSPACE)."',
`inventory` = '[]',
`parts` = '[]',
`fuel` = '1',
`damage` = '0',
`last_updated` = '".$TIME."',
`created` = '".$TIME."'
");
return true;
}
?>