Author Topic: RTB Prefs Help  (Read 2547 times)

I'm trying to figure out how to set custom RTB prefs in my gamemode.txt file, but I can't seem to figure out how to do it.

Is this possible, and if so, how do I do it?


New problem.

I tried making a gamemode with Renderman, and the Renderman mod (Support_Rendermen) didn't load AT ALL.
I figured this out because there were no prefs for it in the admin menu.


Yes, I did put this in my gamemode.txt:
Code: [Select]
ADDON Support_Rendermen
So.
Help?


Fixed it:
Oh. My. God.
I'm an idiot.
I figured out the problem:
While messing around with my gamemode.txt file, guess what I did?
I deleted the line that said ADDON Support_Rendermen.
Locking topic, this has been solved.

TOPIC IS NOW LOCKED
« Last Edit: July 30, 2013, 07:30:13 PM by Mrmii21 »

For RTB prefs your gamemode would need a server.cs file.

Here's an example from my score saver.

Code: [Select]
if(isfile("Add-Ons/System_ReturnToBlockland/server.cs"))
{
if(!$RTB::RTBR_ServerControl_Hook)
exec("Add-Ons/System_ReturnToBlockland/hooks/serverControl.cs");
RTB_registerPref("Toggle","Score Saver","ScoreSaver::Toggle","bool","Server_ScoreSaver",1,0,1);
RTB_registerPref("Can Reset Scores","Score Saver","ScoreSaver::CanReset","list Host 1 SuperAdmin 2 Admin 3","Server_ScoreSaver",2,0,1);
}
else
{
$ScoreSaver::Toggle = 1;
$ScoreSaver::CanReset = 2;
}

Once you've done all that go into your gamemode.txt and type in ADDON Gamemode_GamemodeNameHere and save.
« Last Edit: July 29, 2013, 10:05:54 AM by Danny Boy »

For RTB prefs your gamemode would need a server.cs file.

Here's an example from my score saver.

-snip-

Once you've done all that go into your gamemode.txt and type in ADDON Gamemode_GamemodeNameHere and save.

o_o

W- what?

I'm sorry, I am brand new to server.cs files and I have no idea what ANY of that coding meant.

What exactly are the purpose of these prefs. It will probably help me explain it better.

What exactly are the purpose of these prefs. It will probably help me explain it better.
Well, I want to try and set prefs for Renderman in my gamemode:

Enabled: Yes
Kick Players: No
Renderman Lights?: Yes
Aggresion: Paranormal (1/5)
Spawnrate: Nightmare (6/6)
Max Rendermen: 3
Affect Map: No
« Last Edit: July 29, 2013, 10:19:20 AM by Mrmii21 »

You'll basically need a full code then. I'll help you out later if no one has because I'm a bit preoccupied at the moment.

Well, I want to try and set prefs for Renderman in my gamemode:

Enabled: Yes
Kick Players: No
Renderman Lights?: Yes
Aggresion: Paranormal (1/5)
Spawnrate: Nightmare (6/6)
Max Rendermen: 3
Affect Map: No

Are those prefs from an already existing add-on? If so, please provide a link to it.

Are those prefs from an already existing add-on? If so, please provide a link to it.

Chrisbot6's Renderman Mod - v3 Released!

Sorry for the late reply, I got off at about 1:30 today.

Chrisbot6's Renderman Mod - v3 Released!

Sorry for the late reply, I got off at about 1:30 today.
No problem. Just look inside the mod for pref variables and set them manually.

No problem. Just look inside the mod for pref variables and set them manually.
No no no. You see, I'm trying to make a Gamemode FILE.
And I want these prefs to be set as default when the gamemode is loaded.

No no no. You see, I'm trying to make a Gamemode FILE.
And I want these prefs to be set as default when the gamemode is loaded.
That's what I was talking about.

Create a server.cs file for your gamemode and place this in it:
Code: [Select]
$Pref::Rendermen::Enabled = true;
$Pref::Rendermen::Kick = true;
$Pref::Rendermen::OwnLights = false;
$Pref::Rendermen::Speed = 150;
$Pref::Rendermen::Spawnrate = 19;
$Pref::Rendermen::Limit = 5;
$Pref::Rendermen::Lights = false;

Then add the name of your game mode below the renderman mod in your gamemode file, like this:
Code: [Select]
ADDON Support_Rendermen
ADDON GameMode_YourGameMode

-Snippy Snippy Snoop Snoop-

Alright, did it. Testing now.

EDIT:
It took me a while and many adjustments, but I finally got it SORT of working.
The game, minigame, save, and everything else EXCEPT THE RENDERMAN MOD loads fine!
And not only that, I went into the server prefs, and the Renderman addon didn't load at all, period!
I did include it in my gamemode.txt and put what you said to put in my server.cs file, but it didn't load.
I'm gonna change the topic name, because this is an entirely new problem.

EDIT 2:
Oh. My. God.
I'm an idiot.
I figured out the problem:
While messing around with my gamemode.txt file, guess what I did?
I deleted the line that said ADDON Support_Rendermen.
Locking topic, this has been solved.
« Last Edit: July 30, 2013, 07:28:43 PM by Mrmii21 »