WLsj24

c++ [Release] Cheque system

54 posts in this topic

new problem

 

0717 10:45:18625 :: Traceback (most recent call last):

0717 10:45:18625 ::   File "networkModule.py", line 248, in SetGamePhase

0717 10:45:18626 ::   File "game.py", line 103, in __init__

0717 10:45:18626 ::   File "interfaceModule.py", line 291, in MakeInterface

0717 10:45:18626 ::   File "interfaceModule.py", line 175, in __MakeWindows

0717 10:45:18626 ::   File "uiInventory.py", line 265, in __init__

0717 10:45:18627 ::   File "uiInventory.py", line 383, in __LoadWindow

0717 10:45:18627 :: IndexError
0717 10:45:18627 :: : 
0717 10:45:18627 :: list index out of range
0717 10:45:18627 :: 

 

Share this post


Link to post
Share on other sites
4 hours ago, alio0o33 said:

new problem

 


0717 10:45:18625 :: Traceback (most recent call last):

0717 10:45:18625 ::   File "networkModule.py", line 248, in SetGamePhase

0717 10:45:18626 ::   File "game.py", line 103, in __init__

0717 10:45:18626 ::   File "interfaceModule.py", line 291, in MakeInterface

0717 10:45:18626 ::   File "interfaceModule.py", line 175, in __MakeWindows

0717 10:45:18626 ::   File "uiInventory.py", line 265, in __init__

0717 10:45:18627 ::   File "uiInventory.py", line 383, in __LoadWindow

0717 10:45:18627 :: IndexError
0717 10:45:18627 :: : 
0717 10:45:18627 :: list index out of range
0717 10:45:18627 :: 

 

what's on line 383? (uiinventory.py)

Share this post


Link to post
Share on other sites
11 hours ago, WLsj24 said:

what's on line 383? (uiinventory.py)

solved

 

new problem :

 

p_1294uso601.jpg

 

syserr :

0718 02:53:16718 :: Traceback (most recent call last):

0718 02:53:16718 ::   File "game.py", line 656, in RefreshStatus

0718 02:53:16718 ::   File "interfaceModule.py", line 559, in RefreshStatus

0718 02:53:16718 :: AttributeError
0718 02:53:16718 :: : 
0718 02:53:16718 :: 'InventoryWindow' object has no attribute 'RefreshStatus'
0718 02:53:16718 :: 

 

Share this post


Link to post
Share on other sites
2 hours ago, alio0o33 said:

'InventoryWindow' object has no attribute 'RefreshStatus'

Spoiler

	def RefreshStatus(self):
		money = player.GetElk()
		self.wndMoney.SetText(localeInfo.NumberToGoldNotText(money))

		if app.ENABLE_CHEQUE_SYSTEM:
			cheque = player.GetCheque()
			self.wndCheque.SetText(localeInfo.NumberToGoldNotText(cheque))

		if app.ENABLE_GEM_SYSTEM:
			if self.wndGem:
				gem = player.GetGem()
				self.wndGem.SetText(localeInfo.NumberToGoldNotText(gem))

 

 

Share this post


Link to post
Share on other sites
2 hours ago, WLsj24 said:
  Hide contents


	def RefreshStatus(self):
		money = player.GetElk()
		self.wndMoney.SetText(localeInfo.NumberToGoldNotText(money))

		if app.ENABLE_CHEQUE_SYSTEM:
			cheque = player.GetCheque()
			self.wndCheque.SetText(localeInfo.NumberToGoldNotText(cheque))

		if app.ENABLE_GEM_SYSTEM:
			if self.wndGem:
				gem = player.GetGem()
				self.wndGem.SetText(localeInfo.NumberToGoldNotText(gem))

 

 

Thank you :)

last problem :

 

0718 06:13:24485 :: Traceback (most recent call last):

0718 06:13:24485 ::   File "game.py", line 656, in RefreshStatus

0718 06:13:24485 ::   File "interfaceModule.py", line 559, in RefreshStatus

0718 06:13:24485 ::   File "uiInventory.py", line 636, in RefreshStatus

0718 06:13:24485 :: AttributeError
0718 06:13:24485 :: : 
0718 06:13:24485 :: 'module' object has no attribute 'GetWon'
0718 06:13:24485 :: 

p_1294981q41.png

Share this post


Link to post
Share on other sites
4 minutes ago, alio0o33 said:

'module' object has no attribute 'GetWon'

In my tutorial im not using "GetWon" im using "GetCheque"

Check the tutorial please.

Share this post


Link to post
Share on other sites
28 minutes ago, WLsj24 said:

In my tutorial im not using "GetWon" im using "GetCheque"

Check the tutorial please.

Thank you 

there is problem :(

uiInventory.py(line:350) __LoadWindow

InventoryWindow.LoadWindow.BindObject - <type 'exceptions.AttributeError'>:'InventoryWindow' object has no attribute 'EventProgress

 

Share this post


Link to post
Share on other sites
35 minutes ago, alio0o33 said:

Thank you 

there is problem :(


uiInventory.py(line:350) __LoadWindow

InventoryWindow.LoadWindow.BindObject - <type 'exceptions.AttributeError'>:'InventoryWindow' object has no attribute 'EventProgress

 

Please, follow the tutorial to the letter. Check the last step of uiinventory.py

Share this post


Link to post
Share on other sites
On 7/18/2019 at 7:32 AM, WLsj24 said:

Please, follow the tutorial to the letter. Check the last step of uiinventory.py

 

0725 03:44:28541 :: Traceback (most recent call last):

0725 03:44:28541 ::   File "networkModule.py", line 248, in SetGamePhase

0725 03:44:28541 ::   File "game.py", line 103, in __init__

0725 03:44:28542 ::   File "interfaceModule.py", line 301, in MakeInterface

0725 03:44:28542 ::   File "interfaceModule.py", line 219, in __MakeDialogs

0725 03:44:28542 ::   File "uiExchange.py", line 44, in LoadDialog

0725 03:44:28542 ::   File "ui.py", line 2966, in GetChild

0725 03:44:28542 :: KeyError
0725 03:44:28542 :: : 
0725 03:44:28542 :: 'Owner_Cheque_Icon'
0725 03:44:28542 :: 

 

Share this post


Link to post
Share on other sites
6 minutes ago, alio0o33 said:

 


0725 03:44:28541 :: Traceback (most recent call last):

0725 03:44:28541 ::   File "networkModule.py", line 248, in SetGamePhase

0725 03:44:28541 ::   File "game.py", line 103, in __init__

0725 03:44:28542 ::   File "interfaceModule.py", line 301, in MakeInterface

0725 03:44:28542 ::   File "interfaceModule.py", line 219, in __MakeDialogs

0725 03:44:28542 ::   File "uiExchange.py", line 44, in LoadDialog

0725 03:44:28542 ::   File "ui.py", line 2966, in GetChild

0725 03:44:28542 :: KeyError
0725 03:44:28542 :: : 
0725 03:44:28542 :: 'Owner_Cheque_Icon'
0725 03:44:28542 :: 

 

you are tard or what wtf

  • Haha 2

Share this post


Link to post
Share on other sites
Owner_Cheque_Icon

 

You are missing this from inventorywindow.py from locale or uiscript.

Share this post


Link to post
Share on other sites

	0908 20:19:15275 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR
0908 20:19:22003 :: Traceback (most recent call last):
	0908 20:19:22003 ::   File "networkModule.py", line 232, in SetGamePhase
	0908 20:19:22003 ::   File "game.py", line 95, in __init__
	0908 20:19:22004 ::   File "interfaceModule.py", line 414, in MakeInterface
	0908 20:19:22004 ::   File "interfaceModule.py", line 332, in __MakeDialogs
	0908 20:19:22004 ::   File "uiExchange.py", line 43, in LoadDialog
	0908 20:19:22004 ::   File "ui.py", line 3214, in GetChild
	0908 20:19:22005 :: KeyError
0908 20:19:22005 :: : 
0908 20:19:22005 :: 'Owner_Cheque_Icon'
0908 20:19:22005 :: 
	

I've rechecked and all icons are there.

I've redone the tutorial 3 times to....after each time i still ahve the same error.

Share this post


Link to post
Share on other sites

SYSERR: Sep 10 06:05:13 :: Start: TABLE_POSTFIX not configured use default
SYSERR: Sep 10 06:05:19 :: Set_Proto_Item_Table: ItemProto Reading Failed : Invalid value. (index: 2, col: 2, value: ITEM_CHEQUE)
SYSERR: Sep 10 06:05:19 :: Set_Proto_Item_Table:     0 ~ 2 Values: 80020,0,

 

I've updated every single line...checked and rechecked....and rechecked and rechecked everything.Updated dump proto.Now what's happening.....very frustrating

DB crush if i have this line on my item_proto.txt.

If i remove it i can't connect.....

Share this post


Link to post
Share on other sites
On 9/8/2019 at 7:37 PM, OnlyRipper said:

 


	0908 20:19:15275 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR
0908 20:19:22003 :: Traceback (most recent call last):
	0908 20:19:22003 ::   File "networkModule.py", line 232, in SetGamePhase
	0908 20:19:22003 ::   File "game.py", line 95, in __init__
	0908 20:19:22004 ::   File "interfaceModule.py", line 414, in MakeInterface
	0908 20:19:22004 ::   File "interfaceModule.py", line 332, in __MakeDialogs
	0908 20:19:22004 ::   File "uiExchange.py", line 43, in LoadDialog
	0908 20:19:22004 ::   File "ui.py", line 3214, in GetChild
	0908 20:19:22005 :: KeyError
0908 20:19:22005 :: : 
0908 20:19:22005 :: 'Owner_Cheque_Icon'
0908 20:19:22005 :: 
	

 

I've rechecked and all icons are there.

I've redone the tutorial 3 times to....after each time i still ahve the same error.

Sorry, the "Owner_Cheque_Icon" is only for "ENABLE_NEW_EXCHANGE_WINDOW", comment it in uiexchange.py if you dont have that system.

 

15 hours ago, OnlyRipper said:

SYSERR: Sep 10 06:05:13 :: Start: TABLE_POSTFIX not configured use default
SYSERR: Sep 10 06:05:19 :: Set_Proto_Item_Table: ItemProto Reading Failed : Invalid value. (index: 2, col: 2, value: ITEM_CHEQUE)
SYSERR: Sep 10 06:05:19 :: Set_Proto_Item_Table:     0 ~ 2 Values: 80020,0,

 

I've updated every single line...checked and rechecked....and rechecked and rechecked everything.Updated dump proto.Now what's happening.....very frustrating

DB crush if i have this line on my item_proto.txt.

If i remove it i can't connect.....

"ITEM_CHEQUE" is not recognized in your source, check item_length.h, itemdata.h, protoreader.cpp, itemcsvreader.cpp. Maybe some of those files are not reading the macro define, therefore it is as if it were disabled. Remember to include the file where the macro define is defined --> "ENABLE_CHEQUE_SYSTEM", could be CommonDefines.h or service.h for server and Locale_Inc.h for client

Share this post


Link to post
Share on other sites
Acum 2 ore, WLsj24 a spus:

Sorry, the "Owner_Cheque_Icon" is only for "ENABLE_NEW_EXCHANGE_WINDOW", comment it in uiexchange.py if you dont have that system.

 

"ITEM_CHEQUE" is not recognized in your source, check item_length.h, itemdata.h, protoreader.cpp, itemcsvreader.cpp. Maybe some of those files are not reading the macro define, therefore it is as if it were disabled. Remember to include the file where the macro define is defined --> "ENABLE_CHEQUE_SYSTEM", could be CommonDefines.h or service.h for server and Locale_Inc.h for client

 

It doesn't show in the extended bar,nor the Icon for chque,or the space where the amount should be.

When i try to exchange appears only the text for Won nothing more.When i want to insert i can insert only the yang.

I've done again at least 5 times the entire tutorial line by line.

I've solved the problem with ITEM_CHEQUE.

If i modify the amount through navicat in-game i can't see it.I've alost tryed to give myself 1 cheque or 2,but when i check it the set command doesn't do anything...

 

Here's the only error in the chs:

	SYSERR: Sep 11 00:11:11 :: RunState: LUA_ERROR: [string "cheque_system"]:52: attempt to call field `get_cheque' (a nil value)
SYSERR: Sep 11 00:11:11 :: WriteRunningStateToSyserr: LUA_ERROR: quest cheque_system.start click
SYSERR: Sep 11 00:11:57 :: Process: SEQUENCE 41aa2c00 mismatch 0xaf != 0x64 header 254
SYSERR: Sep 11 00:11:57 :: Process: SEQUENCE_LOG [UNKNOWN]-------------
    [254 : 0xaf]
	

Share this post


Link to post
Share on other sites

Ok I've managed to solve the upper problems.It was just a #define problem and i've removed the parts you told me about new exchange window.
Still i come with some not working stuff:

If an item is in shop-> with 1 Won and 1 Yang i can buy it but won't take won,i can literally buy it with Yang only

                                    -> only with Won it says: Insufficient Yang.

And the following visual problem.

https://imgur.com/2SGCnrs

 

If i remove the 'cheque' part from inventorywindow i get an error and the client crash.

 

 

Share this post


Link to post
Share on other sites
La 10.09.2019 la 20:09, WLsj24 a spus:

Sorry, the "Owner_Cheque_Icon" is only for "ENABLE_NEW_EXCHANGE_WINDOW", comment it in uiexchange.py if you dont have that system.

 

"ITEM_CHEQUE" is not recognized in your source, check item_length.h, itemdata.h, protoreader.cpp, itemcsvreader.cpp. Maybe some of those files are not reading the macro define, therefore it is as if it were disabled. Remember to include the file where the macro define is defined --> "ENABLE_CHEQUE_SYSTEM", could be CommonDefines.h or service.h for server and Locale_Inc.h for client

Sorry to disturb you again.Please believe me when i say that i've rechecked the entire tutorial line by line in the last days...i don't know what i'm doing wrong.

I still have two problems left:

1. I don't have implemented offline shop.It's normal shop.

If the item price is only won i can't buy it no matter how much low the price of Won is.It tells me i don't have enough Yang.

If the item price is with Won and Yang it will buy it with Yang only and it will ignore the Won price.

2. Visual problem: https://imgur.com/1FqK4lE

If i remove the cheque from inventory window...i get the following error(so removing it isn't a solution):

	0912 19:11:24542 :: 
uiInventory.py(line:328) __LoadWindow
ui.py(line:3227) GetChild
	InventoryWindow.LoadWindow.BindObject - <type 'exceptions.KeyError'>:'Cheque'
	0912 19:11:24542 :: ============================================================================================================
0912 19:11:24542 :: Abort!!!!
	

I've also implemented your Expanded Taskbar.It works perfect without errors.

Could you please help me?! I don't know what else to do.In the last week i've redone and rechecked everything.I just don't know what else to check.....

Exchange is working.

Droping the item and picking  is working.

Quest is working.

 

Share this post


Link to post
Share on other sites
Spoiler
1 hour ago, OnlyRipper said:

Sorry to disturb you again.Please believe me when i say that i've rechecked the entire tutorial line by line in the last days...i don't know what i'm doing wrong.

I still have two problems left:

1. I don't have implemented offline shop.It's normal shop.

If the item price is only won i can't buy it no matter how much low the price of Won is.It tells me i don't have enough Yang.

If the item price is with Won and Yang it will buy it with Yang only and it will ignore the Won price.

2. Visual problem: https://imgur.com/1FqK4lE

If i remove the cheque from inventory window...i get the following error(so removing it isn't a solution):

 



	0912 19:11:24542 :: 
uiInventory.py(line:328) __LoadWindow
ui.py(line:3227) GetChild
	InventoryWindow.LoadWindow.BindObject - <type 'exceptions.KeyError'>:'Cheque'
	0912 19:11:24542 :: ============================================================================================================
0912 19:11:24542 :: Abort!!!!
	

 

I've also implemented your Expanded Taskbar.It works perfect without errors.

Could you please help me?! I don't know what else to do.In the last week i've redone and rechecked everything.I just don't know what else to check.....

Exchange is working.

Droping the item and picking  is working.

Quest is working.

 

 

for fix this:
https://imgur.com/1FqK4lE

dont remove cheque, just hide

after this:
                self.wndChequeSlot = self.GetChild("Cheque_Slot")
add this:
 

				self.wndMoneyIcon = self.GetChild("Money_Icon")
				self.wndChequeIcon = self.GetChild("Cheque_Icon")
				self.wndMoneyIcon.Hide()
				self.wndMoneySlot.Hide()
				self.wndChequeIcon.Hide()
				self.wndChequeSlot.Hide()

				## 높이 조절
				height = self.GetHeight()
				width = self.GetWidth()
				self.SetSize(width, height - 22)
				self.GetChild("board").SetSize(width, height - 22)

 

  • Like 1

Share this post


Link to post
Share on other sites
Acum 1 oră, WLsj24 a spus:
  Reafișează conținuturi ascunse

 

for fix this:
https://imgur.com/1FqK4lE

dont remove cheque, just hide

after this:
                self.wndChequeSlot = self.GetChild("Cheque_Slot")
add this:
 


				self.wndMoneyIcon = self.GetChild("Money_Icon")
				self.wndChequeIcon = self.GetChild("Cheque_Icon")
				self.wndMoneyIcon.Hide()
				self.wndMoneySlot.Hide()
				self.wndChequeIcon.Hide()
				self.wndChequeSlot.Hide()

				## 높이 조절
				height = self.GetHeight()
				width = self.GetWidth()
				self.SetSize(width, height - 22)
				self.GetChild("board").SetSize(width, height - 22)

 

Thank you for your support!

Do you have any suggestion about the shop problem?

Everything is where it should be...I...checked everything.done.I've implemented on a clean svf too,and still the same problem.

Share this post


Link to post
Share on other sites
17 minutes ago, OnlyRipper said:

¡Gracias por tu apoyo!

¿Tiene alguna sugerencia sobre el problema de la tienda?

Todo está donde debería estar ... Yo ... revisé todo.done. También lo he implementado en un svf limpio, y sigue siendo el mismo problema.

Tomorrow I will review the guide, maybe I forgot something about normal shops, since I made the guide thinking about offline shops

Share this post


Link to post
Share on other sites
Chiar acum, WLsj24 a spus:

Tomorrow I will review the guide, maybe I forgot something about normal shops, since I made the guide thinking about offline shops

Ok.Thank you for doing this!

I literally checked everything line by line to make sure everything is as you did.

I've also check unmodified svf regaring normal shop.They are the same without adding Cheque system.That's why i'm confused.At first i tought it's because a new type ITEM_CHEQUE...maybe this is the reason...i'm not sure.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.