Jump to content

[Question] Belt system and Dragon soul system


Recommended Posts

  • Replies 17
  • Created
  • Last Reply

Top Posters In This Topic

  • Premium
				## Equipment Slot
				{
					"name" : "Equipment_Base",
					"type" : "image",

					"x" : 10,
					"y" : 33,

					"image" : "d:/ymir work/ui/equipment_bg_without_ring.tga",

					"children" :
					(

						{
							"name" : "EquipmentSlot",
							"type" : "slot",

							"x" : 3,
							"y" : 3,

							"width" : 150,
							"height" : 182,

							"slot" : (
										{"index":EQUIPMENT_START_INDEX+0, "x":39, "y":37, "width":32, "height":64},
										{"index":EQUIPMENT_START_INDEX+1, "x":39, "y":2, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+2, "x":39, "y":145, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+3, "x":75, "y":67, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96},
										{"index":EQUIPMENT_START_INDEX+5, "x":114, "y":67, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+6, "x":114, "y":35, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+7, "x":2, "y":145, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+8, "x":75, "y":145, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+9, "x":114, "y":2, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+10, "x":75, "y":35, "width":32, "height":32},
										## 새 반지1
										##{"index":item.EQUIPMENT_RING1, "x":2, "y":106, "width":32, "height":32},
										## 새 반지2
										##{"index":item.EQUIPMENT_RING2, "x":75, "y":106, "width":32, "height":32},
										## 새 벨트
										{"index":item.EQUIPMENT_BELT, "x":39, "y":106, "width":32, "height":32},
									),
						},
						## Dragon Soul Button
						{
							"name" : "DSSButton",
							"type" : "button",

							"x" : 114,
							"y" : 107,

							"tooltip_text" : uiScriptLocale.TASKBAR_DRAGON_SOUL,

							"default_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_01.tga",
							"over_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_02.tga",
							"down_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_03.tga",
						},

? :)

Link to comment
Share on other sites

Delete the Dragon Soul Button and Index of EQUIPMENT_BELT

Then , go to game.py and search "onPressKeyDict" and remove the one to Dragon Soul ( by default: 'O' )

If you want to complete remove them ( + functions ) you must recompile the binary, or you can do what i've said up there and 'voila' :D

Be sure to edit uiscript too.

 

## Equipment Slot
{
    "name" : "Equipment_Base",
    "type" : "image",


    "x" : 10,
    "y" : 33,


    "image" : "d:/ymir work/ui/equipment_bg_without_ring.tga",


    "children" :
    (


        {
            "name" : "EquipmentSlot",
            "type" : "slot",


            "x" : 3,
            "y" : 3,


            "width" : 150,
            "height" : 182,


            "slot" : (
                        {"index":EQUIPMENT_START_INDEX+0, "x":39, "y":37, "width":32, "height":64},
                        {"index":EQUIPMENT_START_INDEX+1, "x":39, "y":2, "width":32, "height":32},
                        {"index":EQUIPMENT_START_INDEX+2, "x":39, "y":145, "width":32, "height":32},
                        {"index":EQUIPMENT_START_INDEX+3, "x":75, "y":67, "width":32, "height":32},
                        {"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96},
                        {"index":EQUIPMENT_START_INDEX+5, "x":114, "y":67, "width":32, "height":32},
                        {"index":EQUIPMENT_START_INDEX+6, "x":114, "y":35, "width":32, "height":32},
                        {"index":EQUIPMENT_START_INDEX+7, "x":2, "y":145, "width":32, "height":32},
                        {"index":EQUIPMENT_START_INDEX+8, "x":75, "y":145, "width":32, "height":32},
                        {"index":EQUIPMENT_START_INDEX+9, "x":114, "y":2, "width":32, "height":32},
                        {"index":EQUIPMENT_START_INDEX+10, "x":75, "y":35, "width":32, "height":32},
                        ## 새 반지1
                        ##{"index":item.EQUIPMENT_RING1, "x":2, "y":106, "width":32, "height":32},
                        ## 새 반지2
                        ##{"index":item.EQUIPMENT_RING2, "x":75, "y":106, "width":32, "height":32},
                        ## 새 벨트
                    ),
        },
Link to comment
Share on other sites

  • Premium

Belt System delete ; uiscript.py -. beltinventorywindow.py and locale -> 

## Equipment Slot ... error ;
 
0215 12:34:21512 :: Failed to load script file : locale/cz/ui/InventoryWindow.py
0215 12:34:21513 :: 
ui.py(line:2755) LoadScriptFile
system.py(line:239) execfile
system.py(line:208) Run
system.py(line:224) __LoadTextFile__

LoadScriptFile!!!!!!!!!!!!!! - <type 'exceptions.IndentationError'>:unexpected indent (locale/cz/ui/InventoryWindow.py, line 430)

0215 12:34:21513 :: ============================================================================================================
0215 12:34:21513 :: Abort!!!!


0215 12:34:21514 :: 
uiInventory.py(line:293) __LoadWindow
ui.py(line:2772) LoadScriptFile
exception.py(line:36) Abort

InventoryWindow.LoadWindow.LoadObject - <type 'exceptions.SystemExit'>:

0215 12:34:21514 :: ============================================================================================================
0215 12:34:21514 :: Abort!!!!


 

Link to comment
Share on other sites

  • Premium

Error... 


uiInventory.py(line:137) __LoadWindow
 
InventoryWindow.LoadWindow.LoadObject - <type 'exceptions.NameError'>:global name 'uiScriptLocale' is not defined
 
0215 14:48:27664 :: ============================================================================================================
0215 14:48:27664 :: Abort!!!!
Edited by .iStark™
Link to comment
Share on other sites

 

uiInventory.py(line:137) __LoadWindow
 
InventoryWindow.LoadWindow.LoadObject - <type 'exceptions.NameError'>:global name 'uiScriptLocale' is not defined
 
0215 14:48:27664 :: ============================================================================================================
0215 14:48:27664 :: Abort!!!!

 

 

You are not import uiScriptLocale and python is not know how to handle it.

Translation: add import uiScriptLocale 

Link to comment
Share on other sites

  • 7 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.