Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[Eo] Change Screen Size : 800x600


trautmen
 Share

Recommended Posts

@Synergy:

> I can't find:
>
> ```
> Me.Width = xxx
> ```
> Where is it? o.O

This tutorial is a bit old so some parts might be outdated. I don't know which version you are using but in EOv2 that is not there. All you would need to do is. Just stretch the frmmain so it is a bigger to fit your new screen size.

Then

Find

```
Public Sub Main()
```
Scroll down and find all the way on the bottom.

```
frmLoad.Visible = False
```
under that add
```
    frmMain.picScreen.width = 800 ' Width in tiles * 32
    frmMain.picScreen.height = 608 ' Height in tiles * 32
```
If you look in the above posts you can change those values to any number that is divided by 32 evenly.

So 800 / 32 = 25 then you subtract 1 to get 24
and 608 / 32 = 19 - 1 = 18

Now find this in client and server side

```
Public Const MAX_MAPX As Byte = 14
Public Const MAX_MAPY As Byte = 11
```
And change the values to the ones we calculated from above so it looks like this.
```
Public Const MAX_MAPX As Byte = 24
Public Const MAX_MAPY As Byte = 18
```
That is just so when you make a new map it is automatically the screen size.

Now you can eater delete all of the maps and let the server rebuild them which I recommend or you can edit them manually in the map properties / map editor.

That is the easy part now you would need to edit the GUI to fit you new screen size. I think that is it.
Link to comment
Share on other sites

@Soul:

> Yep. The nightly release uses DX8 so the rendering system is different.

~~Oh yea, if you give me a day or two I can make you a tutorial to increase the screen size on dx8\. Ill pm you the post once I make it.~~
Link to comment
Share on other sites

Is this the dx8 version that you are referring to because I just checked the source and the above tutorial that I have should work with this as well.

http://www.touchofdeathforums.com/smf2/index.php/topic,80930.0.html

What is the result that you get?

Also I forgot to mention above that you dont need to do this part
```
frmMain.picScreen.width = 800 ' Width in tiles * 32
frmMain.picScreen.height = 608 ' Height in tiles * 32
```
If you stretch the picScreen manually to that size.
Link to comment
Share on other sites

That is what is supposed to happen. Now you would need to edit the GUI part manually stretch you frmmain and you need to move the all of the gui parts so that they are not under the screen.

If you just wanted to change the form size then you would just need to stretch it to fit the size you want.
Link to comment
Share on other sites

@Slinky:

> That is what is supposed to happen. Now you would need to edit the GUI part manually stretch you frmmain and you need to move the all of the gui parts so that they are not under the screen.
>
> If you just wanted to change the form size then you would just need to stretch it to fit the size you want.

Ah, I see. Thanks for clearing that up. On another subject, how could I make the boxes have transparency? Similar to how CS:DE did it, only not bugged to high-heaven.  :P
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...