Skip to content

Commit

Permalink
Update trespasser_remaster.nut
Browse files Browse the repository at this point in the history
  • Loading branch information
Brain-dawg committed Nov 25, 2024
1 parent 2d4b3ab commit d0a7341
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/vscripts/trespasser_remaster.nut
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ if(hObjectiveResource && hObjectiveResource.IsValid()) hObjectiveResource.Accept

//test database read
VPI.AsyncCall({func="VPI_DB_Trespasser_ReadWrite", kwargs={query_mode="read", network_id=sNetworkIDSlice}, callback=function(response) {
printl(response)
foreach (r in response)
printl(r)
if (typeof(response) != "array" || !response.len())
{
printl("empty");
Expand Down Expand Up @@ -321,7 +322,8 @@ if(hObjectiveResource && hObjectiveResource.IsValid()) hObjectiveResource.Accept
local sNetworkIDSlice = sNetworkID.slice(5, sNetworkID.find("]"))
//test database write
VPI.AsyncCall({func="VPI_DB_Trespasser_ReadWrite", kwargs={query_mode="write", network_id=sNetworkIDSlice, wins=Array[0], solo_win=Array[1], all_survivors_alive_win=Array[2]}, callback=function(response) {
printl(response)
foreach (r in response)
printl(r)
}})
}
}
Expand Down

0 comments on commit d0a7341

Please sign in to comment.