Tompwnage Posted June 7, 2010 Author Share Posted June 7, 2010 Alright I've been playing around with VB 6.0 and learned alot from it. But something confused me. In order to change the number of maps, items, spells, ect I need to change the modconstants. So I did, for example # of items lim was 255 and so I changed it to 350 to test it out.Public Const MAX_ITEMS As Byte = 350then I saved it, launched the server and logged in. When I checked the items in the editor the item lim was still 255\. In my head I was like how could this be? So I went to the server and reloaded the items. Then checked again and still the lim was 255\. I don't know what went wrong.Can someone please give me some inside on how this works?Thanks for reading my post.-Tompwnage Link to comment Share on other sites More sharing options...
Robin Posted June 7, 2010 Share Posted June 7, 2010 They're set as 'byte'. You can only set it as a value between 0 and 255.Change it to integer or long if you want more. Link to comment Share on other sites More sharing options...
Ruins of Hell Posted June 7, 2010 Share Posted June 7, 2010 As Byte means it can't be more than 255\. Change it to As Integer.You have to compile it (File > Make server.exe) in order for it to save the changes.Warning - while you were typing a new reply has been posted. You may wish to review your post.:sad: Link to comment Share on other sites More sharing options...
Tompwnage Posted June 7, 2010 Author Share Posted June 7, 2010 @Robin:> They're set as 'byte'. You can only set it as a value between 0 and 255.> > Change it to integer or long if you want more.Sorry a bit confused, basicly:Public Const MAX_ITEMS As Integer = 350 Link to comment Share on other sites More sharing options...
Robin Posted June 7, 2010 Share Posted June 7, 2010 Make sure you set that on both the server and client. Link to comment Share on other sites More sharing options...
Tompwnage Posted June 7, 2010 Author Share Posted June 7, 2010 @Soul:> As Byte means it can't be more than 255\. Change it to As Integer.> > You have to compile it (File > Make server.exe) in order for it to save the changes.> > Warning - while you were typing a new reply has been posted. You may wish to review your post.> > :sad:Alright, sorry but I got a error. I did as so and made another server.exeWhen I ran it I got as follows:Run-time error '10048'Address in use Link to comment Share on other sites More sharing options...
balliztik1 Posted June 7, 2010 Share Posted June 7, 2010 You have 2 servers open. Link to comment Share on other sites More sharing options...
Tompwnage Posted June 7, 2010 Author Share Posted June 7, 2010 @Ballie:> You have 2 servers open.Woops didn't notice thanks, I ran the new server logged in and it didn't work same 255.robin you mentioned I had to change something in the client side? Umm where in there I am not sure. Link to comment Share on other sites More sharing options...
Robin Posted June 7, 2010 Share Posted June 7, 2010 modConstants… the same value you changed server-side. Link to comment Share on other sites More sharing options...
Tompwnage Posted June 7, 2010 Author Share Posted June 7, 2010 Alright thanks for the replys! I got it working :azn:Seriously, thank you.-Tompwnage Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now