Page 1 of 1
[Asked][1.9.69p] Plugin crash (one_wway_road.json:122)
Posted: 31 Jan 2021, 01:32
by JohnSallow
Hi, I got the following error with a plugin (one_wway_road.json:122):
Code: Select all
In one_wway_road.zip:
java.lang.IllegalStateException: When loading "Diagonal_One_way": Dirs length must be 64 but got 24
Device: ()
OS version: 0
Thank you in advance.
Re: [Asked][1.9.69p] Plugin crash (one_wway_road.json:122)
Posted: 31 Jan 2021, 02:16
by CommanderABab
Is it yours?
Re: [Asked][1.9.69p] Plugin crash (one_wway_road.json:122)
Posted: 31 Jan 2021, 03:28
by JohnSallow
No, but the same error occurred in all my diagonal road plugins, even in my diagonal railways made by me
Re: [Asked][1.9.69p] Plugin crash (one_wway_road.json:122)
Posted: 31 Jan 2021, 05:24
by CommanderABab
Yes, the dirs array has to be 64 for one way roads.
Re: [Asked][1.9.69p] Plugin crash (one_wway_road.json:122)
Posted: 31 Jan 2021, 05:48
by JohnSallow
Ok, I see. Thx
Re: [Asked][1.9.69p] Plugin crash (one_wway_road.json:122)
Posted: 31 Jan 2021, 05:55
by JohnSallow
CommanderABab wrote: ↑31 Jan 2021, 05:24
Yes, the dirs array has to be 64 for one way roads.
But there are actually 64, aren't there?
Re: [Asked][1.9.69p] Plugin crash (one_wway_road.json:122)
Posted: 31 Jan 2021, 15:41
by CommanderABab
Those 64 dirs apply to the first 16 frames. The dirs for the 48 remaining frames are calculated from the first set.
Re: [Asked][1.9.69p] Plugin crash (one_wway_road.json:122)
Posted: 01 Feb 2021, 00:29
by JohnSallow
How
Re: [Asked][1.9.69p] Plugin crash (one_wway_road.json:122)
Posted: 01 Feb 2021, 01:53
by CommanderABab
128
064
032
016
008
004
002
001
There are
Frame index mod 16 sets of 4 dirs per tile.
Re: [Asked][1.9.69p] Plugin crash (one_wway_road.json:122)
Posted: 14 Mar 2022, 07:26
by Franconob07
Hola john disculpa.las molestias necesito una pequeña ayuda con un plugin y no puedo encontrar tu usuario de discord


ojalá puedas contestarme. Gracias
Re: [Asked][1.9.69p] Plugin crash (one_wway_road.json:122)
Posted: 26 Mar 2022, 21:56
by 1Code
Franconob07 wrote: ↑14 Mar 2022, 07:26
Hello john sorry for the inconvenience I need a little help with a plugin and I can't find your discord user  I hope you can answer me. Thanks