Blockland Forums > Modification Help
RTB Development
TomTheGeek²:
--- Quote from: Scout31 on September 22, 2010, 06:38:09 PM ---Holy disappearing post!
--- End quote ---
Yeah, I noticed it too. It keeps it clean around here.
Ephialtes:
--- Quote from: KINEX on September 22, 2010, 06:53:42 PM ---Forgive my ignorance if this was posted a ways back (the thread is getting pretty large) but was any headway made on better dedicated server support? When things like JVS and VCE get updated, it's difficult to determine if my dedicated servers have the latest and greatest versions of these add-ons. Also, I am curious to know if the RTB Prefs system has been improved any. I know at one point there was a limitation as to how many prefs could be added to it and I've also noticed that with many other Add-Ons making use of the Prefs system that it can now take quite a while scrolling to find the specific preference you are looking for.
--- End quote ---
I haven't actually posted any details about it so it's worth talking about it briefly now.
I've got an overhaul of the dedicated functionality on the way. This is going to include (as you mentioned) better visibility of add-on updates for dedicated server owners. You'll get dedicated console alerts if your add-ons are outdated and a command to run which will update them and restart the server. You'll also get warnings if you join the server as a super admin reminding you to install them. When the new website goes live (quite a way off from now) you'll be able to manage your dedicated from a web interface which will allow you to see all the add-ons it has installed and which ones are outdated. The downside is you can't restart it from the web unless you've got something running on your server which auto-restarts Blockland if it quits.
I'm not sure there's ever been a pref limit, and it certainly wasn't intentional. When I built the system I didn't see it becoming to widely used so the gui wasn't optimized for a bunch of data. I'll be looking at re-designing this at some point because at the moment it's just too hard to find what you're looking for.
--- Quote from: Scout31 on September 22, 2010, 06:38:09 PM ---Holy disappearing post!
--- End quote ---
If too much irrelevant crap is posted in this topic I just delete it. Things like "nice work" or "can't wait" aren't very helpful in a development thread. People should be discussing features and proposing new ones - or if they don't have anything to say, don't post.
mctwist:
--- Quote from: Ephialtes on September 23, 2010, 01:58:10 AM ---I'm not sure there's ever been a pref limit, and it certainly wasn't intentional. When I built the system I didn't see it becoming to widely used so the gui wasn't optimized for a bunch of data. I'll be looking at re-designing this at some point because at the moment it's just too hard to find what you're looking for.
--- End quote ---
I get complaints that RP Content does not work correctly. I've found out that this was occurred due reset of RTB preferences. Either it's a lot of preferences, or RP Content is doing something wrong. The only thing that is different through RP Content and other add-ons handling TB preferences, is that RP Content also saves its own preferences. It's like a double backup. Do you think that that has something to do with it?
Ephialtes:
--- Quote from: mctwist on September 23, 2010, 04:42:59 AM ---is that RP Content also saves its own preferences. It's like a double backup. Do you think that that has something to do with it?
--- End quote ---
Yes. I haven't had any reports of RTB preferences not saving correctly so it's something your code has done.
mctwist:
The bug is rare, but it is there. I cannot see any wrong with my code, but I've wrong before.
--- Code: ---// Load preferences
function LoadPreferences()
{
// First time
if (!isFile("config/server/RP_Core/prefs.cs"))
export("$RP::pref::*", "config/server/RP_Core/prefs.cs");
// User defined
exec("config/server/RP_Core/prefs.cs");
}
--- End code ---
--- Code: ---// Reload preferences
LoadPreferences();
// Create RTB Preferences
if (isFile("Add-Ons/System_ReturnToBlockland/server.cs") && !$RP::Core::RTB)
{
if (!$RTB::RTBR_ServerControl_Hook)
{
exec("Add-Ons/System_ReturnToBlockland/RTBR_ServerControl_Hook.cs");
}
$RP::Core::RTB = true;
// Server
RTB_registerPref("Local Chat Distance", "RP Content", "$RP::pref::server::visibleDistance", "int 10 200", "RP Core", $RP::pref::server::visibleDistance, false, false, "");
// -snip repeat code-
}
--- End code ---
Does this feel odd for you? I do have some commands that is changing some prefs too. Is that something I need to take in consideration?