Bug with particles and commands #141


  • Defect
  • Replied
Open
Assigned to _ForgeUser8860360
  • _ForgeUser7488038 created this issue Jul 20, 2015
    === Brief error description ===

    Probably something to do with the expression particleenum:

    • If i try to use it as a expression on a command, as shown below, it doesnt work, for example i place flame in the particle, it says usage: /particle <types.particleenum>
    • If i try to summon a particle and substitute the particleenum with a variable or a arg instead of a name of a particle, it gives the error show below
    === What causes this error? Please paste the exact line you used ===
    command /particle <particleenum>:
    	trigger:
    		spawn 1 of particle arg 1:0 offset by 0, 0 and 0 at player with data 0
    		#or
    		set {_particle} to arg 1
    		spawn 1 of particle {_particle}:0 offset by 0, 0 and 0 at player with data 0
    
    === Please use Pastebin.com and paste the error you get, then paste the URL here ===
    20.07 18:40:06 [Server] ERROR ':0 offset by 0, 0 and 0 at player with data 0' is not a valid item data (Tests.sk, line 77: spawn 1 of particle {_particle}:0 offset by 0, 0 and 0 at player with data 0')
    20.07 18:40:06 [Server] ERROR ':0 offset by 0, 0 and 0 at player with data 0' is not a valid item data (Tests.sk, line 74: spawn 1 of particle arg 1:0 offset by 0, 0 and 0 at player with data 0')
    

    Srry no pastebin :(

    === What server version are you using? Latest is not an answer! Use /ver and tell me ===

    1.8.7-R0.1-SNAPSHOT

    === What Umbaska version are you using? If you're using a BETA version please paste the ID ===

    The lastest not beta, 1.5.2_JAVA7

    === Is there anything else? ===

    I would love to get this to work, and thank you for being awesome! :D

  • _ForgeUser7488038 added the tags New Defect Jul 20, 2015
  • _ForgeUser7488038 posted a comment Jul 21, 2015

    Ditto?

  • _ForgeUser8860360 posted a comment Jul 22, 2015

    @Tosindo: Go

    It means he's getting the same problem.


    Edited Jul 22, 2015
  • _ForgeUser10105717 posted a comment Jul 22, 2015

    Please enable Debug Mode in the Umbaska Config, restart your server and post your startup log. After that, please disable it again and restart your server. With the current version, Debug Mode stops all Expressions from actually being enabled. It's been fixed and I'll release an update sooner or later <3


    Edited Jul 22, 2015
  • _ForgeUser10105717 removed a tag New Jul 22, 2015
  • _ForgeUser10105717 added a tag Waiting Jul 22, 2015
  • _ForgeUser7488038 posted a comment Jul 22, 2015

    @Nfell2009: Go

    Oh thanks i didnt know :)

    @RealGatt: Go

    http://pastebin.com/BartdmYm Is that what you asked? :)

    And good to know it will be fixed <3

  • _ForgeUser7488038 removed a tag Waiting Jul 22, 2015
  • _ForgeUser7488038 added a tag Replied Jul 22, 2015
  • _ForgeUser10105717 posted a comment Jul 22, 2015

    @Tosindo: Go

    That's perfect. It looks like the effects are registering correctly... It's probably just something to do with <particleenum>. Try parsing a Text as a particleenum and tell me if it persists.

  • _ForgeUser7488038 posted a comment Jul 23, 2015
    command /testy:
    	trigger:
    		set {_text} to "flame"
    		set {_particle} to {_text} parsed as a particleenum
    		message "%{_particle}%"
    		#spawn 1 of particle {_particle}:0 offset by 0, 0 and 0 at player with data 0
    

    Without the Spawn particle, the variable {_particle} is <none>

    With the spawn particle, Gives the same error:

    23.07 11:35:27 [Server] INFO Encountered 1 error while reloading Tests.sk!
    23.07 11:35:27 [Server] ERROR ':0 offset by 0, 0 and 0 at player with data 0' is not a valid item data (Tests.sk, line 154: spawn 1 of particle {_particle}:0 offset by 0, 0 and 0 at player with data 0')
    23.07 11:35:27 [Server] INFO Reloading Tests.sk...
    
  • _ForgeUser10105717 posted a comment Jul 24, 2015

    @Tosindo: Go

    Oh, right! Sorry! I just realised that all the particle names have "particle " at the start, so that they don't collide with other things. For example, when I was using the code;

    loop-block is water:
    

    It was saying blocks can't be checked against a particle, since the particle name and the block name is correct. Sowwy <3

  • _ForgeUser7488038 posted a comment Jul 31, 2015

    @RealGatt: Go

    I found that out, i tested to use the %all enum values of particleenum% of skquery, and it gave me this list:

    particle tile dust, particle tile break, particle block dust, particle block break, particle item break, particle huge explosion, particle large explode, particle fireworks spark, particle suspended, particle depth suspend, particle crit, particle magic crit, particle smoke, particle mob spell, particle mob spell ambient, particle spell, particle instant spell, particle witch magic, particle note, particle portal, particle enchantment table, particle explode, particle flame, particle lava, particle footstep, particle splash, particle large smoke, particle cloud, particle red dust, particle snowball poof, particle drip water, particle drip lava, particle snow shovel, particle slime, particle heart, particle angry villager and particle happy villager
    

    :o

  • _ForgeUser7488038 posted a comment Aug 5, 2015

    Okey, its obvious i think, but its kinda of fixed?

    Like i can just take out the particle part from the code:

    spawn 1 of particle {_particle}:0 offset by 0, 0 and 0 at player with data 0
    

    and place like this:

    spawn 1 of {_particle}:0 offset by 0, 0 and 0 at player with data 0
    

    So its working, i just misunderstood i think!


To post a comment, please login or register a new account.