eDonnes124 / Town-Of-Us-R

An Among Us mod containing a bunch of roles
GNU General Public License v3.0
345 stars 140 forks source link

How to change source code? #117

Closed Bartix2765236 closed 1 year ago

Bartix2765236 commented 1 year ago

Where is source code in files?

whichtwix commented 1 year ago

source code is here

if you want to change it you have to download the repo on your computer, either go to command prompt and git clone it, or download the source zip file from releases, this. You can fork it if you want before the previous step, and then instead of cloning this repo, you clone yours. If you have vs code, it has a git extension where you can also click the clone a repository button

Bartix2765236 commented 1 year ago

Could you explain me step by step?

Bartix2765236 commented 1 year ago

With screenshots?

Bartix2765236 commented 1 year ago

image First, where is code in files?

whichtwix commented 1 year ago

its not in the files in the pic click the here word on my previous message and itll download a zip file with the code

Bartix2765236 commented 1 year ago

okay, next?

whichtwix commented 1 year ago

now just extract the zip and you can start editting the code, when you want to make the dll to be able to play with it, open command prompt, write cd and then copy paste the path where you extracted, click enter. then run dotnet build

Bartix2765236 commented 1 year ago

ok thanks and that's it?

Bartix2765236 commented 1 year ago

and what make the dll? image

Bartix2765236 commented 1 year ago

and how to run it?

AlchlcDvl commented 1 year ago

you do 'dotnet build' in the terminal of the ide you are using and it'll tell you where the dll is stored

whichtwix commented 1 year ago

the dll will be in src/bin/debug/net6.0/townofus.dll, copy paste the dll to your among us folder/bepinex/plugins

Bartix2765236 commented 1 year ago

cd... can you give an example?

whichtwix commented 1 year ago

cd C:\Program Files\Epic Games\AmongUs, it means my cmd window is taken to that folder

Bartix2765236 commented 1 year ago

Thanks! And where is src/bin/debug/net6.0/townofus.dll? Can you give screenshots?

Bartix2765236 commented 1 year ago

Or examples?

whichtwix commented 1 year ago

and what make the dll? image

after you run dotnet build, click the source folder here, then click bin, then debug..etc..youll finally see a townofus.dll