Deucalion 249 Posted December 6, 2014 Share Posted December 6, 2014 Hi Can you tell me in which file I can change id limit? I mean that if i have e.g weapon with vnum 65534 or 65535 everything is fine, but when vnum is e.g 65536 i mean if vnum > 65535 then the model is invisible. I've tried to find something in source files in client, but i've nothing ;/ So can you tell me how can i change it? I will be grateful Regards Deucalion Link to comment Share on other sites More sharing options...
Deucalion 249 Posted December 8, 2014 Author Share Posted December 8, 2014 bump Link to comment Share on other sites More sharing options...
Honorable Member NoFr1ends 751 Posted December 8, 2014 Honorable Member Share Posted December 8, 2014 It's not just a limit. It's because of short int Kind regards Chuck 1 Link to comment Share on other sites More sharing options...
Deucalion 249 Posted December 8, 2014 Author Share Posted December 8, 2014 And you know where I can change it e.g into long int ? I can't find anything with short int and connected with item id/vnum ;/ Link to comment Share on other sites More sharing options...
Deucalion 249 Posted December 10, 2014 Author Share Posted December 10, 2014 F5 Link to comment Share on other sites More sharing options...
Deucalion 249 Posted December 12, 2014 Author Share Posted December 12, 2014 Anyone? Link to comment Share on other sites More sharing options...
nostradame37 1 Posted December 12, 2014 Share Posted December 12, 2014 in your db in the conf.txt change the item id range Link to comment Share on other sites More sharing options...
Deucalion 249 Posted December 13, 2014 Author Share Posted December 13, 2014 I already have: ITEM_ID_RANGE = 2000000000 2500000000 http://msdn.microsoft.com/en-us/library/vstudio/s3f49ktz%28v=vs.110%29.aspx I've tried to find wchar_t , unsigned short and unsigned __int16, but I found nothing useful ;/ Can anyone help me with this? Link to comment Share on other sites More sharing options...
Active Member Koray 2001 Posted December 13, 2014 Active Member Share Posted December 13, 2014 Already table limit 2147483647(int) Already source limit const static DWORD cs_dwMaxItemID = 4290000000UL; interesting problem Link to comment Share on other sites More sharing options...
Deucalion 249 Posted December 13, 2014 Author Share Posted December 13, 2014 So in 'ItemIdRangeManager.h' is defined const static DWORD cs_dwMaxItemID = 4290000000UL; and it is a unsigned long So I must change e.g in 'tables.h' from typedef struct tItemAwardInformer { char login[LOGIN_MAX_LEN + 1]; char command[20]; //¸í·Éľî unsigned int vnum; //ľĆŔĚĹŰ } TPacketItemAwardInfromer; to typedef struct tItemAwardInformer { char login[LOGIN_MAX_LEN + 1]; char command[20]; //¸í·Éľî unsigned long vnum; //ľĆŔĚĹŰ } TPacketItemAwardInfromer; I understand correctly? Link to comment Share on other sites More sharing options...
Deucalion 249 Posted December 26, 2014 Author Share Posted December 26, 2014 Can anyone help me with this? I have changed things in tables.h, and others and still the same ;/ If vnum is > 65535 model is not showing in the game. Link to comment Share on other sites More sharing options...
Night 366 Posted December 26, 2014 Share Posted December 26, 2014 if i understood correctly , this does not have a relation with the server its a binary thing Link to comment Share on other sites More sharing options...
Deucalion 249 Posted December 26, 2014 Author Share Posted December 26, 2014 I've searched also in binary solution, but I can't find nothing what may be useful in this case ;/ Link to comment Share on other sites More sharing options...
NewWars 33 Posted June 16, 2016 Share Posted June 16, 2016 I also searched for int16 and ushorts, debugged model and icon path to see if they get correctly loaded and its all fine, but the limitation is no where to be found. Im sure it is on the client binary tho, but already analised alot of logic functions and i dont see any failure. Regards Link to comment Share on other sites More sharing options...
NewWars 33 Posted June 19, 2016 Share Posted June 19, 2016 Btw i forgot about WORD, its 2 byte sized, a windows typdef that normaly is ushort. And the problem is in Character Parts, they deal with the vnums about visual items on characters. Hope to have helped something. Link to comment Share on other sites More sharing options...
Vassy 2 Posted March 10, 2017 Share Posted March 10, 2017 UP Link to comment Share on other sites More sharing options...
Seryov 17 Posted January 31, 2018 Share Posted January 31, 2018 bump Link to comment Share on other sites More sharing options...
MrKarpiuk 124 Posted August 22, 2018 Share Posted August 22, 2018 Refresh for me Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now