Author Topic: UTeam - Set teams based on usergroup.  (Read 316754 times)

0 Members and 5 Guests are viewing this topic.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: UTeam - Set teams based on usergroup.
« Reply #225 on: October 26, 2009, 07:13:24 PM »
Errors in server console during server startup of ULib?
Make sure you're putting uteams.txt in /data, not in /data/ULib
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Vexont

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: UTeam - Set teams based on usergroup.
« Reply #226 on: October 26, 2009, 07:55:42 PM »
Errors in server console during server startup of ULib?
Make sure you're putting uteams.txt in /data, not in /data/ULib

No errors, and I have it in /data like the readme says.

Offline Vexont

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: UTeam - Set teams based on usergroup.
« Reply #227 on: October 27, 2009, 02:41:21 PM »
I get this error :
16:37:19 Lua Error: autorun/UTeam.lua:21: table index is nil

Soooo vague....

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: UTeam - Set teams based on usergroup.
« Reply #228 on: October 27, 2009, 09:03:31 PM »
Quite helpful from the developers side actually. (my viewpoint.. I read developer, and speak end user) :P

You have a missing bracket at line 113>114 of the UTeams.txt file. Right before "gamemodes", should have one more }
That closes the teams table, which is what line 21 of Spbogie's code reads.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Vexont

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: UTeam - Set teams based on usergroup.
« Reply #229 on: October 28, 2009, 04:06:28 PM »
Quite helpful from the developers side actually. (my viewpoint.. I read developer, and speak end user) :P

You have a missing bracket at line 113>114 of the UTeams.txt file. Right before "gamemodes", should have one more }
That closes the teams table, which is what line 21 of Spbogie's code reads.

Thanks much, I would have never guessed it to be the brackets, but then I am not that observant.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: UTeam - Set teams based on usergroup.
« Reply #230 on: October 28, 2009, 06:30:28 PM »
Welcome. I actually missed it the first time, even using Notepad++ which draws lines for brackets/tabs, etc.
The error helped point me to look again.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Bounty_Bam

  • Newbie
  • *
  • Posts: 24
  • Karma: 0
Re: UTeam - Set teams based on usergroup.
« Reply #231 on: December 08, 2009, 01:09:33 PM »
I am getting this alot since i SVN'd ULX/Ulib:

Lua Error: Timer Error: autorun/UTeam.lua:54: bad argument #1 to 'SelectWeapon' (string expected, got nil)

I think it has something to do with admin only sweps/entities, as I can no longer spawn anything with the little "admin shield" on it.

(I am superadmin)
« Last Edit: December 08, 2009, 01:11:30 PM by Bounty_Bam »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: UTeam - Set teams based on usergroup.
« Reply #232 on: December 08, 2009, 04:16:04 PM »
Bounty_Bam, where did you get your UTeam.lua, or where did you get your edits for it?
The original UTeam release doesn't have a select weapon command.
I'm aware there are several versions floating around the forum here (and elsewhere on the web), but it would help to know for troubleshooting.

"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Bounty_Bam

  • Newbie
  • *
  • Posts: 24
  • Karma: 0
Re: UTeam - Set teams based on usergroup.
« Reply #233 on: December 09, 2009, 03:44:34 PM »
Bounty_Bam, where did you get your UTeam.lua, or where did you get your edits for it?
The original UTeam release doesn't have a select weapon command.
I'm aware there are several versions floating around the forum here (and elsewhere on the web), but it would help to know for troubleshooting.

I got it from here, about 8months ago? v1.1 I believe. I am aware of the recents upload/download exploits, and I'm beginning to wonder if this file was downloaded from my server, editted, and reuploded without my knowing :/ However, the "last edited" date of this file, and the dates of the start of these "hacks", are way out.

Should I upload or paste the content of my Uteam.lua?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: UTeam - Set teams based on usergroup.
« Reply #234 on: December 09, 2009, 05:08:51 PM »
Uh, exploited - it's possible, but unlikely.

Just attach your file.
Attachments are in the "additional option" link below the text box while replying (at least it is in my theme I use here)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Bounty_Bam

  • Newbie
  • *
  • Posts: 24
  • Karma: 0
Re: UTeam - Set teams based on usergroup.
« Reply #235 on: December 09, 2009, 05:24:15 PM »
Attached =]


Edit (spbogie): Removed attachment to avoid confusion with real version.
« Last Edit: December 30, 2009, 12:59:07 PM by spbogie »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: UTeam - Set teams based on usergroup.
« Reply #236 on: December 09, 2009, 05:41:27 PM »
Bounty_Bam,
That's definitely not the default pure release Uteam 1.1
That looks very much like an attempted edit of UTeam by Kyzer to control weapons.
http://forums.ulyssesmod.net/index.php/topic,1171.msg5586.html#msg5586
Might wish to bump that thread instead of this one....we like to keep the 'pure' release threads separate of the 'community modified' ones.
If you didn't edit it yourself, have any friends with lua access to your server?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Bounty_Bam

  • Newbie
  • *
  • Posts: 24
  • Karma: 0
Re: UTeam - Set teams based on usergroup.
« Reply #237 on: December 09, 2009, 05:45:57 PM »
Nope just me. Always has been just me. Would it just be wise to download v1.1 again and copy over the lua file?

[Feel free to delete these messages]

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: UTeam - Set teams based on usergroup.
« Reply #238 on: December 09, 2009, 07:35:32 PM »
If you don't want to use UTeam to control player weapons, yes.
(You already knew the answer) :P
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: UTeam - Set teams based on usergroup.
« Reply #239 on: December 10, 2009, 05:47:30 PM »
Found it??? What?
I just posted it to you a few posts above the one in which you found it.
http://forums.ulyssesmod.net/index.php/topic,663.msg17459.html#msg17459
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming