#ChaosRadio

267 messages · Page 1 of 1 (latest)

viscid viper
#

ChaosRadio is a simple radio replacer for your SCP: SL servers running Exiled. It replaces both NTF and Chaos radios with their own individual channels.
This means that if you have a Chaos radio, you can talk to other people with a Chaos radio, and the same goes for NTF radios.

This plugin is quite customisable, and tries to keep the system as native to the base game as possible, hence why you can only replace spawned radios, and not
create new ones.

GitHub: https://github.com/LumiFae/ChaosRadio/

Latest release: https://github.com/LumiFae/ChaosRadio/releases/latest

(p.s. I know that there is another chaos radio plugin below, but I've been working on this one for a bit and couldn't just drop it.)

lethal jewel
#

peak

hallow valley
#

@viscid viper please do a fucking transpiler

#

else they will spam

viscid viper
viscid viper
hallow valley
#

lol

viscid viper
#

idek how transpilers work properly yet

#

it's much easier to do it this way imo

#

unless you give me pointers

hallow valley
viscid viper
hallow valley
viscid viper
#

but where would I even start on a transpiler

hallow valley
grim sinew
hallow valley
#

and there's example + alot of documentation on how to do them

hallow valley
viscid viper
hallow valley
#

nothing more

viscid viper
#

give me the documentation ur on about and ill make it into a transpiler

#

because idk man

hallow valley
#
  • if your copying games code its cleaner to do a transpiler
grim sinew
#

The "slower" part is very likely negligible, its just a call emmited into the method

scenic nest
#

id assume transpilers are better because it allows other mixins to also modify the same method

hallow valley
grim sinew
hallow valley
#

with it

#

by using prefix your not allowing other transpilers to work

hallow valley
#

or anything else

hallow valley
#

mixins are my worst enemies from the days of velocity

scenic nest
viscid viper
#

zero just give ur transpiler documentation ill write it in transpiler

#

lol

hallow valley
#

with net.minecraft.server (nms)

astral saddle
#

#transpiler-questions has docs in the pinned

#

"docs"

grim sinew
hallow valley
hallow valley
#

your not removing that section

#

your just adding

#

so

scenic nest
scenic nest
#

why cant two plugins insert code instructions

hallow valley
#

lol

#

Else like exiled would break everything

#

exiled is a transpiler

#

itself like all of the events are

#

if your thinking is applied then prefix and most of the stuff wouldn't work

#

if you think

#

Prefix just are bad practice because of that + they will run slower

grim sinew
# hallow valley no?

Look at how most of the Exiled plugins find the target index. If anything inserts a matching instruction before the assumed one, it breaks

grim sinew
hallow valley
#
  • FindIndex is used just for that
#

to FIND that index

#

so the matching instruction

viscid viper
#

this is gunna take me forever to work out how the fuck transpilers work

grim sinew
#

Player.Banning
Anyone inserts Starg.S before the NW one - it breaks

rapid ivy
#

why are there two chaos radios now

hallow valley
astral saddle
#

at the end

#

its finding the last one, not first

grim sinew
#

Player.ChangingNickname
Anyone inserts Brtrue before NW one - it breaks

hallow valley
#

no

#

incredible because that's not an issue

grim sinew
#

also, noone would publish a fail

#

survivorship bias

#

also, i did

#

had to fork exiled

hallow valley
#

none would found out

muted aurora
#

What’s the difference between this and the other plugin?

grim sinew
#

and change the index predicate

hallow valley
#

@viscid viper

viscid viper
#

huh

hallow valley
grim sinew
viscid viper
hallow valley
#

you know you can pr it and FIX IT?

#

right?

grim sinew
hallow valley
#

if you think that's a problem

#

PR it

#

it could be useful for someone in the future?

#

no?

rugged iris
#

Cool plugin

maiden storm
#

installed the plugin got this error couldnt join my server then removed the plugin and everything is fine

viscid viper
#

i’ll look when on pc

neat trail
#

But instead of using CustomItems couldn't you store the unique ID of each radio and decide which of these should be an ntf or chaos radio?

scenic nest
#

id assume thats faster and simple to implement but the performance improvement would probably be negligible

#

idk exactly how much goes into customitems tracking and stuff

hallow valley
neat trail
hallow valley
#

And btw if you asked me

neat trail
hallow valley
#

I’ve developed that for saturn

#

Alot of time ago

#
  • after that an entire radio system which is the same as CB
#

(With original audios inside)

neat trail
hallow valley
#

And honestly the italian community sucks ass

hallow valley
#

Everyone is just creating cheap copies of each others

hallow valley
neat trail
viscid viper
#

also i think it would be easier to save the instance of the item, but there will be no point if there is no defining thing which only exists for that specific item

#

if that exists i can just have a list of chaos radios and ntf radios lol

#

oh there is legit serial numbers

#

i can use that ye

neat trail
viscid viper
neat trail
#

You can use the Speaker toy

#

For a custom beep

#

Or….idk

viscid viper
#

wait

#

youre a genius or smth

#

rn i have to turn off all radios when on the floor

#

otherwise all channels will be used

#

no way to seperate

#

if i use speaker toy

#

i can just replicate the right channel

#

lol

#

i just dont know how they work

neat trail
viscid viper
#

i need someone to test with now

neat trail
viscid viper
#

idk if the serial stuff will work

neat trail
#

I’m at school

#

It's 10:51 am here

neat trail
viscid viper
#

ill look at scp prox chat

#

see how they do it

#

ill have to put filters on and stuff :c

neat trail
viscid viper
#

so i just have a config option to disable thrown radios

#

but what we could do is just turn them off when thrown but put a speaker toy on them instead

#

:3

viscid viper
# neat trail Why?

because when the data is sent to atleast 1 client, all clients will recieve floor radio signals

#

and there's no way to block that

#

you can block held radios tho

neat trail
#

So

#

Before the player throws it on the ground, you turn off the radio

#

Is there a way to make the radio heard by nearby players even if it is not held directly in the hand?

#

Rp thing

viscid viper
#

btw @maiden storm i found the issue, will be sorted once i find a tester to test a new thing i did

viscid viper
#

@neat trail check out the code for what i did in this case

viscid viper
#

yeah

#

i tested it

#

had to get my gf on after she got home smh

neat trail
viscid viper
#

i got yelled at by zero

neat trail
#

if the plugin work correctly

viscid viper
#

because apparently i need to make it 1ms faster

neat trail
#

why

scenic nest
#

never pass an opportunity for learning is what i say

hallow valley
#

but

#

they are cool

#

they make you appear like smart

neat trail
viscid viper
#

what's the difference between base game speaker toy and this?

#

oh it's just for playing audio

#

hm

#

ill take a look in a bit

neat trail
viscid viper
#

it's hell

neat trail
#

lol

viscid viper
#

delaying the speakertoy version of grounded radios until my most recent exiled pr is merged and has a release

viscid viper
#

done :3

#

i just need someone to test this new stuff with me

#

also @cold mortar did you see this? i dont know if you did (you told me to tell you afaik)

viscid viper
#

it might be a bit buggy rn

cold mortar
#

but we made our version

viscid viper
cold mortar
#

the other one

viscid viper
#

wdym

#

ah

#

ye

#

thing is, this one is about to get grounded radio support

#

seperated channels for grounded radios

#

:3

#

the other one merges channels

#

bit annoying

cold mortar
#

hmm

viscid viper
cold mortar
#

we checked it now

#

and it was fine

#

if item dropped

#

it uses seperate to

viscid viper
#

grounded radios can't with this dude's method

#

they merge

#

my method is different

#

so it does work

#

anyway, i need to test my thing

viscid viper
scenic nest
#

Can you put a license please? I want to use this code. Thank you

viscid viper
scenic nest
#

im part of plugin team for a server and one thing on their "to-do" list is multi-channel radios

#

there's 3-4 channels in total they want

viscid viper
#

ur crazy 😭

hallow valley
#

and you don't actually need code from here

scenic nest
#

because i dont understand speakers

hallow valley
#

Same as Dummies

#

but with another packet

scenic nest
#

plus the fact that this is implemented in a patch makes me afraid that my idea to use an eventhandler for voicechatting wont work

viscid viper
#

probably

#

idk

#

i didnt know the event existed tbh

#

but im glad i did it with patch because there is a labapi version

scenic nest
#

oh yeah that is fair enough

viscid viper
#

ill put AGPL3 on it, like i do with all my projects

#

done

lethal jewel
tame fox
#

@soft plume Can you try this, basically the goal is the same, this might work for you

#

if so use this one it does the same thing

soft plume
#

okay gimme a sec

tame fox