calafex / HPW_Rewrite

Main repository for Harry Potter Magic Wand Rewrite.
MIT License
8 stars 14 forks source link

Console Error #1

Closed baristaner closed 7 years ago

baristaner commented 7 years ago

I Got this error guys i cant open spell menu i cant do spells

[ERROR] addons/hpw_rewrite-master/lua/weapons/weapon_hpwr_stick.lua:1097: attempt to call method 'GetPlayerSpell' (a nil value)

  1. unknown - addons/hpw_rewrite-master/lua/weapons/weapon_hpwr_stick.lua:1097

[ERROR] addons/hpw_rewrite-master/lua/weapons/weapon_hpwr_stick.lua:1097: attempt to call method 'GetPlayerSpell' (a nil value)

  1. unknown - addons/hpw_rewrite-master/lua/weapons/weapon_hpwr_stick.lua:1097

[ERROR] addons/hpw_rewrite-master/lua/weapons/weapon_hpwr_stick.lua:1097: attempt to call method 'GetPlayerSpell' (a nil value)

  1. unknown - addons/hpw_rewrite-master/lua/weapons/weapon_hpwr_stick.lua:1097

[ERROR] addons/hpw_rewrite-master/lua/weapons/weapon_hpwr_stick.lua:242: attempt to call method 'GetPlayerSkin' (a nil value)

  1. unknown - addons/hpw_rewrite-master/lua/weapons/weapon_hpwr_stick.lua:242
baristaner commented 7 years ago

So When is come new updates

baristaner commented 7 years ago

by the way i just oppened magic wand rewrite and i cant see other wants need another plugin?

baristaner commented 7 years ago

image

Sachha commented 7 years ago

Same problem for me :/

baristaner commented 7 years ago

image

and there is no spell in the book

baristaner commented 7 years ago

[ERROR] addons/hpw_rewrite-master/lua/hpwrewrite/spellmanager.lua:868: bad argument #1 to 'Format' (string expected, got nil)

  1. Format - [C]:-1
    1. PlayerGiveLearnableSpell - addons/hpw_rewrite-master/lua/hpwrewrite/spellmanager.lua:868
    2. GiveSpells - addons/hpw_rewrite-master/lua/entities/entity_hpwand_kingbook.lua:16
      1. unknown - addons/hpw_rewrite-master/lua/entities/entity_hpwand_bookbase.lua:82
Sachha commented 7 years ago

Here's the log after the 1st player connected :

2. unknown - lua/includes/extensions/net.lua:32
1. func - addons/wand/lua/hpwrewrite/net/client.lua:67
[ERROR] addons/wand/lua/hpwrewrite/net/client.lua:67: attempt to call method 'GetSpellById' (a nil value)

[[MyDarkRP] DiaZzZy|2|STEAM_0:1:62589599] Lua Error:

2. unknown - lua/includes/extensions/net.lua:32
1. func - addons/wand/lua/hpwrewrite/net/client.lua:140
[ERROR] addons/wand/lua/hpwrewrite/net/client.lua:140: attempt to call method 'GetLearnedSpells' (a nil value)

[[MyDarkRP] DiaZzZy|2|STEAM_0:1:62589599] Lua Error:

5. unknown - addons/wand/lua/autorun/hpwandrewrite.lua:642
4. LoadFile - addons/wand/lua/autorun/hpwandrewrite.lua:597
3. include - [C]:-1
2. unknown - addons/wand/lua/hpwrewrite/spelltree.lua:575
1. BuildNodes - addons/wand/lua/hpwrewrite/spelltree.lua:41
[ERROR] addons/wand/lua/hpwrewrite/spelltree.lua:41: attempt to call method 'GetSpells' (a nil value)

[[MyDarkRP] DiaZzZy|2|STEAM_0:1:62589599] Lua Error:

5. unknown - addons/wand/lua/autorun/hpwandrewrite.lua:637
4. LoadFile - addons/wand/lua/autorun/hpwandrewrite.lua:597
3. include - [C]:-1
2. unknown - addons/wand/lua/hpwrewrite/spellmanager.lua:30
1. AddCategory - addons/wand/lua/hpwrewrite/spellmanager.lua:27
[ERROR] addons/wand/lua/hpwrewrite/spellmanager.lua:27: table index is nil

You need to read this from bottom to the top. I hope it can help you :)

baristaner commented 7 years ago

Are you can open spell tree ? i cant because

Sachha commented 7 years ago

I can't open anything :/

baristaner commented 7 years ago

Yeah me too

baristaner commented 7 years ago

i used in sandbox but didnt work

baristaner commented 7 years ago

image

i download it in steam and here but didnt work

baristaner commented 7 years ago

Please fix it fast i love this addon

Sachha commented 7 years ago

@EgrOnWire I don't use a pirated copies of gmod. Btw, even in sandbox, it's the same error ...

Try it in solo and sandbox and you will see ^^'

calafex commented 7 years ago

hotfix: change gmod language to English or Russian if you get errors, working on fix right now