!!! r3d_assert 'slot >= 0 && slot < w.BackpackSize
Code:
001898.885| DeletePlayer: PvpArquiel, playerIdx: 3
001899.029| peer18 PKT_C2S_JoinGameReq: CID:1021142, ip:177.100.124.135
001899.083| !!! r3d_assert 'slot >= 0 && slot < w.BackpackSize' at ..\..\..\src\EclipseStudio\Sources\GameCode\UserProfile.cpp line 197
001899.084| !!! crashed
001899.084| Creating minidump at logss\GS_4000003327c42.dmp
001899.382| Minidump created.
this happens when a character enters the map
Custom ID :1021142 < some char it
Re: !!! r3d_assert 'slot >= 0 && slot < w.BackpackSize
Comment that line, then recompile your server.sln.
Worked for me.
Re: !!! r3d_assert 'slot >= 0 && slot < w.BackpackSize
Re: !!! r3d_assert 'slot >= 0 && slot < w.BackpackSize
hmm its brain thinking time..
what is a assert
Code:
If the argument expression of this macro with functional form compares equal to zero (i.e., the expression is false), a message is written to the standard error device and abort is called, terminating the program execution.
so lets look at why..
Code:
slot >= 0 && slot < w.BackpackSize
the slot is Greater than or equal to zero to the return value of slot wich is greater than backpacksize
reason you get this error is because it returned false instead of true.
Re: !!! r3d_assert 'slot >= 0 && slot < w.BackpackSize
Quote:
Originally Posted by
jonnybravo
hmm its brain thinking time..
what is a assert
Code:
If the argument expression of this macro with functional form compares equal to zero (i.e., the expression is false), a message is written to the standard error device and abort is called, terminating the program execution.
so lets look at why..
Code:
slot >= 0 && slot < w.BackpackSize
the slot is Greater than or equal to zero to the return value of slot wich is greater than backpacksize
reason you get this error is because it returned false instead of true.
http://www.cplusplus.com/doc/tutorial/operators/
Code:
static void parseCharBackpack(pugi::xml_node xmlItem, wiCharDataFull& w)
{
// enter into items list
xmlItem = xmlItem.first_child();
while(!xmlItem.empty())
{
wiInventoryItem itm;
parseInventoryItem(xmlItem, itm);
int slot = xmlItem.attribute("s").as_int();
r3d_assert(slot != 0 && slot < w.BackpackSize); // <--- ?
//r3d_assert(slot == 0 && slot < w.BackpackSize); // <--- ?
r3d_assert(w.Items[slot].InventoryID == 0);
w.Items[slot] = itm;
xmlItem = xmlItem.next_sibling();
}
return;
}
be so?