clark Posted September 12, 2012 Author Share Posted September 12, 2012 Hey Guys , actually i don't know if you have made a tutorial about changing Map size in sources with vb6 … anyways feel free to correct or complete the code i'm starting a little vb6 so don't blame me!> From Synergy about changing resolution :> > [background=rgb(247, 247, 247)]In modGeneral, find:[/background]> > frmMain.Width = 12090> > frmMain.Height = 9420> > [background=rgb(247, 247, 247)]That is measured in twips, which you can convert to/from pixels [/background][here](http://www.unitconversion.org/typography/pixels-x-to-twips-conversion.html)[background=rgb(247, 247, 247)]. Change that value.[/background]> > [background=rgb(247, 247, 247)]Also make sure you change the screen size in modGraphics:[/background]> > ScreenWidth = 960> > ScreenHeight = 720> > [background=rgb(247, 247, 247)]Change this the value you want in pixels. I don't know if it's strictly needed, but I guess it helps to not have conflicting sizes in the code.[/background]After that :Search for :```' Map constantsPublic Const MAX_MAPS As Long = 100Public Const MAX_MAPX As Byte = 24Public Const MAX_MAPY As Byte = 18Public Const MAP_MORAL_NONE As Byte = 0Public Const MAP_MORAL_SAFE As Byte = 1```You have to divide by 32 the resolution you want for example :1024 divided by 32 = 32768 divided by 32 = 18Then change this :```Public Const MAX_MAPX As Byte = 24Public Const MAX_MAPY As Byte = 18```By this :```Public Const MAX_MAPX As Byte = 32Public Const MAX_MAPY As Byte = 18```Also in the map propriety i changed the x and y value to 98 both (it's seem's to be the maximum with the changes , because 99 will hide your character it don't stop at the window borderActually i don't know if you should only do it for Client , but i suggest you to make it in the Server side too(Make a backup of your project before doing this it's working for me ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) ) Link to comment Share on other sites More sharing options...
tslusny Posted September 12, 2012 Share Posted September 12, 2012 Only EA bro ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png) Link to comment Share on other sites More sharing options...
clark Posted September 12, 2012 Author Share Posted September 12, 2012 Oh ok ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png) Link to comment Share on other sites More sharing options...
tslusny Posted September 12, 2012 Share Posted September 12, 2012 > Oh ok ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)And rename it to Screen size changing, not map size changing ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) Link to comment Share on other sites More sharing options...
clark Posted September 12, 2012 Author Share Posted September 12, 2012 Actually it combine both ^^ Screen resizing and map resizing to fit because some people had a problem the size of the screen was big but the actual map size didn't go up than 50 X and 50 Y so with this it fix ^^ (watch EA engine thread) also your private messages ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png) Link to comment Share on other sites More sharing options...
Darknesslighter Posted September 14, 2012 Share Posted September 14, 2012 The resize works, but there is still a bug, the character sprite walks one tile thru the border on the bottom and right side of the screen.Anybody knows how to fix this on a properly way?EightTray Link to comment Share on other sites More sharing options...
Stein Posted September 14, 2012 Share Posted September 14, 2012 Make the map size 1 smaller than the screen size if I recall correctly. (e.g. dividing your resolution by 32 brings the X value to 24, but to get it to look right you need to take this value and take ONE off of it, making it 23) Link to comment Share on other sites More sharing options...
Etzix Posted October 2, 2012 Share Posted October 2, 2012 I cant get this to work for me. My resolution is 1920x1080 and i dont know what im doing wrong. When i log in the client looks like this V-V ![](http://i.imgur.com/JYjP5.png) Link to comment Share on other sites More sharing options...
blkcrow Posted October 2, 2012 Share Posted October 2, 2012 you didnt convert to twips read the first post again Link to comment Share on other sites More sharing options...
Guest Posted October 2, 2012 Share Posted October 2, 2012 Here's a handy function for converting pixels to twips:```Public Function PixelsToTwips(ByVal pixel_val As Long, ByVal XorY As Byte) As Long If XorY = 0 Then PixelsToTwips = pixel_val * Screen.TwipsPerPixelX ElseIf XorY = 1 Then PixelsToTwips = pixel_val * Screen.TwipsPerPixelY End IfEnd Function```And for Twips to Pixels:```Public Function TwipsToPixels(ByVal twip_val As Long, ByVal XorY As Byte) As Long If XorY = 0 Then TwipsToPixels = twip_val / Screen.TwipsPerPixelX ElseIf XorY = 1 Then TwipsToPixels = twip_val / Screen.TwipsPerPixelY End IfEnd Function``` Link to comment Share on other sites More sharing options...
clark Posted October 3, 2012 Author Share Posted October 3, 2012 Or just a website ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)[http://www.unitconversion.org/typography/pixels-x-to-twips-conversion.html](http://www.unitconversion.org/typography/pixels-x-to-twips-conversion.html) Link to comment Share on other sites More sharing options...
Guest Posted October 3, 2012 Share Posted October 3, 2012 > Or just a website ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)> > [http://www.unitconve…conversion.html](http://www.unitconversion.org/typography/pixels-x-to-twips-conversion.html)I don't even know why I bother. Link to comment Share on other sites More sharing options...
Etzix Posted October 3, 2012 Share Posted October 3, 2012 alright. but i dont understand what to Change it too o.o how do i know what to write there? Link to comment Share on other sites More sharing options...
clark Posted October 3, 2012 Author Share Posted October 3, 2012 Did you read all the tutorial correctly? i explained what to do and synergy tooGo to that site :http://www.unitconversion.org/typography/pixels-x-to-twips-conversion.htmlTo convert pixels to twipsRead the tutorial i can't explain it better xD Link to comment Share on other sites More sharing options...
Etzix Posted October 3, 2012 Share Posted October 3, 2012 Oh so its pixels at first? i kinda misunderstood your tutorial, I thought it was in twips at first… Ill try when i get home , and will update if it worked or not, Thanks! :3Edit , I finally got it to work , Thanks alot! You saved alot of my time by making this and answering so fast! Thank you! Link to comment Share on other sites More sharing options...
Etzix Posted October 3, 2012 Share Posted October 3, 2012 I got it to work but ran into a problem. I get this white dot on the screen, And it moves with the screen.![](http://i.imgur.com/8d6LC.png)Please help! :3 Link to comment Share on other sites More sharing options...
blkcrow Posted October 3, 2012 Share Posted October 3, 2012 Looks like a control to me. Open up the frmMain in vb6 and check if there are any controls on the screen in the place where you see the dot Link to comment Share on other sites More sharing options...
Etzix Posted October 3, 2012 Share Posted October 3, 2012 What exactly am i looking for? o.o Just got into vb6 , sorry.'EDIT Found it! Should i delete it or move it? o.oEDIT2: I made it really small and put it in a corner , Everything seems to work fine.. Or will this ruin things? Link to comment Share on other sites More sharing options...
Guest Posted October 3, 2012 Share Posted October 3, 2012 Does it have a name? If so is the name something that seems part of the game or like Pic1? Link to comment Share on other sites More sharing options...
blkcrow Posted October 3, 2012 Share Posted October 3, 2012 if its actually used by the engine you should have resized it just move it far from the visible screen Link to comment Share on other sites More sharing options...
tslusny Posted October 3, 2012 Share Posted October 3, 2012 > I got it to work but ran into a problem. I get this white dot on the screen, And it moves with the screen.> > ![](http://i.imgur.com/8d6LC.png)> > Please help! :3It is picSS used for screenshots, but in EA it isnt working so just delete than Link to comment Share on other sites More sharing options...
Savents Posted October 17, 2012 Share Posted October 17, 2012 Edit: deleted, sorry I was in the wrong tab when I replied. Link to comment Share on other sites More sharing options...
hb420 Posted December 30, 2013 Share Posted December 30, 2013 When walking west or north on a scrolling map, the bottom and right edges of the screen clip. Anybody know how i can fix this? 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