People Playground

People Playground

Not enough ratings
How to create your own modification?! / Как создать свой мод?!
By evsea7
In this management i will tell you, how to create your own modification.
В этом руководстве, я расскажу как создавать свои собственные моды.
   
Award
Favorite
Favorited
Unfavorite
Introducing. / Введение.
In this managment, i'm going to tell you, how to create your own modifications on this fun game!
В этом руководстве, я собираюсь рассказать вам о том, как создавать свои моды на эту веселую игру!
What you need to know? / Что тебе нужно знать?
You must have 70+ IQ (Important). XD
You need to know the basics of using the computer.

That's all! XD
All everything else you will learn here later.

Ты должен иметь 70+ IQ (Важно). XD
Тебе нужно знать основы пользования компьютером.

Это все! XD
Всему другому ты научишься тут позже.
What is modifications? / Что такое моды?
Taken from WikipediA[ru.wikipedia.org], and translated.

Mods vary in scope. Some fix bugs and errors in the game or improve its graphics, others add new gameplay elements, and some tell a completely separate story from the original game. Thanks to mods, games can remain relevant many years after their release.

Mods are very popular - there are currently more than 25,000 mods on the Mod DB site dedicated to modding. Mods for Minecraft are of particular importance, more than 97 thousand modifications for it have been uploaded to CurseForge. Also, the theme of modding is of great importance in the community of games of The Elder Scrolls, Half-Life and S.T.A.L.K.E.R series.

Some game developers, such as Valve, actively support mods - modifications to their game Half-Life, Counter-Strike, Team Fortress and Left 4 Dead became independent games in which Valve took part in the development. In addition to these, mods such as Garry's Mod for Half-Life 2, Cry of Fear for Half-Life, DayZ for Arma 2 have evolved into separate games. Game studios sometimes hire people who are especially good at creating mods to work with them in as game developers.

Взято из WikipediA[ru.wikipedia.org].

Моды различаются по своему масштабу. Одни исправляют баги и ошибки игры или улучшают её графическую составляющую, другие добавляют новые элементы геймплея, а некоторые рассказывают полностью отдельную от оригинальной игры историю. Благодаря модам игры могут оставаться актуальными спустя много лет после своего выхода.

Моды пользуются большой популярностью — в данный момент на сайте Mod DB, посвящённом модингу, расположено больше 25 тысяч модов. Особеннное значение имеют моды для игры Minecraft, на CurseForge загружено более чем 97 тысяч модификаций для неё. Также тема модинга имеет большое значение в сообществе игр серий The Elder Scrolls, Half-Life и S.T.A.L.K.E.R.

Некоторые разработчики игр, например Valve, активно поддерживают модеров — модификации к их игре Half-Life, Counter-Strike, Team Fortress и Left 4 Dead стали самостоятельными играми, в разработке которых Valve принимали участие. Кроме них, в отдельные игры развились такие моды, как Garry’s Mod для Half-Life 2, Cry of Fear для Half-Life, DayZ для Arma 2. Игровые студии иногда нанимают людей, которые особенно хороши в создании модификаций, для работы с ними в качестве разработчиков игр.
Programming language. / Язык программирования.
People Playground was wrote on Unity. Unity using C#[en.wikipedia.org]. Then People Playground using for modifications C# too.

Then, we need learn C#!

How and where?

Look at this.


Recommended to pass it all, at all in will take one week to just understand langauge and know the basics of language (Maybe not only).

How i can rate this language, his difficulty is 7/10.

Go next chapter when you will know C#. XD

People Playground был написан на Unity. Unity использует C#[ru.wikipedia.org]. Тогда People Playground использует C# для модов тоже.

Тогда нам нужно учить C#!

Как и где?

Посмотрите на это.


Вы можете поискать курсы на русском, тут на английском. Извините!

Рекомендую пройти это все, в целом это займет одну неделю чтобы просто понять язык и его основы (Может и не только).

Я могу оценить сложность этого языка на 7/10.

Переходите на следующий раздел когда выучите C#. XD
How write modifications? / Как писать моды?
Okay, now you know C#. Now we can start write modifications.

Warning: I will use some programming words, if you really learned C# you will understand.

How i can interact with game? How i can get game methods and another?
I'm going to show you some sites, where you can look documentation and some code snippets.


Unfortunately, that's all. There are not many of documentation, snippets, and another.


Create own human (Taken from "snippets/making a new human.cs"[github.com]).
// register item to the mod registry ModAPI.Register( new Modification() { OriginalItem = ModAPI.FindSpawnable("Human"), //item to derive from NameOverride = "Human but blue -BH", //new item name with a suffix to assure it is globally unique DescriptionOverride = "From avatar!!!! (the one with the blue people).", //new item description CategoryOverride = ModAPI.FindCategory("Entities"), //new item category ThumbnailOverride = ModAPI.LoadSprite("blueMan.png"), //new item thumbnail (relative path) AfterSpawn = (Instance) => //all code in the AfterSpawn delegate will be executed when the item is spawned { //load textures for each layer (see Human textures folder in this repository) var skin = ModAPI.LoadTexture("blueSkin.png"); var flesh = ModAPI.LoadTexture("blueFlesh.png"); var bone = ModAPI.LoadTexture("blueBone.png"); //get person var person = Instance.GetComponent<PersonBehaviour>(); //use the helper function to set each texture //parameters are as follows: // skin texture, flesh texture, bone texture, sprite scale //you can pass "null" to fall back to the original texture person.SetBodyTextures(skin, flesh, bone, 1); //change procedural damage colours if they interfere with your texture (rgb 0-255) person.SetBruiseColor(86, 62, 130); //main bruise colour. purple-ish by default person.SetSecondBruiseColor(154, 0, 7); //second bruise colour. red by default person.SetThirdBruiseColor(207, 206, 120); // third bruise colour. light yellow by default person.SetRottenColour(202, 199, 104); // rotten/zombie colour. light yellow/green by default person.SetBloodColour(108, 0, 4); // blood colour. dark red by default. note that this does not change decal nor particle effect colours. it only affects the procedural blood color which may or may not be rendered } } );

So how i can know methods and another?
Here's an small algorithm.

Visit Snippets or Documentation, and try to find what you need.
When you will find method/code/example/variable, just add it to your code, but you need to understand code, and copy then.

Something like that.

Хорошо, теперь ты знаешь C#. Теперь мы можем начать писать моды.

Внимание: Я буду использовать слова из программирования, и если вы учили C# то ты меня поймешь.

Как я могу взаимодействовать с игрой? Как я могу получить игровые методы и другое?
Я собираюсь показать тебе пару сайтов, где ты можешь посмотреть документацию и сниппет кодов.


К сожалению, это все. Всего немного документации, сниппетов и другого.

Создать своего человечка (Взято из "snippets/making a new human.cs"[github.com]).
// register item to the mod registry ModAPI.Register( new Modification() { OriginalItem = ModAPI.FindSpawnable("Human"), //item to derive from NameOverride = "Human but blue -BH", //new item name with a suffix to assure it is globally unique DescriptionOverride = "From avatar!!!! (the one with the blue people).", //new item description CategoryOverride = ModAPI.FindCategory("Entities"), //new item category ThumbnailOverride = ModAPI.LoadSprite("blueMan.png"), //new item thumbnail (relative path) AfterSpawn = (Instance) => //all code in the AfterSpawn delegate will be executed when the item is spawned { //load textures for each layer (see Human textures folder in this repository) var skin = ModAPI.LoadTexture("blueSkin.png"); var flesh = ModAPI.LoadTexture("blueFlesh.png"); var bone = ModAPI.LoadTexture("blueBone.png"); //get person var person = Instance.GetComponent<PersonBehaviour>(); //use the helper function to set each texture //parameters are as follows: // skin texture, flesh texture, bone texture, sprite scale //you can pass "null" to fall back to the original texture person.SetBodyTextures(skin, flesh, bone, 1); //change procedural damage colours if they interfere with your texture (rgb 0-255) person.SetBruiseColor(86, 62, 130); //main bruise colour. purple-ish by default person.SetSecondBruiseColor(154, 0, 7); //second bruise colour. red by default person.SetThirdBruiseColor(207, 206, 120); // third bruise colour. light yellow by default person.SetRottenColour(202, 199, 104); // rotten/zombie colour. light yellow/green by default person.SetBloodColour(108, 0, 4); // blood colour. dark red by default. note that this does not change decal nor particle effect colours. it only affects the procedural blood color which may or may not be rendered } } );

Так как я могу знать методы и другое?
Вот маленький алгоритм.

Посетите Сниппеты или Документацию, и попробуйте найти что вам нужно.
Когда вы найдете метод/код/пример/переменную, просто добавьте к вашему коду, но вам нужно понять код, и потом копировать.

Как то так.
I don't understand something. / Я что-то не понимаю.
If you don't understand something, i can show you this solutions.

  • Ask me under this managment.
  • Ask in game community.
  • Ask your enviroment (friends and another), maybe somebody can help you.
  • Ask on question sites, like StackOverFlow[stackoverflow.com], or Reddit, and another.
  • Try to find solution in videos/documentation/snippets and another.
  • Do it son, i believe in you. Just think.

Error can be in language (syntax error, and another), or in People Playground (many errors, like there is no method like you trying to use).

What i need to show?
Show error message, or what going wrong, and show your code.

Something like that.

Если вы не понимаете что-то, я могу вам показать эти решения.

  • Спросите меня под этим руководством.
  • Спросите у игрового сообщества.
  • Спросите ваше окружение (друзья, и т.д), возможно кто-то вам поможет.
  • Спросите на сайтах для вопросов таких как StackOverFlow[stackoverflow.com], или Reddit, и т.д.
  • Попробуйте найти решение в видео/документации/сниппетах и другом.
  • Сделай это сынок, я верю в тебя. Просто думай.

Ошибка может быть в языке (синтаксическая ошибка, и другое), или в People Playground (много ошибок, например метод который вы хотите использовать не существует).

Что я должен показать?
Покажите ошибку, что происходит не так, и покажите ваш код.

Как-то так.
The End. / Конец.
The End. I hope you created/creating your mod that will explode People Playground community! I tried to explain and share all how i could. I very hope that i helped you. Don't give up, good luck!
Конец. Я надеюсь ты создал/создаешь твой мод который взорвет сообщество People Playground! Я пытался объяснить и поделится всем как я мог. Я очень надеюсь что я помог тебе. Не сдавайся, удачи!

I tried very hard, can you at least like that managment?
Я очень старался, мог бы ты хотя бы поставить лайк этому руководству?

15 Comments
evsea7  [author] 28 May @ 3:02pm 
damn, it's been a long time
evsea7  [author] 28 Dec, 2024 @ 12:55pm 
спасибо
Anominyset6569 28 Dec, 2024 @ 10:02am 
влепил бы награду,но я скряга.извини
(>Venomancer<) 29 Nov, 2023 @ 2:01am 
они у меня не сохраняются в файлах (У меня стим клоуд отключен)
evsea7  [author] 29 Nov, 2023 @ 12:42am 
поищи примеры модов может
(>Venomancer<) 28 Nov, 2023 @ 10:19pm 
не работает
(>Venomancer<) 27 Nov, 2023 @ 10:02pm 
и так у каждого начала кода человечка? или в начале?
evsea7  [author] 27 Nov, 2023 @ 7:02am 
Используй ModAPI.Register(код_человека), можно много раз использовать эту функцию.

ModAPI.Register(код_человека1)
ModAPI.Register(код_человека 2)
(>Venomancer<) 26 Nov, 2023 @ 9:46pm 
а как сделать два персонажа в одном могу? я делаю у меня не получается(((((((((
no me mires 24 Sep, 2022 @ 1:04am 
Большое спасибо!