KARPED1EM / TownOfNext

An AmongUs mod with learning & love
https://tonx.cc
GNU General Public License v3.0
59 stars 33 forks source link

what are the steps to compile the source code for TOH? #12

Closed Wealthtwin closed 1 year ago

Wealthtwin commented 1 year ago

When I try to compile the code, it gives a lot CS0246 errors. Its always 1377 errors everytime

KARPED1EM commented 1 year ago

We changed local references to package references. You can try to add a nuget source in your project: https://nuget.bepinex.dev/v3/index.json Or you can use .csproj file in original toh.

Wealthtwin commented 1 year ago

When I try to compile the code in Visual Studio, it gives a lot of error messages mostly error CS0246 The type or namespace name 'AmongUs' could not be found (are you missing a using directive or an assembly reference?). More than 1000 of these types of errors.

KARPED1EM commented 1 year ago

yeah, do you add https://nuget.bepinex.dev/v3/index.json in nuget source?

Wealthtwin commented 1 year ago

I added it and now am getting this error. error MSB4018: The "GenerateInteropAssembliesTask" task failed unexpectedly.

also I can see exclamation marks near all the nuget packages

KARPED1EM commented 1 year ago

Sorry, it's first time i meet this problem. try download this file overwrite the local TownOfHost.csproj file may sovle it, i guess.

tbn i never use C# or VS before.

Wealthtwin commented 1 year ago

same problem. I also never used VS before. The dev of this mod didnt want to tell me how to compile it. Thats why I'm asking you. I think the error might be because I have 64 bit windows.

KARPED1EM commented 1 year ago

Yep, they don't seem to accept issues, but a discord form.

one my friend also got the same error as yours a few days ago. We have tried many ways but it still doesn't work.

than i found this:https://learn.microsoft.com/en-us/visualstudio/msbuild/errors/msb4018

But i don't think it's because 64 bit windows. (it's work well on my 64 bit pc.)

冒昧问下,请问你使用中文吗?(看你似乎star了中文项目)

Wealthtwin commented 1 year ago

Im not chinese, I would have translated and talked to you if I have to because no one was helping me with this mod, so yeah thanks for helping me

KARPED1EM commented 1 year ago

I found answer i guess seems like i forgot to upload the setting file try cloning and compiling again please