C
C#5mo ago
suki

need help with program (.exe)

Not very experenced here, but i had someone send me a program that works on their windows ten machine, and not mine. from what i know, there are no dependacys and he is unsure as to why it doesent open. I can provide the code if nesasary.
48 Replies
suki
sukiOP5mo ago
When this program works, it should open a console. which is not happening Thank you, for helping!
Buddy
Buddy5mo ago
Check EventViewer Also what does "asset fix" do?
suki
sukiOP5mo ago
Should change .txt files in the folder i dragged on top of it but it does nothing and it works on his machine
Buddy
Buddy5mo ago
I mean the program itself what does "asset fix" programs actually do
suki
sukiOP5mo ago
Sorry, super new, would you like the code?
Buddy
Buddy5mo ago
Sure Just remember this
MODiX
MODiX5mo ago
When you ask a question, make sure you include as much detail as possible. Such as code, the issue you are facing, what you expect the result to be, what .NET version you are using and what platform/environment (if any) are relevant to your question. Upload code here https://paste.mod.gg/ (see $code for more information on how to paste your code)
suki
sukiOP5mo ago
$code
MODiX
MODiX5mo ago
To post C# code type the following: ```cs // code here ``` Get an example by typing $codegif in chat For longer snippets, use: https://paste.mod.gg/
suki
sukiOP5mo ago
suki
sukiOP5mo ago
There you go lol
The Fog from Human Resources
try starting the program using your console if it crashes it will print the error :soPortuguese:
suki
sukiOP5mo ago
heres what it gave me
No description
The Fog from Human Resources
Uh you need to go to the same folder as the program is in and then type .\yourProgram.exe to start it via CLI
suki
sukiOP5mo ago
like this?
No description
The Fog from Human Resources
Uh It's easier you navigate to the folder first You can right click the folder and hit "open in terminal" I think Like in the folder in your Explorer
suki
sukiOP5mo ago
i dont see that option
No description
The Fog from Human Resources
Open the folder first and then right click on the empty space so you see the options menu for the current folder
suki
sukiOP5mo ago
like this?
No description
suki
sukiOP5mo ago
so sorry, im big noob haha
The Fog from Human Resources
Nah all good it's probably a win11 thing then You should still be able to open the file using ./path/to/your/file.exe
suki
sukiOP5mo ago
Do i type that in the command line? or the folder path section?
The Fog from Human Resources
Command line
suki
sukiOP5mo ago
No description
suki
sukiOP5mo ago
Where do i find .NET? thats probably why it doesent function
The Fog from Human Resources
There we go Type dotnet into your console If nothing comes up try following the link shown in the screenshot below
suki
sukiOP5mo ago
says that is not a reconized thing Honestly thought .NET was pre-installed
suki
sukiOP5mo ago
I think it works! lemme test, ill come back to you!
The Fog from Human Resources
I mean from what I've seen most C# devs seem to compile their applications self contained so it's never rly been an issue Bet
suki
sukiOP5mo ago
Its opening now! although, it seems to get stuck. hard to show you as it dissapears really fast. this is the best ss i could get
No description
suki
sukiOP5mo ago
I dont know what error is occuring seems like it cant find the directory, but the urban_buckle.txt is 100% there.
suki
sukiOP5mo ago
heres the file its meant to change
No description
suki
sukiOP5mo ago
should look something like this
No description
suki
sukiOP5mo ago
when processed
SleepWellPupper
SleepWellPupper5mo ago
@suki What is the purpose of your application? Looks interesting :)
suki
sukiOP5mo ago
Converts the text files data into usable material values for a script
SleepWellPupper
SleepWellPupper5mo ago
material values? Is this for game dev?
suki
sukiOP5mo ago
Its an auto texture script for blender It reads whats in the .txt and applies materials automaticly
Pobiega
Pobiega5mo ago
The error is a "directory not found" exception. Your program tries to access a directory that does not exist or in the wrong path
suki
sukiOP5mo ago
it def does exist tho "C:\Users\Klpik\Downloads\Roze 4_1 Murk 4K Seperated\Roze 4_1 Murk 4K Seperated\head_mp_eastern_roze_4_1\buckle_master_urban_images.txt"
Pobiega
Pobiega5mo ago
A file isn't a directory
suki
sukiOP5mo ago
So what is it looking for? im a bit confused
Pobiega
Pobiega5mo ago
I dont know, i didn't read the code and the screenshot is... Very low resolution If you can show the code at $paste and copy paste the full exception text, I can help more
MODiX
MODiX5mo ago
If your code is too long, you can post to https://paste.mod.gg/, save, and copy the link into chat for others to see your shared code!
Pobiega
Pobiega5mo ago
Discord attachments don't work very well on phones you see
Want results from more Discord servers?
Add your server