Ulysses Stuff > Releases

sui_scoreboard with UTime and Steam Avatars

<< < (19/34) > >>

JamminR:
Megiddo, thanks, see any other problem with the code replacement suggestion?

Krooks,
Try this in server console.

--- Code: ---lua_run print(GAMEMODE.Name)

--- End code ---

Megiddo:
I don't see anything wrong with the code, no.

krooks:
Hey sorry for this late reply, Christmas time n all, things get busy ;)
Hope everyone had a good one (if you celebrate) and a happy new year!

On the server's consol, I get "Sandbox" for print(GAMEMODE.Name) and print(GM.Name) returns a nil value.

As a note I changed the lowercase s to a capital S in the code you provided with no results.

JamminR:

--- Quote from: krooks on December 31, 2010, 04:41:54 PM ---As a note I changed the lowercase s to a capital S in the code you provided with no results.

--- End quote ---

No worries, we've been busy too.
So, GAMEMODE contains the right table information.
The change you made (capital S) should definitely not work, as I use string.lower lua function to convert GAMEMODE.Name to lower case.
You could try

--- Code: ---elseif GAMEMODE.Name == "Sandbox" then

--- End code ---
but that shouldn't work any better than original suggestion.

I'm really at a loss as to why it's not working. No errors when server is starting up about a null table? (Maybe Gamemode table fills after script runs?)

Just to verify for me, if you change that line 13 back to JUST 'else', the scoreboard works, but in every gamemode including those that do thier own?

krooks:
Tried the new code, and like you expected, it didn't work.
To go more in depth, it does not show _at all_ when I make these changes, only the default scoreboard shows.

I just changed it back to "else", and can confirm it shows up in sandbox, but also shows in other gamemodes.
It does not display any stats on those gamemodes (im sure their unique scoring etc isn't written into the code, so obviously they wouldn't) but the thing about it, is it shows up on top of the provided gamemode scoreboard, blocking it.
And to make things worse, it will not go away, making the game unplayable.

That's the best I can do as far as a description goes ^^

Errors:
nil value for tempadduser lua:29
a missing 'end' to close 'function' on line 73 of AutoPromote lua:164

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version