Jump to content
  • 0
Amok

Problem with Belt Window !

Question

Hi had problem with Belt Window !

 

now it looks:

qNhNf.png

 

 

But it Should look like this :)

Erweitertes_Inventar.png

 

 

In uiinventory.py i found this:

				wndBeltInventorySlot.SetCoverButton(slotNumber,	"d:/ymir work/ui/game/quest/slot_button_01.sub",
												"d:/ymir work/ui/game/quest/slot_button_01.sub",
												"d:/ymir work/ui/game/quest/slot_button_01.sub",
												"d:/ymir work/ui/game/belt_inventory/slot_disabled.tga", FALSE, FALSE)

in log.txt:

0313 03:18:23282 :: SYSERR: CResourceManager::GetResourcePointer: File not exist d:/ymir work/ui/game/quest/slot_button_01.sub
0313 03:18:23283 :: SYSERR: CANNOT_FIND_PACK_FILE [d:/ymir work/ui/game/quest/slot_button_01.sub]
0313 03:18:23283 :: CResource::Load file not exist d:ymir workuigamequestslot_button_01.sub

But i didnt find this:

 

slot_button_01.sub

 

Someone has this sub or maybe can help how to fixx this ?

Share this post


Link to post

12 answers to this question

Recommended Posts

  • 0

ok guys get it fixxed now xD

 

ui.py

need to add

 

    def SetAlwaysRenderCoverButton(self, slotIndex, bAlwaysRender = TRUE):
        wndMgr.SetAlwaysRenderCoverButton(self.hWnd, slotIndex, bAlwaysRender)

 

So fixxed

 

plz close

Share this post


Link to post
  • 0

yeah i think yes :)

 

Here is my pack Folder

BGM
devilscatacomb
effect
ETC
guild
icon
indoordeviltower1
indoormonkeydungeon1
indoormonkeydungeon2
indoormonkeydungeon3
indoorspiderdungeon1
item
locale_de
metin2_patch_5th_armor
metin2_patch_costume_soccer
metin2_patch_dance
metin2_patch_dragon_rock
metin2_patch_dragon_rock_mobs
metin2_patch_dragon_rock_mobs_texcache
metin2_patch_dragon_rock_texcache
metin2_patch_ds
metin2_patch_dss_box
metin2_patch_easter1
metin2_patch_etc
metin2_patch_etc_costume1
metin2_patch_eu3
metin2_patch_eu4
metin2_patch_eu5
metin2_patch_flame
metin2_patch_flame_dungeon
metin2_patch_football
metin2_patch_guild
metin2_patch_halloween
metin2_patch_icon
metin2_patch_mineral
metin2_patch_models
metin2_patch_mundi
metin2_patch_newmob
metin2_patch_nz
metin2_patch_party
metin2_patch_pet1
metin2_patch_sd
metin2_patch_source
metin2_patch_w20_etc
metin2_patch_w20_sound
metin2_patch_w21_etc
metin2_patch_w21_mobs
metin2_patch_xmas
Monster
monster2
new_pack
NPC
npc2
Outdoor
OutdoorA1
OutdoorA2
OutdoorA3
OutdoorB1
OutdoorB3
OutdoorC1
OutdoorC3
outdoordesert1
outdoorduel
outdoorempirebattle1
outdoorfielddungeon1
outdoorflame1
outdoorgmguildbuild
outdoorguild1
outdoorguild2
outdoorguild3
outdoormilgyo1
OutdoorSnow1
outdoort1
outdoort2
outdoort3
outdoort4
outdoortrent
outdoortrent02
outdoorwedding
patch1
patch2
patch3
PC
pc2
Property
root
season1
season2
season3_eu
Sound
sound2
Terrain
textureset
Tree
uiloading
uiscript
Zone

Share this post


Link to post
  • 0

all look correct...where you see problem?? you just use belt for open all slots in belt window

Share this post


Link to post
  • 0

Novaline self compiled

 

EDIT::

 

After some experiments i get this:

 

0313 16:16:26490 :: SYSERR: 'GridSlotWindow' object has no attribute 'SetAlwaysRenderCoverButton'

	def RefreshSlot(self):
		getItemVNum=player.GetItemIndex
		
		for i in xrange(item.BELT_INVENTORY_SLOT_COUNT):
			slotNumber = item.BELT_INVENTORY_SLOT_START + i
			self.wndBeltInventorySlot.SetItemSlot(slotNumber, getItemVNum(slotNumber), player.GetItemCount(slotNumber))
			self.wndBeltInventorySlot.SetAlwaysRenderCoverButton(slotNumber, TRUE)
			#wndMgr.SetAlwaysRenderCoverButton(slotNumber, TRUE)
			
			avail = "0"
			
			if player.IsAvailableBeltInventoryCell(slotNumber):
				self.wndBeltInventorySlot.EnableCoverButton(slotNumber)
			else:
				self.wndBeltInventorySlot.DisableCoverButton(slotNumber)

		self.wndBeltInventorySlot.RefreshSlot()

Problem is here:

self.wndBeltInventorySlot.SetAlwaysRenderCoverButton(slotNumber, TRUE)

when i change to

wndMgr.SetAlwaysRenderCoverButton(slotNumber, TRUE)

Client Starts but it takes no affect ...

 

in src:

 

SetAlwaysRenderCoverButton is in class CSlotWindow

 

but wndBeltInventorySlot is CGridSlotWindow

 

Maybe this is the Problem :)

 

Someone know how to get it work under CGridSlotWindow class ?

Share this post


Link to post
  • 0
0313 03:18:23283 :: SYSERR: CANNOT_FIND_PACK_FILE [d:/ymir work/ui/game/quest/slot_button_01.sub]
0313 03:18:23283 :: CResource::Load file not exist d:ymir workuigamequestslot_button_01.sub
 
 
There are the buttons, u can't put anything in the last 4 slots, u just don't see the block-buttons.

Share this post


Link to post
  • 0

yeah as i said some has this file ?

Share this post


Link to post
  • 0

Hmm...

 

Its very confused ...

 

When i look:

wndBeltInventorySlot.SetCoverButton

wndBeltInventorySlot => class CGridSlotWindow

SetCoverButton => class CSlotWindow

 

This Works

 

 

But when i use:

wndBeltInventorySlot.SetAlwaysRenderCoverButton

wndBeltInventorySlot => class CGridSlotWindow

SetAlwaysRenderCoverButton => class CSlotWindow

 

It throw error:

0313 16:16:26490 :: SYSERR: 'GridSlotWindow' object has no attribute 'SetAlwaysRenderCoverButton'

 

 

Someone has an idea ?

Share this post


Link to post
  • 0

Ok nobody has an idea ?

 

Someone Can post his uiinventory ? where the belt system works correct ?

Share this post


Link to post
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.