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

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

Save and recompile solution

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




working

Yes but if you change it to false then your players position isnt saved or anything.
 
Re: [TUTORIAL] Fix some errors in Doom MMO V3 and Untouched I:SS

I have a updatechar problem before but now i fixed.

the problem is here
req.AddParam("sC", XmlCharData.c_str());

because the server send a bad characters to the IIS and glitch ( < ? )

if you remove this line, the call will good but will have argument problem.

i know where the problem but i forget how to fix it sorry.
 
Last edited:
Re: [TUTORIAL] Fix some errors in Doom MMO V3 and Untouched I:SS

I have a updatechar problem before but now i fixed.

the problem is here
req.AddParam("sC", XmlCharData.c_str());

because the server send a bad characters to the IIS and glitch ( < ? )

if you remove this line, the call will good but will have argument problem.

i know where the problem but i forget how to fix it sorry.
if you are getting a wo_api: http500 error when the char is trying to update just change the .net framework to 2.0 version on iis :)
 
Re: [TUTORIAL] Fix some errors in Doom MMO V3 and Untouched I:SS

Karoxter facedev TheAomsin2526

I managed to fix in a simple way, the same thing happened to me,
Getting fix the bug when you deslogava or died vc returned with all the loot you were before.
Hope it works for you that has the same error:

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;
}


worked properly not seen any problems yet, I hope to correct yours too and sorry my english)
 
Re: [TUTORIAL] Fix some errors in Doom MMO V3 and Untouched I:SS

facedev prompt, after renting a private server, the server does not start until you connect it to the creator. it's okay?
 
Re: [TUTORIAL] Fix some errors in Doom MMO V3 and Untouched I:SS

i need buy character how to fix

[/IMG]
 
Re: [TUTORIAL] Fix some errors in Doom MMO V3 and Untouched I:SS

How to activate Durability system?
I'll make a tutorial soon.



facedev prompt, after renting a private server, the server does not start until you connect it to the creator. it's okay?
Yes, server not start immediatly, only if you restart server or wait for 1 hour.
 
Re: [TUTORIAL] Fix some errors in Doom MMO V3 and Untouched I:SS

facedev
because when I report my own character map server off?

LOGSS



000579.563| !!! crashed, thread 4812
000579.563| Creating minidump at logss\GS_1000005a64e85.dmp
000584.571| Minidump created.
 
Re: [TUTORIAL] Fix some errors in Doom MMO V3 and Untouched I:SS

@facedev i can't buy recipe help me pls [/IMG]
 
Re: [TUTORIAL] Fix some errors in Doom MMO V3 and Untouched I:SS

@facedev i can't buy recipe help me pls [/IMG]

You add your Recipe in Items_Generic table or other? This problem is because Recipe is from Items_Generic table if you put in other table return error.

Try put your Recipe in Items_Generic table and try buy again.

REMOVED

I tested
facedev - [Tutorial] Fix some errors in Doom MMO V3 and Untouched I:SS - RaGEZONE Forums
 
Last edited:
Back