Enlarging the visible game screen

Technical and coding related questions.

Moderator: Board moderators

Post Reply
Basilisk
Luser
Posts: 30
Joined: Mon Feb 06, 2006 6:20 am

Enlarging the visible game screen

Post by Basilisk »

I have succeeded in modifying my client to see more tiles at once. (editing x11.c)
Unfortunately, most servers refuse to update these normally out of range squares,
so I get fog-of-war surrounding my 11x11 screen.
I might be wrong, but updates when moving or line-of-sight are controlled on the _server_?

Anyways I started hacking my local host so it updates these tiles. (mostly init.c and request.c)
Now I can see monsters and the map a good distance in front of me and behind,
but there's some annoyance with "line of sight" code.
Basically if I move so far that parts of the map are outside the _new_ range of sight,
and backtrack so it is visible again, it will be flagged fog of war, and will stay that way even as I run _through_ it. It only updates when I actually run behind a wall and back again. I can see the code that is supposed to be for LOS and move updates, and I changed and recompiled, but the refresh is still broken.
All over the place there are refs to hard-coded 11x11 limits, which I have been "fixing"...
Leaf
Forum Aficionado
Posts: 1994
Joined: Tue Apr 29, 2003 5:55 pm
Location: Minnesota, USA
Contact:

Re: Enlarging the visible game screen

Post by Leaf »

Basilisk wrote:I have succeeded in modifying my client to see more tiles at once.
Which client and version are you using or referencing here?

And, what you are doing, is that different then what you can tweak in the gtkv1 client through Clinet -> Configure -> Map & Image (tab) -> Map Size ?

Ex: change Map Heigh and Width from 11 x 11 to some other value(s)
"Put another, more succinct way: don't complain, contribute. It's more satisfying in the long run, and it's more constructive."
Eric Meyer
Basilisk
Luser
Posts: 30
Joined: Mon Feb 06, 2006 6:20 am

Post by Basilisk »

I managed to fix the bug I was experiencing. Accidently setting one of the numbers +1 than it should have been messed it up for me. I am really grateful that this is open-source.

I would be interested in knowing if theres a way to configure the X11 client without modding and recompiling, I dont use the GTK one yet. The server really will send the extra data?
Ryo
Forum Fanatic
Posts: 752
Joined: Mon May 19, 2003 9:16 pm
Location: Paris, France

Post by Ryo »

I'm using the GTK client with a map size of 17x17 and can testify that the server does send the data. I think the maximum is 19 or 21, but more than 11, that's for sure.
Mith
Senior member
Posts: 348
Joined: Mon Oct 25, 2004 5:53 pm
Location: somewhere in nowhere

Post by Mith »

the buildin max for the gtk-client is 31x31.
After setting 31x31 (and icon scale 50%) i connected to metalforge. Metalforge doesn't accept such a big mapsize:
"Server supports a max mapsize of 25 x 25 - requesting a 25 x 25 mapsize"
Bibendi ergo sum
or rather: sum ergo bibendi
Post Reply