Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hey everyone!

So due to my last project idea having some major flaws I decided to make something different.

What I had in mind was creating a game library almost like steam but for personal use, I just dont like the way steam is setup & how you cant add you own games so I would like to create a small little library for my games..

I had the picture in my head how its going to look and functions but I dont know what everything is called so its going to be pretty hard for me to google it.

here is the main issue.
I would like to have a button the open the file directory where you can find your own games.. im pretty sure I know how to code that but making the game save to that button or somewhere on the app is going to be the issue.

And if you think that would be too hard for me since in in my 3rd month of C# OOP.
I would like to have one button that scans for all the .exe installed on my computer and grabbing them (by following some sort of list like a list of games for example) and adding them to the application, what approach do you think I should take for this type of project?

Many thanks!
Posted
Comments
Richard MacCutchan 29-Dec-15 12:44pm    
if you think that would be too hard for me since in in my 3rd month of C# OOP.

Definitely too hard.
BladeLogan 29-Dec-15 13:18pm    
Alright, well il try to get it working anyways!

DO NOT scan the drive for .EXE's. You'll come up with thousands of them and only a few of them are going to be games.

The user will have to add the games they want themselves using some mechanism you provide. Possibly by dropping a shortcut to launch the game on a control in your app?

If you've only been doing this for a few months, this is going to be WAY over your head.
 
Share this answer
 
Comments
BladeLogan 29-Dec-15 14:40pm    
I like things being really complicated that means that I can read up about it, I hate hitting a wall when it comes to programming its never fun being stuck. What my plan was to use the FolderBrowserDialog connected to Process.Start, for example, people press the button > Brings up the FolderBrowserDialog > user presses a game > it gets saved to Process.Start("letsSayIHaveAVariableHoldingTheValueOfTheExeThatTheUserSelects"); & it saves it.
Sergey Alexandrovich Kryukov 29-Dec-15 14:56pm    
Bad idea. Generally, writing an application for starting other applications is a bad idea. The users have much better choices, with, say, some more advanced file managers and other tools. Trying to create pseudo "integration" based on starting available projects is generally a bad sign.

This is the your second question of this sort I paid attention to. You have one general problem: you don't want to invent anything, but trying to find something which is already created. You may say that you are a beginner. Still, wrong approach. If everyone would only do something which was already done, where the engineers would come from? Engineering is, by definition, making something new. Of course, there are many people formally positioned as "engineers" who never do anything new, but who take them seriously? If your project is supposed to be the project for you study on the way to becoming an engineer, it would be much better to do something much simpler, but still of your own.

I tried to give you some general advice in a separate answer.
Please see Solution 2.

—SA
Sergey Alexandrovich Kryukov 29-Dec-15 14:50pm    
Sure, a 5.
—SA
Please see my comment to Solution 1. I'm afraid, your real problem is that you are looking around, find attractive products and try to do the same. But "the same" is already created, so there is no a need to create it again. Well, you can get an idea implemented only on one platform and implement it on a different platform, that would be valuable. But it's much better to invent something on your own. Something much simpler, but yours.

It's a usual misconception of the beginners: not seeing that there are million of unsolved little problems around, you just should recognize them. In my past answers, I offered some idea on how you can start to see such problems around and make them your projects:
Can you suggest a topic for my Senior Project? Programming[^],
Need Project Ideas Help me Plz[^],
JAVA final year projects[^],
Please suggest a good concept for my .NET project ?[^],
how to improve my technological capability[^].

Sorry for many repeated points in those answers — I wrote then for different inquirers and cross-referenced them. But don't skip them: in some, I added some new ideas, such as talking to your fellow students.

See also my blog entry: How you can get a great topic for a project and prove yourself?[^].

—SA
 
Share this answer
 
v3
Comments
BladeLogan 29-Dec-15 15:12pm    
Thank you sir! I'm starting to understand the basics, feels like I've gone too fast for myself, sure I've learned some "Complex" stuff, but what is complex if its not my "Own" work, Sure I looked at some code, modified it & made it to something else but with the same uses, What I'm going to try to do in the future is creating something that doesnt exist but could be useful, Say.. There are alot of bots out there that automates stuff for the user, that seems really interesting to me, do you think thats a field I should approach? Creating some sort of bot that doesnt exist or is in Open Source & try to make my own?

Thanks for the links aswell!
Sergey Alexandrovich Kryukov 29-Dec-15 15:16pm    
You are very welcome. I don't know; perhaps I'm not familiar with such bots...
—SA
BladeLogan 29-Dec-15 15:14pm    
Also, when I say "Create a bot" I dont mean a full on bot that automates big tasks, maybe just some sort of sorter or organizer.
BladeLogan 29-Dec-15 15:36pm    
Hey, I'm not sure on where to get a hold of you so I'l just ask you here, I want to create a random string in c#, I know how to do the code for that but to make it save to a notepad, for example.. My software outputs 100 random strings, then if I want it to save to a notepad, what is that called "programaticlly speaking" I'm not sure what I would look for on google when trying to learn that.
Sergey Alexandrovich Kryukov 29-Dec-15 15:47pm    
Okay, I answered in Solution 3.

A regular way of asking such question is this: ask a question in a separate question post. If you wanted me to participate (or some other particular member), you can add a comment to any my post, and provide a link to your new question.

I hope you will formally accept Solution 3, too. The question is very simple, so the answer is near-comprehensive. In all cases, your follow-up questions will be welcome.

—SA
BladeLogan asked:

Hey, I'm not sure on where to get a hold of you so I'l just ask you here, I want to create a random string in c#, I know how to do the code for that but to make it save to a notepad, for example.. My software outputs 100 random strings, then if I want it to save to a notepad, what is that called "programaticlly speaking" I'm not sure what I would look for on google when trying to learn that.
There is no such thing as "save in notepad" (what would it supposed to mean? :-)
You can save string in a text file. Use the class System.IO.StreamWriter:
StreamWriter Class (System.IO)[^].

If the whole text is not so big and fit all in memory, you can do it simpler:
File.WriteAllText Method (String, String) (System.IO)[^],
File Class (System.IO)[^].

For comparison, see the last link, for all the methods named System.IO.File.ReadAll* and System.IO.File.WriteAll*.

—SA
 
Share this answer
 
Comments
BladeLogan 29-Dec-15 15:56pm    
Thank you sir! (Once again!)
Sergey Alexandrovich Kryukov 29-Dec-15 15:59pm    
You are welcome. Will you accept this answer formally, too?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900