View Single Post
  #1  
Old 05-26-2016, 03:56 PM
cyranothedaft
Fire Beetle
 
Join Date: May 2016
Posts: 1
Default defaultstatus setting is unsigned 8-bit

When I use the zones/defaultstatus setting in eqemu_config.xml to specify -1 (suspended), subsequent auto-created accounts get a status of 255, which is undesired. This appears to be because in the server code the EQEmuConfig::DefaultStatus member is declared as uint8, so the -1 is probably getting implicitly converted to 255. The corresponding account.status field in the database is a 32-bit integer, and, to my understanding, is designed to allow values of -1 and -2. It makes sense to me that the defaultstatus eqemu_config.xml setting should allow these as well. I propose changing that member variable's declaration to int16 or int32. (Being unfamiliar with most of the server code, I am unaware of other possible consequences of such a change.)

Thanks for your attention.

- Eric
/ cyranothedaft /

Last edited by cyranothedaft; 05-26-2016 at 03:58 PM.. Reason: added unsigned to title
Reply With Quote