Author Topic: UMaps - change map at specified time  (Read 36171 times)

0 Members and 3 Guests are viewing this topic.

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
UMaps - change map at specified time
« on: January 27, 2007, 08:43:29 PM »
Description:
Cycles through a list of maps at given time.

Current Version: v1.11

New version(s) v1.10+ require ULib.

Features:
  • Client side HUD alert when it gets close to changing map.
  • Define change time as an interval or list of real world times.
  • Resynchronizes time between server and client to ensure accuracy of HUD.

Installation:
  • Ensure you have the latest version of ULib installed. Avalible at http://www.ulyssesmod.net. (Version 1.10 and up)
  • Extract the contents of the zip to your root garrysmod directory.
  • Configure settings in data/UMaps.txt (format documentation in lua/ULib/modules/UMaps/init.lua.)

Screenshot:


Changelog:
  • Version 1.11
    [Fix] Few bugs I missed in last update.
  • Version 1.10
    [Change] Now a ULib module.
    [Change] Text alerts now appear in chat.
    [Add] umaps_extend command
  • Version 1.00
    Initial release

Download:
« Last Edit: February 03, 2007, 05:53:57 PM by spbogie »
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: UMaps - change map at specified time
« Reply #1 on: January 27, 2007, 08:46:53 PM »
Good job spbogie! :)
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: UMaps - change map at specified time
« Reply #2 on: January 27, 2007, 10:27:36 PM »
NICE!
Now, if only it would reload any contraptions I'd made for the next level. :P
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Mank

  • Full Member
  • ***
  • Posts: 209
  • Karma: 9
    • Ulysses Mod!
Re: UMaps - change map at specified time
« Reply #3 on: January 28, 2007, 09:18:57 AM »
  • Extract the contents of the zip to your root garrysmod directory.

EDIT: I won't broadcast a fixed error

Nice work!
« Last Edit: January 28, 2007, 02:00:37 PM by Mank »
If you doubt your powers you bring powers to your doubts.

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: UMaps - change map at specified time
« Reply #4 on: January 28, 2007, 10:32:31 AM »
Yeah, I can't spell.
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline timbishop

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: UMaps - change map at specified time
« Reply #5 on: February 02, 2007, 03:19:26 PM »
Thank you kind Sir!  ;D
The NSM deeply Appreciates it!

But, why didn't you give me any credit?  ::) - http://forums.ulyssesmod.net/index.php/topic,685.0.html

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: UMaps - change map at specified time
« Reply #6 on: February 03, 2007, 07:02:45 AM »
To be honost I had no idea where I saw the request for it. I was just sitting there a remembered someone somewhere had asked for it.
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: UMaps - change map at specified time
« Reply #7 on: February 03, 2007, 02:42:33 PM »
New Version Released.

Changelog:
  • Version 1.10
    [Change] Now a ULib module.
    [Change] Text alerts now appear in chat.
    [Add] umaps_extend command

The new version requires ULib.

Edit: I'm considering a vote for next map feature. Any comments or other ideas for next release?

Edit: Missed a few bugs in last release. v1.11 now up.
« Last Edit: February 03, 2007, 05:54:43 PM by spbogie »
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline timbishop

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: UMaps - change map at specified time
« Reply #8 on: February 05, 2007, 05:22:59 AM »
I am having issues with it.
I tried sending you a PM, but it doesn't seem to have gone through.  ???

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: UMaps - change map at specified time
« Reply #9 on: February 05, 2007, 01:51:41 PM »
I haven't recieved any new PM's. Just post your problem here.
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline timbishop

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: UMaps - change map at specified time
« Reply #10 on: February 06, 2007, 06:14:14 AM »
I installed UMaps 1.11 on my dedicated server, I set the map change minutes in UMaps.txt to 10,
and waited well over 20 minutes in-game for some sort of prompt. Nothing at all happens.

Also, when I type umaps_show in the client console, this is what follows:

] umaps_show
Unknown command: _umaps_chatprint
**********************************************************
ERROR: Hook 'UMaps.Paint' Failed: UMaps/cl_init.lua:9: attempt to perform arithmetic on local 's' (a nil value)
Removing Hook 'UMaps.Paint'
**********************************************************

I'm absolutely sure I have installed both UMaps and ULib correctly, since ULX works flawlessly.

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: UMaps - change map at specified time
« Reply #11 on: February 06, 2007, 01:28:28 PM »
Based on those I can tell that the script is not running properly on the server. Please check your dedicated server console for errors. It will most likely be as it is loaded (right after ULX).
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline timbishop

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: UMaps - change map at specified time
« Reply #12 on: February 07, 2007, 06:45:27 AM »
OK,
I have been using the GUI that comes with Armpit's dedicated server installer, out of laziness.
The GUI console hides all the crap when you first start the server, so I never thought to check.

The error is:

[LS Error: UMaps] Invalid hour in time 6:00.[ULIB] Loading module: Umotd_init.lua


My UMaps.txt is as follows:

"Out"
{
"alertlength""300"
"timemode""r"
"time"
{
"1""6:00"
"2""18:00"
}
"MapList"
{
"1"
"freespace06_v2night"
"2"
"freespace06_v2-1"
}
}


It gives me "invalid hour" even if I use different variations such as 06:00 or 12:00.

Appreciate the help.

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: UMaps - change map at specified time
« Reply #13 on: February 07, 2007, 05:12:06 PM »
I'll look into that as much as I can now, but I can't do any testing on it untill this weekend (No GMod capable PC). I see the error resides in the real time timemode time parsing, and just now realized that I'm not sure I ever really tested that, Oops. I'll check the code right now and get back to you asap.
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline cold12141

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: UMaps - change map at specified time
« Reply #14 on: April 26, 2007, 04:48:54 PM »
Would it be possible to make it so only admins can extend the timeleft?