Terraun Posted December 29, 2010 Author Share Posted December 29, 2010 Hey everyone. This is a really simple edit, I know, but I thought it might be helpful to some newer users. First for anyone that doesn't know, the PicScreen is the screen the game is played on. This tutorial is how to change the size of it.–Client Side--1) Open your source and open frmMain.2) Under your bank and trade boxes, there's your PicScreen. Click your PicScreen and go to it's attributes. Find the height and width of the PicScreen. Change these to your likings. ***I have custom values, so my width and height are going to be different than yours***![](http://i51.tinypic.com/xe0fw1.png)![](http://i52.tinypic.com/161mk9e.png)3) After you change these, divide your new values by 32, then subtract the outcome by 1\.4) Now after you have these new values, here's where the code comes in.5)Find:```Public Const MAX_MAPX As Byte = 14```Replace the 11 with your value for width.Find:```Public Const MAX_MAPY As Byte = 11```Replace the 14 with your height value.6) Compile and you're done! You have to delete your maps after you compile. If not you'll get a weird buggy movement until you do.Thanks to Robin for teaching how to do this. Link to comment Share on other sites More sharing options...
Toranos Posted January 5, 2011 Share Posted January 5, 2011 Thanks for this, but isn't it..Public Const MAX_**MAPX** As Byte = **14**Public Const MAX_**MAPY** As Byte = **11**No big deal though. Quite Helpful :) Link to comment Share on other sites More sharing options...
chuchoide Posted January 5, 2011 Share Posted January 5, 2011 He got that wrong, but as you said. Useful. Dont think I use though, i have 30+ maps and I dont want to delete :)Although nice tut. Link to comment Share on other sites More sharing options...
sirsk8aton Posted January 6, 2011 Share Posted January 6, 2011 I tried it out but when I get into game, it gives me negative coords and I can't walk through them. Link to comment Share on other sites More sharing options...
Robin Posted January 6, 2011 Share Posted January 6, 2011 @sirsk8aton:> I tried it out but when I get into game, it gives me negative coords and I can't walk through them.Did you delete your maps? Link to comment Share on other sites More sharing options...
sirsk8aton Posted January 6, 2011 Share Posted January 6, 2011 Well at first, no, but then I deleted them all and still have the same problem. Link to comment Share on other sites More sharing options...
Robin Posted January 6, 2011 Share Posted January 6, 2011 @sirsk8aton:> Well at first, no, but then I deleted them all and still have the same problem.Go back to your backed up source code and re-do the tutorial. Link to comment Share on other sites More sharing options...
sirsk8aton Posted January 6, 2011 Share Posted January 6, 2011 Redid it, same thing keeps happening :S The negative coords go up to how many tiles I added. I can't place any graphics on them either. Link to comment Share on other sites More sharing options...
Robin Posted January 6, 2011 Share Posted January 6, 2011 @sirsk8aton:> Redid it, same thing keeps happening :S The negative coords go up to how many tiles I added. I can't place any graphics on them either.Give me your picScreen width and height and your MaxMapX and MaxMapY. Link to comment Share on other sites More sharing options...
sirsk8aton Posted January 6, 2011 Share Posted January 6, 2011 PicScreen = 640x480Max_MapX = 19Max_MapY = 14 Link to comment Share on other sites More sharing options...
Robin Posted January 6, 2011 Share Posted January 6, 2011 @sirsk8aton:> PicScreen = 640x480> Max_MapX = 19> Max_MapY = 14And you change the MaxMap values both in the server and client? And you did delete the maps in both server and client? Link to comment Share on other sites More sharing options...
sirsk8aton Posted January 6, 2011 Share Posted January 6, 2011 Doh! I forgot to edit the server. Sorry, I'm a noob when it comes to source editing.Well look at that it works :rolleyes: Thanks for the help! Link to comment Share on other sites More sharing options...
Warconn Posted January 20, 2011 Share Posted January 20, 2011 ok, so i increased my picscreen size to 640X800\. Works great except the blitted text, like the map name or player name is greatly decreases almost to unreadable size, and the target works on and off… Sometimes working and sometimes not... Is anyone else having this problem?? Link to comment Share on other sites More sharing options...
Robin Posted January 20, 2011 Share Posted January 20, 2011 @Warconn:> ok, so I increased my picscreen size to 640X800\. Works great except the blitted text, like the map name or player name is greatly decreases almost to unreadable size, and the target works on and off… Sometimes working and sometimes not... Is anyone else having this problem??You didn't follow the tutorial properly. Link to comment Share on other sites More sharing options...
Warconn Posted January 21, 2011 Share Posted January 21, 2011 hmm well i relooked everything over, and re went through the tutorial, and i am doing everything as it says. I changed the constants server-side aswell… I looked at the map editor, and it is registering my mouse 2 tiles below where it really is(if that makes sense). All of the text is still very small.Not to sure where to go from here... Link to comment Share on other sites More sharing options...
Robin Posted January 21, 2011 Share Posted January 21, 2011 @Warconn:> hmm well I relooked everything over, and re went through the tutorial, and I am doing everything as it says. I changed the constants server-side aswell… I looked at the map editor, and it is registering my mouse 2 tiles below where it really is(if that makes sense). All of the text is still very small.> > Not to sure where to go from here...Delete it and start again. Link to comment Share on other sites More sharing options...
Guest Posted January 21, 2011 Share Posted January 21, 2011 Worked great. Now how do I move the Admin panel over? It's sticking in my map and I can't seem to figure out how to get it to appear more to the right.Thanks[EDIT] Figured it out.Find picAdmin.left = xxx and delete this line of code. Then place your admin panel wherever you want it to pop up. (Thanks jcsnider) Link to comment Share on other sites More sharing options...
Warconn Posted January 22, 2011 Share Posted January 22, 2011 @Robin:> Delete it and start again.Thanks for the help, i found the solutions. If you look at the picScreen ScaleHeight/ScaleWidth, i set them to the same as my actual height and width. Not sure what they are used for, but it works great now… Dunno how they got changed in the first place though?? Link to comment Share on other sites More sharing options...
canido Posted August 5, 2011 Share Posted August 5, 2011 I have problems with Block in with map editor```Height = 512Width = 928Public Const MAX_MAPX As Byte = 29Public Const MAX_MAPY As Byte = 16```I have deleted folder Maps Link to comment Share on other sites More sharing options...
aaaron Posted August 5, 2011 Share Posted August 5, 2011 Did you delete the server and client maps? Link to comment Share on other sites More sharing options...
canido Posted August 6, 2011 Share Posted August 6, 2011 yes, I generate the exe in vb6?? Link to comment Share on other sites More sharing options...
quintensky Posted August 12, 2011 Share Posted August 12, 2011 thank you it works PER-FECT Link to comment Share on other sites More sharing options...
erkro1 Posted September 4, 2011 Share Posted September 4, 2011 **Fixed** Link to comment Share on other sites More sharing options...
Ultrasnofire Posted September 21, 2011 Share Posted September 21, 2011 how could i make it that when you click maximize that the max_mapx and max_mapy change? (i already have it so the screen changes size when you maximize and minimize) Link to comment Share on other sites More sharing options...
eusouojiin Posted November 6, 2011 Share Posted November 6, 2011 When I try change the size, show a run-time error 5, and show the line "Call Surface.BltToDC(picBox.hDC, sRECT, dRECT)", in modDirectDraw7\. I did the tutorial 3 times, but always got this error. 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