Problema - ShopEx Renewal.

Înainte de a posta o problemă, caută în acest forum și poate găsești rezolvare.
Închis
Avatar utilizator
Nin0Nin0
Utilizator interzis !

Utilizator interzis !
Mesaje: 133
Membru din: 15 Iul 2020, 06:49
Aprecieri: 130  
Mulţumiri: 8  
Medalii

*Problemă/Întrebare: Problema Boot: shop table size error system shopex renewal.
Tipologie server: J4M
*Resursă folosită: Aici...
*ServerFiles utilizat: J4m
*Syserr:

Cod: Selectaţi tot

SYSERR: Aug 18 08:48:50 :: pid_init: 
Start of pid: 5058

SYSERR: Aug 18 08:48:51 :: Boot: shop table size error
SYSERR: Aug 18 08:48:51 :: SpawnEventHelper: cannot get map base position 1
SYSERR: Aug 18 08:48:51 :: SpawnEventHelper: cannot get map base position 3
SYSERR: Aug 18 08:48:51 :: SpawnEventHelper: cannot get map base position 21
SYSERR: Aug 18 08:48:51 :: SpawnEventHelper: cannot get map base position 23
SYSERR: Aug 18 08:48:51 :: SpawnEventHelper: cannot get map base position 41
SYSERR: Aug 18 08:48:51 :: SpawnEventHelper: cannot get map base position 43
SYSERR: Aug 18 08:48:51 :: pid_deinit: 
End of pid
Poză: Nu necesita
*Detalii suplimentare: Totul este bagat corect numai ca imi da problema la shop.
Avatar utilizator
Asky
Ţepar / Untrusted User

Ţepar / Untrusted User
Mesaje: 1472
Membru din: 08 Oct 2014, 17:32
Regat: Chunjo
Aprecieri: 98  
Mulţumiri: 4811  
Discord: Copiază ID
 Contact:
Medalii

Incearca sa faci asta si vezi daca merge.


"packet.h" in client source (UserInterface)

Cauta:

Cod: Selectaţi tot

SHOP_HOST_ITEM_MAX_NUM = 40,
Modifica cu:

Cod: Selectaţi tot

SHOP_HOST_ITEM_MAX_NUM = 80,
src/Server/common/length.h
Cauta:

Cod: Selectaţi tot

SHOP_HOST_ITEM_MAX_NUM = 40,
SHOP_PRICELIST_MAX_NUM = 40,
Modifica cu:

Cod: Selectaţi tot

SHOP_HOST_ITEM_MAX_NUM = 80,
SHOP_PRICELIST_MAX_NUM = 80,

src/Server/game/shop.cpp
Cauta:

Cod: Selectaţi tot

m_pGrid = M2_NEW CGrid(5, 9);
Modifica cu:

Cod: Selectaţi tot

m_pGrid = M2_NEW CGrid(10, 9);

shopdialog.py
import uiScriptLocale
 
window = {
"name" : "ShopDialog",
 
"x" : SCREEN_WIDTH - 400,
"y" : 10,
 
"style" : ("movable", "float",),
 
"width" : 184 + 160,
"height" : 328,
 
"children" :
(
{
"name" : "board",
"type" : "board",
"style" : ("attach",),
 
"x" : 0,
"y" : 0,
 
"width" : 184 + 160,
"height" : 328,
 
"children" :
(
## Title
{
"name" : "TitleBar",
"type" : "titlebar",
"style" : ("attach",),
 
"x" : 8,
"y" : 8,
 
"width" : 169 + 160,
"color" : "gray",
 
"children" :
(
{ "name":"TitleName", "type":"text", "x":84+80, "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" : 21,
"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" : 104 + 160,
"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",
},
 
),
},
),
}
Imagine
Afișează semnătura
Avatar utilizator
Nin0Nin0
Utilizator interzis !

Utilizator interzis !
Mesaje: 133
Membru din: 15 Iul 2020, 06:49
Aprecieri: 130  
Mulţumiri: 8  
Medalii

Ms , am rezolvat inainte de postare , pentru cine incearca sa bage asta si nu merge .. in tables.h adaugati #include service.h

si sa compilati si db nu doar game =))
Avatar utilizator
Titan
Metin Master

Metin Master
Mesaje: 2783
Membru din: 01 Iun 2015, 15:09
Server: In curand.
Regat: Chunjo
Aprecieri: 42  
Mulţumiri: 377  
  Rezolvări prob.: 3
Discord: Copiază ID
 Contact:
Medalii

mutat
Imagine
Afișează semnătura
Închis
Răspunsuri
0
Vizualizări
85
Răspunsuri
8
Vizualizări
575
Răspunsuri
2
Vizualizări
86

Înapoi la “Probleme rezolvate”

  • Informaţie