Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: jesus on November 12, 2005, 03:25:21 PM

Title: How to use adverts?
Post by: jesus on November 12, 2005, 03:25:21 PM
My Adverts ARE working now, as well as everything else, amazing work guys!!
Title: Re: How to use adverts?
Post by: Golden-Death on November 12, 2005, 03:58:19 PM
Go to lua/ulx/ulx_config.lua and follow the directions in there

Title: Re: How to use adverts?
Post by: Megiddo on November 12, 2005, 05:50:29 PM
Also make sure you're using v0.81+ or it won't work.
Title: Re: How to use adverts?
Post by: jesus on November 13, 2005, 04:14:50 AM
Yeah i'm using 8.1, when you install it you have one test add in there right?
So when I start a server what do I do to enable them? (Nothing came up by default)
Title: Re: How to use adverts?
Post by: Megiddo on November 13, 2005, 08:18:44 AM
Sorry, turns out that function isn't working for some reason. You can call the addAdvert() and addCsayAdvert() directly and it should work, however.
Title: Re: How to use adverts?
Post by: jesus on November 14, 2005, 09:52:19 AM
OK...
I have 0.9
And I use this:

Quote
function ulx_loadConfig( name, userid, steamid )
   if gConfigLoaded == true then
      return -- Already loaded
   end
   
   -- Adverts
   -- addCsayAdvert( msg, r, g, b, repeat_time, length )
   -- addAdvert( msg, repeat_time )
   -- You can use %hostname%, %curmap%, and %nextmap% in your text and have it automaticly parsed for you
   addCsayAdvert( "Welcome to %hostname%, enjoy your stay!", 100, 255, 200, 300, 5 )
   addAdvert( "Remember to play nicely!", 360 )
   addAdvert( "Jesus is admin on this server.", 613 )
   addAdvert( "Red team = Admin, yellow = VIP and blue = Normal.", 605 )
   addCsayAdvert( "The map you are playing on is %curmap%", 100, 255, 200, 150, 5 )


   gConfigLoaded = true
end

But nothing comes up.

If i'm doing something wrong please tell me exactly what to type into the console to activate it.
Title: Re: How to use adverts?
Post by: Mank on November 14, 2005, 01:14:32 PM
OK...
I have 0.9
And I use this:

But nothing comes up.

If i'm doing something wrong please tell me exactly what to type into the console to activate it.

You're a beta tester?
Title: Re: How to use adverts?
Post by: jesus on November 14, 2005, 01:27:30 PM
You're a beta tester?

No, 0.9 has been released to the public.
But can anyone help??
Title: Re: How to use adverts?
Post by: Mank on November 14, 2005, 02:06:44 PM
No, 0.9 has been released to the public.
But can anyone help??


Oh, I didn't read the main site.
Title: Re: How to use adverts?
Post by: Megiddo on November 14, 2005, 03:08:20 PM
OK...
I have 0.9
And I use this:

But nothing comes up.

If i'm doing something wrong please tell me exactly what to type into the console to activate it.

You're probably just not noticing it come up :-P . If you leave your console for a while and come back, you should see the messages in your console. ( Or you could set the time to 10 seconds to doubly make sure it's working )
Title: Re: How to use adverts?
Post by: jesus on November 15, 2005, 08:18:05 AM
Wait, these messages will come up on screen like ulx_csay right?


EDIT: I did that, I set them to intervals of 5, and 10 etc.
Nothing came up, in the console or on screen.
Title: Re: How to use adverts? (EDITED)
Post by: jesus on November 20, 2005, 02:34:57 PM
My Adverts ARE working now, as well as everything else, amazing work guys!!
Title: Re: How to use adverts?
Post by: Megiddo on November 20, 2005, 03:53:18 PM
So what was the problem?
Title: Re: How to use adverts?
Post by: jesus on November 20, 2005, 04:36:19 PM
Basically not all the 0.81 files were overwritten by the 0.90 files and so it actually loaded half 0.90 and half 0.81

I first noticed that this was the problem when I had ulx_weaponmenu on the ulx_help but it wouldn't load, this also caused errors with my melonrace and votemap changes.

Sorry for the trouble.