Jump to content

[C++] Tiendas con 80 slots


Ryen
 Share

Recommended Posts

Guest DreamHQ

A que te refieres con que este es mejor? xD si es un cpy paste traducido

 

24 slots es para cmercio este e spara tiendas y NPCS

Entonces he debido de leer mal jejeje , bueno de todas formas gracias por aportarlo ^^

Link to comment
Share on other sites

  • 4 months later...

UP!

XD haber si alguien me ayuda...

Me sale esto:

0703 17:32:39590 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR
0703 17:32:44899 :: Failed to load script file : UIScript/shopdialog.py
0703 17:32:44902 :: 
ui.py(line:2778) LoadScriptFile
system.py(line:192) execfile
system.py(line:161) Run
system.py(line:177) __LoadTextFile__

LoadScriptFile!!!!!!!!!!!!!! - exceptions.SyntaxError:invalid syntax (line 45)

0703 17:32:44902 :: ============================================================================================================
0703 17:32:44902 :: Abort!!!!


0703 17:32:44903 :: 
uiShop.py(line:50) LoadDialog
ui.py(line:2795) LoadScriptFile
exception.py(line:36) Abort

ShopDialog.LoadDialog.LoadObject - exceptions.SystemExit:

0703 17:32:44903 :: ============================================================================================================
0703 17:32:44903 :: Abort!!!!


Alguien sabe como arreglarlo 

Codigo:

 

 

#ShopDialog ~ 80 Items for Shop
#Developed by Samuel
import uiScriptLocale

window = {
		"name" : "ShopDialog",

		"x" : SCREEN_WIDTH - 400,
		"y" : 10,

		"style" : ("movable", "float",),
 
		"width" : 345,
		"height" : 328,

		"children" :
		(
				{
						"name" : "board",
						"type" : "board",
						"style" : ("attach",),
 
						"x" : 0,
						"y" : 0,

						"width" : 345,
						"height" : 328,
						
						"children" :
						(
								## Title
								{
										"name" : "TitleBar",
										"type" : "titlebar",
										"style" : ("attach",),

										"x" : 8,
										"y" : 8,

										"width" : 330,
										"color" : "gray",

										"children" :
										(
												{ "name":"TitleName", "type":"text", "x":168, "y":4 "text":uiScriptLocale.SHOP_TITLE, "text_horizontal_align":"center" },
										),
								},

								## Item Slot
								{
										"name" : "ItemSlot",
										"type" : "grid_table",

										"x" : 12,
										"y" : 34,

										"start_index" : 0,
										"x_count" : 10,
										"y_count" : 8,
										"x_step" : 32,
										"y_step" : 32,

										"image" : "d:/ymir work/ui/public/Slot_Base.sub",
								},

								## Buy
								{
										"name" : "BuyButton",
										"type" : "toggle_button",

										"x" : 42,
										"y" : 295,

										"width" : 61,
										"height" : 21,

										"text" : uiScriptLocale.SHOP_BUY,

										"default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
										"over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
										"down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
								},

								## Sell
								{
										"name" : "SellButton",
										"type" : "toggle_button",

										"x" : 240,
										"y" : 295,

										"width" : 61,
										"height" : 21,

										"text" : uiScriptLocale.SHOP_SELL,

										"default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
										"over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
										"down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
								},

								## Close
								{
										"name" : "CloseButton",
										"type" : "button",

										"x" : 0,
										"y" : 295,

										"horizontal_align" : "center",

										"text" : uiScriptLocale.PRIVATE_SHOP_CLOSE_BUTTON,

										"default_image" : "d:/ymir work/ui/public/large_button_01.sub",
										"over_image" : "d:/ymir work/ui/public/large_button_02.sub",
										"down_image" : "d:/ymir work/ui/public/large_button_03.sub",
								},





						),
				},
		),
	} 

 

 

Link to comment
Share on other sites

  • 3 weeks later...

Hola

Alguno sabe como solucionar esto?

0802 15:59:17716 :: GRANNY: r:/granny/rt/granny_file_info.cpp(145): File has run-time type tag of 0x8000000f, which doesn't match this version of Granny (0x80000010).  Automatic conversion will be attempted.
0802 15:59:25048 :: Failed to load script file : uiscript/shopdialog.py
0802 15:59:25053 :: 
ui.py(line:2767) LoadScriptFile
system.py(line:192) execfile
system.py(line:161) Run
system.py(line:177) __LoadTextFile__
 
LoadScriptFile!!!!!!!!!!!!!! - exceptions.SyntaxError:invalid syntax (line 45)
 
0802 15:59:25053 :: ============================================================================================================
0802 15:59:25053 :: Abort!!!!
 
 
0802 15:59:25055 :: 
uiShop.py(line:55) LoadDialog
ui.py(line:2784) LoadScriptFile
exception.py(line:36) Abort
 
ShopDialog.LoadDialog.LoadObject - exceptions.SystemExit:
 
0802 15:59:25055 :: ============================================================================================================
0802 15:59:25055 :: Abort!!!!
 
 
 
>.>
Link to comment
Share on other sites

  • 6 months later...

Up please!!! tengo un problema 

 

Sysser game del server
SYSERR: Feb  3 09:56:30 :: SetShopItems: not enough shop window
 
Sysser del channel
SYSERR: Feb  3 10:47:42 :: SetShopItems: not empty position for pc shop 
 
 
Me funciona las tiendas
 
 
 
Problema:
y cuando intento abrir tienda me sale bien
 
 
 
pero cuando pongo la tienda me aparece los slot normales
 
Y cuando cierro la tienda, el pj vuelve a su forma natural pero no me cierra la tienda
 
 
El cliente no me da ningún error de este problema.
 
 
Solucionado##
Link to comment
Share on other sites

  • 4 years later...
  • 1 year later...

¿Alguien podría ayudarme con este error? Lo he comprobado y todavía tiene este error.

0531 21:15:17998 :: 
uiShop.py(line:73) LoadDialog
ui.py(line:2768) GetChild

ShopDialog.LoadDialog.BindObject - <type 'exceptions.KeyError'>:'MiddleTab1'

0531 21:15:17998 :: ============================================================================================================
0531 21:15:17998 :: Abort!!!!

 

Gracias de antemano

Link to comment
Share on other sites

hace 12 horas, Marcos Pinheiro dijo:

¿Alguien podría ayudarme con este error? Lo he comprobado y todavía tiene este error.

0531 21:15:17998 :: 
uiShop.py(line:73) LoadDialog
ui.py(line:2768) GetChild

ShopDialog.LoadDialog.BindObject - <type 'exceptions.KeyError'>:'MiddleTab1'

0531 21:15:17998 :: ============================================================================================================
0531 21:15:17998 :: Abort!!!!

 

Gracias de antemano

Según eso no tienes la función MiddleTab1 o has borrado algo, compruébalo en uiShop.py

lo cual lógicamente deberías tenerlo.

 

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...