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

[EO] Where is picScreen?


igloo9
 Share

Recommended Posts

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

@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

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

> In the Form_Load sub of frmMainGame, change this to your desired width:
> Code: [Select]
>     Me.width = 10545

Oh 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:

2Coolx
It should work, reread this topic (but dont touch PIC size it should be 32)
Link to comment
Share on other sites

@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

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

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

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

Sure.

Client:
Public Const MAX_MAPX As Byte = 16 ' Width 17 - 1
Public Const MAX_MAPY As Byte = 11 ' Width 12 - 1

Server:
Public Const MAX_MAPX As Byte = 16 ' Width 17 - 1
Public Const MAX_MAPY As Byte = 11 ' Width 12 - 1

picScreen
Width: 640
Height: 480
Link to comment
Share on other sites

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 = 19
Public Const MAX_MAPY As Byte = 14
>! ```

>! Change picScreen's properties to the following.
```
Width: 544
Height: 384
>! ```

Pick one. :p
Link to comment
Share on other sites

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

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

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...