ULX

Author Topic: Conflicting Code  (Read 1560 times)

0 Members and 1 Guest are viewing this topic.

Offline Born2BeatU

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Conflicting Code
« on: May 28, 2014, 03:58:42 PM »
 My friend made a script where surface.DrawPoly() is used to draw polygons in the same paint hook (2d) where some text is draw using draw.SimpleText. The polygons and text are drawn at the position of a keypad in game. For some reason when using ULib, directly looking at the keypad causes the polygons not to draw, but the text still draws. The polygons still draw when not looking at the keypad. We are fairly sure it is not to do with the script as it works unless used with ULib. If it is the script, or some conflict with ULib, would you be able to help us identify it?

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Conflicting Code
« Reply #1 on: May 28, 2014, 05:20:04 PM »
Post the code. It's possible you're using a conflicting hook name or something like that. As far as I know, ULib shouldn't interfere with any surface clientside functions.

Offline Cobalt

  • Full Member
  • ***
  • Posts: 216
  • Karma: 44
  • http://steamcommunity.com/id/__yvl/
Re: Conflicting Code
« Reply #2 on: May 28, 2014, 06:42:35 PM »
How can you tell if the polygon is drawing when you aren't looking at it...?
You might be using surface.DrawPoly wrong. Did you make sure to set the points clockwise?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Conflicting Code
« Reply #3 on: May 28, 2014, 09:30:47 PM »
Remaining neutral - No matter the reason, attaching the code files, including any hooks you're using, would be required for identifying.
I didn't even think we over-write any GUI, but, as MrPres states, it could be simple as a shared not-so-unique name.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming