Slight Snag

ran into a bit of a snag on step 5 of setting up server
Solution:
you could try manually deleting dotnet-ef i guess and then see if you can install dotnet-ef version 9 using dotnet tool install --global dotnet-ef --version 9.*
Jump to solution
162 Replies
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
No description
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
No description
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
doing it with vs i get System.Exception: 'Failed to migrate game database.'
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
No description
Zin
Zin•2d ago
can you run dotnet --info ?
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
No description
No description
Zin
Zin•2d ago
err how did you obtain the repo on your computer?
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
github desktop, clone repo, using this url https://github.com/AngeloTadeucci/Maple2
GitHub
GitHub - AngeloTadeucci/Maple2: Server emulator for MapleStory2.
Server emulator for MapleStory2. Contribute to AngeloTadeucci/Maple2 development by creating an account on GitHub.
Zin
Zin•2d ago
alright that should be correct run dotnet restore within the repo folder
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
No description
Zin
Zin•2d ago
ok now and if you run setup.bat/ps1?
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
No description
Zin
Zin•2d ago
hmm computer might have not fully recognized .net is installed. have you rebooted since you installed .net?
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
I have I have installed, rebooted, go this message, installed again and rebooted again
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
tried runn ingest directly through terminal nd still got failed to migrate game
No description
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
is it because I have .net 10 or something? I know I have like five versions of .net
Zin
Zin•2d ago
nah this is mineso it should be ok. im trying to compare lol
No description
Zin
Zin•2d ago
just a sanity check :stareges4d:
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
Installed straight from that link and am restarting I will then attempt both setup.bat and running ingest through terminal
Zin
Zin•2d ago
:Prayge:
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
no dice, failed to migrate game data, and setup.bat is still telling me to install 8.0 I dunno what I could possibly have done wrong at this point =w=;
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
running the injest proj file with vs resulting in a different error for some reason
No description
Zin
Zin•2d ago
can you run dotnet --list-sdks again?
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
No description
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
i do have two 8.0s which is interesting
Snow
Snow•2d ago
the only difference I see is me + zin are on dotnet 9
Zin
Zin•2d ago
replace the setup.ps1 with this and screenshot what it shows
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
hoold on, if I fucked up the sql setup would that be impacting this?
Zin
Zin•2d ago
naw
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
I missed the part that said to ignore adding a user download that file and run the bat?
Zin
Zin•2d ago
replace your setup.ps1 with this one
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
No description
Zin
Zin•2d ago
lol what the heck that should be fine
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
starting to onder if I gotta purge all my .nets and reinstall
Zin
Zin•2d ago
honestly yeah purge 10.0 and 9.0 theoretically it would force it to run 8.0 :susge:
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
I dont even remember what I have 9.0 and 10.0 for
Snow
Snow•2d ago
Could it be a dotnet ver issue if it's ver 10? though I'd imagine it'd still install 9 if you installed the other .net stuff
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
to be clear, if I have terminal and the right .net ver I dont need visual studio right? I'm gonna uninstall VS and all of its SKDs, then uninstall all SKDs above 8.0, then restart, then try this again
Snow
Snow•2d ago
can you do this again but scroll down
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
learn more was the last line iirc
Snow
Snow•2d ago
i'm dumb you attached 2 images šŸ”„
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
And im currently mid-uninstgall of stuff any time i've ever installed visual studio it has ruined everything im trying to do so I''m gonna blame VS
Snow
Snow•2d ago
idk how i've installed maple2 on a fresh PC with nothing installed like 4 times now
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
I'm removing the repo to clone it fresh as well now purgin ALL SDK instances tempted to purge all my runtimes too just to be thurough I have purged all traces of .net and restarted, then installed the linked .net 8.0 and restarted, I pray to isiphalilese this works how is this polssible., it is stil ltelling me to download 8.0
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
No description
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
I only have the one
Zin
Zin•2d ago
do dotnet --info
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
wait i have a new error
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
No description
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
No description
No description
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
how do i still have all these runtimes
Zin
Zin•2d ago
hmm okay two things to try first run dotnet tool install --global dotnet-ef
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
Hang on, I have gone nuclear and purged everything .net on my pc There isn't any left
Zin
Zin•2d ago
:sadhamster:
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
Now, I have installed .net 8.0 from the link you provided And once I have finished my restart, I will run that command you just sent And THEN I will try to do this again yknow, i didnt think anything would top the frustration of stting up a genshin private server xD
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
Well i denfinitely wasnt supposed to do what I just did apparently
No description
Zin
Zin•2d ago
tbh it really shouldnt be this complicated getting dot net can you just use visual studio ?
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
i genuinely believe visual studio started all this but I'll go back to it wait hang on I hav e vs 2026 that might be my problem
Zin
Zin•2d ago
should be fine
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
alright i am following the video closely
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
No description
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
well this is a new one visual studio is optimizing .net assemblies..
Zin
Zin•2d ago
dotnet tool install --global dotnet-ef --version 8.0.6
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
same error
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
No description
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
this is the current state of info repairing visual studio i wil lthen restart I have never had so much issue i promise im usually better at computers
Zin
Zin•2d ago
:susge:
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
i've never encountered this before tho and I've done a lot of general modding, setup, and stuff that wants sdk to be installed, I truly cannot fathom where I'm tripping up
Zin
Zin•2d ago
wait can you run dotnet-ef?
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
No description
Zin
Zin•2d ago
oh then you can skip this step
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
the..setup step?
Zin
Zin•2d ago
no the dotnet tool install --global dotnet-ef step you have it already
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
No description
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
ran ingest with vs this was the result
Zin
Zin•2d ago
genuinely confused. i guess follow that link and download/install it?
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
gonna do the one thing i havent don e gonna install .net 10.0
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
No description
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
I will accept bullets
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
No description
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
i do not understand, I possess .nets from both vs and windows download i have both 10 and 8 hang on..
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
No description
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
decided to run start anyway and got this
No description
Zin
Zin•2d ago
well yeah you cant just skip steps
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
in my defense I hav e technically done step 5 22 times xD
Zin
Zin•2d ago
idk if @tDcc would have any other ideas but i dunno atp
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
Build succeeded. Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. File name: 'System.Runtime, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Unhandled exception. System.Exception: Failed to migrate game database. at Program.<Main>$(String[] args) in C:\Game Stuff\GitHub Repositories\Maple2\Maple2.File.Ingest\Program.cs:line 145 C:\Game Stuff\GitHub Repositories\Maple2\Maple2.File.Ingest\bin\Debug\net8.0\Maple2.File.Ingest.exe (process 10836) exited with code -532462766 (0xe0434352). Press any key to close this window . . . does any of these lines stick out at all?
Zin
Zin•2d ago
nop
mouzedrift
mouzedrift•2d ago
GitHub
Could not load file or assembly 'System.Runtime, Version 10.0.0.0 ...
I am trying to set up database first connection to a SqlServer database using: scaffold-dbContext &quot;Server=SQLEXPRESS; Database=TTS1000; Trusted_Connection=True;&quot; Microsoft.EntityFramework...
mouzedrift
mouzedrift•2d ago
seems like a bug in dotnet 10
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
Dotnet 10 seems to be a mandatory feature of vs 2026
mouzedrift
mouzedrift•2d ago
checks out vs 2026 was only released a couple days ago :xdd:
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
How do I downgrade to vs 2022 And am I going to have to go out of my way to hard purge all dotnets and start from scratch again
mouzedrift
mouzedrift•2d ago
i dunno if theres a way to downgrade from 2026 since i've never installed it but probably not anything >= dotnet 8 and < dotnet 10 is probably fine
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
I'm gonna uninstall vs 2026 and try to find a 2022 install
mouzedrift
mouzedrift•2d ago
do they no longer offer 2022? technically you dont even need visual studio its just in the video cuz you can install some dependencies with the installer
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
No description
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
I uninstalled vs and 10.0 and just have 8.0 no matter how i run it it wont take from my .net 8.0 downloading vs 2022 is now something only a premium paid customer can do now
mouzedrift
mouzedrift•2d ago
:Um:
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
I just dont understand why it isnt detecting dotnet 8.0
mouzedrift
mouzedrift•2d ago
what command did you run here? :slimeThink:
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
i right clicked the ingest folder and ran it in terminal, and then ran dotnet run
mouzedrift
mouzedrift•2d ago
either dotnet isnt in your PATH or your current session of the windows terminal is outdated and needs to be restarted also if you have another dotnet version installed its probably gonna pick the latest one
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
i'm confused, my path needs to be set to the ingest folder, b ut obviously my dotnet installtion is elsewhere, how does one have it in the path?
mouzedrift
mouzedrift•2d ago
by PATH i mean the environment variable PATH which is basically a list of directories so the command prompt can find the files inside the directories from any path
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
how do i ensure that terminal knows where my sdk install is?
mouzedrift
mouzedrift•2d ago
C:\Program Files\dotnet\ needs to be part of the PATH if you open a new command prompt and type echo %PATH% whats the output?
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
No description
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
okay so how do i change this
mouzedrift
mouzedrift•2d ago
thats powershell
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
No description
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
i realized my error wait so everytime I open terminal it defaults to powershell is that the problem I've been having this whole time? can i disable powershell?
mouzedrift
mouzedrift•2d ago
i think you can change the default to command prompt in the windows terminal settings
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
yeah i foun
mouzedrift
mouzedrift•2d ago
anyway i see C:\Program Files\dotnet\ is in your PATH so it should be detecting dotnet if you type dotnet --list-sdks for example šŸ¤”
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
No description
mouzedrift
mouzedrift•2d ago
ya looks like its detecting it we have the same dotnet 9 version
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
No description
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
well its a different failure this time so the powershell issue was part of it setup.bat is still feeding me the same line about installing 8.0
mouzedrift
mouzedrift•2d ago
looks like dotnet-ef is running version 10 while dotnet is 9 and thats why its complaining
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
how do i kill that ef then?
mouzedrift
mouzedrift•2d ago
i believe you can type dotnet tool uninstall --global dotnet-ef
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
No description
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
dotnet is conspiring against me
mouzedrift
mouzedrift•2d ago
:Hmm:
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
did i uninstall dotnet 10 wrong somehow? i have manually deleted the 10.0 folder from my dotnet ef folder
mouzedrift
mouzedrift•2d ago
you just uninstall it through the windows settings app manually deleting it might've done some weird stuff to it im not sure
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
thats what i did first was normally uninstall it it was no longer in my app list because I uninstalled it
Solution
mouzedrift
mouzedrift•2d ago
you could try manually deleting dotnet-ef i guess and then see if you can install dotnet-ef version 9 using dotnet tool install --global dotnet-ef --version 9.*
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
No description
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
This is closer than I've ever been it knows what dotnet im using now, this is a major success
mouzedrift
mouzedrift•2d ago
i believe most of the files you would have to delete would be in:
%USERPROFILE%\.dotnet\tools\dotnet-ef
%USERPROFILE%\.dotnet\toolResolverCache
%USERPROFILE%\.nuget\packages\dotnet-ef
%USERPROFILE%\.dotnet\tools\dotnet-ef
%USERPROFILE%\.dotnet\toolResolverCache
%USERPROFILE%\.nuget\packages\dotnet-ef
(dont quote me on that thO)
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
oh i just threw out the whole .dotnet folder and repaired my 8.0 and 9.0 versions then i ran the comand you sent to download dotnet-ef 9.* and now it knows my dotnet but a completely unrelated problem has been thrown it seems
mouzedrift
mouzedrift•2d ago
it looks like it cant connect to your mysql server how far into the guide were you? did you set up mysql already?
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
i have reinstalled mysql it seems to be doing it
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
lots of no npcs, is this normal?
No description
mouzedrift
mouzedrift•2d ago
i dont remember from memory but its probably fine
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
I guess I should assume its gonna say stuff is missing considering this isnt a 100% complete build yknow what it was all visual studio's fault I've never installed visual studio and had it not fuck up literally everything
mouzedrift
mouzedrift•2d ago
it's dotnet's fault for shipping a version with a pretty bad bug :xdd: vs 2026 just happened to install the latest version of dotnet
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
i have immediately forgotten what port im using for this i left it default tho
mouzedrift
mouzedrift•2d ago
should be 3306 i think i'll stick to visual studio 2022 for a while after seeing all this :xdd:
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
weird that it still had me choose a world(in this case paperwood) so, can I have my friend just download mushroom launcher and the approrpriate game files and have her join my server?
mouzedrift
mouzedrift•2d ago
if you want someone else to join your server you'll have to do some additional steps :gmTea: someone made a video tutorial for that but i'll have to find it first i assume you're not familiar with port forwarding?
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
I am distantly familiar with it Once upon a long ass time ago I did it for minecraft
mouzedrift
mouzedrift•2d ago
i suppose its slightly different since they're actually using radminVPN in this video
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
But i already have a VPN xD
mouzedrift
mouzedrift•2d ago
this seems to be mostly for skipping port forwarding similar to how you could use hamachi to create servers i dont know if someone made a tutorial without radminVPN
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
Basically tho I just set one of my portforwarding ports to 3306?
mouzedrift
mouzedrift•2d ago
i dont think they would need access to your database :xdd:
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
Oh, duh. The port being used by the game
Snow
Snow•2d ago
it's fine yeah
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
Which i can easily see by looking at the command wjndiw Window*
Snow
Snow•2d ago
:despair:
Snow
Snow•2d ago
It will but you'd need to connect them up iirc, you just use the login on the bottom right and it's fine that or for the sake of simplicity use this gfx edit from nam https://discord.com/channels/1233581457470128209/1289546717741580341/1385813454904103034 we use this on lith too
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
I'll prolly connect them uo manually, they are my roomies Essentially gives us like fifteen more character slots if you think about it
mouzedrift
mouzedrift•2d ago
no one tell them :clueless: the slight snag has turned into a big snag
Ommy[corn/dog]
Ommy[corn/dog]OP•2d ago
Oh snap how do I tag this solved
mouzedrift
mouzedrift•2d ago
right click message -> apps -> mark solution but what message would be the solution :xdd: there are a million
No description

Did you find this page helpful?