ULX

Author Topic: no targets found  (Read 3556 times)

0 Members and 1 Guest are viewing this topic.

Offline bender180

  • Full Member
  • ***
  • Posts: 217
  • Karma: 42
    • Benders Villa
no targets found
« 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?
Made community pool and community bowling and for the life of me couldn't tell you why they are popular.
Also made the ttt ulx commands.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: no targets found
« Reply #1 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?

Offline bender180

  • Full Member
  • ***
  • Posts: 217
  • Karma: 42
    • Benders Villa
Re: no targets found
« Reply #2 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.
Made community pool and community bowling and for the life of me couldn't tell you why they are popular.
Also made the ttt ulx commands.

Offline bender180

  • Full Member
  • ***
  • Posts: 217
  • Karma: 42
    • Benders Villa
Re: no targets found
« Reply #3 on: April 14, 2013, 08:12:54 PM »
anyone have any idea how i can fix this?
Made community pool and community bowling and for the life of me couldn't tell you why they are popular.
Also made the ttt ulx commands.

Offline nathan736

  • Full Member
  • ***
  • Posts: 143
  • Karma: 4
Re: no targets found
« Reply #4 on: April 15, 2013, 08:26:38 AM »
could you post the code u used ?  :-\
a person asked me how to code lua and i said this " its like building a rocket up side down then  realizing you did it all wrong."

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: no targets found
« Reply #5 on: April 16, 2013, 07:42:12 AM »
Are you able to use any other commands from XGUI?
Experiencing God's grace one day at a time.

Offline bender180

  • Full Member
  • ***
  • Posts: 217
  • Karma: 42
    • Benders Villa
Re: no targets found
« Reply #6 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
Made community pool and community bowling and for the life of me couldn't tell you why they are popular.
Also made the ttt ulx commands.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: no targets found
« Reply #7 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.
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: no targets found
« Reply #8 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?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline bender180

  • Full Member
  • ***
  • Posts: 217
  • Karma: 42
    • Benders Villa
Re: no targets found
« Reply #9 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.
Made community pool and community bowling and for the life of me couldn't tell you why they are popular.
Also made the ttt ulx commands.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: no targets found
« Reply #10 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.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming