#yall know how i can fix the ones with red lines under them?

112 messages · Page 1 of 1 (latest)

kind cloud
#

Did you use ChatGPT to write that?

simple marlin
#

yes

#

im experimenting

#

with chatgpt

#

seeing how it functions and shit

kind cloud
#

Dont. It does not know how to write Unturned Plugins.

simple marlin
#

weird

kind cloud
#

It will confuse you more then help you learn.

simple marlin
#

what do i use then

kind cloud
#

Not AI.

simple marlin
#

ok but

#

what prompt would u use

#

instead of the inventory

kind cloud
#

To see the events and such, you would need to decompile Rockets dlls and assembly.

#

There is sadly barley to no documentation on RocketMod

simple marlin
#

well

#

thats sad as hell

simple marlin
#

so you can help me?

kind cloud
#

I cannot at the moment.

simple marlin
#

so do u know what to replace it with?

kind cloud
#

Check under PlayerEquipment

simple marlin
#

ty

#

also any idea on why the event thing doesent work?

kind cloud
#

Whacha mean?

simple marlin
#

player events

kind cloud
#

PlayerEvents does not exists

simple marlin
#

using Rocket.Unturned.Events

kind cloud
#

There is UnturnedPlayerEvents though

simple marlin
#

then what do you use

#

that might be the isue lmfao

kind cloud
simple marlin
#

i know

#

tysm

#

now uhm

#

since im new to this

#

im kinda stupid

#

so like

#

how to i turn it into an actual DLL file?

#

@kind cloud

#

nvm

kind cloud
#

Right click the solution and click build

simple marlin
#

wait

#

ok

kind cloud
#

Then in your ProjectName/Bin/Debug(I think) will be your dll

simple marlin
#

so uh

#

its not ther

kind cloud
#

Did it build?

simple marlin
#

yes

kind cloud
#

It said it was Successful in the Console?

#

Right click your Solution -> Open in File Explorer - Bin -> Debug and it should appear in there if it said it was successful

simple marlin
#

1 failed

kind cloud
#

Check out the errors it says, that should lead you to your problem

simple marlin
#

1>C:\Users\matir\source\repos\SpeedPlugin\SpeedPlugin\Class1.cs(1,7,1,13): error CS0246: The type or namespace name 'Rocket' could not be found (are you missing a using directive or an assembly reference?) 1>C:\Users\matir\source\repos\SpeedPlugin\SpeedPlugin\Class1.cs(2,7,2,13): error CS0246: The type or namespace name 'Rocket' could not be found (are you missing a using directive or an assembly reference?) 1>C:\Users\matir\source\repos\SpeedPlugin\SpeedPlugin\Class1.cs(3,7,3,13): error CS0246: The type or namespace name 'Rocket' could not be found (are you missing a using directive or an assembly reference?) 1>C:\Users\matir\source\repos\SpeedPlugin\SpeedPlugin\Class1.cs(8,7,8,13): error CS0246: The type or namespace name 'Rocket' could not be found (are you missing a using directive or an assembly reference?) 1>C:\Users\matir\source\repos\SpeedPlugin\SpeedPlugin\Class1.cs(114,43,114,69): error CS0246: The type or namespace name 'IRocketPluginConfiguration' could not be found (are you missing a using directive or an assembly reference?) 1>C:\Users\matir\source\repos\SpeedPlugin\SpeedPlugin\Class1.cs(13,30,13,66): error CS0246: The type or namespace name 'RocketPlugin<>' could not be found (are you missing a using directive or an assembly reference?) 1>C:\Users\matir\source\repos\SpeedPlugin\SpeedPlugin\Class1.cs(39,34,39,48): error CS0246: The type or namespace name 'UnturnedPlayer' could not be found (are you missing a using directive or an assembly reference?) 1>C:\Users\matir\source\repos\SpeedPlugin\SpeedPlugin\Class1.cs(57,39,57,53): error CS0246: The type or namespace name 'UnturnedPlayer' could not be found (are you missing a using directive or an assembly reference?)

#

keeps saying "rocket"

#

and unturnedplayer

kind cloud
#

Did you add the Refrences to your Project?

simple marlin
#

i added these

kind cloud
#

Right click UnturnedPlayer -> Quick Actions and see if you forgot the using part

#

UnityEngine.CoreModule - U3DS\Unturned_Data\Managed
UnityEngine - U3DS\Unturned_Data\Managed
Assembly-CSharp - U3DS\Unturned_Data\Managed
com.rlabrecque.steamworks.net - U3DS\Unturned_Data\Managed
Rocket.API - U3DS\Extras\Rocket.Unturned
Rocket.Core - U3DS\Extras\Rocket.Unturned
Rocket.Unturned - U3DS\Extras\Rocket.Unturned
SDG.NetTransport - U3DS\Unturned_Data\Managed
needed for raycasts:
UnityEngine.PhysicsModule - U3DS\Unturned_Data\Managed

These are the basic Libraries that all plugins use.

simple marlin
#

what other ones would i need

kind cloud
simple marlin
#

yea but like

#

im making a speed boost plugin where when u wear an item then u get a health boost , speed boost and jump boost

#

so what other ones would i need aside from the ones im using

kind cloud
#

none

kind cloud
simple marlin
kind cloud
#

Send a full screenshot...

simple marlin
#

the errors too?

kind cloud
#

Yes. I want to see it all

simple marlin
#

it dont let me zoom out

#

hol up

#

i got an idea

#

ill copy and paste the errors into notepad

kind cloud
#

I've already seen the errors.

simple marlin
#

ohh

#

so like this

kind cloud
#

Where are you finding onEquip under UnturnedPlayerEvents?

simple marlin
#

thats the one?

kind cloud
#

Yea. Where did you find that at?

#

Because that event does not exists in UnturnedPlayerEvents

kind cloud
simple marlin
#

idk what to replace

#

UnturnedPlayerEvents.OnPlayerEquippedItem -= OnEquipItem;

#

do i just replace "onplayerequppied"?

kind cloud
#

UnturnedPlayerEvents does not contain onPlayerEquippedItem.

#

Type UnturnedPlayerEvents. and then all the events will pop up for it.

simple marlin
#

do i replace playerequipment?#

kind cloud
#

Then look under PlayerEquipment.

simple marlin
#

aight

kind cloud
#

This is why using ChatGPT confuses you more then helping...

#

https://www.youtube.com/watch?v=A1MhnhJBnd4&list=PLFHvXbDC4Vk1NnS27INhLCfEwhzbiQYFA

I'd recommend watching MCrows videos on making Unturned Plugins. Also, make sure you look in the description / comments as there are some outdated thigns in it

Unturned Rocket Plugin Tutorial Playlist: https://youtube.com/playlist?list=PLFHvXbDC4Vk1NnS27INhLCfEwhzbiQYFA

Source code:
https://github.com/RestoreMonarchy/KitsPlugin

For more detailed guides and resources, check out my blog:
https://restoremonarchy.com/blog

Softwares used in this video:
Visual Studio 2019
Pterodactyl (my server panel)

▶ Play video
simple marlin
#

yk what

#

someone needs to make a document on language from unturned

#

and what all of the plugins use

#

like blah blah blah = blah blah

kind cloud
#

There is a way to see, you would have to decompile the Libraries. However you also need to know how to read code.

#

For a example, this is the PlayerEquipment class

simple marlin
#

<GlobalMultipliers>
<Speed>1</Speed>
<Jump>1</Jump>
<Gravity>1</Gravity>
<StaminaCost>1</StaminaCost>
</GlobalMultipliers>
<ItemModifiers>
<Item ID="Viper" Speed="2" Jump="2" Gravity="2" />
<Item ID="Tracksuit Top" Gravity="0.5" />
<Item ID="Ace" StaminaCost="0" MustBeEquipped="False" />
</ItemModifiers>

#

how would u use that

kind cloud
#

With all due respect, I'm not going to code the whole plugin for you. What you asked is such a general question, meaning you dont want to code it. You need to experiment with making plugins. if I just tell you everthing, you wont learn.

simple marlin
#

im gonna learn

#

i just want to like

#

play with my friends

kind cloud
#

Then this is the time to learn.

rose spoke
#

Well, when you figure out how to resist ChatGPT, let us know.