I'm going to post an example of what Ozzy has explained. My example simple: Changing the max items from 255 to 500.
Changes to be made: modTypes ~ Server Side modConstants ~ Server Side modTypes ~ Client Side modConstants ~ Client Side
Lets start with the the Server side work. Firstly, modTypes:
Find
Type PlayerInvRec Num As Byte Value As Long Dur As Integer End Type
Then change
Num As Byte to
Num As Integer
Now find
Type MapItemRec Num As Byte Value As Long Dur As Integer
And change
Num As Byte to
Num As Integer
Now, still working with the server side code, lets move to modConstants.
Find
Public Const MAX_ITEMS = 255 And change it to
Public Const MAX_ITEMS As Integer = 500
AND WE HAVE FINISHED THE SERVER SIDE STUFF
Now, let go to the client workstation. First, lets open modconstants and get the easy stuff over with.
In modConstants, find
Public Const MAX_ITEMS = 255 And change it to
Public Const MAX_ITEMS As Integer = 500
Now find
Type PlayerInvRec Num As Byte Value As Long Dur As Integer End Type And lets change
Num As Byte to
Num As Integer
Now find
Type MapItemRec Num As Byte Value As Long Dur As Integer And then change
Num As Byte to
Num As Integer
Also, if you haven't already done so, open up frmItemEditor, and change the scrollbar that calculates the selected item so that it's max is 500 rather than 255.
If you want, you can change 500 to an even higher number. This code technically supports up to 65534 items, becuase an interger = -32,767 through 32,767. Like Ozzy said, roughly 32k.
------------- I grant permission for anyone to alter a tutorial previously posted by me for use in a tutorial submission for MSE, so long as "Originally Coded By Sonire" is credited at the top of the tutorial.
|