igloo9 Posted July 25, 2010 Author Share Posted July 25, 2010 I changed both MAP X and Y on client and server. I set it to different settings now (At first I had the default 14, 9) Now I changed it to 15, 19\. And uh… Everything is normal sized, except there's some glitches. The chat box is kind of messed up and my character is slightly off center...he's always on the side of the screen. Also, I think there's BIT more of a viewing range. However, the actual size of the client itself is still the same size. ._.I'll try deleting my maps too, but I need the actual size of the client changed, too. Not just the viewing space/sprite size/resolution, but the size. Link to comment Share on other sites More sharing options...
emblem Posted July 25, 2010 Share Posted July 25, 2010 Yeah, in theory deleting your maps should fix it. Link to comment Share on other sites More sharing options...
igloo9 Posted July 25, 2010 Author Share Posted July 25, 2010 @Tylian!:> Yeah, in theory deleting your maps should fix it.Deleting my maps didn't do anything other than…delete the maps. :/But, there's still 2 problems.1\. The chat box is kind of weird.2\. The client screen isn't any bigger. After everything I've edited, the only thing that's changed is the sprite/tile sizes and the viewing range, but the actual client itself is the same size. (480x384)Edit: And my character is still off center. Usually, on a map, when you walk, the camera starts to move when you're in the center. On here, it starts to move when he's more to the right of the screen. And not only that, he eventually goes OFF the screen. o_O Link to comment Share on other sites More sharing options...
emblem Posted July 25, 2010 Share Posted July 25, 2010 That's because the game is drawn to picScreen.Make sure that ALL of picScreen is showing.In order to do that, you need to resize the form.Aaand in order to resize the form, remove this line from Sub Form_Load in frmMainGame.``` Me.width = 10545``` Link to comment Share on other sites More sharing options...
Saito00 Posted July 25, 2010 Share Posted July 25, 2010 > In the Form_Load sub of frmMainGame, change this to your desired width:> Code: [Select]> Me.width = 10545Oh that was it! Thanks a lot man!Robin wrote in one topic about that me.width but i have no idea to look for it in a frorm code… And am tootally newb yet with VB and programming in total :rolleyes:2CoolxIt should work, reread this topic (but dont touch PIC size it should be 32) Link to comment Share on other sites More sharing options...
igloo9 Posted July 25, 2010 Author Share Posted July 25, 2010 @Tylian!:> That's because the game is drawn to picScreen.> > Make sure that ALL of picScreen is showing.> In order to do that, you need to resize the form.> > Aaand in order to resize the form, remove this line from Sub Form_Load in frmMainGame.> ```> Me.width = 10545> > ```Where's Sub Form_Load? :| Link to comment Share on other sites More sharing options...
emblem Posted July 25, 2010 Share Posted July 25, 2010 @Coolx:> Where's Sub Form_Load? :|@Tylian!:> this line from Sub Form_Load in frmMainGame. Link to comment Share on other sites More sharing options...
igloo9 Posted July 25, 2010 Author Share Posted July 25, 2010 @Tylian!:> @Coolx:> > > Where's Sub Form_Load? :|> > @Tylian!:> > > this line from Sub Form_Load in frmMainGame.Yeah, I meant where in frmMainGame. I can't find it. Link to comment Share on other sites More sharing options...
emblem Posted July 25, 2010 Share Posted July 25, 2010 Right click, view code on frmMainGame.Or while in design mode, double click anywhere that has no control on it.(Aka. A spot where you can see the weird dot grid.) Link to comment Share on other sites More sharing options...
igloo9 Posted July 25, 2010 Author Share Posted July 25, 2010 o_o It worked. Thanks! I have 2 more questions if you don't mind.1\. Is there a way to fix this mess?: ![](http://i31.tinypic.com/2lnkg1.png)2\. The chatbox won't show what you're typing. Is there a way to fix that? Link to comment Share on other sites More sharing options...
emblem Posted July 25, 2010 Share Posted July 25, 2010 1…? Resize the chatbox.2\. There's a control that you type your messages in, you probably hid it behind picScreen by accident. Link to comment Share on other sites More sharing options...
igloo9 Posted July 25, 2010 Author Share Posted July 25, 2010 Thanks so much! It's fine now. I love this. xD I'm gonna try some new things out now…Thanks again!Edit: Wait, I have one more problem. The cursor is off-center. So like, if I want to target something, I have to click above them and to the left a little bit. How do I fix that? Link to comment Share on other sites More sharing options...
emblem Posted July 25, 2010 Share Posted July 25, 2010 That's due to the way you have MAX_MAPX/MAX_MAPY.I just wanna confirm something, can you post the following info, directly copy and pasted from the source if possible?* The MAX_MAPX and MAX_MAPY constants from modConstants, client side.* The MAX_MAPX and MAX_MAPY constants from modConstants, server side.* The width and height of your picScreen. Link to comment Share on other sites More sharing options...
igloo9 Posted July 25, 2010 Author Share Posted July 25, 2010 Sure.Client:Public Const MAX_MAPX As Byte = 16 ' Width 17 - 1Public Const MAX_MAPY As Byte = 11 ' Width 12 - 1Server:Public Const MAX_MAPX As Byte = 16 ' Width 17 - 1Public Const MAX_MAPY As Byte = 11 ' Width 12 - 1picScreenWidth: 640Height: 480 Link to comment Share on other sites More sharing options...
emblem Posted July 25, 2010 Share Posted July 25, 2010 Yep, that's why your game looks stretched. The two need to match up.Now, you have a choice. either keep your picScreen the current size, or resize it.>! Change this on both client side and server side to the code below.```Public Const MAX_MAPX As Byte = 19Public Const MAX_MAPY As Byte = 14>! ```>! Change picScreen's properties to the following.```Width: 544Height: 384>! ```Pick one. :p Link to comment Share on other sites More sharing options...
igloo9 Posted July 25, 2010 Author Share Posted July 25, 2010 I did the first one. It fixed the centering issues, but now the map is weird. There's blank space that I can't map on or walk on.For example, when the map /loc says I'm standing on 0,0, I'm actually on like… 4,4\. So there's a big black upside down L on the map where I can't walk on or add tiles.Do you need a screenshot? Link to comment Share on other sites More sharing options...
emblem Posted July 25, 2010 Share Posted July 25, 2010 Try deleting your maps again. :xIf that doesn't work, screenshot. Link to comment Share on other sites More sharing options...
igloo9 Posted July 25, 2010 Author Share Posted July 25, 2010 Oh yeah, I forgot to do that. xD Anyway, I did and it worked. Thanks. By the way, what would have happened if I chose option 2? Would it have been the opposite, meaning the screen size is smaller, but the sprites and tiles are bigger? (Like it's zoomed in) Link to comment Share on other sites More sharing options...
emblem Posted July 25, 2010 Share Posted July 25, 2010 Nah. Your screen size would have just been smaller. :p Link to comment Share on other sites More sharing options...
igloo9 Posted July 25, 2010 Author Share Posted July 25, 2010 Oh. xD Alright, well thanks for the help. Link to comment Share on other sites More sharing options...
trautmen Posted July 26, 2010 Share Posted July 26, 2010 pomůže mi nÄ›kdo s rozliÅ¡enÃÂm 800x600? 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