October 15, 2018, 06:13:11 PM

Author Topic: Submit your bugs!  (Read 6425 times)

Offline Manifest

  • Race & effect creator
  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 1045
  • Country: dk
  • Content creator for the new WCS version by Kami.
Re: Submit your bugs!
« Reply #15 on: January 20, 2018, 11:50:22 PM »
No, it has not yet, I am working on the fixes for Crypt Lord, and we're working to solve other bugs as well, we'll let you know when we do the updates. :-)

But thank you for reporting it in.
In terms of the datatable, that looks like a typical warning caused by visual effects, usually they look a bit different but the ones saying:
Code: [Select]
DataTable Warning: Out-of-range value  255.0000 / 64 in SendPropFloat "m_fAmplitude" clamping

Is really harmless, it's lots of spam yes, but not a crash causer. :-)
Assuming I am right about it being an effect reporting that error that is. ;D
"BRAVORA: Bruh it is fucking operation crystal night when you are approving races."


Offline zloykif

  • Level 7 Expert
  • *****
  • Posts: 780
  • Country: ua
Re: Submit your bugs!
« Reply #16 on: January 21, 2018, 02:18:37 PM »
this is emulator problem, or what?

i cant load some es scripts with russian charracters

Example, script contain:
Code: [Select]
es_msg И
error:
[console] es_load: 'charmap' codec can't decode byte 0x98 in position 11: character maps to <undefined>
« Last Edit: January 21, 2018, 02:23:45 PM by zloykif »

Offline Kami

  • Developer
  • Level 7 Expert
  • *****
  • Posts: 886
  • Country: de
  • Pokemon Master!
Re: Submit your bugs!
« Reply #17 on: January 21, 2018, 02:51:34 PM »
Yes this should be an issue with the emulator, please post an issue to the emulators github so ayuto knows about the problem :)

Offline Jareth

  • Wcs-Lagerhaus.net / Deutscher forum Helfer
  • Level 7 Expert
  • *****
  • Posts: 701
  • Country: de
  • Wcs-Lagerhaus/Ich helfe Gernen allen Deutschen =)
    • Server#1 Wcs Home
Re: Submit your bugs!
« Reply #18 on: January 21, 2018, 07:57:12 PM »
What is this^^


Code: [Select]
[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/setfx.py", line 45, in _setfx_command
userid = int(command[2])

ValueError: invalid literal for int() with base 10: 'wcs_tmp'



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/effects.py", line 301, in _est_effect
width = int(command[12])

ValueError: invalid literal for int() with base 10: '0.5'



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/effects.py", line 301, in _est_effect
width = int(command[12])

ValueError: invalid literal for int() with base 10: '0.5'



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/effects.py", line 301, in _est_effect
width = int(command[12])

ValueError: invalid literal for int() with base 10: '2.5'



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/effects.py", line 301, in _est_effect
width = int(command[12])

ValueError: invalid literal for int() with base 10: '2.5'



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/setfx.py", line 45, in _setfx_command
userid = int(command[2])

ValueError: invalid literal for int() with base 10: 'wcs_tmp'



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/setfx.py", line 45, in _setfx_command
userid = int(command[2])

ValueError: invalid literal for int() with base 10: 'wcs_tmp'



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/setfx.py", line 47, in _setfx_command
amount = command[4]

IndexError: Index out of range.



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/setfx.py", line 47, in _setfx_command
amount = command[4]

IndexError: Index out of range.



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/setfx.py", line 45, in _setfx_command
userid = int(command[2])

ValueError: invalid literal for int() with base 10: 'wcs_tmp'



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/effects.py", line 301, in _est_effect
width = int(command[12])

ValueError: invalid literal for int() with base 10: '0.5'



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/effects.py", line 301, in _est_effect
width = int(command[12])

ValueError: invalid literal for int() with base 10: '0.5'



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/effects.py", line 301, in _est_effect
width = int(command[12])

ValueError: invalid literal for int() with base 10: '2.5'



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/effects.py", line 301, in _est_effect
width = int(command[12])

ValueError: invalid literal for int() with base 10: '2.5'



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/setfx.py", line 45, in _setfx_command
userid = int(command[2])

ValueError: invalid literal for int() with base 10: 'wcs_tmp'



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/setfx.py", line 45, in _setfx_command
userid = int(command[2])

ValueError: invalid literal for int() with base 10: 'wcs_tmp'



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/setfx.py", line 47, in _setfx_command
amount = command[4]

IndexError: Index out of range.



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/setfx.py", line 47, in _setfx_command
amount = command[4]

IndexError: Index out of range.



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/setfx.py", line 47, in _setfx_command
amount = command[4]

IndexError: Index out of range.



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/setfx.py", line 47, in _setfx_command
amount = command[4]

IndexError: Index out of range.



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/setfx.py", line 45, in _setfx_command
userid = int(command[2])

ValueError: invalid literal for int() with base 10: 'wcs_tmp'



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/effects.py", line 301, in _est_effect
width = int(command[12])

ValueError: invalid literal for int() with base 10: '0.5'



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/effects.py", line 301, in _est_effect
width = int(command[12])

ValueError: invalid literal for int() with base 10: '0.5'



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/effects.py", line 301, in _est_effect
width = int(command[12])

ValueError: invalid literal for int() with base 10: '2.5'



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/effects.py", line 301, in _est_effect
width = int(command[12])

ValueError: invalid literal for int() with base 10: '2.5'



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/setfx.py", line 45, in _setfx_command
userid = int(command[2])

ValueError: invalid literal for int() with base 10: 'wcs_tmp'



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/setfx.py", line 45, in _setfx_command
userid = int(command[2])

ValueError: invalid literal for int() with base 10: 'wcs_tmp'



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/setfx.py", line 47, in _setfx_command
amount = command[4]

IndexError: Index out of range.



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/setfx.py", line 47, in _setfx_command
amount = command[4]

IndexError: Index out of range.



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/setfx.py", line 47, in _setfx_command
amount = command[4]

IndexError: Index out of range.



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/setfx.py", line 45, in _setfx_command
userid = int(command[2])

ValueError: invalid literal for int() with base 10: 'wcs_tmp'



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/effects.py", line 301, in _est_effect
width = int(command[12])

ValueError: invalid literal for int() with base 10: '0.5'



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/effects.py", line 301, in _est_effect
width = int(command[12])

ValueError: invalid literal for int() with base 10: '0.5'



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/effects.py", line 301, in _est_effect
width = int(command[12])

ValueError: invalid literal for int() with base 10: '2.5'



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/effects.py", line 301, in _est_effect
width = int(command[12])

ValueError: invalid literal for int() with base 10: '2.5'



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/setfx.py", line 45, in _setfx_command
userid = int(command[2])

ValueError: invalid literal for int() with base 10: 'wcs_tmp'



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/setfx.py", line 45, in _setfx_command
userid = int(command[2])

ValueError: invalid literal for int() with base 10: 'wcs_tmp'



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/setfx.py", line 47, in _setfx_command
amount = command[4]

IndexError: Index out of range.



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/setfx.py", line 47, in _setfx_command
amount = command[4]

IndexError: Index out of range.



[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/setfx.py", line 47, in _setfx_command
amount = command[4]

IndexError: Index out of range.


;)

Offline joshtrav

  • Level 3 Trained Apprentice
  • ***
  • Posts: 71
  • Country: 00
  • www.CEGamer.com
    • Carbon Era Gamer
Re: Submit your bugs!
« Reply #19 on: January 22, 2018, 06:03:19 AM »
Quote
What is this^^


Code: [Select]
[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/setfx.py", line 45, in _setfx_command
userid = int(command[2])

ValueError: invalid literal for int() with base 10: 'wcs_tmp'

Try adjusting these if you want more info on what is calling the function with invalid arguments.  You are attempting to cast when you can't.

Code: [Select]
if str(command[2]).isdigit():
    userid = int(command[2])
else:
    raise("Sending wrong value for userid: %s"%(" ".join(command))

Quote
[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/effects.py", line 301, in _est_effect
width = int(command[12])

ValueError: invalid literal for int() with base 10: '0.5'
[/code]

Depending on what you need here, I would just cast to float if the effect doesn't matter (most temp ents dont, or should cast to int at the invoke level)
Code: [Select]
try:
    width = float(c12)
except:
    raise("Sending wrong value for width: %s"%(" ".join(command))

OR
c12 = str(command[12])
if c12.isdigit():
    if "." in c12:
        width = float(c12)
    else:
        width = int(c12)
else:
    raise("Sending wrong value for width: %s"%(" ".join(command))


All of them are ugly, but I don't use the mod nor have I looked at the code to trace the stack down..

Offline Kami

  • Developer
  • Level 7 Expert
  • *****
  • Posts: 886
  • Country: de
  • Pokemon Master!
Re: Submit your bugs!
« Reply #20 on: January 22, 2018, 04:09:30 PM »
[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/setfx.py", line 45, in _setfx_command
userid = int(command[2])

ValueError: invalid literal for int() with base 10: 'wcs_tmp'


this means that you are giving wcs_tmp as a string into wcs_setfx. so like wcs_setfx jetpack event_var(userid) = wcs_tmp. I guess there is a server_var() missing around it.


[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/effects.py", line 301, in _est_effect
width = int(command[12])

ValueError: invalid literal for int() with base 10: '0.5'

this means that you are passing 0.5 as a width for an effect, where it takes only int (as of now, I can change that to be read as a float value and it should be fine)

[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/wcs/setfx.py", line 47, in _setfx_command
amount = command[4]

IndexError: Index out of range.

This means you are missing an argument in one of your setfx, specifically the amount arg. so somewhere in your code it must say: wcs_setfx <todo> event_var(userid) =      and then nothing :)

The other bugs are the same ones as the ones mentioned above or work the same way.

Offline Romero

  • Level 0 Beginner
  • Posts: 16
  • Country: ru
  • Hi there! You're look nice :3
Re: Submit your bugs!
« Reply #21 on: February 09, 2018, 09:56:54 PM »
Hello  ;)
Hmmmm. Wow, strange D:
Code: [Select]
[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/packages/source-python/listeners/tick.py", line 80, in _tick
self.pop(0).execute()
File "../addons/source-python/packages/source-python/listeners/tick.py", line 161, in execute
return self.callback(*self.args, **self.kwargs)
File "../addons/source-python/packages/source-python/listeners/tick.py", line 606, in _execute
self.callback(*self.args, **self.kwargs)
File "../addons/source-python/packages/source-python/menus/queue.py", line 239, in _radio_refresh
queue._refresh()
File "../addons/source-python/packages/source-python/menus/queue.py", line 105, in _refresh
menu._refresh(self._index)
File "../addons/source-python/packages/source-python/menus/base.py", line 100, in _refresh
self._send(player_index)
File "../addons/source-python/packages/source-python/menus/radio.py", line 120, in _send
ShowMenu(*self._build(player_index)).send(player_index)
File "../addons/source-python/packages/source-python/menus/base.py", line 110, in _build
self.build_callback(self, player_index)
File "../addons/source-python/plugins/wcs/changerace.py", line 119, in changerace_menu_build
level_buffer = level
UnboundLocalError: local variable 'level' referenced before assignment

When i select non-empty racecategory.
Or just my brain is a bit stupid xD
« Last Edit: February 09, 2018, 10:04:51 PM by Romero »

Offline Kami

  • Developer
  • Level 7 Expert
  • *****
  • Posts: 886
  • Country: de
  • Pokemon Master!
Re: Submit your bugs!
« Reply #22 on: February 09, 2018, 09:59:07 PM »
Thank you, I will look into it!

Edit: Fixed and pushed to GitHub :)
« Last Edit: February 09, 2018, 10:01:47 PM by Kami »

Offline Romero

  • Level 0 Beginner
  • Posts: 16
  • Country: ru
  • Hi there! You're look nice :3
Re: Submit your bugs!
« Reply #23 on: February 09, 2018, 10:05:55 PM »
Wow, cool.
Thank you so much :D

Offline phixious

  • Level 1 Trained Beginner
  • *
  • Posts: 26
  • Country: us
  • <3 WCS :)
Re: Submit your bugs!
« Reply #24 on: February 10, 2018, 01:09:23 AM »
i caught a couple things during testing tonight. I am running files after commit F952001

Quote from: console
[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/packages/source-python/events/listener.py", line 92, in fire_game_event
callback(game_event)
File "../addons/source-python/plugins/wcs/wcs.py", line 1008, in round_start
raceinfo = racedb.races[race]
File "../addons/source-python/packages/site-packages/configobj.py", line 554, in __getitem__
val = dict.__getitem__(self, key)
KeyError: ''
getplayerlocation, invalid userid


[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/packages/source-python/events/listener.py", line 92, in fire_game_event
callback(game_event)
File "../addons/source-python/plugins/wcs/wcs.py", line 1111, in player_death
molotovxp = config.cfgdata['bot_molotovxp']
KeyError: 'bot_molotovxp'


Bad SetLocalOrigin(-1175.968750,1337.842285,18947.505859) on weaponworldmodel
[wcs/races/flame_predator/spawn 3] es_getgame: The var 'wcs_gamecheck' could not be found


[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/packages/source-python/events/listener.py", line 92, in fire_game_event
callback(game_event)
File "../addons/source-python/plugins/wcs/wcs.py", line 1156, in player_death
assistxp = config.cfgdata('bot_assistxp')
TypeError: 'dict' object is not callable


[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/packages/source-python/commands/auth.py", line 44, in __call__
return self.callback(*args)
File "../addons/source-python/packages/source-python/menus/queue.py", line 267, in _menuselect_callback
_radio_queues[index]._select(choice)
File "../addons/source-python/packages/source-python/menus/queue.py", line 126, in _select
next_menu = active_menu._select(self._index, choice)
File "../addons/source-python/packages/source-python/menus/radio.py", line 316, in _select
return super()._select(player_index, choice_index)
File "../addons/source-python/packages/source-python/menus/radio.py", line 113, in _select
self._player_pages[player_index].options[choice_index])
File "../addons/source-python/packages/source-python/menus/base.py", line 122, in _select
return self.select_callback(self, player_index, choice_index)
File "../addons/source-python/plugins/wcs/levelbank.py", line 199, in wcs_amount_select
wcs_player = wcs.wcs.getPlayer(userid_from_index(index))
AttributeError: module 'wcs.wcs' has no attribute 'getPlayer'

Also, just so we move this over to this thread rather than the other thread. If you have renamed the table in the levelbank, then I am not loading properly or something. I will attempt to dump the old .db file but when I load it into SQLite manager, I am still seeing 'BankPlayers' as well as a 'Players' table. If it were some strange issue like that though, I figure that it would be throwing different errors than the above error with levelbank.py.

Also, in the github respository, it appears to still be looking for the BankPlayer in the class


Maybe never pushed the change?

Edit: just saw your update in the other thread. To clarify, the file levelbank.db has 2 tables and when pointing the wcs_levelbank_connectstring to the same mysql db as wcs_database_connectstring. The table doesn't appear to be getting created by default as the other two tables do. I was just able to get it to create successfully. Maybe I had something configured incorrectly before. @_@
« Last Edit: February 10, 2018, 01:29:03 AM by phixious »

Offline Kami

  • Developer
  • Level 7 Expert
  • *****
  • Posts: 886
  • Country: de
  • Pokemon Master!
Re: Submit your bugs!
« Reply #25 on: February 10, 2018, 01:17:37 AM »
I'm currently rewriting levelbank to add Threading. I will fix your issues too :)

Offline Kami

  • Developer
  • Level 7 Expert
  • *****
  • Posts: 886
  • Country: de
  • Pokemon Master!
Re: Submit your bugs!
« Reply #26 on: February 10, 2018, 03:53:01 AM »
Updated WCS. Levelbank now uses Threads too and should work without a problem in a MySQL database :)

If you encounter any problems with it let me know

Offline Romero

  • Level 0 Beginner
  • Posts: 16
  • Country: ru
  • Hi there! You're look nice :3
Re: Submit your bugs!
« Reply #27 on: February 11, 2018, 08:04:59 PM »
Hmmmm.
Today, the latest update of WCS

Code: [Select]
[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/packages/source-python/listeners/tick.py", line 80, in _tick
self.pop(0).execute()
File "../addons/source-python/packages/source-python/listeners/tick.py", line 161, in execute
return self.callback(*self.args, **self.kwargs)
File "../addons/source-python/plugins/wcs/wcs.py", line 544, in give_xp
self.give_level(amount_of_levels)
File "../addons/source-python/plugins/wcs/wcs.py", line 570, in give_level
wcs_rank[self.steamid]['totallevel'] += amount
TypeError: 'int' object is not subscriptable
I do not know what that means, so I'll just leave it here.

P.S. Forgot to say, this error when trying to change the race, it is when choosing a race. It does not change
« Last Edit: February 11, 2018, 08:11:45 PM by Romero »

Offline Kami

  • Developer
  • Level 7 Expert
  • *****
  • Posts: 886
  • Country: de
  • Pokemon Master!
Re: Submit your bugs!
« Reply #28 on: February 11, 2018, 08:30:21 PM »
Thank you for reporting. This happened when a player was not in the database yet. Fixed it!

Offline Stupid Shinji

  • Level 0 Beginner
  • Posts: 1
  • Country: 00
  • I miss CSS.
Re: Submit your bugs!
« Reply #29 on: February 16, 2018, 09:23:17 AM »
 I got the following bugs after I purged the default races and added a single race of my own. Also reconfigured the emulator files with the blocks of code and race load file. Can no longer give myself levels or anything of the sort as it times out he popup and doesn't do anything.

Code: [Select]
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\__init__.py", line 246, in run
    run_old(*args, **kwargs)
  File "..\addons\source-python\Python3\threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "..\addons\source-python\plugins\wcs\levelbank.py", line 88, in _load_from_database
    with session_scope() as session:[code]

Also:

Code: [Select]
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\__init__.py", line 246, in run
    run_old(*args, **kwargs)
  File "..\addons\source-python\Python3\threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "..\addons\source-python\plugins\wcs\wcs.py", line 375, in _load_from_database
    if skill in racedb.races[self.race_name]:
  File "..\addons\source-python\packages\site-packages\configobj.py", line 554, in __getitem__
    val = dict.__getitem__(self, key)

KeyError: 'Undead Scourge'