• 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!
  • If you're using Gesior 2012 or MyAAC, please review this thread for information about a serious security vulnerability and a fix.

Otclient Classic UI

Blasphemy

Active Member
Joined
Jan 5, 2012
Messages
257
Reaction score
36
im working on it, but when i reload, i have an error :Cskill.gif

well finally, i did with the all 3 buttons, and all give error, but all are working

ERROR: /modules/game_skills/skills.lua:291: attempt to index field 'game_playerbars' (a nil value)
ERROR: /modules/game_viplist/viplist.lua:123: attempt to index field 'game_playerbars' (a nil value)
ERROR: /modules/game_battle/battle.lua:150: attempt to index field 'game_playerbars' (a nil value)

When I reload mods, appear the whole errors

Code:
ERROR: Unable to load module 'game_skills': /modules/game_skills/skills.lua:238: attempt to index field 'game_playerbars' (a nil value)
stack traceback:
    [C]: in function '__index'
    /modules/game_skills/skills.lua:238: in function 'refresh'
    /modules/game_skills/skills.lua:37: in function 'init'
    /modules/game_skills/skills.otmod:8:[@onLoad]:1: in main chunk
    [C]: in function 'reloadModules'
    /modules/client/client.lua:19: in function </modules/client/client.lua:13>
    [C]: in function 'pcall'
    /modules/corelib/util.lua:311: in function </modules/corelib/util.lua:309>
ERROR: Unable to load module 'game_viplist': /modules/game_viplist/viplist.lua:75: attempt to index field 'game_playerbars' (a nil value)
stack traceback:
    [C]: in function '__index'
    /modules/game_viplist/viplist.lua:75: in function 'refresh'
    /modules/game_viplist/viplist.lua:23: in function 'init'
    /modules/game_viplist/viplist.otmod:8:[@onLoad]:1: in main chunk
    [C]: in function 'reloadModules'
    /modules/client/client.lua:19: in function </modules/client/client.lua:13>
    [C]: in function 'pcall'
    /modules/corelib/util.lua:311: in function </modules/corelib/util.lua:309>
ERROR: /modules/game_battle/battle.lua:150: attempt to index field 'game_playerbars' (a nil value)
 
Last edited:

margoh

{{ user.title }}
Joined
Apr 1, 2013
Messages
786
Solutions
18
Reaction score
318
sometimes, I dont understand your short comments margoh XD! can you explain yourself?
What do you mean? The second version is the same as first, but you can use it anywhere without copying and pasting whole calculations, so in the future if some of your modules will require new bar you just need to use that function.
 

Blasphemy

Active Member
Joined
Jan 5, 2012
Messages
257
Reaction score
36
What do you mean? The second version is the same as first, but you can use it anywhere without copying and pasting whole calculations, so in the future if some of your modules will require new bar you just need to use that function.
ohh got it thank you
 

Heyron

Active Member
Joined
Mar 23, 2017
Messages
100
Solutions
1
Reaction score
41
Location
Brazil
I really liked this modification you made, I think I will use it on my 8.60 server.

Is it possible to make the spell cooldown effect work? That spinning effect, you know?
 
OP
OP
dewral

dewral

Advanced OT User
Joined
Dec 4, 2019
Messages
265
Solutions
10
Reaction score
170
I really liked this modification you made, I think I will use it on my 8.60 server.

Is it possible to make the spell cooldown effect work? That spinning effect, you know?
Can you remind me?
 

johnsamir

Banned User
Joined
Oct 13, 2009
Messages
558
Solutions
5
Reaction score
96
Location
Nowhere
Hello
I've been working on Otcv8 trying to make Classic UI.
It's not 1:1 so it does need some work too.

XtheJi3.png
0vnMYen.png


Enjoy!
lol and trying to re-do the same thing rom zero thanks
 
OP
OP
dewral

dewral

Advanced OT User
Joined
Dec 4, 2019
Messages
265
Solutions
10
Reaction score
170

pink_panther

Premium User
Premium User
Joined
Sep 10, 2016
Messages
941
Solutions
13
Reaction score
418
Location
Kazordoon
You're a god.

A git repo would this would be amazing tho. IF you need help let me know. The repo you pushed is missing all the folders and data, the actual important stuff :p
 
OP
OP
dewral

dewral

Advanced OT User
Joined
Dec 4, 2019
Messages
265
Solutions
10
Reaction score
170
A git repo would this would be amazing tho. IF you need help let me know. The repo you pushed is missing all the folders and data, the actual important stuff :p
Yea i know but i had some issues with making this github, first time ever using this so i don't know what the issue. Honestly im not doing anything with this client for now because im focused on making my server :D.
But i plan to make some small updates in future :D
 
OP
OP
dewral

dewral

Advanced OT User
Joined
Dec 4, 2019
Messages
265
Solutions
10
Reaction score
170
Working on slots right now :p trying to figure out how to remove that space on the right 🧐
n0pB50h.png
 

margoh

{{ user.title }}
Joined
Apr 1, 2013
Messages
786
Solutions
18
Reaction score
318
This works for me:
Code:
  MiniWindowContents
    padding: 4 4 3 7
    layout:
      type: grid
      cell-size: 34 34
      cell-spacing: 3
      flow: true
Line 158:
Lua:
    containerWindow:setContentMinimumHeight(cellSize.height + 1)
Line 159:
Lua:
    containerWindow:setContentMaximumHeight(cellSize.height *
                                                layout:getNumLines() + 4)
Line 167:
Lua:
            containerWindow:setContentHeight(cellSize.height*layout:getNumLines() + 4)
Line 172:
Lua:
            containerWindow:setContentHeight(filledLines * cellSize.height + 1)

On OTCv8 it can be different.
 
Top