That's all done in the Studio.
Printable View
SV Logs:
MS Logs:Quote:
000000.238| r3dNetwork: Creating client
000000.378| IP: 192.99.210.98
000000.378| Connecting to master server at 192.99.210.98:34000
000000.378| r3dNetwork: connecting to 192.99.210.98:34000
000000.378| waiting: connecting, 20.0 sec left
000020.378| retrying in 2 sec
000022.390| Connecting to master server at 192.99.210.98:34000
000022.390| r3dNetwork: connecting to 192.99.210.98:34000
000022.390| waiting: connecting, 20.0 sec left
000022.421| r3dNetwork: external ip: 192.99.210.98:34008
000022.421| Supervisor: Connected to master as peer 0
000022.421| waiting: wait for register, 10.0 sec left
000022.468| registered, id: 1
000022.468| LogUploader is disabled
000022.873| StartGame id:0x10100, sess:1000006062aa6, slot:0, creatorID:0
000023.310| game 0x10100 connected at peer0
000023.372| !!!! game 0x10100 probably CRASHED
000023.373| game 0x10100 disconnected from peer0
000023.373| r3dNetwork_Peer_Timeout: 192.99.210.98
000023.903| StartGame id:0x10201, sess:1000006062aa7, slot:1, creatorID:0
000024.308| game 0x10201 connected at peer0
000024.371| !!!! game 0x10201 probably CRASHED
000024.371| game 0x10201 disconnected from peer0
000024.371| r3dNetwork_Peer_Timeout: 192.99.210.98
000024.964| StartGame id:0x10302, sess:1000006062aa8, slot:2, creatorID:0
000025.400| game 0x10302 connected at peer0
000025.494| !!!! game 0x10302 probably CRASHED
000025.494| game 0x10302 disconnected from peer0
000025.494| r3dNetwork_Peer_Timeout: 192.99.210.98
000026.024| StartGame id:0x10400, sess:1000006062aa9, slot:0, creatorID:0
000026.196| Control-c ...
000026.196| Stopping all games
help plzQuote:
000000.003| permgame: ID:1, Colorado #1, MAPID_WZ_Colorado
000000.003| permgame: ID:2, Premium #1, MAPID_WZ_Colorado
000000.005| API: 192.99.210.98
000000.005| r3dNetwork: Creating host at port 34000
000000.132| IP: 192.99.210.98
000000.145| MasterGameServer started at port 34000
000000.145| r3dNetwork: Creating host at port 34001
000000.270| IP: 192.99.210.98
000000.286| MasterUserServer started at port 34001, 20 CCU, need 0 servers to start
000000.286| CMSAsyncApiMgr starting
000000.317| Supervisors: 0, Games:0|0
000005.059| CMSJobGetServerList: got 0 servers
000010.332| Supervisors: 0, Games:0|0
000011.611| master: supervisor registered 'WIN-2C8GVRD1R5H'[1] ip:192.99.210.98. 32 sessions, type:1, map:255
000011.986| starting game 1 at WIN-2C8GVRD1R5H[0], id:0x10100, name 'Colorado #1', pwd '', owner:0
000012.500| game 1, id:0x10100 connected
000012.563| !!! game 1, id:0x10100 closed unexpectedly, id:1, super:WIN-2C8GVRD1R5H, sess:1000006062aa6
000013.031| starting game 1 at WIN-2C8GVRD1R5H[1], id:0x10201, name 'Colorado #1', pwd '', owner:0
000013.499| game 1, id:0x10201 connected
000013.561| !!! game 1, id:0x10201 closed unexpectedly, id:1, super:WIN-2C8GVRD1R5H, sess:1000006062aa7
000014.092| starting game 1 at WIN-2C8GVRD1R5H[2], id:0x10302, name 'Colorado #1', pwd '', owner:0
000014.591| game 1, id:0x10302 connected
000014.684| !!! game 1, id:0x10302 closed unexpectedly, id:1, super:WIN-2C8GVRD1R5H, sess:1000006062aa8
000015.152| starting game 1 at WIN-2C8GVRD1R5H[0], id:0x10400, name 'Colorado #1', pwd '', owner:0
000016.213| starting game 2 at WIN-2C8GVRD1R5H[1], id:0x10501, name 'Premium #1', pwd '', owner:0
000018.711| Control-c ...
execute this query
Code:-- ----------------------------
-- Procedure structure for [dbo].[WZ_Char_SRV_SetStatus]
-- ----------------------------
DROP PROCEDURE [dbo].[WZ_Char_SRV_SetStatus]
GO
CREATE PROCEDURE [dbo].[WZ_Char_SRV_SetStatus]
@in_CustomerID int,
@in_CharID int,
@in_Alive int,
@in_GamePos varchar(256),
@in_GameFlags int,
@in_Health float,
@in_Hunger float,
@in_Thirst float,
@in_Toxic float,
@in_TimePlayed int,
@in_XP int,
@in_Reputation int,
@in_GameDollars int,
@in_Stat00 int,
@in_Stat01 int,
@in_Stat02 int,
@in_Stat03 int,
@in_Stat04 int,
@in_Stat05 int,
@in_ResWood int = 0,
@in_ResStone int = 0,
@in_ResMetal int = 0,
@in_CharData varchar(4000) = ''
AS
BEGIN
SET NOCOUNT ON;
--
-- this function should be called only by server, so we skip all validations
--
-- record last game update and update GameDollars with DELTA value
update UsersData set GameDollars=(GameDollars+@in_GameDollars), lastgamedate=GETDATE() where CustomerID=@in_CustomerID
if(@in_GameDollars > 0) begin
insert into DBG_GDLog (RecordTime, CustomerID, CharID, GameDollars)
values (GETDATE(), @in_CustomerID, @in_CharID, @in_GameDollars)
end
-- update basic character data
update UsersChars set
GamePos=@in_GamePos,
GameFlags=@in_GameFlags,
Alive=@in_Alive,
Health=@in_Health,
Food=@in_Hunger,
Water=@in_Thirst,
Toxic=@in_Toxic,
TimePlayed=@in_TimePlayed,
LastUpdateDate=GETDATE(),
XP=@in_XP,
Reputation=@in_Reputation,
Stat00=@in_Stat00,
Stat01=@in_Stat01,
Stat02=@in_Stat02,
Stat03=@in_Stat03,
Stat04=@in_Stat04,
Stat05=@in_Stat05
where CharID=@in_CharID
-- update generic character data (if provided)
if(@in_CharData <> '')
update UsersChars set CharData=@in_CharData where CharID=@in_CharID
-- update resources
update UsersData set ResWood=@in_ResWood, ResStone=@in_ResStone, ResMetal=@in_ResMetal where CustomerID=@in_CustomerID
if(@in_Alive = 0) begin
update UsersChars set DeathUtcTime=GETUTCDATE() where CharID=@in_CharID
-- set default backpack on death
update UsersChars set BackpackID=20176, BackpackSize=12 where CharID=@in_CharID
-- delete stuff from backpack
delete from UsersInventory where CustomerID=@in_CustomerID and CharID=@in_CharID
exec DBG_StoreApiCall 'Death', 0, @in_CustomerID, @in_CharID
end
select 0 as ResultCode
END
page 2 #30
^^
Thanks you for the release! I use this Api and DB from DNC and work 100% just change de Ip and put the SQL password :junglejane:
https://www.sendspace.com/file/yrcs8d
thanks work 100%!!! but I tryed use the command /stime and doesn't work any idea how to fix it? already I un-commend the function but still doesn't work
Code:/*if(guserprofile.profiledata.isdevaccount && strncmp(s_chatmsg, "/stime", 6) == 0)
{
char buf[256];
int hour, min;
if(3 != sscanf(s_chatmsg, "%s %d %d", buf, &hour, &min))
{
addchatmessage(0, "<system>", "/stime {hour} {min}", 0);
return;
}
__int64 gameutctime = gclientlogic().getservergametime();
struct tm* tm = _gmtime64(&gameutctime);
r3d_assert(tm);
// adjust server time to match supplied hour
gclientlogic().gamestartutctime_ -= tm->tm_sec;
gclientlogic().gamestartutctime_ -= (tm->tm_min) * 60;
gclientlogic().gamestartutctime_ += (hour - tm->tm_hour) * 60 * 60;
gclientlogic().gamestartutctime_ += (min) * 60;
gclientlogic().lastshadowcachereset_ = -1;
addchatmessage(0, "<system>", "client time changed", 0);
return;
}*/
add if(guserprofile.profiledata.isdevaccount && strncmp(s_chatmsg, "/stime", 6) == 0) {
char buf[256];
int hour, min;
if(3 != sscanf(s_chatmsg, "%s %d %d", buf, &hour, &min))
{
addchatmessage(0, "<system>", "/stime {hour} {min}", 0);
return;
}
__int64 gameutctime = gclientlogic().getservergametime();
struct tm* tm = _gmtime64(&gameutctime);
r3d_assert(tm);
// adjust server time to match supplied hour
gclientlogic().gamestartutctime_ -= tm->tm_sec;
gclientlogic().gamestartutctime_ -= (tm->tm_min) * 60;
gclientlogic().gamestartutctime_ += (hour - tm->tm_hour) * 60 * 60;
gclientlogic().gamestartutctime_ += (min) * 60;
gclientlogic().lastshadowcachereset_ = -1;
addchatmessage(0, "<system>", "client time changed", 0);
return;
}
I can't seem to build the "WarZ.sln" without getting errors thrown at me... Can anyone help me in this situation?
Also in the API Build I get these errors -Code:.\Sources\UI\HUD_Spectator.cpp(277) : error C2065: 'd_force_mouse_movement_editor' : undeclared identifier
.\Sources\UI\HUD_Spectator.cpp(277) : error C2227: left of '->GetBool' must point to class/struct/union/generic type
type is ''unknown-type''
HUD_EditorGame.cpp
HUD_Character.cpp
HUD_Base.cpp
SectorMaster.cpp
r3dAtmosphere.cpp
.\Sources\UI\HUD_TPSGame.cpp(1846) : error C2220: warning treated as error - no 'object' file generated
.\Sources\UI\HUD_TPSGame.cpp(1846) : warning C4800: 'uint32_t' : forcing value to bool 'true' or 'false' (performance warning)
Code:Error 12 error C2220: warning treated as error - no 'object' file generated d:\wz\src\eclipsestudio\sources\vanticheat.cpp 1 Eclipse Studio
Error 16 fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "r3dPCH.h"' to your source? d:\wz\src\eclipsestudio\sources\vanticheat.cpp 137 Eclipse Studio
What has this infestation.rar folder that do not have the survivalmmo.rar which the difference between the two ?
Plz help, API problem : IP my external, port 80 SSL false, db pass and name Ok , \Infestation\api\
000000.086| MasterUserServer started at port 34001, 20 CCU, need 0 servers to start
000000.086| CMSAsyncApiMgr starting
000000.117| Supervisors: 0, Games:0|0
000005.041| WO_API: returned http400
000005.041| !!!! CJobGetServerList failed, code: 8
000005.068| CMSAsyncApiWorker 0 job CMSJobGetServerList 02536538 failed
yes build api abyss webserver, root ok \Infestation\api\ , application work other game version,ASP.NET Applications
/Infestation/api 2.0 - 3.5 (x64/64-bit)
launcher registration, patch ok
??? server, GameBlocksSDK ??? Block the api ?
Include ?