PT
Developer Forums
Register
Login
AppGameKit Classic Chat
->
[Plugin Bug] Expects 48 Arguments! -
<
1
>
P
PartTimeCoder
Joined:
9th Mar 2015
Location:
London UK
Posted:
20th Feb 2021 3:19
Just had a LoL moment and had to share, plus its a bug
I made a bobo in a call to a plugin function that expects a single integer argument, I dropped the argument and AppGameKit threw an error, see below.
M
MadBit
Joined:
25th Jun 2009
Location:
Germany
Posted:
20th Feb 2021 18:20
It could be the empty line you have in the commandlist.txt.
I've stumbled across it several times.
Delete the last line and it should work.
P
PartTimeCoder
Joined:
9th Mar 2015
Location:
London UK
Posted:
20th Feb 2021 20:30
Same situation, 48 turns to 0, there is definitely something wrong with the plugin argument checking system
M
MadBit
Joined:
25th Jun 2009
Location:
Germany
Posted:
20th Feb 2021 21:46
I have had no problems with the plugins so far if all the entries in the Commandlist.txt are correct.
I noticed that the Windows64 entry is missing for all functions in your file. This may be the reason.
commandlist.txt (header)
#CommandName,ReturnType,ParameterTypes,Windows,Linux,Mac,Android,iOS,Windows64
P
PartTimeCoder
Joined:
9th Mar 2015
Location:
London UK
Posted:
21st Feb 2021 1:18
Ah yeah I built my template before Windows64 was added, nice catch
the plugin works just fine if I pass the right argument its just the error checking that's off.