#yall know how i can fix the ones with red lines under them?
112 messages · Page 1 of 1 (latest)
Dont. It does not know how to write Unturned Plugins.
weird
It will confuse you more then help you learn.
what do i use then
Not AI.
To see the events and such, you would need to decompile Rockets dlls and assembly.
There is sadly barley to no documentation on RocketMod
are u able to call
so you can help me?
I cannot at the moment.
so do u know what to replace it with?
Check under PlayerEquipment
Whacha mean?
player events
PlayerEvents does not exists
using Rocket.Unturned.Events
There is UnturnedPlayerEvents though
.
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
Right click the solution and click build
Then in your ProjectName/Bin/Debug(I think) will be your dll
Did it build?
yes
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
1 failed
Check out the errors it says, that should lead you to your problem
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
Did you add the Refrences to your Project?
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.
what other ones would i need
These are the ones you need for a Unturned Plugin. You can always add other Libraries out there. Such as MySQl.Data, Discord EF and so on if you choose to use them
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
none
Send a full Screenshot of VS with the usings shown
Send a full screenshot...
the errors too?
Yes. I want to see it all
it dont let me zoom out
hol up
i got an idea
ill copy and paste the errors into notepad
I've already seen the errors.
Where are you finding onEquip under UnturnedPlayerEvents?
Yea. Where did you find that at?
Because that event does not exists in UnturnedPlayerEvents
Once again....
idk what to replace
UnturnedPlayerEvents.OnPlayerEquippedItem -= OnEquipItem;
do i just replace "onplayerequppied"?
UnturnedPlayerEvents does not contain onPlayerEquippedItem.
Type UnturnedPlayerEvents. and then all the events will pop up for it.
do i replace playerequipment?#
Then look under PlayerEquipment.
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)
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
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
<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
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.
Then this is the time to learn.
Huh.
Well, when you figure out how to resist ChatGPT, let us know.