Ulysses

General => Developers Corner => Topic started by: bender180 on April 13, 2013, 09:51:25 AM

Title: no targets found
Post by: bender180 on April 13, 2013, 09:51:25 AM
With my custom commands when i use them in single player through xgui i receive the error "argument #1: no targets found" however when i run the command through the console in single player it works perfectly. On multiplayer servers the commands work great from xgui or console, is this a bug in my code or is this an xgui bug?
Title: Re: no targets found
Post by: MrPresident on April 13, 2013, 12:09:40 PM
Sounds like something with xgui. Are you targeting yourself or a bot. before the error, what does xgui try to run?
Title: Re: no targets found
Post by: bender180 on April 13, 2013, 12:19:31 PM
Happens when i target myself. I haven't tried on a bot because you cant spawn one in a single player game. The commands work fine from xgui when the min players is 2 or more.
Title: Re: no targets found
Post by: bender180 on April 14, 2013, 08:12:54 PM
anyone have any idea how i can fix this?
Title: Re: no targets found
Post by: nathan736 on April 15, 2013, 08:26:38 AM
could you post the code u used ?  :-\
Title: Re: no targets found
Post by: Megiddo on April 16, 2013, 07:42:12 AM
Are you able to use any other commands from XGUI?
Title: Re: no targets found
Post by: bender180 on April 16, 2013, 04:16:53 PM
Are you able to use any other commands from XGUI?

Turns out none of the commands work from xgui they are returning "Command "ulx slay", argument #1: no targets found" and something else i noticed was in psay my name doesn't appear (intentional?), but again all the commands work from console
Title: Re: no targets found
Post by: Megiddo on April 16, 2013, 05:46:16 PM
Yes, your name not appearing in psay is intentional. We don't officially support ULX/XGUI in single player, but we'll check into the issue and see what we can find.
Title: Re: no targets found
Post by: JamminR on April 16, 2013, 07:15:34 PM
Bender, before we go digging too deep, have you modified any of our default code or functions?
Even directly, or through your own addon/command work?
Title: Re: no targets found
Post by: bender180 on April 17, 2013, 08:55:51 AM
I don't think I have, I used the commands you ship it with to build my commands so there is a possibility I did it with out realizing I'll try removing my commands to see if it makes a difference.
Title: Re: no targets found
Post by: JamminR on April 17, 2013, 02:06:14 PM
I doubt you did. You'd have to have actually written commands over-writing ULib functions.
But I wanted to check first.