Commit 6c25f9bd authored by Legodev's avatar Legodev

ADDED: offset to unixtime to work around the precission loss of armas floating...

ADDED: offset to unixtime to work around the precission loss of armas floating point conversion (rebase to the legodev year

July 18, 2018 -> 1468800000
parent c9fce8f3
......@@ -120,16 +120,22 @@ print(out)
#out= instance.ExecuteAndPrint("getRandomNumberList", ["type","int","amount","20","start","-10","end","10"])
#print(out)
#print("\n\n")
#out= instance.ExecuteAndPrint("getEpochTime", [])
#print(out)
#print("\n\n")
#out= instance.ExecuteAndPrint("getDateTimeArray", [])
#print(out)
out= instance.ExecuteAndPrint("getUnixTime", [])
print(out)
print("sleeping 2 seconds")
sleep(2)
out= instance.ExecuteAndPrint("getUnixTime", [])
print(out)
print("\n\n")
out= instance.ExecuteAndPrint("initdb", ["worlduuid", "11e71379043c8906833008626681de3d"])
print("\n\n")
out= instance.ExecuteAndPrint("getDateTimeArray", [])
print(out)
sleep(1)
#out= instance.ExecuteAndPrint("initdb", ["worlduuid", "11e71379043c8906833008626681de3d"])
#print(out)
#sleep(1)
#print("\n\n")
#out= instance.ExecuteAndPrint("loadPlayer", [
......@@ -263,31 +269,31 @@ sleep(1)
#print(out)
#
#print("\n\n")
out= instance.ExecuteAndPrint("createObject", [
"classname", stringgenerator(8),
"priority", "2",
"type", "1",
"accesscode", "",
"locked", "0",
"playeruuid", "",
"hitpoints", "[]",
"damage", "0.1",
"fuel", "0.9",
"fuelcargo", "0.0",
"repaircargo", "0.0",
"items", "[]",
"magazinesturret", "[]",
"variables", "[]",
"animationstate", "[]",
"textures", "[]",
"direction", "23.5",
"positiontype", "0",
"positionx", "21.42",
"positiony", "666.9",
"positionz", "133.7",
"positionadvanced", "[[1,2,3]]",
"reservedone", "[]",
"reservedtwo", "[]"])
#out= instance.ExecuteAndPrint("createObject", [
#"classname", stringgenerator(8),
#"priority", "2",
#"type", "1",
#"accesscode", "",
#"locked", "0",
#"playeruuid", "",
#"hitpoints", "[]",
#"damage", "0.1",
#"fuel", "0.9",
#"fuelcargo", "0.0",
#"repaircargo", "0.0",
#"items", "[]",
#"magazinesturret", "[]",
#"variables", "[]",
#"animationstate", "[]",
#"textures", "[]",
#"direction", "23.5",
#"positiontype", "0",
#"positionx", "21.42",
#"positiony", "666.9",
#"positionz", "133.7",
#"positionadvanced", "[[1,2,3]]",
#"reservedone", "[]",
#"reservedtwo", "[]"])
#out= instance.ExecuteAndPrint("createObject", [
#"classname", stringgenerator(8),
#"priority", "2"])
......@@ -327,13 +333,13 @@ print(out)
#
# print("\n\n")
start = time.time()
#start = time.time()
out= instance.ExecuteAndPrint("dumpObjects", [])
print(out)
#out= instance.ExecuteAndPrint("dumpObjects", [])
#print(out)
end = time.time()
print(end - start)
#end = time.time()
#print(end - start)
# for x in range(0, 100):
# out= instance.ExecuteAndPrint("dumpObjects", [])
# print(out)
......
......@@ -18,7 +18,7 @@
#ifndef SOURCE_CONSTANTS_HPP_
#define SOURCE_CONSTANTS_HPP_
#define DLLVERSIONSTRING "[1,0,3,4]"
#define DLLVERSIONSTRING "[1,0,3,5]"
#define CONFIG_FILE_NAME "libredex.cfg"
/*
......
......@@ -69,7 +69,8 @@ std::string datetime::getDateTimeArray(std::string &extFunction, ext_arguments &
std::string datetime::getEpochTime(std::string &extFunction, ext_arguments &extArguments) {
std::stringstream returnString;
std::time_t now = std::time(0);
returnString << now;
std::time_t legoDevYear = now - 1468800000;
returnString << legoDevYear;
return "[\"" + std::string(PROTOCOL_MESSAGE_TYPE_MESSAGE) + "\"," + returnString.str() + "]";
}
......@@ -2,8 +2,8 @@
#define PRODUCT_NAME_STR "libredex"
#define PRODUCT_DESCRIPTION "Desolation Redux Arma3 callExtension"
#define VER_VERSION 1,0,3,4
#define VER_VERSION_STR "1.0.3.4"
#define VER_VERSION 1,0,3,5
#define VER_VERSION_STR "1.0.3.5"
VS_VERSION_INFO VERSIONINFO
FILEVERSION VER_VERSION
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment