Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Tutorial] Fix some errors in Doom MMO V3 and Untouched I:SS

Junior Spellweaver
Joined
Mar 26, 2011
Messages
194
Reaction score
13
Re: [TUTORIAL] Fix some errors in Doom MMO V3 and Untouched I:SS

facedev here in my server when I change it to true can no longer enter the map of the disconnect


int CJobUpdateChar::Exec()
{
float startTime = r3dGetTime();

bool updateCharEnable=true;



you can do the server tuturial with this source you this using?

it would help a lot to who is starting
 
Last edited:
Skilled Illusionist
Joined
May 17, 2013
Messages
309
Reaction score
206
Re: [TUTORIAL] Fix some errors in Doom MMO V3 and Untouched I:SS

'Untouched I:SS'

First this is not untuched, because @TheAomsin2526
have did some things, i have download it and check, this is only source without DoomMMO IP's.

 
Newbie Spellweaver
Joined
Apr 24, 2013
Messages
72
Reaction score
46
Re: [TUTORIAL] Fix some errors in Doom MMO V3 and Untouched I:SS

vinxo i solved this in db
 
Newbie Spellweaver
Joined
Oct 25, 2013
Messages
80
Reaction score
8
Re: [TUTORIAL] Fix some errors in Doom MMO V3 and Untouched I:SS

gorhan2009

look for this code and remove
#ifdef DISABLE_GI_ACCESS_ON_PTE_MAP
if(gServerLogic.ginfo_.channel==6) // public test environment server, do not save any info about player, as those maps might have game breaking loot\changes, so let's not propagate them to the rest of the game
updateCharEnable=false;
#endif
#ifdef DISABLE_GI_ACCESS_ON_PTE_STRONGHOLD_MAP
if(gServerLogic.ginfo_.channel==6 && gServerLogic.ginfo_.mapId==GBGameInfo::MAPID_WZ_Cliffside) // public test environment server, do not save any info about player, as those maps might have game breaking loot\changes, so let's not propagate them to the rest of the game
updateCharEnable=false;
#endif
#ifdef DISABLE_GI_ACCESS_FOR_CALI_SERVER
if(gServerLogic.ginfo_.mapId==GBGameInfo::MAPID_WZ_California)
updateCharEnable=false;
#endif

make it look like this

int CJobUpdateChar::Exec()
{
float startTime = r3dGetTime();


bool updateCharEnable=true;

if(updateCharEnable)
{
const wiCharDataFull& slot = CharData;


pugi::xml_document xmlFile;
CUserProfile::SaveCharData(slot, xmlFile);
xml_string_writer xmlBuf;
xmlFile.save(xmlBuf, "", pugi::format_raw);
std::string XmlCharData = xmlBuf.out_;


CWOBackendReq req("api_SrvCharUpdate.aspx");
req.AddSessionInfo(CustomerID, SessionID);
req.AddParam("skey1", g_ServerApiKey);
req.AddParam("CharID", slot.LoadoutID);


// character status
char strGamePos[256];
sprintf(strGamePos, "%.3f %.3f %.3f %.0f", slot.GamePos.x, slot.GamePos.y, slot.GamePos.z, slot.GameDir);
req.AddParam("s1", slot.Alive);
req.AddParam("s2", strGamePos);
req.AddParam("s3", (int)slot.Health);
req.AddParam("s4", (int)slot.Hunger);
req.AddParam("s5", (int)slot.Thirst);
req.AddParam("s6", (int)slot.Toxic);
req.AddParam("s7", slot.Stats.TimePlayed);
req.AddParam("s8", slot.Stats.XP);
req.AddParam("s9", slot.Stats.Reputation);
req.AddParam("sA", slot.GameFlags);
req.AddParam("sB", GD_Diff);
req.AddParam("sC", XmlCharData.c_str());
req.AddParam("r1", ResWood);
req.AddParam("r2", ResStone);
req.AddParam("r3", ResMetal);


//r3dOutToLog("!!! Saved Pos: %s\n", strGamePos);


UpdateChar_SetAttachments(req, slot);
UpdateChar_SetBackpack(req, CharData, OldData);


//trackable stats
req.AddParam("ts00", slot.Stats.KilledZombies);
req.AddParam("ts01", slot.Stats.KilledSurvivors);
req.AddParam("ts02", slot.Stats.KilledBandits);
req.AddParam("ts03", 0);
req.AddParam("ts04", 0);
req.AddParam("ts05", 0);


if(!req.Issue())
{
r3dOutToLog("!!!! UpdateCharThread failed, code: %d, ans: %s\n", req.resultCode_, req.bodyStr_);
return req.resultCode_;
}
}


if(Disconnect)
{
float sleepTime = r3dGetTime() - startTime + DISCONNECT_WAIT_TIME;
if(sleepTime > 0)
::Sleep((int)(sleepTime * 1000));
}


return 0;
}
 
Rival Gamers Owner
Loyal Member
Joined
Jul 7, 2007
Messages
962
Reaction score
161
Re: [TUTORIAL] Fix some errors in Doom MMO V3 and Untouched I:SS

and yet again flying to your rescue at least thank me this time.
Fixed Character, Missions, Objects The Lot
http://forum.ragezone.com/f791/tutorial-source-saving-fixed-charcters-1044988

B6MqMM8 - [Tutorial] Fix some errors in Doom MMO V3 and Untouched I:SS - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Last edited:
Junior Spellweaver
Joined
Sep 18, 2013
Messages
100
Reaction score
64
Re: [TUTORIAL] Fix some errors in Doom MMO V3 and Untouched I:SS

@facedev here in my server when I change it to true can no longer enter the map of the disconnect


int CJobUpdateChar::Exec()
{
float startTime = r3dGetTime();

bool updateCharEnable=true;



you can do the server tuturial with this source you this using?

it would help a lot to who is starting
Post your r3dLog I'll check.
 
Newbie Spellweaver
Joined
Apr 16, 2013
Messages
80
Reaction score
8
Re: [TUTORIAL] Fix some errors in Doom MMO V3 and Untouched I:SS

Server does not start, what's the problem? All IP's changed, IIS configured, all logs clear, Framework 4.0. Sry for my bad English. Thx
facedev - [Tutorial] Fix some errors in Doom MMO V3 and Untouched I:SS - RaGEZONE Forums
 
Last edited:
Newbie Spellweaver
Joined
May 21, 2014
Messages
21
Reaction score
47
Re: [TUTORIAL] Fix some errors in Doom MMO V3 and Untouched I:SS

- Changed cooldown time for 5 seconds.
- Changed rent server price for slot now percent.
- Disabled ServerHop.
- Somethings on master server.

And more.

Hammerpoint do, not me

because someone request.
 
Junior Spellweaver
Joined
Nov 20, 2013
Messages
170
Reaction score
27
Re: [TUTORIAL] Fix some errors in Doom MMO V3 and Untouched I:SS

What did I put exactly in VC ++ Directories - Includes and Libs?
 
Junior Spellweaver
Joined
Nov 20, 2013
Messages
170
Reaction score
27
Re: [TUTORIAL] Fix some errors in Doom MMO V3 and Untouched I:SS

I do not think there is need to include directories, because they are already all included in the solution ;)

Could help with that
Code:
Error    1    error LNK2001: unresolved external symbol "char const * __cdecl r3dError(char const *,...)" (?r3dError@@YAPBDPBDZZ)    BuilderConfig.obj    RSBuild
Error    2    error LNK2001: unresolved external symbol "int _r3d_iLogIndent" (?_r3d_iLogIndent@@3HA)    BuilderConfig.obj    RSBuild
Error    3    error LNK2001: unresolved external symbol "bool __cdecl r3dOutToLog(char const *,...)" (?r3dOutToLog@@YA_NPBDZZ)    BuilderConfig.obj    RSBuild
Error    4    error LNK2001: unresolved external symbol "public: __thiscall pugi::xml_document::xml_document(void)" (??0xml_document@pugi@@QAE@XZ)    BuilderConfig.obj    RSBuild
Error    5    error LNK2001: unresolved external symbol "public: __thiscall pugi::xml_document::~xml_document(void)" (??1xml_document@pugi@@QAE@XZ)    BuilderConfig.obj    RSBuild
Error    6    error LNK2001: unresolved external symbol "public: struct pugi::xml_parse_result __thiscall pugi::xml_document::load_buffer_inplace(void *,unsigned int,unsigned int,enum pugi::xml_encoding)" (?load_buffer_inplace@xml_document@pugi@@QAE?AUxml_parse_result@2@PAXIIW4xml_encoding@2@@Z)    BuilderConfig.obj    RSBuild
Error    7    error LNK2001: unresolved external symbol "public: char const * __thiscall pugi::xml_parse_result::description(void)const " (?description@xml_parse_result@pugi@@QBEPBDXZ)    BuilderConfig.obj    RSBuild
Error    8    error LNK2001: unresolved external symbol "public: class pugi::xml_node __thiscall pugi::xml_node::first_child(void)const " (?first_child@xml_node@pugi@@QBE?AV12@XZ)    BuilderConfig.obj    RSBuild
Error    9    error LNK2001: unresolved external symbol "public: class pugi::xml_node __thiscall pugi::xml_node::child(char const *)const " (?child@xml_node@pugi@@QBE?AV12@PBD@Z)    BuilderConfig.obj    RSBuild
Error    10    error LNK2001: unresolved external symbol "public: bool __thiscall pugi::xml_node::empty(void)const " (?empty@xml_node@pugi@@QBE_NXZ)    BuilderConfig.obj    RSBuild
Error    11    error LNK2001: unresolved external symbol "public: class pugi::xml_node __thiscall pugi::xml_node::next_sibling(void)const " (?next_sibling@xml_node@pugi@@QBE?AV12@XZ)    BuilderConfig.obj    RSBuild
Error    12    error LNK2001: unresolved external symbol "public: char const * __thiscall pugi::xml_node::name(void)const " (?name@xml_node@pugi@@QBEPBDXZ)    BuilderConfig.obj    RSBuild
Error    13    error LNK2001: unresolved external symbol "public: char const * __thiscall pugi::xml_attribute::value(void)const " (?value@xml_attribute@pugi@@QBEPBDXZ)    BuilderConfig.obj    RSBuild
Error    14    error LNK2001: unresolved external symbol "public: class pugi::xml_attribute __thiscall pugi::xml_node::attribute(char const *)const " (?attribute@xml_node@pugi@@QBE?AVxml_attribute@2@PBD@Z)    BuilderConfig.obj    RSBuild
Error    15    error LNK2001: unresolved external symbol "public: __thiscall r3dCamera::r3dCamera(void)" (??0r3dCamera@@QAE@XZ)    main.obj    RSBuild
Error    16    error LNK2001: unresolved external symbol "public: __thiscall r3dLightSystem::r3dLightSystem(void)" (??0r3dLightSystem@@QAE@XZ)    main.obj    RSBuild
Error    17    error LNK2001: unresolved external symbol "public: __thiscall r3dLightSystem::~r3dLightSystem(void)" (??1r3dLightSystem@@QAE@XZ)    main.obj    RSBuild
Error    18    error LNK2001: unresolved external symbol "public: __thiscall r3dFileSystem::r3dFileSystem(void)" (??0r3dFileSystem@@QAE@XZ)    main.obj    RSBuild
Error    19    error LNK2001: unresolved external symbol "public: __thiscall r3dFileSystem::~r3dFileSystem(void)" (??1r3dFileSystem@@QAE@XZ)    main.obj    RSBuild
Error    20    error LNK2001: unresolved external symbol "public: bool __thiscall r3dFileSystem::OpenArchive(char const *)" (?OpenArchive@r3dFileSystem@@QAE_NPBD@Z)    main.obj    RSBuild
Error    21    error LNK2001: unresolved external symbol "float __cdecl r3dGetTime(void)" (?r3dGetTime@@YAMXZ)    main.obj    RSBuild
Error    22    error LNK2001: unresolved external symbol "public: bool __thiscall r3dFileSystem::ExtractFile(class r3dFS_FileEntry const *,char const *)" (?ExtractFile@r3dFileSystem@@QAE_NPBVr3dFS_FileEntry@@PBD@Z)    main.obj    RSBuild
Error    23    error LNK2001: unresolved external symbol "public: static void __cdecl r3dMaterialLibrary::Reset(void)" (?Reset@r3dMaterialLibrary@@SAXXZ)    main.obj    RSBuild
Error    24    error LNK2001: unresolved external symbol "void * r3d_CurrentProcess" (?r3d_CurrentProcess@@3PAXA)    main.obj    RSBuild
Error    25    error LNK2001: unresolved external symbol "struct HINSTANCE__ * win::hInstance" (?hInstance@win@@3PAUHINSTANCE__@@A)    main.obj    RSBuild
Error    26    error LNK2001: unresolved external symbol "void __cdecl RegisterAllVars(void)" (?RegisterAllVars@@YAXXZ)    main.obj    RSBuild
Error    27    error LNK2001: unresolved external symbol "void __cdecl UnregisterAllVars(void)" (?UnregisterAllVars@@YAXXZ)    main.obj    RSBuild
Error    28    error LNK2001: unresolved external symbol "struct HWND__ * win::hWnd" (?hWnd@win@@3PAUHWND__@@A)    main.obj    RSBuild
Error    29    error LNK2001: unresolved external symbol "int _r3d_bTerminateOnZ" (?_r3d_bTerminateOnZ@@3HA)    main.obj    RSBuild
Error    30    error LNK2001: unresolved external symbol "int _r3d_bLogToConsole" (?_r3d_bLogToConsole@@3HA)    main.obj    RSBuild
Error    31    error LNK2001: unresolved external symbol "int _r3d_MatLib_SkipAllMaterials" (?_r3d_MatLib_SkipAllMaterials@@3HA)    main.obj    RSBuild
Error    32    error LNK2001: unresolved external symbol "void __cdecl r3d_actual_assert(char const *,char const *,unsigned int,bool)" (?r3d_actual_assert@@YAXPBD0I_N@Z)    r3dFSBuilder.obj    RSBuild
Error    33    error LNK2001: unresolved external symbol "public: class r3dFS_FileEntry const * __thiscall r3dFS_FileList::Find(char const *)const " (?Find@r3dFS_FileList@@QBEPBVr3dFS_FileEntry@@PBD@Z)    r3dFSBuilder.obj    RSBuild
Error    34    error LNK2001: unresolved external symbol "public: class r3dFS_FileEntry * __thiscall r3dFS_FileList::AddNew(char const *)" (?AddNew@r3dFS_FileList@@QAEPAVr3dFS_FileEntry@@PBD@Z)    r3dFSBuilder.obj    RSBuild
Error    35    error LNK2001: unresolved external symbol "bool __cdecl r3dGetFileCrc32(char const *,unsigned long *,unsigned long *)" (?r3dGetFileCrc32@@YA_NPBDPAK1@Z)    r3dFSBuilder.obj    RSBuild
Error    36    error LNK2001: unresolved external symbol "bool __cdecl getFileTimestamp(char const *,struct _FILETIME &)" (?getFileTimestamp@@YA_NPBDAAU_FILETIME@@@Z)    r3dFSBuilder.obj    RSBuild
Error    37    error LNK2001: unresolved external symbol "public: bool __thiscall r3dFS_FileList::Remove(char const *)" (?Remove@r3dFS_FileList@@QAE_NPBD@Z)    r3dFSBuilder.obj    RSBuild
Error    38    error LNK2001: unresolved external symbol "public: bool __thiscall r3dFileSystem::BuildNewArchive(char const *)" (?BuildNewArchive@r3dFileSystem@@QAE_NPBD@Z)    r3dFSBuilder.obj    RSBuild
Error    39    error LNK2001: unresolved external symbol "struct _iobuf * __cdecl fopen_for_write(char const *,char const *)" (?fopen_for_write@@YAPAU_iobuf@@PBD0@Z)    r3dFSBuilder.obj    RSBuild
Error    40    error LNK2001: unresolved external symbol "public: void __thiscall r3dFileSystem::CloseVolumes(void)" (?CloseVolumes@r3dFileSystem@@QAEXXZ)    r3dFSBuilder.obj    RSBuild
Error    41    error LNK2001: unresolved external symbol "public: void __thiscall r3dFileSystem::RemoveVolumeFiles(void)" (?RemoveVolumeFiles@r3dFileSystem@@QAEXXZ)    r3dFSBuilder.obj    RSBuild
Error    42    error LNK2001: unresolved external symbol "unsigned int __cdecl R3DMESH_BINARY_VERSION_get(void)" (?R3DMESH_BINARY_VERSION_get@@YAIXZ)    r3dFSBuilder.obj    RSBuild
Error    43    error LNK2001: unresolved external symbol "public: __thiscall r3dMesh::r3dMesh(int)" (??0r3dMesh@@QAE@H@Z)    r3dMeshConvert.obj    RSBuild
Error    44    error LNK2001: unresolved external symbol "public: bool __thiscall r3dMesh::Load(char const *,bool,bool,bool)" (?Load@r3dMesh@@QAE_NPBD_N11@Z)    r3dMeshConvert.obj    RSBuild
Error    45    fatal error LNK1120: 44 unresolved externals    ..\..\bin\RSBuild.exe    RSBuild
 
Newbie Spellweaver
Joined
Apr 16, 2013
Messages
80
Reaction score
8
Re: [TUTORIAL] Fix some errors in Doom MMO V3 and Untouched I:SS

facedev, you can put your server source and supervisor, masterserver .cfg files? Thx.
 
Back
Top