ULX

Author Topic: Adverts all appear at once  (Read 3226 times)

0 Members and 2 Guests are viewing this topic.

Offline ToshNeox

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Adverts all appear at once
« on: March 27, 2012, 12:00:45 PM »
Hi. I've had a problem with my adverts using XGUI. I want to have each of my 4 adverts show every 150 seconds, but not all at the same time. Currently, when I click update and leave XGUI, 150 seconds later, all the ads show at once. I just want each one to show 150 seconds after each other. I've put them into separate groups, but to no avail. Is this a bug or can this be fixed?

ULX version: SVN (updated few days ago)
Server versions: All updated (few days ago)
Other addons: WireMod, ACF, EasyPrecision, Precision Alignment (+ others).

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Adverts all appear at once
« Reply #1 on: March 27, 2012, 07:17:05 PM »
Hi.
I believe different groups will appear at the same time.
Hello A 150
World B 150
"Hello world" will all appear 150 seconds after server start.
However,
Hello A 150
World A 1
Will print hello at 150 and world at 151 (1 second later).
(Search our forums, as this has come up 2-3 years ago, and read your gmod/addons/ulx/data/adverts.txt for detail, then manually check your actual gmod/data/ulx/adverts file.)
Though its possible Stickly added an unplanned feature to XGUI, I'm betting the grouping will correct it.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline ToshNeox

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Adverts all appear at once
« Reply #2 on: March 28, 2012, 08:20:02 AM »
Thanks, that worked. I never thought about putting them in a group. Maybe it would help if the adverts which weren't in a group, were put into an 'undefined' group so they don't show at once :D

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Adverts all appear at once
« Reply #3 on: March 28, 2012, 10:52:22 AM »
It's tough to clearly communicate what these numbers mean, but it is our opinion that if adverts aren't in a group, the most logical behavior is to have the second count for each one be the amount of time from map start (EG, the current behavior). :)
Experiencing God's grace one day at a time.