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
When this program works, it should open a console. which is not happening
Thank you, for helping!
Check EventViewer
Also what does "asset fix" do?
Should change .txt files in the folder i dragged on top of it
but it does nothing
and it works on his machine
I mean the program itself
what does "asset fix" programs actually do
Sorry, super new, would you like the code?
Sure
Just remember this
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)
$code
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/There you go lol
try starting the program using your console
if it crashes it will print the error
:soPortuguese:
heres what it gave me
Uh
you need to go to the same folder as the program is in and then type
.\yourProgram.exe
to start it via CLIlike this?
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
i dont see that option
Open the folder first and then right click on the empty space so you see the options menu for the current folder
like this?
Ah
Hm
so sorry, im big noob haha
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
Do i type that in the command line? or the folder path section?
Command line
Where do i find .NET?
thats probably why it doesent function
There we go
Type
dotnet
into your console
If nothing comes up try following the link shown in the screenshot belowsays that is not a reconized thing
Honestly thought .NET was pre-installed
:SCfeet:
I think it works! lemme test, ill come back to you!
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
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
I dont know what error is occuring
seems like it cant find the directory, but the urban_buckle.txt is 100% there.
heres the file its meant to change
should look something like this
when processed
@suki
What is the purpose of your application? Looks interesting :)
Converts the text files data into usable material values for a script
material values? Is this for game dev?
Its an auto texture script
for blender
It reads whats in the .txt and applies materials automaticly
The error is a "directory not found" exception. Your program tries to access a directory that does not exist or in the wrong path
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"
A file isn't a directory
So what is it looking for? im a bit confused
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
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!
Discord attachments don't work very well on phones you see