Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online
You last visited: Today at 16:26

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



"Debug Assertion Failed"

Discussion on "Debug Assertion Failed" within the Silkroad Online forum part of the Popular Games category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2008
Posts: 95
Received Thanks: 8
"Debug Assertion Failed"

Hey guys,

I was going to play Azgard SRO and downloaded their whole client, unfortunately the following error I get:

Debug Assertion Failed
Expression : 0
Line : 831
file: \vss-od\Silkroad\client\client\client.cpp (I don't even have that direction tho)

CallStack:



Any help?

Regards,
Nabot
Nabot is offline  
Old 12/25/2013, 21:35   #2
 
elite*gold: 0
Join Date: Jan 2010
Posts: 17
Received Thanks: 0
+1
aviram3122 is offline  
Old 05/27/2017, 19:17   #3
 
dovildas's Avatar
 
elite*gold: 0
Join Date: Dec 2008
Posts: 296
Received Thanks: 61
+1 cus so many years and still none aswers to this problem....
dovildas is offline  
Old 12/04/2017, 04:12   #4
 
elite*gold: 0
Join Date: Jul 2009
Posts: 19
Received Thanks: 0
+1 waiting
zsolti900 is offline  
Old 12/04/2017, 13:32   #5
 
elite*gold: 100
Join Date: Apr 2008
Posts: 860
Received Thanks: 1,465
This is an issue with the "Silkroad.dat". The error is thrown when the Silkroad.dat is non-existent. Some servers tend to rename this file because its "cool". Try creating a file named "Silkload.dat". Yes. SilkLoad not SilkRoad. Maybe it works, maybe it got renamed.

Also make sure your path to the Silkroad folder is not longer than 256 - strlen("Silkload.dat") (= 243) characters. Because, as you can see in the code below, Silkroad only supports up to 256 characters in total.

Check address 0x00DD29B8 if you need to know which filename it is.

Related code of the init_xtrap function.
Code:
void __stdcall init_xtrap()
{
  FILE *File;
  DWORD ThreadId;
  string str;
  char v8[256];
  char fn_module[260];
  char filename[260];

  // Get Filepath of sro_client.exe
  GetModuleFileNameA(0, fn_module, sizeof(fn_module));
  std::string str;
  str.assign(fn_module);

  // We want to build a new path for the Silkload.dat
  // We need to remove the sro_client.exe from the path
  // C:\Program Files\Silkroad Online\sro_client.exe
  //                                 ^
  // Just terminate the string here by setting it to zero!
  // Thats what we do here
  ch = '\\';
  size_t pos = str.find_last_of(&ch, -1, 1);
  fn_module[pos] = 0;

  // Assemble new filename+path
  sprintf_s(filename, sizeof(filename), "%s\\Silkload.dat", fn_module);

  // Init buffer for weird data
  memset(&v8[0], 0, sizeof(v8));

  // Open file
  if ( fopen_s(&File, filename, "rt") )
  {
    // Throw error if file is not existing or non-accessable
    nullsub_1();
    assert(831, "D:\\vss-od\\Silkroad\\Client\\client\\Client.cpp", "0", "'xtrap.txt' Is not existing.. Using");
  }
  // Read data and close file
  fscanf_s(File, "%s", v8, sizeof(v8));
  fclose(File);

  // XTrap would start here, but i deleted it Kappa

  // We still need this thread, tho :(
  CreateThread(0, 0, &XTrapWatcherThread, 0, 0, &ThreadId);

  // No idea, sorry.
  if ( str.size() >= 0x10 )
    sub_402AE0(str.payload.pc_str, str.size + 1);
}
florian0 is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
C++ Debug Assertion Failed
09/13/2011 - C/C++ - 8 Replies
Moin Leute, ich bin gerade dabei mir einen Hardware ID Generator zu schreiben, ich mache das über die Serien Nummer der Festplatte. Zum Test wollte ich mir jetzt einmal die Seriennumer in einem Label ausgeben, wenn ich die erstellte Form starte und auf Start klicke, erhalte ich folgende Fehlermeldung: ImageShack® - Online Photo and Video Hosting
Assertion failed: (m_pUsedList==NULL && "CDynamicPool::~CDynamicPool() - NOT Clear"),
09/10/2011 - Metin2 Private Server - 2 Replies
Virtual PC: Assertion failed: (m_pUsedList==NULL && "CDynamicPool::~CDynamicPool() - NOT Clear"), Help! ananızı sikim bi konuşun ya
Assertion failed: (m_pUsedList==NULL && "CDynamicPool::~CDynamicPool() - NOT Clear"),
08/26/2011 - Metin2 Private Server - 2 Replies
Hi friends I have problem in server, such as the title Would help channel1 auth db game99
Assertion failed: (m_pUsedList==NULL && "CDynamicPool::~CDynamicPool() - NOT Clear"),
08/26/2011 - Metin2 Private Server - 0 Replies
Hi friends I have problem in server, such as the title Would help Hi friends I have problem in server, such as the title Would help
Debug Assertion Failed <<< new problem =/
05/17/2007 - Silkroad Online - 4 Replies
hi guys!! i bought a new comp couple days ago and i tried to run SRO on it. once i almost finished update, it says cant recover gameguard file and let me restart my comp after i restarted comp , this msg always shows up when i try to open SRO! "Debug Assertion Failed. Expression : 1 Line : 175 File : D:&#092;VSS-OD&#092;Silkroad&#092;SRO_ Launcher&#092;BSClient&#092;TextStringMana ger.cpp CallStack:



All times are GMT +2. The time now is 16:26.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.