• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Adding more tiles to game window - OTCv8

victorlima

Member
Joined
Aug 17, 2023
Messages
33
Reaction score
7
GitHub
victorvadl
I found this post but when i try to ask how he solve the problem he deleted my comment, so i crated this thread to get some help.

He told that the solution was to change the changeMapAwareRange inside the gameinterface.lua.
I want do to 1 level of zoomout and idk what i have to change. Here is my code:


Lua:
if classic then 
    g_game.changeMapAwareRange(19, 15)
    gameMapPanel:addAnchor(AnchorLeft, 'gameLeftActionPanel', AnchorRight)
    gameMapPanel:addAnchor(AnchorRight, 'gameRightActionPanel', AnchorLeft)
    gameMapPanel:addAnchor(AnchorBottom, 'gameBottomActionPanel', AnchorTop)
    gameMapPanel:addAnchor(AnchorTop, 'gameTopBar', AnchorBottom)
    gameMapPanel:setKeepAspectRatio(true)
    gameMapPanel:setLimitVisibleRange(false)
    gameMapPanel:setZoom(11)
    gameMapPanel:setOn(false) -- frame

    modules.client_topmenu.getTopMenu():setImageColor('white')
 
    if modules.game_console then
      modules.game_console.switchMode(false)
    end
Post automatically merged:

I want that view with setzoom(14)
Lua:
if classic then
    g_game.changeMapAwareRange(19, 15)
    gameMapPanel:addAnchor(AnchorLeft, 'gameLeftActionPanel', AnchorRight)
    gameMapPanel:addAnchor(AnchorRight, 'gameRightActionPanel', AnchorLeft)
    gameMapPanel:addAnchor(AnchorBottom, 'gameBottomActionPanel', AnchorTop)
    gameMapPanel:addAnchor(AnchorTop, 'gameTopBar', AnchorBottom)
    gameMapPanel:setKeepAspectRatio(true)
    gameMapPanel:setLimitVisibleRange(false)
    gameMapPanel:setZoom(14)
    gameMapPanel:setOn(false) -- frame

But im getting black border like this img:
View attachment 77743
 
Last edited:
Back
Top