Bug 790

Forum rules
NO LONGER BEING MAINTAINED!
Post Reply
User avatar
TeoTwawki
Developer
Posts: 527
Joined: Mon Jul 15, 2013 9:50 pm

Bug 790

Post by TeoTwawki » Tue Aug 06, 2013 10:06 pm

http://bugs.dspt.info/show_bug.cgi?id=790

If I can help in some way in tracking down the problem let me know.

Additionally, if you know of a way I could limit how many character an account can create that would help me a ton. Right now my connection server would crash if someone creates to many mules.
Hi, I run The Demiurge server.


Image
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
PLS USE [ code ] CODE TAGS [ /code ] WHEN POSTING CODE
DO NOT PRIVATE MESSAGE ME ABOUT BUGS

Robert
Posts: 33
Joined: Fri Aug 16, 2013 9:14 am

Re: Bug 790

Post by Robert » Fri Aug 16, 2013 5:10 pm

in the lobby server there is a for loop that is requesting how many content IDs the player has. they have set it to default 16, how ever slot 5 10 and 15 do not work and if you have more then 14 chars it crash's the server and the lobby server, because i believe the size is wrong.

so go to your lobby server code and modify the content ids for loop here is what you are looking for

Code: Select all

 for(int j = 0; j<16; ++j) 
           {
			   
                
				memcpy(CharList+32+140*j, ReservePacket+32, 140);
					char ContentID[3];
					memcpy(ContentID, CharList+32, sizeof(ContentID));
					ContentID[2] += j;

					memcpy(CharList+32+140*j, &ContentID, 3);
					memcpy(uList+16*(j+1),&ContentID, 3);
              
			   
                    
		   }
and set it to 4 that will stop it from crashing and never get to the first slot that is bad.

or set it to 1 so they can only have one player account. you will have lots of problems when you delete and create and login with many getting stuck at download screen

Code: Select all

 for(int j = 0; j<1; ++j) 
           {
			   
                
				memcpy(CharList+32+140*j, ReservePacket+32, 140);
					char ContentID[3];
					memcpy(ContentID, CharList+32, sizeof(ContentID));
					ContentID[2] += j;

					memcpy(CharList+32+140*j, &ContentID, 3);
					memcpy(uList+16*(j+1),&ContentID, 3);
              
			   
                    
		   }
so if you set it to one you at least limit the problem down to one problem at a time!
good luck best of luck to you.

User avatar
TeoTwawki
Developer
Posts: 527
Joined: Mon Jul 15, 2013 9:50 pm

Re: Bug 790

Post by TeoTwawki » Fri Aug 16, 2013 7:49 pm

Thanks!
Hi, I run The Demiurge server.


Image
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
PLS USE [ code ] CODE TAGS [ /code ] WHEN POSTING CODE
DO NOT PRIVATE MESSAGE ME ABOUT BUGS

Post Reply