Author Topic: RTB preferences datablock type  (Read 892 times)

I am trying to create a RTB preference which is of the datablock type.
Sadly, just using "datablock PlayerData" won't work.
It just isn't supported.

Could there be any way to change the datablock list into a list i can use in the preference?

Just use the datablock's name in string form

Just use the datablock's name in string form
So you suggest i should let the people type in the name of a datablock instead of a dropdownmenu of all datablocks.
(Because it is either impossible to do the latter or very hard)

So you suggest i should let the people type in the name of a datablock instead of a dropdownmenu of all datablocks.
(Because it is either impossible to do the latter or very hard)
Oh, you want to list all datablocks, rather than a select you have control over?

Oh, you want to list all datablocks, rather than a select you have control over?
I am getting slightly confused.
Let me get this straight:
I would love to make a RTB preference where you can select a datablock from a list with datablocks (just like when you want to choose what to spawn on a vehicle spawn).
But using "datablock Playerdata" gives me this error:
ERROR: Invalid pref type supplied (datablock) for pref prefnamehere in RTB_registerPref


I thought you weren't really interested into RTB stuff, but any help is welcome of course;
Code: [Select]
RTB_registerPref("Datablock","Datatest","$Datatest::Datablock","datablock PlayerData","Script_Test",0,0,0);
Instead of the 0 after "Script_Test", i also tried a datablock name. :S
Gave the same error.
ERROR: Invalid pref type supplied (datablock) for pref Datatest::Datablock in RTB_registerPref

Datablocks aren't supported as a preference type in RTB, it's kind of unfortunate. Space Guy has brought it up with Ephialtes before, I don't remember what he Ephialtes ended up saying to that.

You can loop through all the player datablocks and construct a list, but I'm 100% certain RTB would have some sort of maximum amount of list options.

Datablocks aren't supported as a preference type in RTB, it's kind of unfortunate. Space Guy has brought it up with Ephialtes before, I don't remember what he Ephialtes ended up saying to that.

You can loop through all the player datablocks and construct a list, but I'm 100% certain RTB would have some sort of maximum amount of list options.
Well that is too bad.
I'll have to find something else then.

Space Guy has brought it up with Ephialtes before, I don't remember what he Ephialtes ended up saying to that.

I'd be happy to add it for v4.

I'd be happy to add it for v4.
Oooh that would be great.
Thanks in advance.